kmail

newfolderdialog.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002 **
00003 ** Filename   : newfolderdialog.h
00004 ** Created on : 30 January, 2005
00005 ** Copyright  : (c) 2005 Till Adam
00006 ** Email      : adam@kde.org
00007 **
00008 *******************************************************************************/
00009 
00010 /*******************************************************************************
00011 **
00012 **   This program is free software; you can redistribute it and/or modify
00013 **   it under the terms of the GNU General Public License as published by
00014 **   the Free Software Foundation; either version 2 of the License, or
00015 **   (at your option) any later version.
00016 **
00017 **   In addition, as a special exception, the copyright holders give
00018 **   permission to link the code of this program with any edition of
00019 **   the Qt library by Trolltech AS, Norway (or with modified versions
00020 **   of Qt that use the same license as Qt), and distribute linked
00021 **   combinations including the two.  You must obey the GNU General
00022 **   Public License in all respects for all of the code used other than
00023 **   Qt.  If you modify this file, you may extend this exception to
00024 **   your version of the file, but you are not obligated to do so.  If
00025 **   you do not wish to do so, delete this exception statement from
00026 **   your version.
00027 *******************************************************************************/
00028 
00029 #ifndef NEW_FOLDER_DIALOG_H
00030 #define NEW_FOLDER_DIALOG_H
00031 
00032 #include <qvariant.h>
00033 #include <qdialog.h>
00034 #include <kdialogbase.h>
00035 
00036 class QVBoxLayout;
00037 class QHBoxLayout;
00038 class QGridLayout;
00039 class QSpacerItem;
00040 class QLabel;
00041 class QLineEdit;
00042 class QComboBox;
00043 class KMFolder;
00044 
00045 namespace KMail {
00046 
00047 class NewFolderDialog : public KDialogBase
00048 {
00049   Q_OBJECT
00050 
00051   public:
00052     NewFolderDialog( QWidget* parent = 0, KMFolder *folder = 0 );
00053     ~NewFolderDialog() {};
00054 
00055     QLabel* mNameLabel;
00056     QLineEdit* mNameLineEdit;
00057     QLabel* mMailboxFormatLabel;
00058     QComboBox* mFormatComboBox;
00059     QLabel* mContentsLabel;
00060     QComboBox* mContentsComboBox;
00061     QLabel* mNamespacesLabel;
00062     QComboBox* mNamespacesComboBox;
00063 
00064   protected:
00065     QVBoxLayout* mTopLevelLayout;
00066     QHBoxLayout* mNameHBox;
00067     QHBoxLayout* mFormatHBox;
00068     QHBoxLayout* mContentsHBox;
00069     QHBoxLayout* mNamespacesHBox;
00070   protected slots:
00071     void slotOk();
00072   void slotFolderNameChanged( const QString & _text);
00073 
00074   private:
00075     KMFolder* mFolder;
00076 };
00077 
00078 } // namespace
00079 #endif // NEW_FOLDER_DIALOG_H