Tome
A generic data editor for games supporting arbitrary input and output formats.
Public Member Functions | Protected Member Functions | List of all members
MainWindow Class Reference

Main view of Tome. Sets up and owns all other views. More...

#include <mainwindow.h>

Inheritance diagram for MainWindow:

Public Member Functions

 MainWindow (Tome::Controller *controller, QWidget *parent=0)
 Constructs the main window and all other windows. More...
 

Protected Member Functions

void closeEvent (QCloseEvent *event)
 Asks the user whether they want to save unsaved changes, and handles the close event accordingly. More...
 

Detailed Description

Main view of Tome. Sets up and owns all other views.

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( Tome::Controller controller,
QWidget *  parent = 0 
)
explicit

Constructs the main window and all other windows.

Parameters
controllerController owning the main window.
parentOptional owner widget.

Member Function Documentation

◆ closeEvent()

void MainWindow::closeEvent ( QCloseEvent *  event)
protected

Asks the user whether they want to save unsaved changes, and handles the close event accordingly.

Parameters
eventEvent that wants to close the main window.

The documentation for this class was generated from the following files: