|
|
Simple baseclass for widgets defining the main tool widget. It is in no way mandatory and all it does is register the widget in the connetion.
void connectionChange (void)
| connectionChange |
[signal]
Emitted when the connection is changed.
toToolWidget (toTool &tool,
const QString &ctx,
QWidget *parent,
toConnection &conn,
const char *name=NULL)
| toToolWidget |
Create widget.
Parameters:
ctx | Help context for this tool. |
parent | Parent widget. |
conn | Connection of widget. |
name | Name of widget. |
~toToolWidget ()
| ~toToolWidget |
toConnection & connection ()
| connection |
Get the current connection.
Returns: Reference to connection.
toTool & tool (void)
| tool |
Get the tool for this tool widget.
Returns: Reference to a tool object.
bool canHandle (toConnection &conn)
| canHandle |
[virtual]
Check if this tool can handle a specific connection.
Parameters:
provider | Name of connection. |
Returns: True if connection is handled.
void setConnection (toConnection &conn)
| setConnection |
Change connection of tool.
toTimer * timer (void)
| timer |
Get timer of tool. Used by some results to get update time.
Returns: Pointer to a timer object.
void exportData (std::map<QCString,QString> &data,const QCString &prefix)
| exportData |
[virtual]
Export data to a map.
Parameters:
data | A map that can be used to recreate the data of a chart. |
prefix | Prefix to add to the map. |
void importData (std::map<QCString,QString> &data,const QCString &prefix)
| importData |
[virtual]
Import data
Parameters:
data | Data to read from a map. |
prefix | Prefix to read data from. |