TerraLib 4.1
TeQtGrid Class Reference

#include <TeQtGrid.h>

List of all members.

Public Slots

void mouseReleasedOnVerticalHeaderSlot (int lin)
void promotePointedObjectsSlot ()
void promoteQueriedObjectsSlot ()
void sortAscOrderSlot ()
void sortDescOrderSlot ()
void sort (vector< int > cols, string order)
void removeQueryColorSlot ()
void removePointingColorSlot ()
void scrollToPrevPointedObjectSlot ()
void scrollToNextPointedObjectSlot ()
void scrollToPrevQueriedObjectSlot ()
void scrollToNextQueriedObjectSlot ()
void invertSelectionSlot ()

Signals

void putColorOnObject (TeAppTheme *, set< string > &)
void horizHeaderSignal (int)
void vertHeaderSignal (int)
void viewportSignal ()
void vertHeaderLeftDblClickSignal (int)
void linkTable (string, string, string)
void gridChangedSignal ()
void displayGridInformation (QString)
void clearGridInformation ()

Public Member Functions

 TeQtGrid (QWidget *parent=0, const char *name=0)
 ~TeQtGrid ()
void init (TeAppTheme *theme)
void initPortal ()
void updatePortalContents ()
QPopupMenu * popupHorizHeader ()
QPopupMenu * popupVertHeader ()
QPopupMenu * popupViewport ()
TeDatabasePortalgetPortal ()
TeAppThemegetTheme ()
bool isIndex (int col)
bool isDateTimeRegistered (int col)
bool isSortBy (int col)
bool isExternalTable (int col)
TeTablefindTable (int col)
TeTablefindTable (string colName)
void adjustColumns ()
void swapColumns (int col1=-1, int col2=-1)
int getColumn (int col)
void setVisColumn (bool vis, int col=-1)
bool getVisColumn (int col)
void putColorOnGrid (set< string > uniqueIdSet, set< string > objectIdSet, string operation, string attrQuery="")
void setVerticalEdition (bool flag)
void refresh ()
void clear ()
void clearPortal ()
string getObject (int row)
bool isVerticalEdition ()
bool showGridInformation ()
void showGridInformation (bool b)
void gridInformation ()
void insertObjectIntoCollection (string newId, string newTId="")
void goToLastLine ()
void goToLastColumn ()
bool hasPointedLine ()
void deletePointedLines ()
vector< int > getSelectedColumns ()
void arrangeGridToPortalRowVector (int col)

Public Attributes

bool autoPromote_

Protected Slots

void columnWidthChanged (int col)

Protected Member Functions

virtual bool eventFilter (QObject *, QEvent *)
virtual void drawContents (QPainter *qp, int clipx, int clipy, int clipw, int cliph)
bool writeCell ()
void editNextRow ()
void editNextColumn ()
void update ()
void goToEditNewCell ()
virtual void endEdit (int row, int col, bool accept, bool replace)
void arrangeColumns (TeAttrTableVector cTableVec)

Protected Attributes

TeDatabasedb_
TeAppThemetheme_
TeDatabasePortalportal_
string sqlJoin_
string orderBy_
string sql_
string CT_
string CTE_
vector< stringindexVector_
vector< TeTabletableVector_
bool editing_
bool doRefresh_
bool doRepaint_
bool shiftKeyPressed_
bool showGridInformation_
int uniqueIdPos_
int objectIdPos_
int resultIdPos_
int gridStatusPos_
int gridX_
int gridY_
int iLine_
int fLine_
int iCol_
int fCol_
int gridWidth_
int gridHeight_
int visibleLines_
int visibleCols_
long lastLinePressed_
long dragLineReleased_
map< string, ObjectInfoobjectMap_
map< string, stringunique2ObjectMap_
vector< int > gridToPortalRowVector_
vector< int > gridToPortalColVector_
vector< bool > gridColVisVector_
vector< stringportalRow2UniqueIdVector_
int rowToEdit_
int colToEdit_
bool verticalEdition_
QPopupMenu * popupHorizHeader_
QPopupMenu * popupVertHeader_
QPopupMenu * popupViewport_
bool columnDragEnabled_
bool mousePressedOnHorizontalHeader_

Constructor & Destructor Documentation

TeQtGrid::TeQtGrid ( QWidget *  parent = 0,
const char *  name = 0 
)
TeQtGrid::~TeQtGrid ( )

Member Function Documentation

