![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXTable.h>
Inheritance diagram for FX::FXTable:
Public Methods | |
FXTable (FXComposite *p, FXint nr, FXint nc, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_MARGIN, FXint pr=DEFAULT_MARGIN, FXint pt=DEFAULT_MARGIN, FXint pb=DEFAULT_MARGIN) | |
virtual void | create () |
Create the server-side resources. | |
virtual void | detach () |
Detach the server-side resources. | |
virtual void | recalc () |
Mark this window's layout as dirty. | |
virtual FXbool | canFocus () const |
Table widget can receive focus. | |
virtual void | setFocus () |
Move the focus to this window. | |
virtual void | killFocus () |
Remove the focus from this window. | |
void | setVisibleRows (FXint nvrows) |
Change visible rows/columns. | |
FXint | getVisibleRows () const |
void | setVisibleColumns (FXint nvcols) |
FXint | getVisibleColumns () const |
void | showHorzGrid (FXbool on=TRUE) |
Show or hide horizontal grid. | |
FXbool | isHorzGridShown () const |
Is horizontal grid shown. | |
void | showVertGrid (FXbool on=TRUE) |
Show or hide vertical grid. | |
FXbool | isVertGridShown () const |
Is vertical grid shown. | |
virtual FXint | getDefaultWidth () |
Return default width. | |
virtual FXint | getDefaultHeight () |
Return default height. | |
virtual FXint | getContentWidth () |
Compute content size. | |
virtual FXint | getContentHeight () |
virtual void | moveContents (FXint x, FXint y) |
Scroll contents. | |
void | setTableSize (FXint nr, FXint nc, FXbool notify=FALSE) |
Resize the table content to nr rows and nc columns. | |
FXint | getNumRows () const |
Get number of rows. | |
FXint | getNumColumns () const |
Get number of columns. | |
void | setMarginTop (FXint pt) |
Change top cell margin. | |
FXint | getMarginTop () const |
Return top cell margin. | |
void | setMarginBottom (FXint pb) |
Change bottom cell margin. | |
FXint | getMarginBottom () const |
Return bottom cell margin. | |
void | setMarginLeft (FXint pl) |
Change left cell margin. | |
FXint | getMarginLeft () const |
Return left cell margin. | |
void | setMarginRight (FXint pr) |
Change right cell margin. | |
FXint | getMarginRight () const |
Return right cell margin. | |
FXuint | getTableStyle () const |
Change table style. | |
void | setTableStyle (FXuint style) |
virtual void | setLeadingRows (FXint leadrows) |
Get/set leading rows. | |
FXint | getLeadingRows () const |
virtual void | setLeadingColumns (FXint leadcols) |
Get/set leading columns. | |
FXint | getLeadingColumns () const |
virtual void | setTrailingRows (FXint trailrows) |
Get/set trailing rows. | |
FXint | getTrailingRows () const |
virtual void | setTrailingColumns (FXint trailcols) |
Get/set trailing columns. | |
FXint | getTrailingColumns () const |
FXint | rowAtY (FXint y) const |
Determine row containing y; returns -1 if y outside of table. | |
FXint | colAtX (FXint x) const |
Determine column containing x; returns -1 if x outside of table. | |
FXTableItem * | getItem (FXint row, FXint col) const |
Return the item at the given index. | |
void | setItem (FXint row, FXint col, FXTableItem *item, FXbool notify=FALSE) |
Replace the item with a [possibly subclassed] item. | |
virtual void | insertRows (FXint row, FXint nr=1, FXbool notify=FALSE) |
Insert new row. | |
virtual void | insertColumns (FXint col, FXint nc=1, FXbool notify=FALSE) |
Insert new column. | |
virtual void | removeRows (FXint row, FXint nr=1, FXbool notify=FALSE) |
Remove rows of cells. | |
virtual void | removeColumns (FXint col, FXint nc=1, FXbool notify=FALSE) |
Remove column of cells. | |
virtual void | removeItem (FXint row, FXint col, FXbool notify=FALSE) |
Remove single cell. | |
virtual void | clearItems (FXbool notify=FALSE) |
Remove all items from table. | |
void | makePositionVisible (FXint r, FXint c) |
Scroll to make cell at r,c fully visible. | |
void | setColumnWidth (FXint col, FXint cwidth) |
Change column width. | |
FXint | getColumnWidth (FXint col) const |
void | setRowHeight (FXint row, FXint rheight) |
Change row height. | |
FXint | getRowHeight (FXint row) const |
void | setColumnX (FXint col, FXint x) |
Change X coordinate of column c. | |
FXint | getColumnX (FXint col) const |
void | setRowY (FXint row, FXint y) |
Change Y coordinate of row r. | |
FXint | getRowY (FXint row) const |
void | setDefColumnWidth (FXint cwidth) |
Change default column width. | |
FXint | getDefColumnWidth () const |
void | setDefRowHeight (FXint rheight) |
Change default row height. | |
FXint | getDefRowHeight () const |
void | setItemText (FXint r, FXint c, const FXString &text) |
Modify cell text. | |
FXString | getItemText (FXint r, FXint c) const |
void | setItemIcon (FXint r, FXint c, FXIcon *icon) |
Modify cell icon. | |
FXIcon * | getItemIcon (FXint r, FXint c) const |
void | setItemData (FXint r, FXint c, void *ptr) |
Modify cell user-data. | |
void * | getItemData (FXint r, FXint c) const |
FXbool | isItemSelected (FXint r, FXint c) const |
Is cell selected, current, visible, enabled. | |
FXbool | isItemCurrent (FXint r, FXint c) const |
FXbool | isItemVisible (FXint r, FXint c) const |
FXbool | isItemEnabled (FXint r, FXint c) const |
void | setItemButton (FXint r, FXint c, FXbool button=TRUE) |
Make item into a button item. | |
FXbool | isItemButton (FXint r, FXint c) const |
Is item a button item. | |
void | setItemPressed (FXint r, FXint c, FXbool pressed=TRUE) |
Changed button item's pressed state. | |
FXbool | isItemPressed (FXint r, FXint c) const |
Return TRUE if button item is pressed in. | |
void | updateRange (FXint sr, FXint er, FXint sc, FXint ec) const |
Repaint cells between grid lines sr,er and grid lines sc,ec. | |
void | updateItem (FXint r, FXint c) const |
Repaint cell at r,c. | |
FXbool | enableItem (FXint r, FXint c) |
Enable item. | |
FXbool | disableItem (FXint r, FXint c) |
Disable item. | |
FXbool | selectItem (FXint r, FXint c, FXbool notify=FALSE) |
Select item. | |
FXbool | deselectItem (FXint r, FXint c, FXbool notify=FALSE) |
Deselect item. | |
FXbool | toggleItem (FXint r, FXint c, FXbool notify=FALSE) |
Toggle item. | |
void | setCurrentItem (FXint r, FXint c, FXbool notify=FALSE) |
Change current item. | |
FXint | getCurrentRow () const |
Get row number of current item. | |
FXint | getCurrentColumn () const |
Get column number of current item. | |
void | setAnchorItem (FXint r, FXint c) |
Change anchor item. | |
FXint | getAnchorRow () const |
Get row number of anchor item. | |
FXint | getAnchorColumn () const |
Get column number of anchor item. | |
FXbool | selectRange (FXint sr, FXint er, FXint sc, FXint ec, FXbool notify=FALSE) |
Select range. | |
FXbool | extendSelection (FXint r, FXint c, FXbool notify=FALSE) |
Extend selection. | |
FXbool | killSelection (FXbool notify=FALSE) |
Kill selection. | |
void | setFont (FXFont *fnt) |
Change font. | |
FXFont * | getFont () const |
FXColor | getTextColor () const |
Obtain colors of various parts. | |
FXColor | getBaseColor () const |
FXColor | getHiliteColor () const |
FXColor | getShadowColor () const |
FXColor | getBorderColor () const |
FXColor | getSelBackColor () const |
FXColor | getSelTextColor () const |
FXColor | getGridColor () const |
FXColor | getStippleColor () const |
FXColor | getCellBorderColor () const |
void | setTextColor (FXColor clr) |
Change colors of various parts. | |
void | setBaseColor (FXColor clr) |
void | setHiliteColor (FXColor clr) |
void | setShadowColor (FXColor clr) |
void | setBorderColor (FXColor clr) |
void | setSelBackColor (FXColor clr) |
void | setSelTextColor (FXColor clr) |
void | setGridColor (FXColor clr) |
void | setStippleColor (FXColor clr) |
void | setCellBorderColor (FXColor clr) |
void | setCellColor (FXint r, FXint c, FXColor clr) |
Change cell background color for even/odd rows/columns. | |
FXColor | getCellColor (FXint r, FXint c) const |
Obtain cell background color for even/odd rows/columns. | |
void | setCellBorderWidth (FXint borderwidth) |
Change cell border width. | |
FXint | getCellBorderWidth () const |
Return cell border width. | |
void | setHelpText (const FXString &text) |
Change help text. | |
const FXString & | getHelpText () const |
virtual void | save (FXStream &store) const |
Serialize. | |
virtual void | load (FXStream &store) |
Restore window from stream. | |
virtual | ~FXTable () |
Static Public Attributes | |
FXDragType | csvType |
const FXchar | csvTypeName [] |
See also:
|
Make new table with nr visible rows and nc visible columns; the table is initially empty, i.e. contains no cells (nrows=0, ncols=0) |