ICS

QicsTable Documentation Set

QicsSelectionManager Class Reference

#include <QicsSelectionManager.h>

Inherits Qics.

List of all members.

Public Types

enum  QicsSortMode { QicsStableSort = 0, QicsQuickSort }
enum  QicsCellOverflowBehavior { Clip = 0, Overflow, ToolTip }
enum  QicsCurrentCellStyle { Spreadsheet = 0, NormalSelected }
enum  QicsGridCellClipping { AllowPartial = 0, NoDisplayOnPartial, UseClippedSymbol }
enum  QicsGridType { TableGrid = 0, RowHeaderGrid, ColumnHeaderGrid }
enum  QicsHeaderType { RowHeader = 0, ColumnHeader }
enum  QicsIndexType { RowIndex, ColumnIndex }
enum  QicsLineStyle { None = 0, Plain, Raised, Sunken }
enum  QicsRepaintBehavior { RepaintOff = 0, RepaintOn = 1, RepaintCalcOnly = 2 }
enum  QicsScrollBarMode { Auto = 0, AlwaysOff, AlwaysOn }
enum  QicsScrollDirection {
  ScrollNone = 0, ScrollUp, ScrollDown, ScrollLeft,
  ScrollRight, ScrollToRow, ScrollToColumn
}
enum  QicsSelectionPolicy {
  SelectNone = 0, SelectSingle, SelectMultiple, SelectSingleRow,
  SelectMultipleRow
}
enum  QicsSelectionType {
  SelectionNone = 0, SelectionBegin, SelectionDrag, SelectionEnd,
  SelectionExtend, SelectionAdd
}
enum  QicsSortOrder { Ascending = 0, Descending }
enum  QicsTableDisplayOption { DisplayNever = 0, DisplayAlways, DisplayFirstPage }
enum  QicsTraversalKeyEditBehavior { TraverseWithinCell = 0, TraverseBetweenCells }

Public Slots

void orderChanged (QicsIndexType, QMemArray< int >)
void deleteRows (int num, int start_position)
void deleteColumns (int num, int start_position)

Signals

void selectionListChanged (bool in_progress)
void selectionCellsChanged (QicsRegion)
void rowSelected (int row, bool selected)
void columnSelected (int col, bool selected)

Public Member Functions

 QicsSelectionManager ()
virtual ~QicsSelectionManager (void)
QicsDataModeldataModel (void) const
void setDataModel (QicsDataModel *sm)
QicsStyleManagerstyleManager (void) const
void setStyleManager (QicsStyleManager *sm)
void setGridInfo (QicsGridInfo *)
void addHeader (QicsHeaderGrid *hdr)
void removeHeader (QObject *hdr)
QicsSelectionListselectionList (void) const
void setSelectionList (const QicsSelectionList &sel_list)
void clearSelectionList (void)
QicsSelectionListselectionActionList (void) const
void addSelection (QicsSelection &selection)
QicsSelectionPolicy selectionPolicy (void) const
void setSelectionPolicy (QicsSelectionPolicy policy)
void processSelectionEvent (QicsSelectionType stype, int begin_row, int begin_col, int end_row, int end_col)
bool canSelectMultiple (void) const

Protected Types

enum  QicsSelectState { QicsSelectFalse, QicsSelectTrue, QicsSelectFalseRevert, QicsSelectTrueRevert }
typedef QValueVector< QicsGrid * > QicsGridPV
typedef QValueVector< QicsHeaderGrid * > QicsHeaderGridPV

Protected Member Functions

void beginSelection (int begin_row, int begin_col, int end_row, int end_col)
void dragSelection (int begin_row, int begin_col, int end_row, int end_col)
void extendSelection (int begin_row, int begin_col, int end_row, int end_col)
void addSelection (int begin_row, int begin_col, int end_row, int end_col)
void endSelection (int begin_row, int begin_col, int end_row, int end_col)
void deleteSelection (void)
void invalidateSelection (int begin_row, int begin_col, int end_row, int end_col)
void setSelectionProperty (const QicsSelection &selection, QicsSelectionManager::QicsSelectState sel)
void setSelectionProperty (int begin_row, int begin_col, int end_row, int end_col, QicsSelectionManager::QicsSelectState sel)
void setRowSelectionProperty (QicsGridInfo &, int row, QicsSelectionManager::QicsSelectState sel, QicsStyleManager *sm)
void setColumnSelectionProperty (QicsGridInfo &, int col, QicsSelectionManager::QicsSelectState sel, QicsStyleManager *sm)
void addToSelectionList (QicsSelection &sel)
QicsSelectionfindSelectionBlock (int anchor_row, int anchor_col)
void announceChanges (bool in_progress)

