summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h38
1 files changed, 30 insertions, 8 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index b4ad0bdb..81b6a656 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -153,6 +153,8 @@ public:
void displayModInformation(ModInfo::Ptr modInfo, unsigned int index, int tab);
+ bool confirmExit();
+
virtual bool closeWindow();
virtual void setWindowEnabled(bool enabled);
@@ -193,6 +195,7 @@ protected:
virtual void resizeEvent(QResizeEvent *event);
virtual void dragEnterEvent(QDragEnterEvent *event);
virtual void dropEvent(QDropEvent *event);
+ void keyPressEvent(QKeyEvent *event) override;
private slots:
void on_actionChange_Game_triggered();
@@ -204,9 +207,16 @@ private:
void cleanup();
- void actionToToolButton(QAction *&sourceAction);
+ void setupActionMenu(QAction* a);
+ void createHelpMenu();
+ void createEndorseMenu();
+
+ void updatePinnedExecutables();
+ void setToolbarSize(const QSize& s);
+ void setToolbarButtonStyle(Qt::ToolButtonStyle s);
+ void toolbarMenu_aboutToShow();
- void updateToolBar();
+ QMenu* createPopupMenu() override;
void activateSelectedProfile();
void setExecutableIndex(int index);
@@ -253,9 +263,6 @@ private:
// remove invalid category-references from mods
void fixCategories();
- void createEndorseWidget();
- void createHelpWidget();
-
bool extractProgress(QProgressDialog &extractProgress, int percentage, std::string fileName);
size_t checkForProblems();
@@ -315,10 +322,12 @@ private:
Ui::MainWindow *ui;
- QAction *m_Sep; // Executable Shortcuts are added after this. Non owning.
-
bool m_WasVisible;
+ // this has to be remembered because by the time storeSettings() is called,
+ // the window is closed and the menubar is hidden
+ bool m_menuBarVisible;
+
MOBase::TutorialControl m_Tutorial;
int m_OldProfileIndex;
@@ -341,6 +350,8 @@ private:
QTreeWidgetItem *m_ContextItem;
QAction *m_ContextAction;
+ QAction* m_browseModPage;
+
CategoryFactory &m_CategoryFactory;
bool m_LoginAttempted;
@@ -591,7 +602,7 @@ private slots:
*/
void allowListResize();
- void toolBar_customContextMenuRequested(const QPoint &point);
+ void linksToolBar_customContextMenuRequested(const QPoint &point);
void removeFromToolbar();
void overwriteClosed(int);
@@ -626,7 +637,18 @@ private slots: // ui slots
void on_actionNotifications_triggered();
void on_actionSettings_triggered();
void on_actionUpdate_triggered();
+ void on_actionExit_triggered();
+ void on_actionMainMenuToggle_triggered();
+ void on_actionToolBarMainToggle_triggered();
+ void on_actionToolBarLinksToggle_triggered();
+ void on_actionToolBarSmallIcons_triggered();
+ void on_actionToolBarMediumIcons_triggered();
+ void on_actionToolBarLargeIcons_triggered();
+ void on_actionToolBarIconsOnly_triggered();
+ void on_actionToolBarTextOnly_triggered();
+ void on_actionToolBarIconsAndText_triggered();
+ void on_centralWidget_customContextMenuRequested(const QPoint &pos);
void on_bsaList_customContextMenuRequested(const QPoint &pos);
void on_clearFiltersButton_clicked();
void on_btnRefreshData_clicked();