00001 /* 00002 Description: custom action handling 00003 00004 Author: Marco Costalba (C) 2006 00005 00006 Copyright: See COPYING file that comes with this distribution 00007 00008 */ 00009 #ifndef CUSTOMACTIONIMPL_H 00010 #define CUSTOMACTIONIMPL_H 00011 00012 #include "customactionbase.h" 00013 00014 class CustomActionImpl : public CustomActionBase { 00015 Q_OBJECT 00016 public: 00017 CustomActionImpl(); 00018 00019 signals: 00020 void listChanged(const QStringList&); 00021 00022 protected slots: 00023 void listViewNames_currentChanged(QListViewItem*); 00024 void pushButtonNew_clicked(); 00025 void pushButtonRename_clicked(); 00026 void pushButtonRemove_clicked(); 00027 void pushButtonMoveUp_clicked(); 00028 void pushButtonMoveDown_clicked(); 00029 void checkBoxRefreshAfterAction_toggled(bool); 00030 void checkBoxAskArgs_toggled(bool); 00031 void textEditAction_textChanged(); 00032 void pushButtonOk_clicked(); 00033 00034 private: 00035 void updateActionList(); 00036 bool getNewName(QString& name, const QString& caption); 00037 void loadAction(const QString& name); 00038 void removeAction(const QString& name); 00039 00040 QStringList actionList; 00041 QString curAction; 00042 }; 00043 00044 #endif