TeGUIUtils.h File Reference

#include "../../kernel/TeDataTypes.h"
#include <qcombobox.h>
#include "../../kernel/TeDefines.h"

Go to the source code of this file.

Functions

TL_DLL bool fillColumnCombo (vector< TeAttrDataType > &aTypeVec, TeTheme *theme, QComboBox *cColumnCombo, bool clear=true)
 Fills the comboBox (cColumnCombo) with the all columns of specific types of the current theme "tableName.columnName".
TL_DLL bool fillColumnCombo (vector< TeAttrDataType > &aTypeVec, TeTheme *theme, QComboBox *cColumnCombo, QComboBox *cTableCombo, string selName="", bool clear=true)
 Fills the comboBox (cColumnCombo) with columns of the comboBox (cTableCombo) current table.
TL_DLL bool fillColumnCombo (TeAttrDataType aType, TeTheme *theme, QComboBox *cColumnCombo, QComboBox *cTableCombo, string selName, bool clear=true)
 Fills the comboBox (cColumnCombo) with the specific type columns of the comboBox (cTableCombo) current table.
TL_DLL bool fillLayerCombo (TeDatabase *db, TeGeomRep rep, QComboBox *lColumnCombo, const string &selName="", bool clear=true)
 Fills the comboBox (lColumnCombo) with the all layers with specific representations.
TL_DLL bool fillTableCombo (TeView *view, QComboBox *cTableCombo, QComboBox *cThemeCombo, string selName="", bool clear=true, TeAttrTableType tableType=TeAllAttrTypes)
 Fills the comboBox (cTableCombo) with the tables of the comboBox (cThemeCombo) current theme.
TL_DLL bool fillThemeCombo (TeView *view, QComboBox *cBox, string selName, bool clear=true)
 Fills the comboBox (cBox) with all the themes that belong to the view.
TL_DLL bool fillThemeCombo (vector< TeGeomRep > &tg, TeView *view, QComboBox *cBox, string selName, bool clear=true)
 Fills the comboBox (cBox) with the themes that belong to the view and have the geometric representations.
TL_DLL bool fillThemeCombo (TeGeomRep tg, TeView *view, QComboBox *cBox, string selName, bool clear=true)
 Fills the comboBox (cBox) with the themes that belong to the view and have a specific geometric representation.


Function Documentation

TL_DLL bool fillColumnCombo ( vector< TeAttrDataType > &  aTypeVec,
TeTheme theme,
QComboBox *  cColumnCombo,
bool  clear = true 
)

Definition at line 224 of file TeGUIUtils.cpp.

References TeTheme::attrTables().

00225 {
00226         if(clear)
00227                 cColumnCombo->clear();
00228         TeAttrTableVector attrTables = theme->attrTables();
00229         for(unsigned int i=0; i<attrTables.size(); ++i)
00230         {
00231                 TeAttributeList attrList = attrTables[i].attributeList();
00232                 for(unsigned int j=0; j<attrList.size(); ++j)
00233                 {
00234                         for(unsigned int type=0; type<aTypeVec.size(); ++type)
00235                         {
00236                                 if(attrList[j].rep_.type_==aTypeVec[type])
00237                                 {
00238                                         string tableCol = attrTables[i].name()+"."+attrList[j].rep_.name_;
00239                                         cColumnCombo->insertItem(tableCol.c_str());
00240                                 }
00241                         }
00242                 }
00243         }
00244         return true;
00245 }

TL_DLL bool fillColumnCombo ( vector< TeAttrDataType > &  aTypeVec,
TeTheme theme,
QComboBox *  cColumnCombo,
QComboBox *  cTableCombo,
string  selName = "",
bool  clear = true 
)

TL_DLL bool fillColumnCombo ( TeAttrDataType  aType,
TeTheme theme,
QComboBox *  cColumnCombo,
QComboBox *  cTableCombo,
string  selName,
bool  clear = true 
)

TL_DLL bool fillLayerCombo ( TeDatabase db,
TeGeomRep  rep,
QComboBox *  lColumnCombo,
const string selName = "",
bool  clear = true 
)

TL_DLL bool fillTableCombo ( TeView view,
QComboBox *  cTableCombo,
QComboBox *  cThemeCombo,
string  selName = "",
bool  clear = true,
TeAttrTableType  tableType = TeAllAttrTypes 
)

TL_DLL bool fillThemeCombo ( TeView view,
QComboBox *  cBox,
string  selName,
bool  clear = true 
)

TL_DLL bool fillThemeCombo ( vector< TeGeomRep > &  tg,
TeView view,
QComboBox *  cBox,
string  selName,
bool  clear = true 
)

TL_DLL bool fillThemeCombo ( TeGeomRep  tg,
TeView view,
QComboBox *  cBox,
string  selName,
bool  clear = true 
)


Generated on Sun Jul 29 04:03:52 2012 for TerraLib - Development Source by  doxygen 1.5.3