kmail

newfolderdialog.h

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 TQt library by Trolltech AS, Norway (or with modified versions
00020 **   of TQt that use the same license as TQt), 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 **   TQt.  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 <tqvariant.h>
00033 #include <tqdialog.h>
00034 #include <kdialogbase.h>
00035 
00036 class TQVBoxLayout;
00037 class TQHBoxLayout;
00038 class TQGridLayout;
00039 class TQSpacerItem;
00040 class TQLabel;
00041 class TQLineEdit;
00042 class TQComboBox;
00043 class KMFolder;
00044 
00045 namespace KMail {
00046 
00047 class NewFolderDialog : public KDialogBase
00048 {
00049   Q_OBJECT
00050   TQ_OBJECT
00051 
00052   public:
00053     NewFolderDialog( TQWidget* parent = 0, KMFolder *folder = 0 );
00054     ~NewFolderDialog() {};
00055 
00056     TQLabel* mNameLabel;
00057     TQLineEdit* mNameLineEdit;
00058     TQLabel* mMailboxFormatLabel;
00059     TQComboBox* mFormatComboBox;
00060     TQLabel* mContentsLabel;
00061     TQComboBox* mContentsComboBox;
00062     TQLabel* mNamespacesLabel;
00063     TQComboBox* mNamespacesComboBox;
00064 
00065   protected:
00066     TQVBoxLayout* mTopLevelLayout;
00067     TQHBoxLayout* mNameHBox;
00068     TQHBoxLayout* mFormatHBox;
00069     TQHBoxLayout* mContentsHBox;
00070     TQHBoxLayout* mNamespacesHBox;
00071   protected slots:
00072     void slotOk();
00073     void slotFolderNameChanged( const TQString & _text);
00074 
00075   private:
00076     KMFolder* mFolder;
00077 };
00078 
00079 } // namespace
00080 #endif // NEW_FOLDER_DIALOG_H