Protected Attributes

QicsGridInfomyGridInfo
QicsStyleManagermyStyleManager
QicsDataModelmyDataModel
QicsSelection myCurrentSelection
QicsSelectState myCurrentDragAction
QicsSelectionListmySelectionList
QicsSelectionListmySelectionActionList
QicsHeaderGridPV myHeaderList
QicsRegion myAffectedRegion
QicsSelectionPolicy mySelectionPolicy
bool mySelectionChangedFlag


Member Typedef Documentation

typedef QValueVector<QicsGrid *> QicsSelectionManager::QicsGridPV [protected]

typedef QValueVector<QicsHeaderGrid *> QicsSelectionManager::QicsHeaderGridPV [protected]


Member Enumeration Documentation

enum QicsSelectionManager::QicsSelectState [protected]

Enumerator:
QicsSelectFalse 
QicsSelectTrue 
QicsSelectFalseRevert 
QicsSelectTrueRevert 

enum Qics::QicsSortMode [inherited]

Denotes the sort algorithm wich used

Enumerator:
QicsStableSort 
QicsQuickSort 

enum Qics::QicsCellOverflowBehavior [inherited]

Denotes the behavior of grids when handling cells whose contents cannot be displayed in the boundaries of the cell.

Enumerator:
Clip 
Overflow 
ToolTip 

enum Qics::QicsCurrentCellStyle [inherited]

Denotes the visual style that the current cell of the table will be drawn with.

Enumerator:
Spreadsheet 
NormalSelected 

enum Qics::QicsGridCellClipping [inherited]

Denotes the policy for displaying text that is too long to fit in its cell

Enumerator:
AllowPartial 
NoDisplayOnPartial 
UseClippedSymbol 

enum Qics::QicsGridType [inherited]

Specifies a type of grid object.

Enumerator:
TableGrid 
RowHeaderGrid 
ColumnHeaderGrid 

enum Qics::QicsHeaderType [inherited]

Specifies the type of table header.

Enumerator:
RowHeader 
ColumnHeader 

enum Qics::QicsIndexType [inherited]

Specifies the type of table index.

Enumerator:
RowIndex 
ColumnIndex 

enum Qics::QicsLineStyle [inherited]

Denotes the style of lines and borders in the table widget.

Enumerator:
None 
Plain 
Raised 
Sunken 

enum Qics::QicsRepaintBehavior [inherited]

Specifies the recalculation and repainting behavior of tables and grids.

Enumerator:
RepaintOff 
RepaintOn 
RepaintCalcOnly 

enum Qics::QicsScrollBarMode [inherited]

Specifies the various modes of QicsTable's scroll bars.

Enumerator:
Auto 
AlwaysOff 
AlwaysOn 

enum Qics::QicsScrollDirection [inherited]

Denotes a direction for scrolling operations, or that an absolute scroll should occur.

Enumerator:
ScrollNone 
ScrollUp 
ScrollDown 
ScrollLeft 
ScrollRight 
ScrollToRow 
ScrollToColumn 

enum Qics::QicsSelectionPolicy [inherited]

Denotes the selection policy for the table.

Enumerator:
SelectNone 
SelectSingle 
SelectMultiple 
SelectSingleRow 
SelectMultipleRow 

enum Qics::QicsSelectionType [inherited]

Enumerator:
SelectionNone 
SelectionBegin 
SelectionDrag 
SelectionEnd 
SelectionExtend 
SelectionAdd 

enum Qics::QicsSortOrder [inherited]

Specifies if ordering should be ascending or descending.

Enumerator:
Ascending 
Descending 

enum Qics::QicsTableDisplayOption [inherited]

Specifies a printing display policy for elements of the table

Enumerator:
DisplayNever 
DisplayAlways 
DisplayFirstPage 

enum Qics::QicsTraversalKeyEditBehavior [inherited]

Specifies the behavior of the traversal keys (left, right, up, down, etc) while editing a cell.

Enumerator:
TraverseWithinCell 
TraverseBetweenCells 


Constructor & Destructor Documentation

QicsSelectionManager::QicsSelectionManager (  ) 

virtual QicsSelectionManager::~QicsSelectionManager ( void   )  [virtual]


Member Function Documentation

QicsDataModel* QicsSelectionManager::dataModel ( void   )  const

void QicsSelectionManager::setDataModel ( QicsDataModel sm  ) 

QicsStyleManager* QicsSelectionManager::styleManager ( void   )  const

void QicsSelectionManager::setStyleManager ( QicsStyleManager sm  ) 

void QicsSelectionManager::setGridInfo ( QicsGridInfo  ) 

