TOra Globals


Annotated List
Files
Globals
Hierarchy
Index

toconnection.h

tomain.h

toqvalue.h

Global member Documentation

typedef toQuery::queryDescribe toQDescribe

toQDescribe

#include <toconnection.h>

A short representation of a toQuery::queryDescribe

typedef std::list<toQDescribe> toQDescList

toQDescList

#include <toconnection.h>

A short representation of list

void  toStatusMessage (const QString &str,bool save=false,bool log=true)

toStatusMessage

#include <tomain.h>

Display a message in the statusbar of the main window.

Parameters:
strMessage to display
saveIf true don't remove the message after a specified interval.
logLog message. Will never log saved messages.

toMaintoMainWidget (void)

toMainWidget

#include <tomain.h>

Get a pointer to the main window

Returns: Pointer to main window.

QString  toSQLToAddress (toConnection &conn,const QString &sql)

toSQLToAddress

#include <tomain.h>

Get an address to a SQL statement in the SGA. The address has the form 'address:hash_value' which are resolved from the v$sqltext_with_newlines view in Oracle.

Parameters:
connConnection to get address from
sqlStatement to get address for.

Returns: String with address in.

Throws: QString, if, address, not, found.

QString  toSQLString (toConnection &conn,const QString &address)

toSQLString

#include <tomain.h>

Get the full SQL of an address (See toSQLToAddress) from the SGA.

Parameters:
connConnection to get address from
sqlAddress of SQL.

Returns: String with SQL of statement.

Throws: QString, if, address, not, found.

void  toReadableColumn (QString &col)

toReadableColumn

#include <tomain.h>

Make a column name more readable.

Parameters:
colName of column name, will be modified.

QString  toNow (toConnection &conn)

toNow

#include <tomain.h>

Get the current database time in the current sessions dateformat.

Parameters:
connConnection to get address from.

Returns: String with the current date and time.

void  toSetSessionType (const QString &str)

toSetSessionType

#include <tomain.h>

Set the current session type (Style)

Parameters:
strSession to set, can be any of Motif, Motif Plus, SGI, CDE, Windows and Platinum

Throws: QString, if, style, not, available.

QString  toGetSessionType (void)

toGetSessionType

#include <tomain.h>

Get current session type (Style)

Returns: A string describing the current style.

See also: toSetSessionType

QComboBoxtoRefreshCreate (QWidget *parent,const char *name=NULL,const QString &def=QString::null, QComboBox *item=NULL)

toRefreshCreate

#include <tomain.h>

Create or fill a combobox with refresh intervals.

Parameters:
parentParent of created combobox.
nameName of created combobox.
defDefault value of the combobox.
itemCombo box to fill. If not specified a new combobox is created.

void  toRefreshParse (toTimer *timer,const QString &str=QString::null)

toRefreshParse

#include <tomain.h>

Set a timer with the value from a refresh combobox (See toRefreshCreate).

Parameters:
timerTimer to set timeout in.
strString from currentText of combobox. If empty, set to default.

bool  toMonolithic (void)

toMonolithic

#include <tomain.h>

Get information about wether this TOra has plugin support or not.

Returns: True if plugin support is enabled.

QString  toDeepCopy (const QString &str)

toDeepCopy

#include <tomain.h>

Make a deep copy of a string. Usefull when sharing copying strings between threads.

Parameters:
strString to copy

Returns: Copied string.

QToolBartoAllocBar (QWidget *parent,const QString &name,const QString &db)

toAllocBar

#include <tomain.h>

Allocate a toolbar. This is needed since Qt and KDE use different toolbars.

Parameters:
parentParent of toolbar.
nameName of toolbar.
dbDatabase name or empty if N/A.

Returns: A newly created toolbar.

TODocktoAllocDock (const QString &name, const QString &db, const QPixmap &icon)

toAllocDock

#include <tomain.h>

