Referencia del Archivo tomain.h

#include <list>
#include <map>
#include <qmainwindow.h>
#include <qtimer.h>
#include <qtoolbutton.h>
#include "tobackground.h"
#include <qtoolbar.h>
#include "tomainwindow.h"

Dependencia gráfica adjunta para tomain.h:

Este gráfico muestra que archivos directa o indirectamente incluyen a este archivo:

Ir al código fuente de este archivo.

Definiciones

#define TOPrinter   QPrinter
#define TODock   QWidget
#define TOFileDialog   QFileDialog
#define TOMessageBox   QMessageBox
#define TOCATCH

Funciones

void toStatusMessage (const QString &str, bool save=false, bool log=true)
toMaintoMainWidget (void)
QString toSQLToAddress (toConnection &conn, const QString &sql)
QString toSQLString (toConnection &conn, const QString &address)
void toReadableColumn (QString &col)
QString toNow (toConnection &conn)
void toSetSessionType (const QString &str)
QString toGetSessionType (void)
QComboBoxtoRefreshCreate (QWidget *parent, const char *name=NULL, const QString &def=QString::null, QComboBox *item=NULL)
void toRefreshParse (toTimer *timer, const QString &str=QString::null)
bool toMonolithic (void)
QString toDeepCopy (const QString &str)
QToolBar * toAllocBar (QWidget *parent, const QString &name, const QString &db)
TODock * toAllocDock (const QString &name, const QString &db, const QPixmap &icon)
void toAttachDock (TODock *dock, QWidget *container, QMainWindow::ToolBarDock place)
int toSizeDecode (const QString &str)
template<class T>
toShift (std::list< T > &lst)
template<class T>
void toUnShift (std::list< T > &lst, const T &str)
template<class T>
toPop (std::list< T > &lst)
template<class T>
void toPush (std::list< T > &lst, const T &str)
template<class T>
std::list< T, std::allocator<
T > >::iterator 
toFind (typename std::list< T, std::allocator< T > > &lst, const T &str)
QString toGetToken (toMarkedText *text, int &curLine, int &pos, bool forward=true, bool comments=false)
QFont toStringToFont (const QString &str)
QString toFontToString (const QFont &fnt)
QString toHelpPath (void)
QCString toReadFile (const QString &filename)
bool toWriteFile (const QString &filename, const QCString &data)
bool toWriteFile (const QString &filename, const QString &data)
bool toCompareLists (QStringList &l1, QStringList &l2, unsigned int len)
void toSetEnv (const QCString &var, const QCString &val)
void toUnSetEnv (const QCString &var)
QString toOpenFilename (const QString &filename, const QString &filter, QWidget *parent)
QString toSaveFilename (const QString &filename, const QString &filter, QWidget *parent)
int toToolMenuIndex (void)
bool toIsIdent (QChar c)
QString toPluginPath (void)
std::list< QString > toStatusMessages (void)
QColor toChartColor (int index)
toConnection & toCurrentConnection (QObject *widget)
toToolWidget * toCurrentTool (QObject *widget)
bool toIsOracle (const toConnection &)
QString toSQLStripSpecifier (const QString &sql)
QString toSQLStripBind (const QString &sql)
QListViewItemtoFindItem (QListView *list, const QString &str)
void toToolCaption (toToolWidget *tool, const QString &caption)
template<class T>
max (T a, T b)
template<class T>
min (T a, T b)


Documentación de las definiciones

#define TOCATCH
 

Valor:

catch (const QString &str) {\
      toStatusMessage(str);\
    }

#define TODock   QWidget
 

#define TOFileDialog   QFileDialog
 

#define TOMessageBox   QMessageBox
 

#define TOPrinter   QPrinter
 


Documentación de las funciones

template<class T>
T max a,
b
 

Get maximum number of a and b.

template<class T>
T min a,
b
 

Get minimum number of a and b.

