32 #ifndef _SIMPLESTRINGLISTEDITOR_H_ 33 #define _SIMPLESTRINGLISTEDITOR_H_ 36 #include <tqstringlist.h> 48 class SimpleStringListEditor : public TQWidget { 53 None = 0x00, Add = 0x01, 54 Remove = 0x02, Modify = 0x04, 55 Up = 0x08, Down = 0x10, 56 All = Add|Remove|Modify|Up|Down, 57 Unsorted = Add|Remove|Modify 61 SimpleStringListEditor( TQWidget * parent=0, const char * name=0, 62 ButtonCode buttons=Unsorted, 63 const TQString & addLabel=TQString(), 64 const TQString & removeLabel=TQString(), 65 const TQString & modifyLabel=TQString(), 66 const TQString & addDialogLabel=TQString() ); 69 void setStringList( const TQStringList & strings ); 71 void appendStringList( const TQStringList & strings ); 73 TQStringList stringList() const; 76 void setButtonText( ButtonCode button, const TQString & text ); 82 void aboutToAdd(TQString&); 92 void slotSelectionChanged(); 95 bool containsString( const TQString & str ); 97 TQPushButton *mAddButton; 98 TQPushButton *mRemoveButton; 99 TQPushButton *mModifyButton; 100 TQPushButton *mUpButton; 101 TQPushButton *mDownButton; 102 const TQString mAddDialogLabel; 108 #endif // _SIMPLESTRINGLISTEDITOR_H_
|