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

QdbtCellSelection Class Reference

A cell-oriented selection schema. More...

Inheritance diagram for QdbtCellSelection:

Inheritance graph
[legend]
Collaboration diagram for QdbtCellSelection:

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

 QdbtCellSelection (QdbtBaseTabular *)
virtual ~QdbtCellSelection ()
virtual bool cellSelected (int row, int col)
virtual bool cellSelectable (int row, int col)
virtual void setCellSelected (int row, int col, bool sel)
virtual void setCellSelectable (int row, int col, bool sel)
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 setSelection (bool state)
virtual void tableChanged (change_t op, 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

void repaintCell (int row, int col)
QdbtBaseTabularcontext () const

Detailed Description

A cell-oriented selection schema.
Examples:

example5.cpp.


Member Enumeration Documentation

enum QdbtSelection::change_t [inherited]
 

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

QdbtCellSelection::QdbtCellSelection QdbtBaseTabular   ctx
 

Construct a cell selection object for the tabular context.

QdbtCellSelection::~QdbtCellSelection   [virtual]
 

Destroy the selection object


Member Function Documentation

bool QdbtCellSelection::cellSelectable int    row,
int    col
[virtual]
 

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

Implements QdbtSelection.

bool QdbtCellSelection::cellSelected int    row,
int    col
[virtual]
 

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

Implements QdbtSelection.

QdbtBaseTabular * QdbtSelection::context   const [protected, inherited]
 

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

void QdbtSelection::dump   [virtual, inherited]
 

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 QdbtCellSelection::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 from QdbtSelection.

void QdbtCellSelection::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 from QdbtSelection.

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

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 QdbtCellSelection::setCellSelectable int    row,
int    col,
bool    sel
[virtual]
 

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

Implements QdbtSelection.

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

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

Implements QdbtSelection.

void QdbtSelection::setSelection bool    state [virtual, inherited]
 

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, inherited]
 

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, inherited]
 

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, inherited]
 

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.

void QdbtCellSelection::tableChanged QdbtSelection::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:21:56 2002 for QdbtTabular by doxygen1.2.15-20020421