QToolBar* toAllocBar QWidget parent,
const QString &  name,
const QString &  db
 

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

Parámetros:
parent Parent of toolbar.
name Name of toolbar.
db Database name or empty if N/A.
Devuelve:
A newly created toolbar.

TODock* toAllocDock const QString &  name,
const QString &  db,
const QPixmap &  icon
 

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.

Parámetros:
name Name of window.
db Database name or empty if N/A.
icon Icon of new dock.
Devuelve:
A newly allocated fock.

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

Attach a dock to a specified position.

Parámetros:
dock Dock to attach
container Whatever container is supposed to be in the dock window.
place Where to place the dock.

QColor toChartColor int  index  ) 
 

Get a color for a chart item.

Parámetros:
index Indicating which chart item to get color for.

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

Compare two string lists.

Parámetros:
l1 First list to compare.
l2 Second list to compare.
len Length of lists to compare.
Devuelve:
True if all first len elements match.

toConnection& toCurrentConnection QObject widget  ) 
 

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

Devuelve:
Reference toConnection object closest to the current.

toToolWidget* toCurrentTool QObject widget  ) 
 

Return the tool widget most closely associated with a widget.

Devuelve:
Pointer to tool widget.

QString toDeepCopy const QString &  str  ) 
 

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

Parámetros:
str String to copy
Devuelve:
Copied string.

template<class T>
std::list<T,std::allocator<T> >::iterator toFind typename std::list< T, std::allocator< T > > &  lst,
const T &  str
 

Find if an item exists in a list.

Parámetros:
lst List to search for value.
str Object to search for.

QListViewItem* toFindItem QListView *  list,
const QString &  str
 

Find an item in a listview.

Parámetros:
list The list to search for the item.
str The string to search for. You can specify parent/child with : in the string.

QString toFontToString const QFont &  fnt  ) 
 

Convert a font to a string representation.

Parámetros:
fnt Font to convert.
Devuelve:
String representation of font.

QString toGetSessionType void   ) 
 

Get current session type (Style)

Devuelve:
A string describing the current style.
Ver también:
toSetSessionType

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

Get next SQL token from an editor.

Parámetros:
text Editor to get token from
curLine Current line when parsing, modified when calling.
pos Current position when parsing, modified when calling.
forward If true go forward from current position, otherwise backward.
comments Include comments as tokens
Devuelve:
String with next token in editor

QString toHelpPath void   ) 
 

Get the path to the help directory.

Devuelve:
Path to the help directory.

bool toIsIdent QChar  c  )  [inline]
 

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

Parámetros:
c Character to check
Devuelve:
True if it is a valid Oracle identifier.

bool toIsOracle const toConnection &   ) 
 

Check if this connection is an oracle connection.

toMain* toMainWidget void   ) 
 

Get a pointer to the main window

Devuelve:
Pointer to main window.

bool toMonolithic void   ) 
 

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

Devuelve:
True if plugin support is enabled.

QString toNow toConnection &  conn  ) 
 

Get the current database time in the current sessions dateformat.

Parámetros:
conn Connection to get address from.
Devuelve:
String with the current date and time.

QString toOpenFilename const QString &  filename,
const QString &  filter,
QWidget parent
 

Pop up a dialog and choose a file to open.

Parámetros:
filename Default filename to open.
filter Filter of filenames (See QFileDialog)
parent Parent of dialog.
Devuelve:
Selected filename.

QString toPluginPath void   ) 
 

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

Devuelve:
String containing directory

template<class T>
T toPop std::list< T > &  lst  ) 
 

Pop the last value out of a list.

Parámetros:
lst List to pop value from (Also modified).
Devuelve:
The value in the list of objects.

template<class T>
void toPush std::list< T > &  lst,
const T &  str
 

Push an object to the end of a list.

Parámetros:
lst List to push value in from of.
str Object to push.

void toReadableColumn QString &  col  ) 
 

