|
|
A multi column listbox Features: - User resizeable columns. - The order of columns can be changed with drag&drop. (Alex) - 3 modes: Standard, SimpleOrder, ComplexOrder. (Alex) ToDo: - Configurable vertical column divisor lines. - Save all setting to config file. - fix flickering into column headers.
enum |
enum |
enum |
|
~ |
[virtual]
void |
This enable the key-bindings (and set StrongFocus!) if you don't want StrongFocus you can implement your own keyPressEvent and send an event to KTabListBox from there...
uint |
[const]
Returns the number of rows
void |
[virtual]
Insert a line before given index, using the separator character to separate the fields. If no index is given the line is appended at the end. Returns index of inserted item.
void |
Append a QStrList
void |
Same as insertItem, but always appends the new item.
void |
[virtual]
Change contents of a line using the separator character to separate the fields.
void |
[virtual]
Change part of the contents of a line.
void |
[virtual]
Change color of line. Changes last inserted item when itemIndex==-1
int |
[const]
Get number of pixels one tab character stands for. Default: 10
void |
[virtual]
Set number of pixels one tab character stands for. Default: 10
const QString& |
[const]
Returns contents of given row/column. If col is not set the contents of the whole row is returned, seperated with the current seperation character. In this case the string returned is a temporary string that will change on the next text() call on any KTabListBox object.
void |
[virtual]
Remove one item from the list.
void |
[virtual]
Remove contents of listbox
int |
[const]
Return index of current item
void |
[virtual]
Set the current (selected) column. colId is the value that is transfered with the selected() signal that is emited.
void |
[virtual]
Unmark all items
void |
[virtual]
Mark/unmark item with index idx.
void |
[virtual]
bool |
[const virtual]
Returns TRUE if item with given index is marked.
int |
[const]
Find item at given screen y position.
int |
[const]
Returns first item that is currently displayed in the widget.
void |
Change first displayed item by repositioning the visible part of the list.
void |
[virtual]
Set number of columns. Warning: this *deletes* the contents of the listbox.
void |
[virtual]
Set number of rows in the listbox. The contents stays as it is.
int |
[const]
See the docs for the QTableView class.
int |
[const]
See the docs for the QTableView class.
int |
See the docs for the QTableView class.
int |
See the docs for the QTableView class.
int |
See the docs for the QTableView class.
int |
See the docs for the QTableView class.
int |
[const]
See the docs for the QTableView class.
int |
[const]
See the docs for the QTableView class.
int |
[const]
See the docs for the QTableView class.
int |
[const]
See the docs for the QTableView class.
bool |
[const]
See the docs for the QTableView class.
void |
See the docs for the QTableView class.
void |
See the docs for the QTableView class.
uint |
See the docs for the QTableView class.
bool |
See the docs for the QTableView class.
void |
See the docs for the QTableView class.
int |
See the docs for the QTableView class.
int |
See the docs for the QTableView class.
bool |
See the docs for the QTableView class.
bool |
See the docs for the QTableView class.
void |
[virtual]
This call the 'compar' functions if they were been defined in setColumn or else use strcmp. (i.e. if you want a case-insensitive sort put strcasecmp in setColumn call). That compar function must take as arguments two char *, and must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
void |
[virtual]
Set column caption, width, type,order-type and order-mode
void |
[virtual]
Set column width.
int |
Get column width.
void |
[virtual]
Set default width of all columns.
void |
change the Ascending/Descending mode of column col.
void |
Clear all number-check-buttons (ComplexOrder only)
void |
[virtual]
Set separator character, e.g. '\t'.
char |
[const virtual]
Return separator character.
KTabListBoxDict& |
For convenient access to the dictionary of pictures that this listbox understands.
void |
bool |
Indicates that a drag has started with given item. Returns TRUE if we are dragging, FALSE if drag-start failed.
Reimplemented from KDNDWidget.
QPixmap& |
void |
[virtual]
Read the config file entries in the group with the name of the listbox and set the default column widths and those.
void |
[virtual]
Write the config file entries in the group with the name of the listbox
int |
Return the actual position of the colum in the table.
int |
Return the actual positon of the row number num.
const QFont& |
[const]
Get/set font of the table. font() and setFont() apply to the caption only.
void |
void |
[signal]
emited when the current item changes (either via setCurrentItem() or via mouse single-click).
void |
[signal]
emitted when the user double-clicks into a line.
void |
[signal]
emitted when the user presses the right mouse button over a line.
void |
[signal]
emitted when the user presses the middle mouse button over a line.
void |
[signal]
emitted when the user clicks on a column header.
void |
[protected slot]
void |
[protected slot]
KTabListBoxColumn* |
[protected virtual]
Used to create new column objects. Overwrite this method in a subclass to have your own column objects (e.g. with custom data in it). You will then also need customData()/setCustomData() methods in here that access the elememts in itemList[].
bool |
[protected]
void |
[protected]
bool |
[protected]
void |
[protected]
void |
[protected]
void |
[protected]
bool |
[protected]
KTabListBoxItem* |
[protected]
const KTabListBoxItem* |
[protected const]
void |
[protected virtual]
void |
[protected virtual]
void |
[protected virtual]
void |
[protected virtual]
Reimplemented from KDNDWidget.
void |
[protected virtual]
void |
[protected virtual]
Reimplemented from KDNDWidget.
void |
[protected virtual]
Resize item array. Per default enlarge it to double size.
bool |
[protected virtual]
Called to set drag data, size, and type. If this method returns FALSE then no drag occurs.
void |
[protected virtual]
Internal method that handles resizing of columns with the mouse.
void |
[protected virtual]
Internal method that handles moving of columns with the mouse.
KTabListBoxColumn** |
[protected]
int * |
[protected]
int * |
[protected]
KTabListBoxItem** |
[protected]
int |
[protected]
int |
[protected]
int |
[protected]
char |
[protected]
KTabListBoxDict |
[protected]
KTabListBoxTable |
[protected]
int |
[protected]
QPixmap |
[protected]
QPixmap |
[protected]
QPixmap |
[protected]
QPixmap |
[protected]
QPixmap |
[protected]
int |
[protected]
QColor |
[protected]
int |
[protected]
bool |
[protected]
bool |
[protected]
bool |
[protected]
int |
[protected]
int |
[protected]
int |
[protected]
int |
[protected]
int |
[protected]
int |
[protected]
int |
[protected]
QPoint |
[protected]
bool |
[protected]
bool |
[protected]
Generated by: prospector@porky.devel.redhat.com on Tue Aug 15 09:55:36 2000, using kdoc 2.0a36. |