Inheritance diagram for MainWindow:
Public Slots | |
void | slotLoad () |
Opens a file. | |
void | slotSave () |
Saves the currently displayed structure. | |
void | showStructureSlot () |
Shows the current data as a structure. | |
void | showTreeSlot () |
Shows the current data as a tree. | |
void | doubleKlickSlot (int) |
Handles double clicks. | |
void | deleteDataSlot () |
Deletes the currently selected data package. | |
void | deleteAllDataSlot (void) |
Deletes all data packages. | |
void | closeAllSlot () |
Closes all data windows. | |
void | viewIsClosing (ViewCanvas *view) |
This slot is called when a view window closes. | |
void | optionsSlot () |
Displays the "Structure Spacing" dialog. | |
void | compareStructuresSlot () |
Currently not used. | |
void | compareTreesSlot () |
Currently not used. | |
void | optionChangedSlot () |
Called when an option was changed. | |
void | toggleAutoExpandSlot (void) |
Turns the "autoexpand reentrancies" option on or off. | |
void | toggleFitSlot (void) |
Turns the "windows fit structure size" option on or off. | |
void | toggleHighlightSlot (void) |
Turns the "highlight structures" option on or off. | |
void | toggleAutoOpenSlot (void) |
Turns the "automatically open windows" option on or off. | |
void | changeNormalColorSlot () |
Displays the color selector dialog for the element. | |
void | changeTypeColorSlot () |
Displays the color selector dialog for the element. | |
void | changeTextColorSlot () |
Displays the color selector dialog for the element. | |
void | changeErrorColorSlot () |
Displays the color selector dialog for the element. | |
void | changeBackgroundColorSlot () |
Displays the color selector dialog for the element. | |
void | changeTreeColorSlot () |
Displays the color selector dialog for the element. | |
void | changeTreeLineColorSlot () |
Displays the color selector dialog for the element. | |
void | changeLeafColorSlot () |
Displays the color selector dialog for the element. | |
void | changeArcLabelColorSlot () |
Displays the color selector dialog for the element. | |
void | changeArcLabelBgColorSlot () |
Displays the color selector dialog for the element. | |
void | changeHiddenColorSlot () |
Displays the color selector dialog for the element. | |
void | changeMarkerColorSlot () |
Displays the color selector dialog for the element. | |
void | changeFoundColorSlot () |
Displays the color selector dialog for the element. | |
void | changeDifferentNodesColorSlot () |
Displays the color selector dialog for the element. | |
void | changeNormalFontSlot () |
Displays the font selector dialog for the element. | |
void | changeTypeFontSlot () |
Displays the font selector dialog for the element. | |
void | changeTextFontSlot () |
Displays the font selector dialog for the element. | |
void | changeErrorFontSlot () |
Displays the font selector dialog for the element. | |
void | changeTreeFontSlot () |
Displays the font selector dialog for the element. | |
void | changeLeafFontSlot () |
Displays the font selector dialog for the element. | |
void | changeArcLabelFontSlot () |
Displays the font selector dialog for the element. | |
void | listSelectionChangedSlot () |
Called when the selection in the list of available data packages changed. | |
void | closeEvent (QCloseEvent *ev) |
Called when the main window closes. | |
void | aboutGrisuSlot (void) |
Displays the "About Grisu" dialog. | |
void | aboutKDESlot (void) |
Displays the "About KDE" dialog. | |
void | previousStructureSlot (ViewCanvas *replace) |
Replaces the currently displayed structure or tree with the next data package in the list. | |
void | nextStructureSlot (ViewCanvas *replace) |
Replaces the currently displayed structure or tree with the previous data package in the list. | |
void | connectionStateSlot (unsigned char status, char *hostname, int port) |
Called when the status of the socket connection has changed. | |
Signals | |
void | changeColorSignal (int, QWidget *) |
Emitted when the user wants to change a color. | |
void | changeFontSignal (int) |
Emitted when the user wants to change a font. | |
void | optionChangedSignal () |
Emitted when the user changed an option. | |
Public Member Functions | |
MainWindow (QWidget *parent=0, const char *name=0) | |
Initializes the main window. | |
~MainWindow () | |
Deletes the instance and all its data members and closes the socket connection. | |
void | updateListBox () |
Updates the list box. | |
ViewCanvas * | newViewWindow (Document *d, int what, int x=-1, int y=-1, int w=400, int h=400) |
Opens a new view window for the given document. | |
void | loadDataFile (const char *fileName) |
Loads a GRISU data file and creates a new view window, if the user chose to automatically open view windows. | |
virtual void | processData (GBuffer *buffer) |
This method is called by the data exchange manager when new data has arrived. | |
Protected Attributes | |
KMenuBar * | mainMenu |
Pointer to the main menu. | |
QPopupMenu * | fileMenu |
Pointer to the File menu. | |
QPopupMenu * | dataMenu |
Pointer to the Data menu. | |
QPopupMenu * | helpMenu |
Pointer to the help (Info) menu. | |
QPopupMenu * | optionMenu |
Pointer to the Options menu. | |
QPopupMenu * | windowMenu |
Pointer to the Window menu. | |
QPopupMenu * | colorMenu |
Pointer to the Options|Colors menu. | |
QPopupMenu * | fontMenu |
Pointer to the Options|Font menu. | |
KStatusBar * | statusBar |
Pointer to the status bar. | |
KToolBar * | mainToolBar |
Pointer to the toolbar. | |
QListBox * | listBox |
The listbox widget that displays the list of data packages. | |
Private Member Functions | |
void | compareStructuresOrTrees (int what) |
Compares two structures or trees. | |
void | deleteData (bool selOnly) |
Deletes all data and closes associated views, if necessary. | |
Private Attributes | |
Q_OBJECT QList< ViewCanvas > * | views |
The list of open view windows (instances of ViewCanvas). | |
bool | closingAll |
This is set to true while executing a "Close All Views" command. | |
char | hostname [500] |
The name of the host Grisu is running on. | |
int | port |
The port number which is used for the socket connection. |
All user interactions with the main window are handled in this class.
|
Initializes the main window. Creates the menu and the toolbar, connects menu and toolbar items to slots and initializes the socket connection by calling MainWindow#initializeSocket.
|
|
Deletes the instance and all its data members and closes the socket connection.
|
|
Displays the "About Grisu" dialog.
|
|
Displays the "About KDE" dialog.
|
|
Displays the color selector dialog for the element.
|
|
Displays the color selector dialog for the element.
|
|
Displays the font selector dialog for the element.
|
|
Displays the color selector dialog for the element.
|
|
Emitted when the user wants to change a color.
|
|
Displays the color selector dialog for the element.
|
|
Displays the color selector dialog for the element.
|
|
Displays the font selector dialog for the element.
|
|
Emitted when the user wants to change a font.
|
|
Displays the color selector dialog for the element.
|
|
Displays the color selector dialog for the element.
|
|
Displays the color selector dialog for the element.
|
|
Displays the font selector dialog for the element.
|
|
Displays the color selector dialog for the element.
|
|
Displays the color selector dialog for the element.
|
|
Displays the font selector dialog for the element.
|
|
Displays the color selector dialog for the element.
|
|
Displays the font selector dialog for the element.
|
|
Displays the color selector dialog for the element.
|
|
Displays the font selector dialog for the element.
|
|
Displays the color selector dialog for the element.
|
|
Displays the color selector dialog for the element.
|
|
Displays the font selector dialog for the element.
|
|
Closes all data windows.
|
|
Called when the main window closes.
|
|
Compares two structures or trees.
|
|
Currently not used.
|
|
Currently not used.
|
|
Called when the status of the socket connection has changed.
|
|
Deletes all data packages.
|
|
Deletes all data and closes associated views, if necessary.
|
|
Deletes the currently selected data package.
|
|
Handles double clicks.
|
|
Called when the selection in the list of available data packages changed.
|
|
Loads a GRISU data file and creates a new view window, if the user chose to automatically open view windows.
|
|
Opens a new view window for the given document.
|
|
Replaces the currently displayed structure or tree with the previous data package in the list.
|
|
Emitted when the user changed an option.
|
|
Called when an option was changed.
|
|
Displays the "Structure Spacing" dialog.
|
|
Replaces the currently displayed structure or tree with the next data package in the list.
|
|
This method is called by the data exchange manager when new data has arrived.
Implements GDataReader. |
|
Shows the current data as a structure.
|
|
Shows the current data as a tree.
|
|
Opens a file.
|
|
Saves the currently displayed structure.
|
|
Turns the "autoexpand reentrancies" option on or off.
|
|
Turns the "automatically open windows" option on or off.
|
|
Turns the "windows fit structure size" option on or off.
|
|
Turns the "highlight structures" option on or off.
|
|
Updates the list box.
|
|
This slot is called when a view window closes.
|
|
This is set to
|
|
Pointer to the Options|Colors menu.
|
|
Pointer to the Data menu.
|
|
Pointer to the File menu.
|
|
Pointer to the Options|Font menu.
|
|
Pointer to the help (Info) menu.
|
|
The name of the host Grisu is running on.
|
|
The listbox widget that displays the list of data packages.
|
|
Pointer to the main menu.
|
|
Pointer to the toolbar.
|
|
Pointer to the Options menu.
|
|
The port number which is used for the socket connection.
|
|
Pointer to the status bar.
|
|
The list of open view windows (instances of ViewCanvas).
|
|
Pointer to the Window menu.
|