summary refs log tree commit diff
path: root/include/MainWindow.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-26 02:23:12 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-26 02:24:10 +0300
commit415ef7e9c7b9a44a3f5da725cd252a454e4969f8 (patch)
treebddc787765f8797fdc73da91af13197d2f9d8785 /include/MainWindow.h
parentMerge pull request #6 from MTRNord/patch-1 (diff)
downloadnheko-415ef7e9c7b9a44a3f5da725cd252a454e4969f8.tar.xz
Add spinner to hide uninitialized layout after login
Diffstat (limited to 'include/MainWindow.h')
-rw-r--r--include/MainWindow.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/MainWindow.h b/include/MainWindow.h

index 89d1df45..f1582f85 100644 --- a/include/MainWindow.h +++ b/include/MainWindow.h
@@ -22,8 +22,10 @@ #include <QSharedPointer> #include "ChatPage.h" +#include "CircularProgress.h" #include "LoginPage.h" #include "MatrixClient.h" +#include "OverlayModal.h" #include "RegisterPage.h" #include "SlidingStackWidget.h" #include "WelcomePage.h" @@ -41,7 +43,7 @@ public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); -public slots: +private slots: // Show the welcome page in the main window. void showWelcomePage(); @@ -54,6 +56,8 @@ public slots: // Show the chat page and start communicating with the given access token. void showChatPage(QString user_id, QString home_server, QString token); + void removeOverlayProgressBar(); + private: // The UI component of the main window. Ui::MainWindow *ui_; @@ -73,6 +77,10 @@ private: // The main chat area. ChatPage *chat_page_; + // Used to hide undefined states between page transitions. + OverlayModal *progress_modal_; + CircularProgress *spinner_; + // Matrix Client API provider. QSharedPointer<MatrixClient> client_; };