#include <tomain.h>
Diagrama de herencias de toMain
Slots públicos | |
void | windowsMenu (void) |
void | statusMenu (void) |
void | contextHelp (void) |
void | windowActivated (QWidget *) |
void | editFileMenu (void) |
void | checkCaching (void) |
void | changeConnection (void) |
Señales | |
void | sqlEditor (const QString &str) |
void | addedConnection (const QString &str) |
void | removedConnection (const QString &str) |
void | willCommit (toConnection &conn, bool cmt) |
Métodos públicos | |
toMain () | |
QWorkspace * | workspace () |
toConnection & | currentConnection (void) |
virtual bool | close (bool del) |
void | createDefault (void) |
void | setCoordinates (int, int) |
QPopupMenu * | fileMenu () |
QPopupMenu * | editMenu () |
QPopupMenu * | toolsMenu () |
QPopupMenu * | helpMenu () |
std::list< QString > | connections (void) |
toConnection & | connection (const QString &) |
void | setNeedCommit (toConnection &conn, bool needCommit=true) |
void | editSQL (const QString &str) |
void | registerSQLEditor (int toolid) |
void | displayMessage (const QString &str) |
Métodos públicos estáticos | |
static void | setEditWidget (toEditWidget *edit) |
static void | editEnable (toEditWidget *edit) |
static void | editDisable (toEditWidget *edit) |
Atributos públicos estáticos | |
static const int | TO_FILE_MENU = 10 |
static const int | TO_EDIT_MENU = 20 |
static const int | TO_TOOLS_MENU = 30 |
static const int | TO_WINDOWS_MENU = 40 |
static const int | TO_HELP_MENU = 50 |
static const int | TO_TOOL_MENU_ID = 2000 |
static const int | TO_TOOL_MENU_ID_END = 2999 |
static const int | TO_TOOL_ABOUT_ID = 3000 |
static const int | TO_TOOL_ABOUT_ID_END = 3999 |
Slots privados | |
void | addConnection (void) |
bool | delConnection (void) |
void | commandCallback (int cmd) |
void | commitButton (void) |
void | rollbackButton (void) |
void | loadButton (void) |
void | saveButton (void) |
void | printButton (void) |
void | undoButton (void) |
void | redoButton (void) |
void | copyButton (void) |
void | cutButton (void) |
void | pasteButton (void) |
void | displayMessage (void) |
Métodos privados | |
void | addConnection (toConnection *conn) |
toEditWidget * | findEdit (QWidget *edit) |
void | editEnable (toEditWidget *edit, bool open, bool save, bool print, bool undo, bool redo, bool cut, bool copy, bool paste, bool search, bool selectAll, bool readAll) |
Atributos privados | |
std::list< toConnection * > | Connections |
QWorkspace * | Workspace |
QComboBox * | ConnectionSelection |
std::map< int, toTool * > | Tools |
std::map< QToolButton *, toTool * > | NeedConnection |
int | SQLEditor |
std::list< QString > | StatusMessages |
QToolButton * | DisconnectButton |
QToolButton * | LoadButton |
QToolButton * | SaveButton |
QToolButton * | PrintButton |
QToolButton * | UndoButton |
QToolButton * | RedoButton |
QToolButton * | CutButton |
QToolButton * | CopyButton |
QToolButton * | PasteButton |
QPopupMenu * | FileMenu |
QPopupMenu * | EditMenu |
QPopupMenu * | ToolsMenu |
QPopupMenu * | WindowsMenu |
QPopupMenu * | HelpMenu |
QPopupMenu * | StatusMenu |
QLabel * | ColumnLabel |
QLabel * | RowLabel |
toBackground | Poll |
toSearchReplace * | Search |
int | DefaultTool |
toEditWidget * | Edit |
|
Create main window. Always NULL as parent. Gráfico de llamadas para esta función: |
|
Add a connection |
|
Add a new connection. The connection itself must already be created. Gráfico de llamadas para esta función: |
|
Invoked when a connection is added.
|
|
Change current connection |
|
Check if object caching is done. |
|
Close window
Gráfico de llamadas para esta función: |
|
Handles menu selections
|
|
Commit button pressed |
|
Get a connection identified by a string.
|
|
Get a list of currently open connections.
Gráfico de llamadas para esta función: |
|
Display context help. |
|
Copy button pressed |
|
Create the default tool for the current connection. This is the tool with the highest priority, usually the SQL worksheet. |
|
Get the current database connection
|
|
Cut button pressed |
|
Remove a connection |
|
Display status message |
|
Display status message in dialog. Gráfico de llamadas para esta función: |
|
Disable all the current available items in the user interface (That editEnable can enable). If specified widget has the focus the edit widget is cleared. Gráfico de llamadas para esta función: |
|
Set available menu items in user interface. It is not enough to just call this function to make open for instance to actually work. It is a lot of more especially in commandCallback and editFileMenu. Will only update if this is the current editing widget. Gráfico de llamadas para esta función: |
|
|
|
Used to enable/disable entries in the edit & file menu |
|
Get the edit menu.
|
|
Edit an SQL statement in the SQL editor if any connected.
|
|
Get the file menu.
|
|
|
|
Get the help menu.
|
|
Load button pressed |
|
Paste button pressed |
|
Print button pressed |
|
Redo button pressed |
|
Register a tool which to use as an SQL editor. When something is to be edited first a toolwindow will be created and the sqlEditor will be emited, so the SQL editor must connect to this signal as well.
|
|
Invoked when a connection is removed.
|
|
Rollback button pressed |
|
Save button pressed |
|
Set coordinates in the statusbar. Used to indicate current cursor position by child widgets. |
|
Set the widget to edit through menues and toolbar. Gráfico de llamadas para esta función: |
|
Set if a connection needs to be commited. Also updates visual feedback in interface. |
|
Invoked to start editing an SQL identifier.
|
|
Used to fill the status menu with the latest status entries |
|
Get the tools menu.
|
|
Undo button pressed |
|
Emitted before a commit or rollback is made to the current connection.
|
|
Called when active window is changed. |
|
Used to enable/disable entries in the windows menu |
|
Get the workspace widget of the main window.
|
|
Current column label. |
|
The connections that have been opened in TOra. |
|
Handles available connections list in toolbar. |
|
Copy button. |
|
Cut button. |
|
Default tool id |
|
Disconnect connection button. |
|
|
|
Edit menu. |
|
File menu. |
|
Help menu. |
|
Load file button. |
|
A list of toolbuttons that need an open connection to be enabled. If tool pointer is zero simply require any connection to be enabled. |
|
Paste button. |
|
|
|
Print button. |
|
Redo button. |
|
Current row label. |
|
Save file button. |
|
Search & replace dialog if available. |
|
The ID of the tool providing the SQL editor. |
|
Display latest status messages |
|
Status messages to display |
|
ID of the edit menu |
|
ID of the file menu |
|
ID of the help menu |
|
First ID of the tool specific about menu items. |
|
Last ID of the tool specific about menu items. |
|
First ID of the tool specific menu items. |
|
Last ID of the tool specific menu items. |
|
ID of the tools menu |
|
ID of the windows menu |
|
A map from menu ID:s to tools. |
|
Tools menu. |
|
Undo button. |
|
Windows menu. |
|
Workspace of main window. |