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

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

#include <controller.h>

Inheritance diagram for Tome::Controller:

Public Member Functions

 Controller (Tome::CommandLineOptions *options)
 Constructs and sets up all controllers. More...
 
ProjectControllergetProjectController () const
 Gets the controller for creating, loading and saving projects. More...
 
UndoControllergetUndoController () const
 Gets the controller for performing undo-able commands. More...
 
ComponentsControllergetComponentsController () const
 Gets the controller for adding and removing components. More...
 
FieldDefinitionsControllergetFieldDefinitionsController () const
 Gets the controller for adding, updating and removing field definitions. More...
 
RecordsControllergetRecordsController () const
 Gets the controller for adding, updating and removing records. More...
 
ExportControllergetExportController () const
 Gets the controller for exporting records using templates. More...
 
SettingsControllergetSettingsController () const
 Gets the controller for accessing user settings. More...
 
TasksControllergetTasksController () const
 Gets the controller for runnings tasks on all records. More...
 
TypesControllergetTypesController () const
 Gets the controller for adding, updating and removing custom types. More...
 
FindUsagesControllergetFindUsagesController () const
 Gets the controller for finding usages of fields, records and custom types. More...
 
FindRecordControllergetFindRecordController () const
 Gets the controller for finding specific records. More...
 
FacetsControllergetFacetsController () const
 Gets the controller for validating type facets. More...
 
ImportControllergetImportController () const
 Gets the controller for importing record data. More...
 
int start ()
 Applies all command-line options and sets up the main window. More...
 

Detailed Description

Main controller of Tome. Sets up and owns all other controllers and views.

Constructor & Destructor Documentation

◆ Controller()

Controller::Controller ( Tome::CommandLineOptions options)

Constructs and sets up all controllers.

Parameters
optionsCommand-line options specifying which views to set up.

Member Function Documentation

◆ getComponentsController()

ComponentsController & Controller::getComponentsController ( ) const

Gets the controller for adding and removing components.

Returns
Controller for adding and removing components.

◆ getExportController()

ExportController & Controller::getExportController ( ) const

Gets the controller for exporting records using templates.

Returns
Controller for exporting records using templates.

◆ getFacetsController()

FacetsController & Controller::getFacetsController ( ) const

Gets the controller for validating type facets.

Returns
Controller for validating type facets.

◆ getFieldDefinitionsController()

FieldDefinitionsController & Controller::getFieldDefinitionsController ( ) const

Gets the controller for adding, updating and removing field definitions.

Returns
Controller for adding, updating and removing field definitions.

◆ getFindRecordController()

FindRecordController & Controller::getFindRecordController ( ) const

Gets the controller for finding specific records.

Returns
Controller for finding specific records.

◆ getFindUsagesController()

FindUsagesController & Controller::getFindUsagesController ( ) const

Gets the controller for finding usages of fields, records and custom types.

Returns
Controller for finding usages of fields, records and custom types.

◆ getImportController()

ImportController & Controller::getImportController ( ) const

Gets the controller for importing record data.

Returns
Controller for importing record data.

◆ getProjectController()

ProjectController & Controller::getProjectController ( ) const

Gets the controller for creating, loading and saving projects.

Returns
Controller for creating, loading and saving projects.

◆ getRecordsController()

RecordsController & Controller::getRecordsController ( ) const

Gets the controller for adding, updating and removing records.

Returns
Controller for adding, updating and removing records.

◆ getSettingsController()

SettingsController & Controller::getSettingsController ( ) const

Gets the controller for accessing user settings.

Returns
Controller for accessing user settings.

◆ getTasksController()

TasksController & Controller::getTasksController ( ) const

Gets the controller for runnings tasks on all records.

Returns
Controller for runnings tasks on all records.

◆ getTypesController()

TypesController & Controller::getTypesController ( ) const

Gets the controller for adding, updating and removing custom types.

Returns
Controller for adding, updating and removing custom types.

◆ getUndoController()

UndoController & Controller::getUndoController ( ) const

Gets the controller for performing undo-able commands.

Returns
Controller for performing undo-able commands.

◆ start()

int Controller::start ( )

Applies all command-line options and sets up the main window.

Returns
Zero, if all operations were successful, and another number otherwise.

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