summaryrefslogtreecommitdiffstats
path: root/src/gui/diamondcardprofileform.h
diff options
context:
space:
mode:
authorLubos Dolezel <lubos@dolezel.info>2015-06-02 19:32:25 +0200
committerLubos Dolezel <lubos@dolezel.info>2015-06-02 19:32:25 +0200
commitab83223e1b5c7d34855d091e0c868462bd9452d1 (patch)
tree0890102c34727fcceea3d4e4c89ca560988b7f6d /src/gui/diamondcardprofileform.h
parentaa9b140a7bb49eb9666678bcbbb544cc536bd6de (diff)
downloadtwinkle-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/diamondcardprofileform.h')
-rw-r--r--src/gui/diamondcardprofileform.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/gui/diamondcardprofileform.h b/src/gui/diamondcardprofileform.h
new file mode 100644
index 0000000..48224c9
--- /dev/null
+++ b/src/gui/diamondcardprofileform.h
@@ -0,0 +1,46 @@
+#ifndef DIAMONDCARDPROFILEFORM_H
+#define DIAMONDCARDPROFILEFORM_H
+#include <QLabel>
+#include <QLineEdit>
+#include "user.h"
+#include "ui_diamondcardprofileform.h"
+
+class DiamondcardProfileForm : public QDialog, public Ui::DiamondcardProfileForm
+{
+ Q_OBJECT
+
+public:
+ DiamondcardProfileForm(QWidget* parent = 0, const char* name = 0, bool modal = false, Qt::WindowFlags fl = 0);
+ ~DiamondcardProfileForm();
+
+ virtual int exec( t_user * user );
+
+public slots:
+ virtual void destroyOldUserConfig();
+ virtual void show( t_user * user );
+ virtual void validate();
+ virtual void mouseReleaseEvent( QMouseEvent * e );
+ virtual void processLeftMouseButtonRelease( QMouseEvent * e );
+
+signals:
+ void success();
+ void newDiamondcardProfile(const QString&);
+
+protected slots:
+ virtual void languageChange();
+
+private:
+ t_user *user_config;
+ bool destroy_user_config;
+ QLineEdit *accountIdLineEdit;
+ QLineEdit *pinCodeLineEdit;
+ QLineEdit *nameLineEdit;
+ QLabel *signUpTextLabel;
+
+ void init();
+ void destroy();
+
+};
+
+
+#endif