Version 2.6
[qgit4/redivivus.git] / src / customactionimpl.h
blob01ceadcdb584e26ce3f053fcbac5f2170916b8b3
1 /*
2 Description: custom action handling
4 Author: Marco Costalba (C) 2006-2007
6 Copyright: See COPYING file that comes with this distribution
8 */
9 #ifndef CUSTOMACTIONIMPL_H
10 #define CUSTOMACTIONIMPL_H
12 #include "ui_customaction.h"
14 class CustomActionImpl : public QWidget, public Ui_CustomActionBase {
15 Q_OBJECT
16 public:
17 CustomActionImpl();
19 signals:
20 void listChanged(const QStringList&);
22 protected slots:
23 virtual void closeEvent(QCloseEvent*);
24 void listWidgetNames_currentItemChanged(QListWidgetItem*, QListWidgetItem*);
25 void pushButtonNew_clicked();
26 void pushButtonRename_clicked();
27 void pushButtonRemove_clicked();
28 void pushButtonMoveUp_clicked();
29 void pushButtonMoveDown_clicked();
30 void checkBoxRefreshAfterAction_toggled(bool);
31 void checkBoxAskArgs_toggled(bool);
32 void textEditAction_textChanged();
33 void pushButtonOk_clicked();
35 private:
36 const QStringList actions();
37 void updateActions();
38 bool getNewName(QString& name, const QString& caption);
39 void loadAction(const QString& name);
40 void removeAction(const QString& name);
43 #endif