void TeQtGrid::adjustColumns ( )
void TeQtGrid::arrangeColumns ( TeAttrTableVector  cTableVec) [protected]
void TeQtGrid::arrangeGridToPortalRowVector ( int  col)
void TeQtGrid::clear ( )
void TeQtGrid::clearGridInformation ( ) [signal]
void TeQtGrid::clearPortal ( )
void TeQtGrid::columnWidthChanged ( int  col) [protected, slot]
void TeQtGrid::deletePointedLines ( )
void TeQtGrid::displayGridInformation ( QString  ) [signal]
void TeQtGrid::drawContents ( QPainter *  qp,
int  clipx,
int  clipy,
int  clipw,
int  cliph 
) [protected, virtual]
void TeQtGrid::editNextColumn ( ) [protected]
void TeQtGrid::editNextRow ( ) [protected]
void TeQtGrid::endEdit ( int  row,
int  col,
bool  accept,
bool  replace 
) [protected, virtual]
bool TeQtGrid::eventFilter ( QObject *  o,
QEvent *  e 
) [protected, virtual]
TeTable & TeQtGrid::findTable ( int  col)
TeTable & TeQtGrid::findTable ( string  colName)
int TeQtGrid::getColumn ( int  col) [inline]
string TeQtGrid::getObject ( int  row)
TeDatabasePortal* TeQtGrid::getPortal ( ) [inline]
vector< int > TeQtGrid::getSelectedColumns ( )
TeAppTheme* TeQtGrid::getTheme ( ) [inline]
bool TeQtGrid::getVisColumn ( int  col)
void TeQtGrid::goToEditNewCell ( ) [protected]
void TeQtGrid::goToLastColumn ( )
void TeQtGrid::goToLastLine ( )
void TeQtGrid::gridChangedSignal ( ) [signal]
void TeQtGrid::gridInformation ( )
bool TeQtGrid::hasPointedLine ( )
void TeQtGrid::horizHeaderSignal ( int  ) [signal]
void TeQtGrid::init ( TeAppTheme theme)
void TeQtGrid::initPortal ( )
void TeQtGrid::insertObjectIntoCollection ( string  newId,
string  newTId = "" 
)
void TeQtGrid::invertSelectionSlot ( ) [slot]
bool TeQtGrid::isDateTimeRegistered ( int  col)
bool TeQtGrid::isExternalTable ( int  col)
bool TeQtGrid::isIndex ( int  col)
bool TeQtGrid::isSortBy ( int  col)
bool TeQtGrid::isVerticalEdition ( ) [inline]
void TeQtGrid::linkTable ( string  ,
string  ,
string   
) [signal]
void TeQtGrid::mouseReleasedOnVerticalHeaderSlot ( int  lin) [slot]
QPopupMenu* TeQtGrid::popupHorizHeader ( ) [inline]
QPopupMenu* TeQtGrid::popupVertHeader ( ) [inline]
QPopupMenu* TeQtGrid::popupViewport ( ) [inline]
void TeQtGrid::promotePointedObjectsSlot ( ) [slot]
void TeQtGrid::promoteQueriedObjectsSlot ( ) [slot]
void TeQtGrid::putColorOnGrid ( set< string uniqueIdSet,
set< string objectIdSet,
string  operation,
string  attrQuery = "" 
)
void TeQtGrid::putColorOnObject ( TeAppTheme ,
set< string > &   
) [signal]
void TeQtGrid::refresh ( )
void TeQtGrid::removePointingColorSlot ( ) [slot]
void TeQtGrid::removeQueryColorSlot ( ) [slot]
void TeQtGrid::scrollToNextPointedObjectSlot ( ) [slot]
void TeQtGrid::scrollToNextQueriedObjectSlot ( ) [slot]
void TeQtGrid::scrollToPrevPointedObjectSlot ( ) [slot]
void TeQtGrid::scrollToPrevQueriedObjectSlot ( ) [slot]
void TeQtGrid::setVerticalEdition ( bool  flag)
void TeQtGrid::setVisColumn ( bool  vis,
int  col = -1 
)
bool TeQtGrid::showGridInformation ( ) [inline]
void TeQtGrid::showGridInformation ( bool  b) [inline]
void TeQtGrid::sort ( vector< int >  cols,
string  order 
) [slot]
void TeQtGrid::sortAscOrderSlot ( ) [slot]
void TeQtGrid::sortDescOrderSlot ( ) [slot]
void TeQtGrid::swapColumns ( int  col1 = -1,
int  col2 = -1 
)
void TeQtGrid::update ( ) [protected]
void TeQtGrid::updatePortalContents ( )
void TeQtGrid::vertHeaderLeftDblClickSignal ( int  ) [signal]
void TeQtGrid::vertHeaderSignal ( int  ) [signal]
void TeQtGrid::viewportSignal ( ) [signal]
bool TeQtGrid::writeCell ( ) [protected]

Member Data Documentation

int TeQtGrid::colToEdit_ [protected]
bool TeQtGrid::columnDragEnabled_ [protected]
string TeQtGrid::CT_ [protected]
string TeQtGrid::CTE_ [protected]
TeDatabase* TeQtGrid::db_ [protected]
bool TeQtGrid::doRefresh_ [protected]
bool TeQtGrid::doRepaint_ [protected]
long TeQtGrid::dragLineReleased_ [protected]
bool TeQtGrid::editing_ [protected]
int TeQtGrid::fCol_ [protected]
int TeQtGrid::fLine_ [protected]
vector<bool> TeQtGrid::gridColVisVector_ [protected]
int TeQtGrid::gridHeight_ [protected]
int TeQtGrid::gridStatusPos_ [protected]
vector<int> TeQtGrid::gridToPortalColVector_ [protected]
vector<int> TeQtGrid::gridToPortalRowVector_ [protected]
int TeQtGrid::gridWidth_ [protected]
int TeQtGrid::gridX_ [protected]
int TeQtGrid::gridY_ [protected]
int TeQtGrid::iCol_ [protected]
int TeQtGrid::iLine_ [protected]
vector<string> TeQtGrid::indexVector_ [protected]
long TeQtGrid::lastLinePressed_ [protected]
int TeQtGrid::objectIdPos_ [protected]
QPopupMenu* TeQtGrid::popupHorizHeader_ [protected]
QPopupMenu* TeQtGrid::popupVertHeader_ [protected]
QPopupMenu* TeQtGrid::popupViewport_ [protected]
int TeQtGrid::resultIdPos_ [protected]
int TeQtGrid::rowToEdit_ [protected]
bool TeQtGrid::shiftKeyPressed_ [protected]
string TeQtGrid::sql_ [protected]
vector<TeTable> TeQtGrid::tableVector_ [protected]
int TeQtGrid::uniqueIdPos_ [protected]
bool TeQtGrid::verticalEdition_ [protected]
int TeQtGrid::visibleCols_ [protected]
int TeQtGrid::visibleLines_ [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines