[kdeui Index] [kdeui Hierarchy] [Headers]
A multi column listbox Features: - User resizeable columns More...
#include <ktablistbox.h>
Inherits: KDNDWidget (kdecore)
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.
[public]
This enable the key-bindings (and set StrongFocus!)if you don't want StrongFocus you can implement your own keyPressEvent
[public]
Returns the number of rows
[public 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.
[public]
Append a QStrList
[public]
Same as insertItem, but always appends the new item.
[public virtual]
Change contents of a line using the separator character to separate the fields.
[public virtual]
Change part of the contents of a line.
[public virtual]
Change color of line. Changes last inserted item when itemIndex==-1
[public]
Get number of pixels one tab character stands for. Default: 10
[public virtual]
Set number of pixels one tab character stands for. Default: 10
[public]
Returns contents of given row/column. If col is not set thecontents 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
[public virtual]
Remove one item from the list.
[public virtual]
Remove contents of listbox
[public]
Return index of current item
[public virtual]
Set the current (selected) column. colId is the value that
[public virtual]
Unmark all items
[public virtual]
Mark/unmark item with index idx.
[public virtual]
Returns TRUE if item with given index is marked.
[public]
Find item at given screen y position.
[public]
Returns first item that is currently displayed in the widget.
[public]
Change first displayed item by repositioning the visible part
[public virtual]
Set number of columns. Warning: this *deletes* the contents
[public virtual]
Set number of rows in the listbox. The contents stays as it is.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public]
See the docs for the QTableView class.
[public 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,
[public virtual]
Set column caption, width, type,order-type and order-mode
[public virtual]
Set column width.
[public]
Get column width.
[public virtual]
Set default width of all columns.
[public]
change the Ascending/Descending mode of column col.
[public]
Clear all number-check-buttons (ComplexOrder only)
[public virtual]
Set separator character, e.g. '\t'.
[public virtual]
Return separator character.
[public]
For convenient access to the dictionary of pictures that this listbox understands.
[public]
Indicates that a drag has started with given item. Returns TRUE if we are dragging, FALSE if drag-start failed.
[public virtual]
Read the config file entries in the group with the name of the listbox and set the default column widths and those.
[public virtual]
Write the config file entries in the group with the name of the listbox
[public]
Return the actual position of the colum in the table.
[public]
Return the actual positon of the row number num.
[public]
Get/set font of the table. font() and setFont() apply to the
[protected virtual]
Used to create new column objects. Overwrite this methodin a subclass to have your own column objects (e.g. with custom data in it). You will then also need customData()/setCustomData()
[protected]
Internal method called by keyPressEvent.
[protected]
Adjust the number in the number check boxes.
[protected]
For internal use.
[protected virtual]
Resize item array. Per default enlarge it to double size.
[protected virtual]
Called to set drag data, size, and type. If this method returns FALSE then no drag occurs.
[protected virtual]
Internal method that handles resizing of columns with the mouse.
[protected virtual]
Internal method that handles moving of columns with the mouse.
[protected]
contain the number of the last column where the user clicked on checkbutton.
[signal]
emited when the current item changes (either via setCurrentItem() or via mouse single-click).
[signal]
emitted when the user double-clicks into a line.
[signal]
emitted when the user presses the right mouse button over a line.
[signal]
emitted when the user presses the middle mouse button over a line.
[signal]
emitted when the user clicks on a column header.
Documentation generated by root@darkstar.lst.de on Wed Sep 8 17:38:27 CEST 1999 | Kdoc |