summary refs log tree commit diff
path: root/include/LoginPage.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-09 13:25:43 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-09 13:25:43 +0300
commit1f10403aced418beea3febc4c23cc7804847474e (patch)
tree60d275475834c12745a2b23ed0e86be4a1e7449c /include/LoginPage.h
parentInitial support for display names (diff)
downloadnheko-1f10403aced418beea3febc4c23cc7804847474e.tar.xz
Add settings panel for homeserver's domain
Diffstat (limited to 'include/LoginPage.h')
-rw-r--r--include/LoginPage.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/LoginPage.h b/include/LoginPage.h

index 8ed54def..8a44ef7a 100644 --- a/include/LoginPage.h +++ b/include/LoginPage.h
@@ -26,7 +26,9 @@ #include "FlatButton.h" #include "InputValidator.h" +#include "LoginSettings.h" #include "MatrixClient.h" +#include "OverlayModal.h" #include "RaisedButton.h" #include "TextField.h" @@ -53,10 +55,14 @@ private slots: // Displays errors produced during the login. void loginError(QString error_message); + // Manipulate settings modal. + void showSettingsModal(); + void closeSettingsModal(const QString &server); + private: QVBoxLayout *top_layout_; - QHBoxLayout *back_layout_; + QHBoxLayout *top_bar_layout_; QHBoxLayout *logo_layout_; QHBoxLayout *button_layout_; @@ -64,6 +70,7 @@ private: QLabel *error_label_; FlatButton *back_button_; + FlatButton *advanced_settings_button_; RaisedButton *login_button_; QWidget *form_widget_; @@ -73,6 +80,10 @@ private: TextField *matrixid_input_; TextField *password_input_; + OverlayModal *settings_modal_; + LoginSettings *login_settings_; + QString custom_domain_; + InputValidator *matrix_id_validator_; // Matrix client API provider.