23 #ifndef CUSTOMTEMPLATES_H 24 #define CUSTOMTEMPLATES_H 26 #include "customtemplates_base.h" 27 #include "templatesinsertcommand.h" 29 #include <tdeshortcut.h> 31 struct CustomTemplateItem; 32 typedef TQDict<CustomTemplateItem> CustomTemplateItemList; 35 class CustomTemplates : public CustomTemplatesBase 42 enum Type { TUniversal, TReply, TReplyAll, TForward }; 46 CustomTemplates( TQWidget *parent = 0, const char *name = 0 ); 52 TQString indexToType( int index ); 56 void slotInsertCommand( TQString cmd, int adjustCursor = 0 ); 58 void slotTextChanged(); 60 void slotAddClicked(); 61 void slotRemoveClicked(); 62 void slotListSelectionChanged(); 63 void slotTypeActivated( int index ); 64 void slotShortcutCaptured( const TDEShortcut &shortcut ); 65 void slotNameChanged( const TQString& ); 72 void setRecipientsEditsEnabled( bool enabled ); 74 TQListViewItem *mCurrentItem; 75 CustomTemplateItemList mItemList; 78 TQStringList mItemsToDelete; 81 TQPixmap mReplyAllPix; 86 bool mBlockChangeSignal; 90 struct CustomTemplateItem 92 CustomTemplateItem() {} 93 CustomTemplateItem( const TQString &name, 94 const TQString &content, 95 TDEShortcut &shortcut, 96 CustomTemplates::Type type, 97 TQString to, TQString cc ) : 98 mName( name ), mContent( content ), mShortcut(shortcut), mType( type ), 99 mTo( to ), mCC( cc ) {} 101 TQString mName, mContent; 102 TDEShortcut mShortcut; 103 CustomTemplates::Type mType; 107 #endif // CUSTOMTEMPLATES_H
|