diff options
author | Lubos Dolezel <lubos@dolezel.info> | 2015-06-02 19:32:25 +0200 |
---|---|---|
committer | Lubos Dolezel <lubos@dolezel.info> | 2015-06-02 19:32:25 +0200 |
commit | ab83223e1b5c7d34855d091e0c868462bd9452d1 (patch) | |
tree | 0890102c34727fcceea3d4e4c89ca560988b7f6d /src/gui/selectuserform.h | |
parent | aa9b140a7bb49eb9666678bcbbb544cc536bd6de (diff) | |
download | twinkle-ab83223e1b5c7d34855d091e0c868462bd9452d1.tar twinkle-ab83223e1b5c7d34855d091e0c868462bd9452d1.tar.gz twinkle-ab83223e1b5c7d34855d091e0c868462bd9452d1.tar.lz twinkle-ab83223e1b5c7d34855d091e0c868462bd9452d1.tar.xz twinkle-ab83223e1b5c7d34855d091e0c868462bd9452d1.zip |
Twinkle now compiles with Qt4 uic, but crashes at runtime (due to GUI calls from outside the main thread)
Diffstat (limited to 'src/gui/selectuserform.h')
-rw-r--r-- | src/gui/selectuserform.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/gui/selectuserform.h b/src/gui/selectuserform.h new file mode 100644 index 0000000..898dbbf --- /dev/null +++ b/src/gui/selectuserform.h @@ -0,0 +1,39 @@ +#ifndef SELECTUSERFORM_H +#define SELECTUSERFORM_H +class t_phone; +extern t_phone *phone; + +#include "gui.h" +#include "phone.h" +#include "user.h" +#include "ui_selectuserform.h" + +class SelectUserForm : public QDialog, public Ui::SelectUserForm +{ + Q_OBJECT + +public: + SelectUserForm(QWidget* parent = 0, const char* name = 0, bool modal = false, Qt::WindowFlags fl = 0); + ~SelectUserForm(); + +public slots: + virtual void show( t_select_purpose purpose ); + virtual void validate(); + virtual void selectAll(); + virtual void clearAll(); + virtual void toggle( Q3ListViewItem * item ); + +signals: + void selection(list<t_user *>); + void not_selected(list<t_user*>); + +protected slots: + virtual void languageChange(); + +private: + void init(); + +}; + + +#endif |