Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages   Examples  

QdbtSelection Class Reference

Encapsulation of a tabular's selection state. More...

Inheritance diagram for QdbtSelection:

Inheritance graph
[legend]
Collaboration diagram for QdbtSelection:

Collaboration graph
[legend]
List of all members.

Public Types

enum  change_t {
  SINGLE_ROW_INSERT, SINGLE_ROW_DELETE, SINGLE_COL_INSERT, SINGLE_COL_DELETE,
  DIMENSION_SET
}

Signals

void signalCellSelected (int, int, bool)
void signalRowSelected (int, bool)

Public Methods

virtual ~QdbtSelection ()
virtual bool cellSelected (int row, int col)=0
virtual bool cellSelectable (int row, int col)=0
virtual void setCellSelected (int row, int col, bool sel)=0
virtual void setCellSelectable (int row, int col, bool sel)=0
virtual void setSelection (bool state)
virtual void tableChanged (change_t op, int row, int col)
virtual void keyEvent (QKeyEvent &, int row, int col)
virtual void mouseEvent (QMouseEvent &, int row, int col)
virtual void dump ()
 event (QEvent *)
 eventFilter (QObject *, QEvent *)
 metaObject () const
 className () const
 isA (const char *) const
 inherits (const char *) const
 name () const
 name (const char *defaultName) const
 setName (const char *name)
 isWidgetType () const
 highPriority () const
 signalsBlocked () const
 blockSignals (bool b)
 startTimer (int interval)
 killTimer (int id)
 killTimers ()
 child (const char *name, const char *type=0)
 children () const
 queryList (const char *inheritsClass=0, const char *objName=0, bool regexpMatch=TRUE, bool recursiveSearch=TRUE)
 insertChild (QObject *)
 removeChild (QObject *)
 installEventFilter (const QObject *)
 removeEventFilter (const QObject *)
 connect (const QObject *sender, const char *signal, const char *member) const
 connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 disconnect (const QObject *receiver, const char *member=0)
 disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 dumpObjectTree ()
 dumpObjectInfo ()
 setProperty (const char *name, const QVariant &value)
 property (const char *name) const
 parent () const
 destroyed ()
 tr (const char *)
 tr (const char *, const char *)
 objectTrees ()
 receivers (const char *signal) const
 activate_signal (const char *signal, short)
 activate_signal (const char *signal, int)
 activate_signal (const char *signal, long)
 activate_signal (const char *signal, const char *)
 activate_signal_bool (const char *signal, bool)
 activate_signal_string (const char *signal, QString)
 activate_signal_strref (const char *signal, const QString &)
 sender ()
 initMetaObject ()
 timerEvent (QTimerEvent *)
 childEvent (QChildEvent *)
 connectNotify (const char *signal)
 disconnectNotify (const char *signal)
 checkConnectArgs (const char *signal, const QObject *receiver, const char *member)
 staticMetaObject ()
 normalizeSignalSlot (const char *signalSlot)
 badSuperclassWarning (const char *className, const char *superclassName)
 qt_find_obj_child (QObject *parent, const char *type, const char *name)
 ButtonState {NoButton=0x0000, LeftButton=0x0001, RightButton=0x0002, MidButton=0x0004, MouseButtonMask=0x0007, ShiftButton=0x0008, ControlButton=0x0010, AltButton=0x0020, KeyButtonMask=0x0038, Keypad=0x4000}
 Orientation {Horizontal, Vertical}
 AlignmentFlags {AlignLeft=0x0001, AlignRight=0x0002, AlignHCenter=0x0004, AlignTop=0x0008, AlignBottom=0x0010, AlignVCenter=0x0020, AlignCenter=AlignVCenter|AlignHCenter, SingleLine=0x0040, DontClip=0x0080, ExpandTabs=0x0100, ShowPrefix=0x0200, WordBreak=0x0400, DontPrint=0x1000}
 WidgetFlags {WType_TopLevel=0x00000001, WType_Modal=0x00000002, WType_Popup=0x00000004, WType_Desktop=0x00000008, WType_Mask=0x0000000f, WStyle_Customize=0x00000010, WStyle_NormalBorder=0x00000020, WStyle_DialogBorder=0x00000040, WStyle_NoBorder=0x00000000, WStyle_Title=0x00000080, WStyle_SysMenu=0x00000100, WStyle_Minimize=0x00000200, WStyle_Maximize=0x00000400, WStyle_MinMax=WStyle_Minimize|WStyle_Maximize, WStyle_Tool=0x00000800, WStyle_StaysOnTop=0x00001000, WStyle_Dialog=0x00002000, WStyle_ContextHelp=0x00004000, WStyle_NoBorderEx=0x00008000, WStyle_Mask=0x0000fff0, WDestructiveClose=0x00010000, WPaintDesktop=0x00020000, WPaintUnclipped=0x00040000, WPaintClever=0x00080000, WResizeNoErase=0x00100000, WMouseNoMask=0x00200000, WNorthWestGravity=0x00400000, WRepaintNoErase=0x00800000, WX11BypassWM=0x01000000, WGroupLeader=0x02000000}
 RasterOp {CopyROP, OrROP, XorROP, NotAndROP, EraseROP=NotAndROP, NotCopyROP, NotOrROP, NotXorROP, AndROP, NotEraseROP=AndROP, NotROP, ClearROP, SetROP, NopROP, AndNotROP, OrNotROP, NandROP, NorROP, LastROP=NorROP}
 PenStyle {NoPen, SolidLine, DashLine, DotLine, DashDotLine, DashDotDotLine, MPenStyle=0x0f}
 PenCapStyle {FlatCap=0x00, SquareCap=0x10, RoundCap=0x20, MPenCapStyle=0x30}
 PenJoinStyle {MiterJoin=0x00, BevelJoin=0x40, RoundJoin=0x80, MPenJoinStyle=0xc0}
 TextFormat {PlainText, RichText, AutoText}
 QPainter ()
 QStyleSheet ().
 QStyleSheet () returns TRUE, otherwise as for

