|
ORE Studio 0.0.4
|
Main application window providing the MDI interface and entity management. More...
#include <MainWindow.hpp>
Inherits QMainWindow.

Public Member Functions | |
| MainWindow (QWidget *parent=nullptr) | |
| Constructs the main window. | |
| ~MainWindow () override | |
| Destroys the main window. | |
| ClientManager * | getClientManager () const |
| Get the client manager. | |
Protected Member Functions | |
| void | closeEvent (QCloseEvent *event) override |
| Handles the close event for the main window. | |
Main application window providing the MDI interface and entity management.
The MainWindow serves as the primary application window, providing:
The window uses an entity controller pattern where each data type (currency, account, trade, etc.) has its own controller that manages windows and operations specific to that entity. This keeps the MainWindow clean and makes it easy to add new entities.
|
explicit |
Constructs the main window.
| parent | Parent widget (typically nullptr for main window) |
Initializes the UI, sets up the MDI area, configures icons, and connects menu/toolbar actions. Entity controllers are created after successful login.
|
overrideprotected |
Handles the close event for the main window.
Ensures all detachable windows (MDI and detached) are closed before the main window closes, so the application can terminate cleanly.