gSAFE
1.3.8
|
#include <datalib.h>
Public Slots | |
virtual int | clearList (void) |
virtual int | readList (QString filter="", bool all=true) |
Public Slots inherited from HList | |
int | actLine (void) |
int | alternateActLine (void) |
int | captureNotify (QString tblname) |
virtual int | clearList (void) |
virtual int | readList (QString filter="", bool all=true) |
int | reReadList (void) |
Public Slots inherited from HTableBase | |
void | addDependTableName (QString n) |
int | errorPassSlot (QString err) |
Public Member Functions | |
HFloatTablesAsHList (HFloatTables *memt, HList *templ=NULL, bool clone_struct_from_memt=false) | |
~HFloatTablesAsHList () | |
HTable * | getActiveTable (void) |
virtual QStringList * | getKeys (void) |
virtual QList< QStringList * > * | getValues (void) |
void | refreshValuesKeys (bool updSignal=false) |
Public Member Functions inherited from HList | |
HList (QString t) | |
HList (HList *t) | |
~HList (void) | |
QString | activeKey (void) |
void | deepcopy_from_hlist (HList *x) |
QString | operator[] (int i) |
QString | queryCurrKey (void) |
QStringList * | queryCurrValues (void) |
QString | queryNextKey (void) |
bool | queryNextRecord (void) |
QStringList * | queryNextValues (void) |
void | queryToFirst (void) |
int | recordCount (void) |
void | setActiveKey (QString k) |
Public Member Functions inherited from HTableBase | |
HTableBase (QString t) | |
HTableBase (HTableBase *t) | |
~HTableBase (void) | |
void | addField (HDataField *i) |
void | blockReInitializeBase (QString hide_marker, QString ro_marker) |
void | clearAndFreeConnections (void) |
void | clearConnections (void) |
void | clearRoles (void) |
void | clearSqlSynced (void) |
void | connectTable (HTableBase *ct, int type=INNER_JOIN, QString connconstraint="") |
void | connectTable (HTableBase *ct, QString thiskey, QString thatkey, int type=INNER_JOIN, QString connconstraint="") |
void | dataUpdated (void) |
void | deepcopy_from_htablebase (HTableBase *x) |
void | delRole (QString name) |
HDataField * | fieldByIndex (int i, bool all=false) |
HDataField * | fieldBySqlName (QString sqln, bool all=false, QString containerSqlTable="") |
int | fieldCount (bool withconnect=false) |
void | firstField (void) |
void | freeTable (void) |
QStringList | getExplainHeads (void) |
QStringList | getHeads (int what) |
QStringList | getShortTitleHeads (void) |
bool | isChanged (bool all=false) |
bool | isReallyChanged (void) |
HDataField * | nextField (void) |
HDataField * | nextFieldAll (void) |
QVariant | operator[] (int i) |
void | removeSqlCooseButtons (void) |
void | resetLogging (void) |
void | returnToDefaultAllMarked (QString mark) |
void | setAllNOSet (void) |
void | setAllYESSet (void) |
void | setColor (int r, int g, int b) |
void | setColorAllMarked (QString mark, int r, int g, int b) |
void | setEditable (void) |
void | setEditableAllMarked (QString mark) |
void | setGuiDisabledAllMarked (QString mark) |
void | setGuiEnabledAllMarked (QString mark) |
void | setHide (void) |
void | setHideAllMarked (QString mark) |
void | setLogging (void) |
void | setLoggingAllMarked (QString mark) |
void | setReadolnyAllMarked (QString mark) |
void | setReadonly (void) |
void | setShow (void) |
void | setShowAllMarked (QString mark) |
void | setTableTitle (QString s) |
QString | sqlCreateString (QString switches="") |
QString | sqlSelect (QString tail="", bool all=false, bool keypart=false) |
QString | sqlSelectAll (QString tail="") |
QString | sqlSelectWk (QString tail="", bool all=false) |
QString | sqlSelectWkAll (QString tail="") |
void | sqlSynced (HDataChangeLogger *dclog=NULL, bool forcechange=false, bool forcelog=false) |
QString | sqlTableName (void) |
HDataField * | staticFieldByTitle (QString title="") |
QString | tableTitle (void) |
void | useRole (QString name) |
QString | validate (bool all=true) |
Public Member Functions inherited from HSqlHandler | |
HSqlHandler (void) | |
~HSqlHandler (void) | |
QSqlQuery * | allocateQSqlQuery (void) |
void | cloneSqlSettingsFrom (HSqlHandler *other) |
void | commit (void) |
bool | errorStatus (void) |
void | rollback (void) |
bool | submit0ResultQuery (QString q, QString err, bool tdisabled=false) |
QVariant | submit1ResultQuery (QString q, QString err, bool tdisabled=false) |
HPlainDataMatrix * | submitNResultQuery (int N, QString q, QString err, bool tdisabled=false) |
void | transaction (void) |
QSqlDatabase | workDB (void) |
Public Member Functions inherited from HSqlInterface | |
HSqlInterface () | |
~HSqlInterface () | |
void | cloneSqlInterfaceSettingsFrom (HSqlInterface *other) |
HSqlSingleInterface * | myInterface (void) |
QString | sqlConcatenateToLocal (QString string) |
QString | sqlConcatenateToLocal (QStringList fields) |
Public Member Functions inherited from HBase | |
HBase (void) | |
~HBase (void) | |
QString | getWhoami (void) |
Protected Attributes | |
HFloatTables * | mem |
Protected Attributes inherited from HList | |
QString | active_key |
QStringList * | keys |
QStringList::iterator | query_keyiter |
QList< QStringList * >::iterator | query_valiter |
QList< QStringList * > * | values |
Protected Attributes inherited from HTableBase | |
QString | conn_part |
QStack< HTableBase * > * | connectedTableBases |
QStringList * | depend |
int | field |
QString | imc_thatkey |
HTableBase * | imc_thattable |
QString | imc_thiskey |
HDataField_List * | run |
QString | sqlTable |
HDataField_List * | table |
QString | tabletitle |
Protected Attributes inherited from HSqlHandler | |
bool | query_error_occured |
Protected Attributes inherited from HBase | |
QString | whoami |
Additional Inherited Members | |
Signals inherited from HList | |
void | actionOnRecord (QString key) |
void | alternateActionOnRecord (QString key) |
Signals inherited from HTableBase | |
void | dataChanged (void) |
void | dataModifiedSignal (void) |
void | dataUpdatedSignal (void) |
void | doWorking (void) |
void | endWorking (void) |
void | startWorking (void) |
Signals inherited from HSqlHandler | |
void | errorSignal (QString err) |
Static Public Member Functions inherited from HSqlHandler | |
static void | setCustomSqlDatabase (QString databaseName, QString sqlinterfacename="") |
static void | setDefaultSqlDatabase (void) |
Static Public Member Functions inherited from HSqlInterface | |
static HSqlSingleInterface * | currentDefaultSqlInterface (void) |
static HSqlSingleInterface * | getSqlInterface (QString interfacename) |
static void | setSqlMode (QString modename) |
static void | setSqlModeBackToFirst (void) |
Public Attributes inherited from HList | |
bool | last_all |
QString | last_filter |
QString | soft_current_key |
Public Attributes inherited from HTableBase | |
QString | errstr |
bool | extrafeatures |
bool | gui_showtabletitle |
Static Public Attributes inherited from HSqlHandler | |
static int | trans = 0 |
The HFloatTablesAsHList class is fake a HFloatTables to act as a HList. With this class you can browse and see an unexisting (sql point of view) table.
You can put a HFloatTables instance to the HFloatTablesAsHList, and after it you can use the class as a HList.
HFloatTablesAsHList::HFloatTablesAsHList | ( | HFloatTables * | memt, |
HList * | templ = NULL , |
||
bool | clone_struct_from_memt = false |
||
) |
Constructor. Creates a HFloatTablesAsHList which fakes a HFloatTable get in memt parameter as HList
memt | the HFloatTables class to fake as Hlist |
templ | if we dont want to specify the data fields of the HList (which faked) we can put this templ parameter and the constructor clones the data fields from this parameter |
clone_struct_from_memt | if this true (false by default!) and the templ is NULL the HList (which faked) will be clones the data fields from the baserecord of the HFloatTables. So if you would like to the HList view same as the base record of FloatTables you should call HFloatTablesAsHList(some_pointer,NULL,true); This means that by default the HFloatTablesAsHList will be created with undefined data fields! (Have to fill with HTableBase functions) |
Definition at line 4763 of file datalib.cpp.
HFloatTablesAsHList::~HFloatTablesAsHList | ( | void | ) |
Destructor
Definition at line 4782 of file datalib.cpp.
|
virtualslot |
Inherited function(HList): Only clears the temporally lists and refresh the values.
If you would like to delete the table data use the HFloatTables::clearMem() !
Definition at line 4899 of file datalib.cpp.
HTable * HFloatTablesAsHList::getActiveTable | ( | void | ) |
Returns the active table/record.
Definition at line 4790 of file datalib.cpp.
|
inlinevirtual |
Inherited function. See HList::getValues()
Reimplemented from HList.
|
inlinevirtual |
Inherited function. See HList::getValues()
Reimplemented from HList.
|
virtualslot |
Inherited function(HList): calls the HFloatTables::readDBTable() with the filter and calls refreshValuesKeys() after it.
filter | this parameter is passed to HFloatTables::readDBTable() |
all | does't do anything. |
Definition at line 4909 of file datalib.cpp.
void HFloatTablesAsHList::refreshValuesKeys | ( | bool | updSignal = false | ) |
Refresh the values and the keys from the base HFloatTables. See the class description from details.
updSignal | emits an updateSignal or not. |
Definition at line 4800 of file datalib.cpp.