Protected Methods

 QdbtSelection (QdbtBaseTabular *t)
void repaintCell (int row, int col)
QdbtBaseTabularcontext () const

Detailed Description

Encapsulation of a tabular's selection state.

Thie class describes the interface for classes containing information about the tabular's selection.


Member Enumeration Documentation

enum QdbtSelection::change_t
 

Chause for a change of the table's geometry

Enumeration values:
SINGLE_ROW_INSERT  As single row has been inserted
SINGLE_ROW_DELETE  As single row has been removed
SINGLE_COL_INSERT  As single column has been inserted
SINGLE_COL_DELETE  As single column has been removed
DIMENSION_SET  The table's geometry has been set explicitly


Constructor & Destructor Documentation

QdbtSelection::~QdbtSelection   [virtual]
 

Destructor for the selection instance

QdbtSelection::QdbtSelection QdbtBaseTabular   ctx [protected]
 

The Constructor creates a QdbtSelection instance for the tabular widget context.

Warning:
Please do not forget to inform this selection on the size of the tabular after creating it (if the tabular already has a size different from 0x0). This can either be done by the surrounding program or by adding the command as the last line of the constructor of the derived class.


Member Function Documentation

bool QdbtSelection::cellSelectable int    row,
int    col
[pure virtual]
 

Query of the cell at position row, col is selectable.

Implemented in QdbtSingleCellSelection, QdbtCellSelection, QdbtRowSelection, and QdbtSingleRowSelection.

bool QdbtSelection::cellSelected int    row,
int    col
[pure virtual]
 

The tabular components use this member function to query, if the cell at row, col is selected or not.

Implemented in QdbtSingleCellSelection, QdbtCellSelection, QdbtRowSelection, and QdbtSingleRowSelection.

QdbtBaseTabular * QdbtSelection::context   const [protected]
 

Retrieves the context() (pointer the tabular widget instance) for this selection

void QdbtSelection::dump   [virtual]
 

Dump servers to print the content of a selection object to stderr. The default implementation prints selection-state and selectability as accessed by cellSelected() and cellSelectable().

Reimplemented in QdbtRowSelection, and QdbtSingleRowSelection.

void QdbtSelection::keyEvent QKeyEvent   e,
int    row,
int    col
[virtual]
 

Notifies the selection class on a key event happened at row, col. The description of the event is passed as \e.

Reimplemented in QdbtSingleCellSelection, QdbtCellSelection, QdbtRowSelection, and QdbtSingleRowSelection.

void QdbtSelection::mouseEvent QMouseEvent   e,
int    row,
int    col
[virtual]
 

Notifies the selection class on a mouse event happened at row, col. The description of the event is passed as \e.

Reimplemented in QdbtSingleCellSelection, QdbtCellSelection, QdbtRowSelection, and QdbtSingleRowSelection.

void QdbtSelection::repaintCell int    row,
int    col
[protected]
 

This member ensures that the cell at row, col is being repainted. A customized QdbtSelection-class may use this member function, if a cell has changed its selection state.

void QdbtSelection::setCellSelectable int    row,
int    col,
bool    sel
[pure virtual]
 

Set if the cell at position row, col is selectable or not to sel.

Implemented in QdbtSingleCellSelection, QdbtCellSelection, QdbtRowSelection, and QdbtSingleRowSelection.

void QdbtSelection::setCellSelected int    row,
int    col,
bool    sel
[pure virtual]
 

Set the selection state of the cell at position row, col to sel.

Implemented in QdbtSingleCellSelection, QdbtCellSelection, QdbtRowSelection, and QdbtSingleRowSelection.

void QdbtSelection::setSelection bool    state [virtual]
 

Set the table's complete selection (if possible) to state.

The base implementation does this by setting the selection state of each individual cell to the state given.

void QdbtSelection::signalCellSelected int   ,
int   ,
bool   
[signal]
 

This signal may be used to have the table component, which is managing this selection object, emit the signal QdbtBaseTabular::cellSelected(int,int,bool)

This signal is used to inform other components of the programm, that a selection state of the table has changed.

void QdbtSelection::signalRowSelected int   ,
bool   
[signal]
 

This signal may be used to have the table component, which is managing this selection object, emit the signal QdbtBaseTabular::selected(int,bool)

This signal is used to inform other components of the programm, that a selection state of the table has changed.

void QdbtSelection::tableChanged change_t    op,
int    row,
int    col
[virtual]
 

This function is being called whenever the table's geometry is being changed. The reason op as well as affected row and/or col is being passed.


The documentation for this class was generated from the following files:
Generated on Mon Apr 22 12:22:00 2002 for QdbtTabular by doxygen1.2.15-20020421