Use configured resolution for login/outgame/ingame
[ryzomcore.git] / ryzom / tools / client / ryzom_installer / src / mainwindow.h
blob7449b203989e0049078a34cc056fcdd8148320a9
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef MAINWINDOW_H
18 #define MAINWINDOW_H
20 #include "ui_mainwindow.h"
22 class QWinTaskbarButton;
23 class CDownloader;
24 class CArchive;
26 /**
27 * Main window
29 * \author Cedric 'Kervala' OCHS
30 * \date 2016
32 class CMainWindow : public QMainWindow, public Ui::MainWindow
34 Q_OBJECT
36 public:
37 CMainWindow();
38 virtual ~CMainWindow();
40 public slots:
41 // main window buttons
42 void onPlayClicked();
43 void onConfigureClicked();
45 // settings menu
46 void onProfiles();
47 void onSettings();
48 void onUninstall();
49 void onQuit();
51 // help menu
52 void onAbout();
53 void onAboutQt();
55 void onHtmlPageContent(const QString &html);
57 void onProfileChanged(int index);
59 protected:
60 void showEvent(QShowEvent *e);
61 void closeEvent(QCloseEvent *e);
63 void updateProfiles();
64 void updateButtons();
66 QWinTaskbarButton *m_button;
67 CDownloader *m_downloader;
70 #endif