34 #include <kdialogbase.h>
35 #include "configuredialog_p.h"
36 #include <tqvaluevector.h>
44 class KMFolderTreeItem;
49 namespace KPIM {
class IdentityCombo; }
52 template <
typename T>
class TQGuardedPtr;
53 class TemplatesConfiguration;
57 class FolderRequester;
75 : TQWidget( parent, name ) {}
77 virtual void load() = 0;
85 enum AccepStatus { Accepted, Canceled, Delayed };
91 return save() ? Accepted : Canceled;
118 const TQString& aName,
119 TQWidget* parent,
const char* name = 0 );
125 void slotChangeIcon( TQString icon );
130 void slotFolderNameChanged(
const TQString& );
131 void slotFolderContentsSelectionChanged(
int );
134 void initializeWithValuesFromFolder(
KMFolder* folder );
137 TQComboBox *mShowSenderReceiverComboBox;
138 TQComboBox *mContentsComboBox;
139 TQComboBox *mIncidencesForComboBox;
140 TQCheckBox *mAlarmsBlockedCheckBox;
141 TQCheckBox *mSharedSeenFlagsCheckBox;
142 TQLabel *mNormalIconLabel;
143 TDEIconButton *mNormalIconButton;
144 TQLabel *mUnreadIconLabel;
145 TDEIconButton *mUnreadIconButton;
146 TQCheckBox *mIconsCheckBox;
147 TQCheckBox *mNewMailCheckBox;
148 TQCheckBox *mNotifyOnNewMailCheckBox;
149 TQCheckBox *mKeepRepliesInSameFolderCheckBox;
150 KLineEdit *mNameEdit;
152 KPIM::IdentityCombo *mIdentityComboBox;
155 bool mIsLocalSystemFolder;
156 bool mIsResourceFolder;
175 void slotEmitChanged();
177 void slotCopyGlobal();
180 void initializeWithValuesFromFolder(
KMFolder* folder );
184 TemplatesConfiguration* mWidget;
185 KPushButton* mCopyGlobal;
190 bool mIsLocalSystemFolder;
205 KMFolderTree* parent,
const TQString& caption,
206 const TQString& name = TQString() );
208 KMFolder* folder()
const {
return mFolder; }
212 bool isNewFolder()
const {
return mIsNewFolder; }
214 KMFolderDir* folderDir()
const {
return mFolderDir; }
215 typedef TQValueList<TQGuardedPtr<KMFolder> > FolderList;
217 KMFolder* parentFolder()
const {
return mParentFolder; }
219 KMFolderTree* folderTree()
const {
return mFolderTree; }
222 void slotChanged(
bool );
223 virtual void slotOk();
224 virtual void slotApply();
226 void slotReadyForAccept();
227 void slotCancelAccept();
234 TQGuardedPtr<KMFolder> mFolder;
235 TQGuardedPtr<KMFolderDir> mFolderDir;
236 TQGuardedPtr<KMFolder> mParentFolder;
240 TQValueVector<KMail::FolderDiaTab*> mTabs;
241 int mDelayedSavingTabs;
242 KMFolderTree* mFolderTree;
Dialog for handling the properties of a mail folder.
KMail list that manages the contents of one directory that may contain folders and/or other directori...
"General" tab in the folder dialog Internal class, only used by KMFolderDialog
virtual bool save()
Unlike ConfigModuleTab, we return a bool from save.
This is the base class for tabs in the folder dialog.
virtual AccepStatus accept()
Called when clicking OK.
virtual bool save()=0
Unlike ConfigModuleTab, we return a bool from save.
void changed(bool)
Called when this module was changed [not really used yet].
void readyForAccept()
Emit this to tell the dialog that you're done with the async jobs, and that the dialog can be closed.
void cancelAccept()
Emit this, i.e.
"Templates" tab in the folder dialog Internal class, only used by KMFolderDialog
virtual bool save()
Unlike ConfigModuleTab, we return a bool from save.