#include <guilib.h>
Inherits QFrame.
HPlainDataMatrix is a GUI viewer class for a HPlainDataMatrix object. Shows the data in a HTableBrowser, and put a xml output button and a print preview button above the lister. It can put an optional html output button too, if the content have html output. (The html content will be generated by HPlainDataMatrix::getContentAsHtml() the html content will be generated with the following parameters: "html center" )
- See Also
- HPlainDataMatrix
-
HPlainDMD
Definition at line 529 of file guilib.h.
HDispPlainDataMatrix::HDispPlainDataMatrix |
( |
QWidget * |
parent, |
|
|
HBase * |
d, |
|
|
bool |
htmlmode = false , |
|
|
int |
keyfield = -1 , |
|
|
int |
ddata = DONT_DELETE_DATA |
|
) |
| |
Creates a HDispPlainDataMatrix object
- Parameters
-
parent | the parent GUI widget (QWidget descendant) |
d | the metadata object to show. This case it means a HPlainDataMatrix object |
htmlmode | if this parameter true, the html output button will be shown. (The html content will be generated by HPlainDataMatrix::getContentAsHtml() with parameters "html center" ) |
keyfield | you can specify the key of the HTableBrowser elements. This is important when the user clicks on an element. That case the "activateItem" signal will be emitted which tell the key of the activated item. The HPlainDataMatrix class also have a keyfield attributa which is overrides this parameter except if it is leaved -2 (which is the default) This keyfield can be:
- keyfield = -1 a new key will be generated, which will be the index number of the rows.
- keyfield >= 0 means the keyfield indexed column will be the index.
|
ddata | :This define tells what happend with the metadata if the gui object is deleted.
- DONT_DELETE_DATA If the gui object is deleted, leaves the metadata object untouched. (You need to manually delete the metadata later)
- DELETE_DATA If the gui object is deleted it deletes the metadata object too. It deletes the connected meta-data object too. (Connected tables, see HTableBase) (You can't use the metadata later)
|
Definition at line 2196 of file guilib.cpp.
HDispPlainDataMatrix::~HDispPlainDataMatrix |
( |
void |
| ) |
|
void HDispPlainDataMatrix::activateItem |
( |
QString |
k | ) |
|
|
signal |
The user activated (clicked) on the following keyed element "k"
int HDispPlainDataMatrix::dialogHtmlShow |
( |
void |
| ) |
|
|
slot |
Shows the html view dialog
Definition at line 2298 of file guilib.cpp.
int HDispPlainDataMatrix::dialogPrint |
( |
void |
| ) |
|
|
slot |
Shows the print preview dialog
Definition at line 2282 of file guilib.cpp.
int HDispPlainDataMatrix::dialogXml |
( |
void |
| ) |
|
|
slot |
Shows the xml output dialog
Definition at line 2290 of file guilib.cpp.
int HDispPlainDataMatrix::itemAlternateActivated |
( |
const QString & |
s | ) |
|
|
slot |
Alternate activate the key "s" element
Definition at line 2276 of file guilib.cpp.
void HDispPlainDataMatrix::setColumnColor |
( |
int |
col, |
|
|
QColor |
color |
|
) |
| |
|
inline |
Sets the color of the specified column
Definition at line 565 of file guilib.h.
void HDispPlainDataMatrix::setGenHtmlParameters |
( |
QString |
p | ) |
|
|
inline |
Sets html generation parameters. The html content will be generated by HPlainDataMatrix::getContentAsHtml() with parameters "html center" by default. You can redefine this parameterstring with this function
Definition at line 562 of file guilib.h.
int HDispPlainDataMatrix::slotActivateItem |
( |
const QString |
k | ) |
|
|
slot |
Activate the key "k" element
Definition at line 2266 of file guilib.cpp.
The documentation for this class was generated from the following files: