Mutabor application class. Mehr ...
#include <MutApp.h>
Öffentliche Typen | |
enum | MenuType { ProgramMenu, EditorMenu, RouteMenu } |
Some configuration help for Menu generation. Mehr ... | |
Öffentliche Methoden | |
bool | OnInit () |
Initialization. | |
void | OnInitCmdLine (wxCmdLineParser &parser) |
Initialize command line arguments. | |
bool | OnCmdLineParsed (wxCmdLineParser &parser) |
Process command line arguments. | |
virtual bool | ProcessEvent (wxEvent &event) |
void | PassEventToDocManagerCMD (wxCommandEvent &event) |
Pass event to document manager. | |
void | PassEventToDocManagerUPD (wxUpdateUIEvent &event) |
void | OnMRUFile (wxCommandEvent &event) |
add handling of last files. | |
void | CmAbout (wxCommandEvent &event) |
Display an about dialog box. | |
void | CmSetup (wxCommandEvent &event) |
Display and handle setup dialog. | |
void | CmFileNew (wxCommandEvent &event) |
Create an editor file. | |
void | CmFileOpen (wxCommandEvent &event) |
Open a new editor file. | |
void | CmRoutes (wxCommandEvent &event) |
Open a new route editor. | |
void | CmRouteLoad (wxCommandEvent &event) |
Load a Route. | |
void | CmRouteSave (wxCommandEvent &event) |
Save a Route. | |
void | CmRouteSaveAs (wxCommandEvent &event) |
Save a Route under a new name. | |
void | CmHelp (wxCommandEvent &event) |
Read help about a certain topic. | |
void | ShowHelp (int commandId) |
Show the helpwindow on the page associated with a certain command id. | |
void | CmQuit (wxCommandEvent &event) |
Exit the program. | |
MutFrame * | CreateMainFrame (MenuType type, wxWindowID id=wxID_ANY) |
Create a main frame. | |
MutFrame * | InitMainFrame (MenuType type, MutFrame *frame) |
Initialize a main frame. | |
void | RegisterFrame (wxFrame *f) |
Registers a frame. | |
void | UnregisterFrame (wxFrame *f) |
Unregisters a frame. | |
virtual int | OnExit () |
Callback for program quitting. | |
void | SaveState () |
Save global state. | |
void | RestoreState () |
Load global state. | |
const wxDocManager * | GetDocumentManager () const |
Allow access to the document manager. | |
wxDocManager * | GetDocumentManager () |
Allow write access to the document manager. | |
Öffentliche, statische Methoden | |
static wxString | GetResourceName (const wxString &file) |
Get a possibly localized resource file name. | |
static bool | MustOpenFrame (MutFrame *frame) |
determine if new frame must be opened | |
Geschützte Attribute | |
wxLocale | m_locale |
locale data to be used inside the application | |
mutabor::MutDocManager | document_manager |
Document manager. | |
bool | quitting |
flag indicating, that we are in quitting mode. | |
Private Methoden | |
wxMenu * | MakeFileMenu (wxMenuBar *menuBar, MenuType type) |
Creates a file menu. | |
void | MakeEditMenu (wxMenuBar *menuBar, MenuType type) |
Creates an edit menu. | |
void | MakeLogicMenu (wxMenuBar *menuBar) |
Creates a mutabor logic menu. | |
void | MakeRoutesMenu (wxMenuBar *menuBar) |
Creates a mutabor routes menu. | |
void | MakeViewMenu (wxMenuBar *menuBar, MenuType type) |
Creates a View menu. | |
void | MakeSequencerMenu (wxMenuBar *menuBar) |
Creates a mutabor sequencer menu. | |
void | MakeHelpMenu (wxMenuBar *menuBar) |
Creates a mutabor help menu. | |
Freundbeziehungen | |
class | AppAbout |
Mutabor application class.
This class is the main application class of Mutabor. It handles initialization, exiting and on Mac OS also the application menu.
enum MutApp::MenuType |
Some configuration help for Menu generation.
ProgramMenu |
Mac: common application menu. |
EditorMenu |
File editor menu. |
RouteMenu |
Route editor menu. |
Definiert in Zeile 192 der Datei MutApp.h.
{ ProgramMenu, EditorMenu, RouteMenu, };
void MutApp::CmRouteLoad | ( | wxCommandEvent & | event | ) | [inline] |
void MutApp::CmRouteSave | ( | wxCommandEvent & | event | ) | [inline] |
void MutApp::CmRouteSaveAs | ( | wxCommandEvent & | event | ) | [inline] |
Save a Route under a new name.
Definiert in Zeile 252 der Datei MutApp.h.
{ MutRouteWnd::CmRouteSaveAs(event); }
void MutApp::CmSetup | ( | wxCommandEvent & | event | ) |
Display and handle setup dialog.
Create a main frame.
This function create a new Top Level Frame.
type | Flag indicating which parts the menu bar shall contain. |
id | Window id |
Wird benutzt von CmFileNew(), CmFileOpen() und CmRoutes().
const wxDocManager* MutApp::GetDocumentManager | ( | ) | const [inline] |
Allow access to the document manager.
Definiert in Zeile 352 der Datei MutApp.h.
Benutzt document_manager.
{ return &document_manager; }
wxDocManager* MutApp::GetDocumentManager | ( | ) | [inline] |
Allow write access to the document manager.
Definiert in Zeile 355 der Datei MutApp.h.
Benutzt document_manager.
{ return &document_manager; }
static bool MutApp::MustOpenFrame | ( | MutFrame * | frame | ) | [inline, static] |
determine if new frame must be opened
Determine we have an empty frame or we must open a new one
Definiert in Zeile 342 der Datei MutApp.h.
Benutzt MutFrame::HasClient().
Wird benutzt von CmFileNew(), CmFileOpen() und CmRoutes().
{ if (frame) { if (frame->HasClient()) return true; else return false; } else return true; }
bool MutApp::OnInit | ( | ) |
Initialization.
This function does the common setup.
void MutApp::RegisterFrame | ( | wxFrame * | f | ) |
Registers a frame.
Register the frame in the application specific frame list. Though wxWidgets handles its own wxTopLevelWindows
, it is not documented and its usage seems not to be encouraged.
f | Frame to be added. |
void MutApp::UnregisterFrame | ( | wxFrame * | f | ) |
Unregisters a frame.
Removes the frame f from the application specific frame list.
f | Frame to be removed |
mutabor::MutDocManager MutApp::document_manager [protected] |
Document manager.
Definiert in Zeile 412 der Datei MutApp.h.
Wird benutzt von CmQuit(), GetDocumentManager(), MakeFileMenu(), RestoreState() und SaveState().
wxLocale MutApp::m_locale [protected] |
locale data to be used inside the application
Definiert in Zeile 409 der Datei MutApp.h.
Wird benutzt von GetResourceName().
bool MutApp::quitting [protected] |