Allocate a new docked window. This is needed since Qt and KDE docks windows differently (Qt 2.x doesn't even have support for docked windows). Observe that you must attach a dock using toAttachDock after allocating it.

Parameters:
nameName of window.
dbDatabase name or empty if N/A.
iconIcon of new dock.

Returns: A newly allocated fock.

void  toAttachDock (TODock *dock,QWidget *container,QMainWindow::ToolBarDock place)

toAttachDock

#include <tomain.h>

Attach a dock to a specified position.

Parameters:
dockDock to attach
containerWhatever container is supposed to be in the dock window.
placeWhere to place the dock.

int  toSizeDecode (const QString &str)

toSizeDecode

#include <tomain.h>

Decode a size string this basically converts "KB" to 1024, "MB" to 1024KB and everything else to 1.

Returns: Multiplier specified by string.

template T  toShift (std::list &lst)

toShift

#include <tomain.h>

Shift the first value out of a list.

Parameters:
lstList to shift value from (Also modified).

Returns: The first value in the list.

template void  toUnShift (std::list &lst,const T &str)

toUnShift

#include <tomain.h>

Push an object to the beginning of a list.

Parameters:
lstList to push value in from of.
strObject to push.

template T  toPop (std::list &lst)

toPop

#include <tomain.h>

Pop the last value out of a list.

Parameters:
lstList to pop value from (Also modified).

Returns: The value in the list of objects.

template void  toPush (std::list &lst,const T &str)

toPush

#include <tomain.h>

Push an object to the end of a list.

Parameters:
lstList to push value in from of.
strObject to push.

template std::list::iterator  toFind (std::list &lst,const T &str)

toFind

#include <tomain.h>

Find if an item exists in a list.

Parameters:
lstList to search for value.
strObject to search for.

QString  toGetToken (toMarkedText *text,int &curLine,int &pos, bool forward=true,bool comments=false)

toGetToken

#include <tomain.h>

Get next SQL token from an editor.

Parameters:
textEditor to get token from
curLineCurrent line when parsing, modified when calling.
posCurrent position when parsing, modified when calling.
forwardIf true go forward from current position, otherwise backward.
commentsInclude comments as tokens

Returns: String with next token in editor

QFont  toStringToFont (const QString &str)

toStringToFont

#include <tomain.h>

Convert a string representation to a font structure.

Parameters:
strString representing the font.

Returns: Font structure represented by the string.

See also: toFontToString

QString  toFontToString (const QFont &fnt)

toFontToString

#include <tomain.h>

Convert a font to a string representation.

Parameters:
fntFont to convert.

Returns: String representation of font.

QString  toHelpPath (void)

toHelpPath

#include <tomain.h>

Get the path to the help directory.

Returns: Path to the help directory.

QCString  toReadFile (const QString &filename)

toReadFile

#include <tomain.h>

Read file from filename.

Parameters:
filenameFilename to read file from.

Returns: Contents of file.

Throws: QString, describing, I/O, problem.

bool  toWriteFile (const QString &filename,const QCString &data)

toWriteFile

#include <tomain.h>

Write file to filename.

Parameters:
filenameFilename to write file to.
dataData to write to file.

bool  toWriteFile (const QString &filename,const QString &data)

toWriteFile

#include <tomain.h>

Write file to filename.

Parameters:
filenameFilename to write file to.
dataData to write to file.

bool  toCompareLists (QStringList &l1,QStringList &l2,unsigned int len)

toCompareLists

#include <tomain.h>

Compare two string lists.

Parameters:
l1First list to compare.
l2Second list to compare.
lenLength of lists to compare.

Returns: True if all first len elements match.

void  toSetEnv (const QCString &var,const QCString &val)

toSetEnv

#include <tomain.h>

Set environment variable.

Parameters:
varVariable name to set.
valValue to set variable to.

void  toUnSetEnv (const QCString &var)

toUnSetEnv

#include <tomain.h>

Delete an environment variable.

Parameters:
varEnvironment variable to delete.

QString  toOpenFilename (const QString &filename,const QString &filter,QWidget *parent)

toOpenFilename

#include <tomain.h>

Pop up a dialog and choose a file to open.

Parameters:
filenameDefault filename to open.
filterFilter of filenames (See QFileDialog)
parentParent of dialog.

Returns: Selected filename.

QString  toSaveFilename (const QString &filename,const QString &filter,QWidget *parent)

toSaveFilename

#include <tomain.h>

Pop up a dialog and choose a file to save to.

Parameters:
filenameDefault filename to open.
filterFilter of filenames (See QFileDialog)
parentParent of dialog.

Returns: Selected filename.

int  toToolMenuIndex (void)

toToolMenuIndex

#include <tomain.h>

Get index of menu to insert tool specific menu at.

Returns: Index of the tool menu entry.

bool inline  toIsIdent (QChar c)

toIsIdent

#include <tomain.h>

Check if a character is valid for an identifier in Oracle.

Parameters:
cCharacter to check

Returns: True if it is a valid Oracle identifier.

QString  toPluginPath (void)

toPluginPath

#include <tomain.h>

Get installation directory of application (Plugin directory on unix, installation target on windows).

Returns: String containing directory

std::list<QString>  toStatusMessages (void)

toStatusMessages

#include <tomain.h>

Get a list of the latest status messages that have been shown.

QColor  toChartColor (int index)

toChartColor

#include <tomain.h>

Get a color for a chart item.

Parameters:
indexIndicating which chart item to get color for.

toConnectiontoCurrentConnection (QObject *widget)

toCurrentConnection

#include <tomain.h>

Return the connection most closely associated with a widget. Currently connections are only stored in toToolWidgets.

Returns: Reference toConnection object closest to the current.

toToolWidgettoCurrentTool (QObject *widget)

toCurrentTool

#include <tomain.h>

Return the tool widget most closely associated with a widget.

Returns: Pointer to tool widget.

bool  toIsOracle (const toConnection &)

toIsOracle

#include <tomain.h>

Check if this connection is an oracle connection.

QString  toSQLStripSpecifier (const QString &sql)

toSQLStripSpecifier

#include <tomain.h>

Strip extra bind specifier from an SQL statement. (That means the extra <***> part after the bind variable.

Parameters:
sqlThe sql to strip.

Returns: Return a string containing the same statement without qualifiers, which means the sql sent to Oracle and available in the SGA.

QString  toSQLStripBind (const QString &sql)

toSQLStripBind

#include <tomain.h>

Strip extra binds and replace with empty strings.

Parameters:
sqlThe sql to strip.

Returns: Return a string containing the same statement without binds.

QListViewItemtoFindItem (QListView *list,const QString &str)

toFindItem

#include <tomain.h>

Find an item in a listview.

Parameters:
listThe list to search for the item.
strThe string to search for. You can specify parent/child with : in the string.

void  toToolCaption (toToolWidget *tool,const QString &caption)

toToolCaption

#include <tomain.h>

Set or change title of a tool window.

Parameters:
toolWidget of tool.
captionCaption to set to the tool.

template T  max (T a, T b)

max

#include <tomain.h>

Get maximum number of a and b.

template T  min (T a, T b)

min

#include <tomain.h>

Get minimum number of a and b.

typedef std::list<toQValue> toQList

toQList

#include <toqvalue.h>

A short representation of list