#include <Frame.h>
Public Member Functions | |
Frame (const wxString &title) | |
Constructor. | |
~Frame () | |
Destructor. | |
void | OnClose (wxCloseEvent &event) |
Close window event handler. | |
void | OnQuit (wxCommandEvent &WXUNUSED(event)) |
'Quit' menu item event handler | |
void | OnAbout (wxCommandEvent &WXUNUSED(event)) |
'About' menu item event handler | |
void | OnTips (wxCommandEvent &WXUNUSED(event)) |
'Tips of the day' menu item event handler | |
void | OnNew (wxCommandEvent &WXUNUSED(event)) |
'New' menu item event handler | |
void | OnOpen (wxCommandEvent &WXUNUSED(event)) |
'Open' menu item event handler | |
void | OnSave (wxCommandEvent &WXUNUSED(event)) |
'Save' menu item event handler | |
void | OnSaveAs (wxCommandEvent &WXUNUSED(event)) |
'Save as' menu item event handler | |
void | OnRevert (wxCommandEvent &WXUNUSED(event)) |
'Revert' menu item event handler | |
void | OnRender (wxCommandEvent &WXUNUSED(event)) |
'Render' menu item event handler | |
void | OnAdd (wxCommandEvent &WXUNUSED(event)) |
'Add' menu item event handler | |
void | OnImport (wxCommandEvent &WXUNUSED(event)) |
'Import' menu item event handler | |
void | OnSettings (wxCommandEvent &WXUNUSED(event)) |
'Settings' menu item event handler | |
void | OnPlay (wxCommandEvent &WXUNUSED(event)) |
Play button click event handler. | |
void | OnPause (wxCommandEvent &WXUNUSED(event)) |
Pause button click event handler. | |
void | OnStop (wxCommandEvent &WXUNUSED(event)) |
Stop button click event handler. | |
void | OnZoomIn (wxCommandEvent &WXUNUSED(event)) |
Zoom In button click event handler. | |
void | OnZoomOut (wxCommandEvent &WXUNUSED(event)) |
Zoom Out button click event handler. | |
bool | SaveDlg () |
Save dialog. | |
bool | SaveAsDlg () |
Save As dialog. | |
void | OnTimer (wxTimerEvent &event) |
Timer event handler. | |
void | ShowTips (const bool force) |
Show Tip of the day window. | |
void | Update () |
Trigger update. | |
enum status_t | ChooseLoader (wxFile *file, const wxString &filename, Loader **ld) |
Choose apropriate loader for a file. | |
Private Member Functions | |
bool | load (const wxString &fname) |
Load project dialog. | |
bool | save (const wxString &fname) |
Save project dialog. | |
Private Attributes | |
Area * | area |
Waveform area. | |
Controls * | controls |
Controls area. | |
wxTimer * | timer |
Redraw timer. | |
wxSplitterWindow * | split |
Area splitter. | |
wxMenuBar * | menuBar |
Main menu. | |
wxMenu * | menuFile |
File menu. | |
wxMenu * | menuEdit |
Edit menu. | |
wxMenu * | menuTracks |
Tracks menu. | |
wxMenu * | menuOptions |
Options menu. | |
wxMenu * | menuHelp |
Help menu. | |
wxBitmapButton * | playBut |
Play button. | |
wxBitmapButton * | pauseBut |
Pause button. | |
wxBitmapButton * | stopBut |
Stop button. | |
wxBitmapButton * | recordBut |
Record button. | |
wxBitmapButton * | zoomInBut |
Zoom In button. | |
wxBitmapButton * | zoomOutBut |
Zoom Out button. | |
wxToolBar * | toolBar |
Window toolbar. |
The main application window, handling primarily all user's interaction with the application.
|
Constructor. Create the application main window.
|
|
Destructor. Save window position and cleanup. |
|
Choose apropriate loader for a file. Iterates thought the list of available loaders and picks the first one that recognizes the format of 'file'. This method has some visual feedback and that's the reason why it is also used by the non-visual ways of choosing loaders.
|
|
Load project dialog. Checks whether a file given by its filename is a valid project file and then loads the project from it.
|
|
'About' menu item event handler Shows the About dialog. |
|
'Add' menu item event handler
|
|
Close window event handler. Executed when the user wants to close the main application window. Checks and asks for any usaved data to save.
|
|
'Import' menu item event handler Adds a new track (from a wave file) to the project. |
|
'New' menu item event handler Creates a new empty project and asks for saving any previously unsaved data. |
|
'Open' menu item event handler Opens a project from file and asks for saving any previously unsaved data. |
|
Pause button click event handler. Pauses (or resumes previously paused) playback. |
|
Play button click event handler. Starts playback from the beginning of the project. |
|
'Quit' menu item event handler Closes the window. |
|
'Render' menu item event handler
|
|
'Revert' menu item event handler Reverts the current project from last saved file. |
|
'Save' menu item event handler Saves the current project to file. |
|
'Save as' menu item event handler Saves the current project to a file with a given name |
|
'Settings' menu item event handler Shows the main configuration dialog. |
|
Stop button click event handler. Stops project playack. |
|
Timer event handler. In case the cursor has moved since last redraw, redraw the cursor.
|
|
'Tips of the day' menu item event handler Shows the Tips of the day dialog. |
|
Zoom In button click event handler. Zooms the waveform visualization in. |
|
Zoom Out button click event handler. Zooms the waveform visualization out. |
|
Save project dialog. Creates a file 'fname' and stores the current project to it.
|
|
Save As dialog. Show the save as dialog and save project.
|
|
Save dialog. Show the save dialog and save project.
|
|
Show Tip of the day window. Display Tip of the day dialog.
|
|
Trigger update. Triggers update to both waveform and controls areas. |
|
Waveform area.
|
|
Controls area.
|
|
Main menu.
|
|
Edit menu.
|
|
File menu.
|
|
Help menu.
|
|
Options menu.
|
|
Tracks menu.
|
|
Pause button.
|
|
Play button.
|
|
Record button.
|
|
Area splitter.
|
|
Stop button.
|
|
Redraw timer.
|
|
Window toolbar.
|
|
Zoom In button.
|
|
Zoom Out button.
|