diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-17 13:41:00 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-17 13:41:00 -0300 |
commit | 272338875d315e24b019917e35fbfadf36c05f09 (patch) | |
tree | 1094c42eac334a2128f227f7ac32f3e31a5635a6 /qt-ui/simplewidgets.h | |
parent | 6fd1e32452a9d3d1fb7116764442bbd26d36673e (diff) | |
download | subsurface-272338875d315e24b019917e35fbfadf36c05f09.tar.gz |
Addes a simple 'Renumber Dialog', very similar to the GTK one.
This code adds a Renumber Dialog, that's most a copy & paste
of the GTK visual, I didn't tried to do anything fance with it,
but I still dont like how it looks like. a better management
form is needed. :)
( Well, actually my dislike is mostly because it's on a menu
and it's on a popup, I think a 'toolbox' should exist to hold
all of those widgets that don't belong to the menu - will try
that later )
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/simplewidgets.h')
-rw-r--r-- | qt-ui/simplewidgets.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/qt-ui/simplewidgets.h b/qt-ui/simplewidgets.h index b05dd8f0e..ffd415767 100644 --- a/qt-ui/simplewidgets.h +++ b/qt-ui/simplewidgets.h @@ -2,7 +2,10 @@ #define SIMPLEWIDGETS_H class MinMaxAvgWidgetPrivate; +class QAbstractButton; + #include <QWidget> +#include <QDialog> class MinMaxAvgWidget : public QWidget{ Q_OBJECT @@ -25,4 +28,19 @@ private: MinMaxAvgWidgetPrivate *d; }; -#endif
\ No newline at end of file +namespace Ui{ + class RenumberDialog; +}; + +class RenumberDialog : public QDialog { + Q_OBJECT +public: + static RenumberDialog *instance(); +private slots: + void buttonClicked(QAbstractButton *button); +private: + explicit RenumberDialog(); + Ui::RenumberDialog *ui; +}; + +#endif |