Make a column name more readable.

Parámetros:
col Name of column name, will be modified.

QCString toReadFile const QString &  filename  ) 
 

Read file from filename.

Parámetros:
filename Filename to read file from.
Devuelve:
Contents of file.
Excepciones:
QString describing I/O problem.

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

Create or fill a combobox with refresh intervals.

Parámetros:
parent Parent of created combobox.
name Name of created combobox.
def Default value of the combobox.
item Combo box to fill. If not specified a new combobox is created.

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

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

Parámetros:
timer Timer to set timeout in.
str String from currentText of combobox. If empty, set to default.

QString toSaveFilename const QString &  filename,
const QString &  filter,
QWidget parent
 

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

Parámetros:
filename Default filename to open.
filter Filter of filenames (See QFileDialog)
parent Parent of dialog.
Devuelve:
Selected filename.

void toSetEnv const QCString &  var,
const QCString &  val
 

Set environment variable.

Parámetros:
var Variable name to set.
val Value to set variable to.

void toSetSessionType const QString &  str  ) 
 

Set the current session type (Style)

Parámetros:
str Session to set, can be any of Motif, Motif Plus, SGI, CDE, Windows and Platinum
Excepciones:
QString if style not available.

template<class T>
T toShift std::list< T > &  lst  ) 
 

Shift the first value out of a list.

Parámetros:
lst List to shift value from (Also modified).
Devuelve:
The first value in the list.

int toSizeDecode const QString &  str  ) 
 

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

Devuelve:
Multiplier specified by string.

QString toSQLString toConnection &  conn,
const QString &  address
 

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

Parámetros:
conn Connection to get address from
sql Address of SQL.
Devuelve:
String with SQL of statement.
Excepciones:
QString if address not found.

QString toSQLStripBind const QString &  sql  ) 
 

Strip extra binds and replace with empty strings.

Parámetros:
sql The sql to strip.
Devuelve:
Return a string containing the same statement without binds.

QString toSQLStripSpecifier const QString &  sql  ) 
 

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

Parámetros:
sql The sql to strip.
Devuelve:
Return a string containing the same statement without qualifiers, which means the sql sent to Oracle and available in the SGA.

QString toSQLToAddress toConnection &  conn,
const QString &  sql
 

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.

Parámetros:
conn Connection to get address from
sql Statement to get address for.
Devuelve:
String with address in.
Excepciones:
QString if address not found.

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

Display a message in the statusbar of the main window.

Parámetros:
str Message to display
save If true don't remove the message after a specified interval.
log Log message. Will never log saved messages.

std::list<QString> toStatusMessages void   ) 
 

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

QFont toStringToFont const QString &  str  ) 
 

Convert a string representation to a font structure.

Parámetros:
str String representing the font.
Devuelve:
Font structure represented by the string.
Ver también:
toFontToString

void toToolCaption toToolWidget *  tool,
const QString &  caption
 

Set or change title of a tool window.

Parámetros:
tool Widget of tool.
caption Caption to set to the tool.

int toToolMenuIndex void   ) 
 

Get index of menu to insert tool specific menu at.

Devuelve:
Index of the tool menu entry.

void toUnSetEnv const QCString &  var  ) 
 

Delete an environment variable.

Parámetros:
var Environment variable to delete.

template<class T>
void toUnShift std::list< T > &  lst,
const T &  str
 

Push an object to the beginning of a list.

Parámetros:
lst List to push value in from of.
str Object to push.

bool toWriteFile const QString &  filename,
const QString &  data
 

Write file to filename.

Parámetros:
filename Filename to write file to.
data Data to write to file.

bool toWriteFile const QString &  filename,
const QCString &  data
 

Write file to filename.

Parámetros:
filename Filename to write file to.
data Data to write to file.


Generado el Sat May 21 00:04:53 2005 para BulmaGes por  doxygen 1.4.2