#include <MainWindow.h>
Inheritance diagram for MainWindow::
Public Slots | |
void | refreshMRU () |
Refreshes the MRU file list. | |
void | setMode (int) |
Sets the current mode and updates the menus. | |
void | repaintViewport () |
Repaints the scroll view. | |
void | updateAll () |
Updates menu, title bar and status bar. | |
void | updatePaste () |
Updates the paste tool button and menu item. | |
void | updateMenuBar () |
Updates all menus. | |
void | updateTitleBar () |
Updates the title bar. | |
void | updateStatusBar () |
Updates the status bar. | |
void | menuItemActivated (int id) |
Called when a menu item is activated. | |
void | editMenuAboutToShow () |
Called when the edit menu is about to show. | |
void | showContextState () |
Shows the context menu for a state. | |
void | showContextTrans () |
Shows the context menu for a transition. | |
void | showContext () |
Shows the context menu for the scrollview. | |
void | sbMessage (QString s) |
Sends a message s to the status bar. | |
void | sbMessage (QString s, int t) |
Sends a message s for time t to the status bar. | |
void | setWaitCursor () |
Sets the wait cursor for the main window and the scrollview. | |
void | setPreviousCursor () |
Restores the previous cursor for the main window and the scrollview. | |
void | fileNew () |
Creates a new file. | |
void | fileOpen () |
Opens an existing file. | |
bool | fileSave () |
Saves the current file. | |
bool | fileSaveAs () |
Saves the current file with a new name. | |
bool | fileExportAHDL () |
Exports the current file to an AHDL tdf file. | |
bool | fileExportVHDL () |
Exports the current file to a VHDL file. | |
bool | fileExportVerilog () |
Exports the current file to a Verilog HDL file. | |
bool | fileExportKISS () |
Exports the current file to a KISS file. | |
bool | fileExportSTLatex () |
Exports the current file to a Latex state table. | |
bool | fileExportSTHTML () |
Exports the current file to a HTML state table. | |
void | filePrint () |
Prints the current file. | |
bool | fileClose () |
Closes the current file. | |
void | fileQuit () |
Called when 'File->Quit' is clicked. | |
void | fileOpenRecent (QString fileName) |
Opens a file from the MRU file list with the name fileName. | |
void | fileOpenRecent0 () |
Opens the file in the MRU list entry 0. | |
void | fileOpenRecent1 () |
Opens the file in the MRU list entry 1. | |
void | fileOpenRecent2 () |
Opens the file in the MRU list entry 2. | |
void | fileOpenRecent3 () |
Opens the file in the MRU list entry 3. | |
void | fileOpenRecent4 () |
Opens the file in the MRU list entry 4. | |
void | fileOpenRecent5 () |
Opens the file in the MRU list entry 5. | |
void | fileOpenRecent6 () |
Opens the file in the MRU list entry 6. | |
void | fileOpenRecent7 () |
Opens the file in the MRU list entry 7. | |
void | fileOpenRecent8 () |
Opens the file in the MRU list entry 8. | |
void | fileOpenRecent9 () |
Opens the file in the MRU list entry 9. | |
void | editUndo () |
Undo the last action. | |
void | editCut () |
Cuts the selected objects from the current machine and puts it on the clipboard. | |
void | editCopy () |
Copies the selected objects to the clipboard. | |
void | editPaste () |
Pastes the objects on the clipboard into the current machine. | |
void | editDelete () |
Delete the selected objects. | |
void | editSelect () |
Set select mode. | |
void | editSelectAll () |
Called when 'Edit->Select all' is clicked. | |
void | editDeselectAll () |
Called when 'Edit->Deselect all' is clicked. | |
void | editOptions () |
Edit options. | |
void | viewMooreOutputs () |
Toggle view moore outputs. | |
void | viewMealyInputs () |
Toggle view mealy inputs. | |
void | viewMealyOutputs () |
Toggle view mealy outputs. | |
void | viewGrid () |
Toggle view grid. | |
void | viewZoom () |
Set zooming mode. | |
void | viewZoomIn () |
Zoom in the view. | |
void | viewZoomOut () |
Zoom out the view. | |
void | viewZoom100 () |
Set zoom to 100%. | |
void | machineEdit () |
Edit the current machine. | |
void | machineSimulate () |
Simulate the current machine. | |
void | machineICheck () |
Called when 'Machine->Check Integrity' is clicked. | |
void | stateNew () |
Add new state to current machine. | |
void | stateEdit () |
Edit selected state. | |
void | stateSetInitial () |
Set selected state as initial state. | |
void | stateSetEnd () |
Set selected state as end state. | |
void | transNew () |
Add new transition. | |
void | transEdit () |
Edit selected transition. | |
void | transStraighten () |
Straighten selected transitions. | |
void | helpAbout () |
Displays a help dialog about qfsm. | |
void | helpAboutQt () |
Displays a help dialog about Qt. | |
Signals | |
void | allSelected () |
Emited when 'Select all' is performed. | |
void | objectsPasted () |
Emited when a set of objects has been pasted into this main window. | |
void | quitWindow (MainWindow *) |
Emited when this main window is about to close. | |
void | updateStatusZoom (int) |
Emited when the zoom factor changes. | |
Public Methods | |
MainWindow (QObject *parent=0, const char *name=0) | |
Constructor. More... | |
~MainWindow () | |
Destructor. | |
Options * | getOptions () |
Returns the options. | |
ScrollView * | getScrollView () |
Returns the scroll view. | |
StatusBar * | getStatusBar () |
Returns the status bar. | |
OptGeneralDlgImpl * | getOptGeneral () |
Returns the tab dialog for the general options. | |
OptDisplayDlgImpl * | getOptDisplay () |
Returns the tab dialog for the display options. | |
void | setLanguage (QString s) |
Sets the string with the language. | |
QString | getLanguage () |
Gets the string with the language. | |
bool | shiftPressed () |
Returns TRUE if the shift key is pressed otherwise FALSE. | |
bool | controlPressed () |
Returns TRUE if the control key is pressed otherwise FALSE. | |
int | getMode () |
Returns the current mode. | |
Public Attributes | |
Project * | project |
The project this window contains. | |
StateManager * | statemanager |
State manager. | |
MachineManager * | machinemanager |
Machine manager. | |
TransitionManager * | transmanager |
Transition manager. | |
FileIO * | fileio |
File I/O. | |
PrintManager * | printmanager |
Print manager. | |
bool | aboutToClose |
TRUE if this window is about to close. | |
Private Methods | |
void | keyPressEvent (QKeyEvent *) |
Called when a key is pressed. | |
void | keyReleaseEvent (QKeyEvent *) |
Called when a key is released. | |
void | closeEvent (QCloseEvent *) |
Called when this window is about to close. | |
void | focusInEvent (QFocusEvent *) |
Called when this window receives the focus. | |
void | createToolBar () |
Creates the toolbar with its buttons. | |
void | destroyToolBar () |
Destroys the toolbar. | |
Private Attributes | |
MainControl * | control |
Pointer to the main control. | |
ScrollView * | wscroll |
Scroll view. | |
QMenuBar * | menubar |
Menu bar. | |
QPopupMenu * | menu_file |
File menu. | |
QPopupMenu * | menu_export |
File->Export menu. | |
QPopupMenu * | menu_edit |
Edit menu. | |
QPopupMenu * | menu_view |
View menu. | |
QPopupMenu * | menu_machine |
Machine menu. | |
QPopupMenu * | menu_state |
State menu. | |
QPopupMenu * | menu_trans |
Transition menu. | |
QPopupMenu * | menu_help |
Help menu. | |
QPopupMenu * | menu_mru |
'File->Most recently used' menu. | |
QPopupMenu * | cmenu_state |
Context menu (state). | |
QPopupMenu * | cmenu_trans |
Context menu (transition). | |
QPopupMenu * | cmenu_sview |
Context menu (scroll view). | |
QToolBar * | toolbar |
Toolbar. | |
QPixmap * | pappicon |
Application icon. | |
QPixmap * | pnew |
New file icon. | |
QPixmap * | popen |
Open file icon. | |
QPixmap * | pzoomin |
Zoom in icon. | |
QPixmap * | pzoomout |
Zoom out icon. | |
QToolButton * | tbnew |
New file tool button. | |
QToolButton * | tbopen |
Open file tool button. | |
QToolButton * | tbsave |
Save file tool button. | |
QToolButton * | tbprint |
Print file tool button. | |
QToolButton * | tbundo |
Undo tool button. | |
QToolButton * | tbcut |
Cut tool button. | |
QToolButton * | tbcopy |
Copy tool button. | |
QToolButton * | tbpaste |
Paste tool button. | |
QToolButton * | tbselect |
Select tool button. | |
QToolButton * | tbzoom |
Zoom tool button. | |
QToolButton * | tbstatenew |
New state tool button. | |
QToolButton * | tbtransnew |
New transition tool button. | |
QToolButton * | tbmachinesim |
Simulate machine tool button. | |
QToolButton * | tbzoomin |
Zoom in tool button. | |
QToolButton * | tbzoomout |
Zoom out tool button. | |
QToolButton * | tbtransstraighten |
Straighten transition tool button. | |
QIconSet * | saveset |
Save file icon set. | |
QIconSet * | printset |
Print file icon set. | |
QIconSet * | undoset |
Undo icon set. | |
QIconSet * | cutset |
Cut icon set. | |
QIconSet * | copyset |
Copy icon set. | |
QIconSet * | pasteset |
Paste icon set. | |
QIconSet * | selset |
Select icon set. | |
QIconSet * | zoomset |
Zoom icon set. | |
QIconSet * | statenewset |
New state icon set. | |
QIconSet * | transnewset |
New transition icon set. | |
QIconSet * | transstraightenset |
Straighten transition icon set. | |
QIconSet * | machinesimset |
Simulate machine icon set. | |
QCursor * | zoomCursor |
Zoom cursor. | |
int | id_open |
Menu id 'File->Open'. | |
int | id_save |
Menu id 'File->Save'. | |
int | id_saveas |
Menu id 'File->Save as'. | |
int | id_print |
Menu id 'File->Print'. | |
int | id_close |
Menu id 'File->Close'. | |
int | id_export |
Menu id 'File->Export'. | |
int | id_export_ahdl |
Menu id 'File->Export->AHDL'. | |
int | id_export_vhdl |
Menu id 'File->Export->VDHL'. | |
int | id_export_verilog |
Menu id 'File->Export->Verilog HDL'. | |
int | id_export_kiss |
Menu id 'File->Export->KISS'. | |
int | id_export_stlat |
Menu id 'File->Export->Latex state table'. | |
int | id_export_sthtml |
Menu id 'File->Export->HTML state table'. | |
int | id_undo |
Menu id 'Edit->Undo'. | |
int | id_cut |
Menu id 'Edit->Cut'. | |
int | id_copy |
Menu id 'Edit->Copy'. | |
int | id_paste |
Menu id 'Edit->Paste'. | |
int | id_delete |
Menu id 'Edit->Delete'. | |
int | id_select |
Menu id 'Edit->Select'. | |
int | id_selectall |
Menu id 'Edit->Select all'. | |
int | id_deselectall |
Menu id 'Edit->Deselect all'. | |
int | id_zoom |
Menu id 'View->Zoom'. | |
int | id_zoomin |
Menu id 'View->Zoom in'. | |
int | id_zoomout |
Menu id 'View->Zoom out'. | |
int | id_zoom100 |
Menu id 'View->Zoom 100%'. | |
int | id_viewmoore |
Menu id 'View->Moore outputs'. | |
int | id_viewmealyin |
Menu id 'View->Mealy inputs'. | |
int | id_viewmealyout |
Menu id 'View->Mealy outputs'. | |
int | id_viewgrid |
Menu id 'View->Grid'. | |
int | id_machineedit |
Menu id 'Machine->Edit'. | |
int | id_machinesim |
Menu id 'Machine->Simulate'. | |
int | id_machineicheck |
Menu id 'Machine->Check integrity'. | |
int | id_editstate |
Menu id 'State->Edit'. | |
int | id_newstate |
Menu id 'State->New'. | |
int | id_setinitial |
Menu id 'State->Set initial'. | |
int | id_setend |
Menu id 'State->Toggle end state'. | |
int | id_edittrans |
Menu id 'Transition->Edit'. | |
int | id_newtrans |
Menu id 'Transition->New'. | |
int | id_trans_straight |
Menu id 'Transition->Straighten'. | |
int | id_ceditstate |
Context menu id 'Edit state'. | |
int | id_csetinitial |
Context menu id 'Set initial state'. | |
int | id_csetend |
Context menu id 'Toggle end state'. | |
int | id_csundo |
Context menu id 'Undo' (State). | |
int | id_cscut |
Context menu id 'Cut' (State). | |
int | id_cscopy |
Context menu id 'Copy' (State). | |
int | id_csdelete |
Context menu id 'Delete' (State). | |
int | id_cedittrans |
Context menu id 'Edit transition'. | |
int | id_ctrans_straight |
Context menu id 'Straighten transition'. | |
int | id_ctundo |
Context menu id 'Undo' (Transition). | |
int | id_ctcut |
Context menu id 'Cut' (Transition). | |
int | id_ctcopy |
Context menu id 'Copy' (Transition). | |
int | id_ctdelete |
Context menu id 'Delete' (Transition). | |
QMessageBox * | mb_changed |
Messagebox that is opend when the user wants to close a changed file. | |
StatusBar * | statusbar |
Status bar. | |
DocStatus | doc_status |
Doc status. | |
Options | doc_options |
Options. | |
Edit * | edit |
Edit object. | |
QTabDialog * | tabdialog |
Tabdialog (options). | |
OptGeneralDlgImpl * | opt_general |
General options dialog. | |
OptDisplayDlgImpl * | opt_display |
Display options dialog. | |
Simulator * | simulator |
Simulator. | |
ICheck * | ichecker |
Integrity checker. | |
bool | shift_pressed |
If TRUE the shift key was pressed. | |
bool | control_pressed |
If TRUE the control key was pressed. | |
bool | bcut |
TRUE if a cut operation, FALSE if a copy operation is performed (used in paste). | |
QString | language |
Language. | |
QCursor | previous_viewcursor |
Previous view cursor (used when wait cursor is set). |
Stores all the menus, the status bar, the project, the file-io object, the options and the control classes.
|
Constructor. Initialises the mainwindow with all its menus. |