35 #include <kdialogbase.h> 36 #include "configuredialog_p.h" 37 #include <tqvaluevector.h> 45 class KMFolderTreeItem;
50 namespace KPIM {
class IdentityCombo; }
53 template <
typename T>
class TQGuardedPtr;
54 class TemplatesConfiguration;
58 class FolderRequester;
76 : TQWidget( parent, name ) {}
78 virtual void load() = 0;
84 virtual bool save() = 0;
86 enum AccepStatus { Accepted, Canceled, Delayed };
92 return save() ? Accepted : Canceled;
98 void readyForAccept();
119 const TQString& aName,
120 TQWidget* parent,
const char* name = 0 );
126 void slotChangeIcon( TQString icon );
131 void slotFolderNameChanged(
const TQString& );
132 void slotFolderContentsSelectionChanged(
int );
135 void initializeWithValuesFromFolder(
KMFolder* folder );
138 TQComboBox *mShowSenderReceiverComboBox;
139 TQComboBox *mContentsComboBox;
140 TQComboBox *mIncidencesForComboBox;
141 TQCheckBox *mAlarmsBlockedCheckBox;
142 TQCheckBox *mSharedSeenFlagsCheckBox;
143 TQLabel *mNormalIconLabel;
144 TDEIconButton *mNormalIconButton;
145 TQLabel *mUnreadIconLabel;
146 TDEIconButton *mUnreadIconButton;
147 TQCheckBox *mIconsCheckBox;
148 TQCheckBox *mNewMailCheckBox;
149 TQCheckBox *mNotifyOnNewMailCheckBox;
150 TQCheckBox *mKeepRepliesInSameFolderCheckBox;
151 KLineEdit *mNameEdit;
153 KPIM::IdentityCombo *mIdentityComboBox;
156 bool mIsLocalSystemFolder;
157 bool mIsResourceFolder;
176 void slotEmitChanged();
178 void slotCopyGlobal();
181 void initializeWithValuesFromFolder(
KMFolder* folder );
185 TemplatesConfiguration* mWidget;
186 KPushButton* mCopyGlobal;
191 bool mIsLocalSystemFolder;
206 KMFolderTree* parent,
const TQString& caption,
207 const TQString& name = TQString() );
209 KMFolder* folder()
const {
return mFolder; }
213 bool isNewFolder()
const {
return mIsNewFolder; }
215 KMFolderDir* folderDir()
const {
return mFolderDir; }
216 typedef TQValueList<TQGuardedPtr<KMFolder> > FolderList;
218 KMFolder* parentFolder()
const {
return mParentFolder; }
220 KMFolderTree* folderTree()
const {
return mFolderTree; }
223 void slotChanged(
bool );
224 virtual void slotOk();
225 virtual void slotApply();
227 void slotReadyForAccept();
228 void slotCancelAccept();
235 TQGuardedPtr<KMFolder> mFolder;
236 TQGuardedPtr<KMFolderDir> mFolderDir;
237 TQGuardedPtr<KMFolder> mParentFolder;
241 TQValueVector<KMail::FolderDiaTab*> mTabs;
242 int mDelayedSavingTabs;
243 KMFolderTree* mFolderTree;
This is the base class for tabs in the folder dialog.
KMail list that manages the contents of one directory that may contain folders and/or other directori...
virtual AccepStatus accept()
Called when clicking OK.
"Templates" tab in the folder dialog Internal class, only used by KMFolderDialog
"General" tab in the folder dialog Internal class, only used by KMFolderDialog
Dialog for handling the properties of a mail folder.