summaryrefslogtreecommitdiffstats
path: root/pica-client/mainwindow.h
diff options
context:
space:
mode:
authorAnton <anton@picapica>2017-12-01 22:16:24 +0400
committerAnton <anton@picapica>2017-12-01 22:16:24 +0400
commit0f726c30f5f11990d325bc5e55015c42c80cd9d2 (patch)
treef8c9b83cc440dd3a2f43285dc35199435f6e2701 /pica-client/mainwindow.h
parentac041927bc0c82e33acaa9e15fd46ecca0b77172 (diff)
downloadpica-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.h53
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();
};