diff options
| author | Anton <anton@picapica> | 2017-12-01 22:16:24 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2017-12-01 22:16:24 +0400 |
| commit | 0f726c30f5f11990d325bc5e55015c42c80cd9d2 (patch) | |
| tree | f8c9b83cc440dd3a2f43285dc35199435f6e2701 /pica-client/mainwindow.h | |
| parent | ac041927bc0c82e33acaa9e15fd46ecca0b77172 (diff) | |
| download | pica-pica-0f726c30f5f11990d325bc5e55015c42c80cd9d2.tar.gz pica-pica-0f726c30f5f11990d325bc5e55015c42c80cd9d2.zip | |
fixed code style on all source files (*.c *.cpp *.h) using astyle --style=allman --lineend=linux --indent=tab --pad-oper
Diffstat (limited to 'pica-client/mainwindow.h')
| -rw-r--r-- | pica-client/mainwindow.h | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/pica-client/mainwindow.h b/pica-client/mainwindow.h index b61f31a..7fec577 100644 --- a/pica-client/mainwindow.h +++ b/pica-client/mainwindow.h @@ -11,47 +11,48 @@ #include "contactlistwidget.h" #include "askpassword.h" -namespace Ui { - class MainWindow; +namespace Ui +{ +class MainWindow; } class MainWindow : public QMainWindow { - Q_OBJECT + Q_OBJECT public: - explicit MainWindow(QWidget *parent = 0); - ~MainWindow(); + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); void AddNotification(QString &text, bool is_critical); protected: private: - void createMenus(); - - Ui::MainWindow *ui; - ContactListWidget *contact_list; - QComboBox *status; - QListWidget *notifications; - QPushButton *bt_showhide_notifications; - - QMenu *contactsMenu; - QMenu *helpMenu; - QMenu *nodesMenu; - QMenu *accountMenu; + void createMenus(); + + Ui::MainWindow *ui; + ContactListWidget *contact_list; + QComboBox *status; + QListWidget *notifications; + QPushButton *bt_showhide_notifications; + + QMenu *contactsMenu; + QMenu *helpMenu; + QMenu *nodesMenu; + QMenu *accountMenu; QMenu *settingsMenu; - bool status_change_disable_flag; - void SetStatus(bool connected); - bool status_notifications_hidden; + bool status_change_disable_flag; + void SetStatus(bool connected); + bool status_notifications_hidden; private slots: - void set_online(); - void set_offline(); - void status_changed(int index); - void show_notifications(); - void hide_notifications(); - void showhide_click(); + void set_online(); + void set_offline(); + void status_changed(int index); + void show_notifications(); + void hide_notifications(); + void showhide_click(); }; |