void QicsSelectionManager::addHeader ( QicsHeaderGrid hdr  ) 

void QicsSelectionManager::removeHeader ( QObject *  hdr  ) 

QicsSelectionList* QicsSelectionManager::selectionList ( void   )  const

void QicsSelectionManager::setSelectionList ( const QicsSelectionList sel_list  ) 

void QicsSelectionManager::clearSelectionList ( void   ) 

QicsSelectionList* QicsSelectionManager::selectionActionList ( void   )  const

void QicsSelectionManager::addSelection ( QicsSelection selection  ) 

QicsSelectionPolicy QicsSelectionManager::selectionPolicy ( void   )  const [inline]

void QicsSelectionManager::setSelectionPolicy ( QicsSelectionPolicy  policy  ) 

void QicsSelectionManager::processSelectionEvent ( QicsSelectionType  stype,
int  begin_row,
int  begin_col,
int  end_row,
int  end_col 
)

bool QicsSelectionManager::canSelectMultiple ( void   )  const

void QicsSelectionManager::selectionListChanged ( bool  in_progress  )  [signal]

void QicsSelectionManager::selectionCellsChanged ( QicsRegion   )  [signal]

void QicsSelectionManager::rowSelected ( int  row,
bool  selected 
) [signal]

void QicsSelectionManager::columnSelected ( int  col,
bool  selected 
) [signal]

void QicsSelectionManager::beginSelection ( int  begin_row,
int  begin_col,
int  end_row,
int  end_col 
) [protected]

void QicsSelectionManager::dragSelection ( int  begin_row,
int  begin_col,
int  end_row,
int  end_col 
) [protected]

void QicsSelectionManager::extendSelection ( int  begin_row,
int  begin_col,
int  end_row,
int  end_col 
) [protected]

void QicsSelectionManager::addSelection ( int  begin_row,
int  begin_col,
int  end_row,
int  end_col 
) [protected]

void QicsSelectionManager::endSelection ( int  begin_row,
int  begin_col,
int  end_row,
int  end_col 
) [protected]

void QicsSelectionManager::deleteSelection ( void   )  [protected]

void QicsSelectionManager::invalidateSelection ( int  begin_row,
int  begin_col,
int  end_row,
int  end_col 
) [protected]

void QicsSelectionManager::setSelectionProperty ( const QicsSelection selection,
QicsSelectionManager::QicsSelectState  sel 
) [protected]

void QicsSelectionManager::setSelectionProperty ( int  begin_row,
int  begin_col,
int  end_row,
int  end_col,
QicsSelectionManager::QicsSelectState  sel 
) [protected]

void QicsSelectionManager::setRowSelectionProperty ( QicsGridInfo ,
int  row,
QicsSelectionManager::QicsSelectState  sel,
QicsStyleManager sm 
) [protected]

void QicsSelectionManager::setColumnSelectionProperty ( QicsGridInfo ,
int  col,
QicsSelectionManager::QicsSelectState  sel,
QicsStyleManager sm 
) [protected]

void QicsSelectionManager::addToSelectionList ( QicsSelection sel  )  [protected]

QicsSelection& QicsSelectionManager::findSelectionBlock ( int  anchor_row,
int  anchor_col 
) [protected]

void QicsSelectionManager::announceChanges ( bool  in_progress  )  [protected]

void QicsSelectionManager::orderChanged ( QicsIndexType  ,
QMemArray< int >   
) [slot]

void QicsSelectionManager::deleteRows ( int  num,
int  start_position 
) [slot]

void QicsSelectionManager::deleteColumns ( int  num,
int  start_position 
) [slot]


Member Data Documentation

QicsGridInfo* QicsSelectionManager::myGridInfo [protected]

QicsStyleManager* QicsSelectionManager::myStyleManager [protected]

QicsDataModel* QicsSelectionManager::myDataModel [protected]

QicsSelection QicsSelectionManager::myCurrentSelection [protected]

QicsSelectState QicsSelectionManager::myCurrentDragAction [protected]

QicsSelectionList* QicsSelectionManager::mySelectionList [protected]

QicsSelectionList* QicsSelectionManager::mySelectionActionList [protected]

QicsHeaderGridPV QicsSelectionManager::myHeaderList [protected]

QicsRegion QicsSelectionManager::myAffectedRegion [protected]

QicsSelectionPolicy QicsSelectionManager::mySelectionPolicy [protected]

bool QicsSelectionManager::mySelectionChangedFlag [protected]


The documentation for this class was generated from the following file:

All trademarks and copyrights on this page are properties of their respective owners.
The rest is copyright 1999-2006 Integrated Computer Solutions, Inc.