summaryrefslogtreecommitdiff
path: root/src/citra_qt/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/citra_qt/main.h')
-rw-r--r--src/citra_qt/main.h30
1 files changed, 20 insertions, 10 deletions
diff --git a/src/citra_qt/main.h b/src/citra_qt/main.h
index a2fd45c47..ec841eaa5 100644
--- a/src/citra_qt/main.h
+++ b/src/citra_qt/main.h
@@ -64,7 +64,7 @@ signals:
64 64
65private: 65private:
66 void InitializeWidgets(); 66 void InitializeWidgets();
67 void InitializeDebugMenuActions(); 67 void InitializeDebugWidgets();
68 void InitializeRecentFileMenuActions(); 68 void InitializeRecentFileMenuActions();
69 void InitializeHotkeys(); 69 void InitializeHotkeys();
70 70
@@ -72,15 +72,10 @@ private:
72 void RestoreUIState(); 72 void RestoreUIState();
73 73
74 void ConnectWidgetEvents(); 74 void ConnectWidgetEvents();
75 void ConnectMenuEvents();
75 76
76 /** 77 bool LoadROM(const QString& filename);
77 * Initializes the emulation system. 78 void BootGame(const QString& filename);
78 * @param system_mode The system mode with which to intialize the kernel.
79 * @returns Whether the system was properly initialized.
80 */
81 bool InitializeSystem(u32 system_mode);
82 bool LoadROM(const std::string& filename);
83 void BootGame(const std::string& filename);
84 void ShutdownGame(); 79 void ShutdownGame();
85 80
86 /** 81 /**
@@ -94,7 +89,7 @@ private:
94 * 89 *
95 * @param filename the filename to store 90 * @param filename the filename to store
96 */ 91 */
97 void StoreRecentFile(const std::string& filename); 92 void StoreRecentFile(const QString& filename);
98 93
99 /** 94 /**
100 * Updates the recent files menu. 95 * Updates the recent files menu.
@@ -110,6 +105,7 @@ private:
110 * @return true if the user confirmed 105 * @return true if the user confirmed
111 */ 106 */
112 bool ConfirmClose(); 107 bool ConfirmClose();
108 bool ConfirmChangeGame();
113 void closeEvent(QCloseEvent* event) override; 109 void closeEvent(QCloseEvent* event) override;
114 110
115private slots: 111private slots:
@@ -131,17 +127,26 @@ private slots:
131 void OnCreateGraphicsSurfaceViewer(); 127 void OnCreateGraphicsSurfaceViewer();
132 128
133private: 129private:
130 void UpdateStatusBar();
131
134 Ui::MainWindow ui; 132 Ui::MainWindow ui;
135 133
136 GRenderWindow* render_window; 134 GRenderWindow* render_window;
137 GameList* game_list; 135 GameList* game_list;
138 136
137 // Status bar elements
138 QLabel* emu_speed_label = nullptr;
139 QLabel* game_fps_label = nullptr;
140 QLabel* emu_frametime_label = nullptr;
141 QTimer status_bar_update_timer;
142
139 std::unique_ptr<Config> config; 143 std::unique_ptr<Config> config;
140 144
141 // Whether emulation is currently running in Citra. 145 // Whether emulation is currently running in Citra.
142 bool emulation_running = false; 146 bool emulation_running = false;
143 std::unique_ptr<EmuThread> emu_thread; 147 std::unique_ptr<EmuThread> emu_thread;
144 148
149 // Debugger panes
145 ProfilerWidget* profilerWidget; 150 ProfilerWidget* profilerWidget;
146 MicroProfileDialog* microProfileDialog; 151 MicroProfileDialog* microProfileDialog;
147 DisassemblerWidget* disasmWidget; 152 DisassemblerWidget* disasmWidget;
@@ -155,6 +160,11 @@ private:
155 WaitTreeWidget* waitTreeWidget; 160 WaitTreeWidget* waitTreeWidget;
156 161
157 QAction* actions_recent_files[max_recent_files_item]; 162 QAction* actions_recent_files[max_recent_files_item];
163
164protected:
165 void dropEvent(QDropEvent* event) override;
166 void dragEnterEvent(QDragEnterEvent* event) override;
167 void dragMoveEvent(QDragMoveEvent* event) override;
158}; 168};
159 169
160#endif // _CITRA_QT_MAIN_HXX_ 170#endif // _CITRA_QT_MAIN_HXX_