#include <editor.h>
|
| void | propertySetChanged (KoProperty::Set *set) |
|
void | executed (TQListViewItem *item) |
|
void | executed (TQListViewItem *item, const TQPoint &pos, int c) |
|
void | dropped (TQDropEvent *e, TQListViewItem *after) |
|
void | dropped (TDEListView *list, TQDropEvent *e, TQListViewItem *after) |
|
void | dropped (TDEListView *list, TQDropEvent *e, TQListViewItem *parent, TQListViewItem *after) |
|
void | dropped (TQDropEvent *e, TQListViewItem *parent, TQListViewItem *after) |
|
void | moved () |
|
void | aboutToMove () |
|
void | moved (TQListViewItem *item, TQListViewItem *afterFirst, TQListViewItem *afterNow) |
|
void | moved (TQPtrList< TQListViewItem > &items, TQPtrList< TQListViewItem > &afterFirst, TQPtrList< TQListViewItem > &afterNow) |
|
void | itemRenamed (TQListViewItem *item, const TQString &str, int col) |
|
void | itemRenamed (TQListViewItem *item) |
|
void | menuShortCutPressed (TDEListView *list, TQListViewItem *item) |
|
void | contextMenu (TDEListView *l, TQListViewItem *i, const TQPoint &p) |
|
void | renameNext (TQListViewItem *item, int col) |
|
void | renamePrev (TQListViewItem *item, int col) |
|
| | Editor (TQWidget *parent=0, bool autoSync=true, const char *name=0) |
| virtual TQSize | sizeHint () const |
| virtual void | setFocus () |
| virtual void | setSorting (int column, bool ascending=true) |
|
| TDEListView (TQWidget *parent=0, const char *name=0) |
|
virtual void | setAcceptDrops (bool) |
|
virtual bool | isExecuteArea (const TQPoint &point) |
|
bool | isExecuteArea (int x) |
|
TQPtrList< TQListViewItem > | selectedItems () const |
|
TQPtrList< TQListViewItem > | selectedItems (bool includeHiddenItems) const |
|
void | moveItem (TQListViewItem *item, TQListViewItem *parent, TQListViewItem *after) |
|
TQListViewItem * | lastItem () const |
|
TQListViewItem * | lastChild () const |
|
KLineEdit * | renameLineEdit () const |
|
bool | itemsMovable () const |
|
bool | itemsRenameable () const |
|
bool | dragEnabled () const |
|
bool | autoOpen () const |
|
bool | isRenameable (int column) const |
|
bool | dropVisualizer () const |
|
int | tooltipColumn () const |
|
bool | createChildren () const TDE_DEPRECATED |
|
bool | dropHighlighter () const |
|
int | dropVisualizerWidth () const |
|
SelectionModeExt | selectionModeExt () const |
|
int | itemIndex (const TQListViewItem *item) const |
|
TQListViewItem * | itemAtIndex (int index) |
|
void | setFullWidth () TDE_DEPRECATED |
|
void | setFullWidth (bool fullWidth) |
|
bool | fullWidth () const |
|
virtual int | addColumn (const TQString &label, int width=-1) |
|
virtual int | addColumn (const TQIconSet &iconset, const TQString &label, int width=-1) |
|
virtual void | removeColumn (int index) |
|
void | setAlternateBackground (const TQColor &c) |
|
const TQColor & | alternateBackground () const |
|
void | saveLayout (TDEConfig *config, const TQString &group) const |
|
void | restoreLayout (TDEConfig *config, const TQString &group) |
|
int | columnSorted (void) const |
|
bool | ascendingSort (void) const |
|
virtual void | takeItem (TQListViewItem *i) |
|
void | setShadeSortColumn (bool shadeSortColumn) |
|
bool | shadeSortColumn (void) const |
|
void | setUseSmallExecuteArea (bool enable) |
|
bool | useSmallExecuteArea () const |
|
void | setRenameSettings (const TDEListViewRenameSettings &renSett) |
|
| void | slotPropertyChanged (KoProperty::Set &set, KoProperty::Property &property) |
| void | slotPropertyReset (KoProperty::Set &set, KoProperty::Property &property) |
| void | slotWidgetValueChanged (Widget *widget) |
| void | slotWidgetAcceptInput (Widget *widget) |
| void | slotWidgetRejectInput (Widget *widget) |
| void | slotSetWillBeCleared () |
| void | slotSetWillBeDeleted () |
| void | slotClicked (TQListViewItem *item) |
| void | undo () |
| void | updateEditorGeometry (bool forceUndoButtonSettings=false, bool undoButtonVisible=false) |
| void | updateEditorGeometry (EditorItem *item, Widget *widget, bool forceUndoButtonSettings=false, bool undoButtonVisible=false) |
| void | updateGroupLabelsPosition () |
| void | hideEditor () |
| void | slotCollapsed (TQListViewItem *item) |
| void | slotExpanded (TQListViewItem *item) |
| void | slotColumnSizeChanged (int section) |
| void | slotColumnSizeChanged (int section, int oldSize, int newSize) |
| void | slotCurrentChanged (TQListViewItem *item) |
| void | changeSetLater () |
| void | selectItemLater () |
|
void | slotSettingsChanged (int) |
|
void | cleanDropVisualizer () |
|
void | cleanItemHighlighter () |
|
void | emitContextMenu (TQListViewItem *, const TQPoint &, int) |
|
void | emitContextMenu (TDEListView *, TQListViewItem *) |
|
void | slotOnItem (TQListViewItem *item) |
|
void | slotOnViewport () |
|
void | slotAutoSelect () |
|
void | slotHeaderChanged () |
|
| Widget * | createWidgetForProperty (Property *property, bool changeWidgetProperty=true) |
| void | clearWidgetCache () |
| void | fill () |
| void | addItem (const TQCString &name, EditorItem *parent) |
| void | showUndoButton (bool show) |
| virtual void | resizeEvent (TQResizeEvent *ev) |
| virtual bool | eventFilter (TQObject *watched, TQEvent *e) |
| bool | handleKeyPress (TQKeyEvent *ev) |
| virtual bool | event (TQEvent *e) |
| void | updateFont () |
| virtual void | contentsMousePressEvent (TQMouseEvent *e) |
| void | changeSetInternal (Set *set, bool preservePrevSelection, const TQCString &propertyToSelect) |
|
bool | below (const TQRect &rect, const TQPoint &p) |
|
bool | below (TQListViewItem *i, const TQPoint &p) |
|
void | emitExecute (TQListViewItem *item, const TQPoint &pos, int c) |
|
virtual void | focusInEvent (TQFocusEvent *fe) |
|
virtual void | focusOutEvent (TQFocusEvent *fe) |
|
virtual void | leaveEvent (TQEvent *e) |
|
virtual TQString | tooltip (TQListViewItem *item, int column) const |
|
virtual bool | showTooltip (TQListViewItem *item, const TQPoint &pos, int column) const |
|
virtual void | contentsDragMoveEvent (TQDragMoveEvent *event) |
|
virtual void | contentsMouseMoveEvent (TQMouseEvent *e) |
|
virtual void | contentsMouseDoubleClickEvent (TQMouseEvent *e) |
|
virtual void | contentsDragLeaveEvent (TQDragLeaveEvent *event) |
|
virtual void | contentsMouseReleaseEvent (TQMouseEvent *) |
|
virtual void | contentsDropEvent (TQDropEvent *) |
|
virtual void | contentsDragEnterEvent (TQDragEnterEvent *) |
|
virtual TQDragObject * | dragObject () |
|
virtual bool | acceptDrag (TQDropEvent *event) const |
|
virtual TQRect | drawDropVisualizer (TQPainter *p, TQListViewItem *parent, TQListViewItem *after) |
|
virtual TQRect | drawItemHighlighter (TQPainter *painter, TQListViewItem *item) |
|
virtual void | startDrag () |
|
virtual void | keyPressEvent (TQKeyEvent *) |
|
virtual void | viewportPaintEvent (TQPaintEvent *) |
|
void | activateAutomaticSelection () |
|
void | deactivateAutomaticSelection () |
|
bool | automaticSelection () const |
|
virtual void | viewportResizeEvent (TQResizeEvent *e) |
|
void | disableAutoSelection () |
|
void | resetAutoSelection () |
|
void | resetKeyboardSelectionOperation () |
|
void | setActiveMultiSelectItem (TQListViewItem *item) |
|
void | doubleClicked (TQListViewItem *item, const TQPoint &pos, int c) |
|
virtual void | movableDropEvent (TQListViewItem *parent, TQListViewItem *afterme) |
|
virtual void | findDrop (const TQPoint &pos, TQListViewItem *&parent, TQListViewItem *&after) |
|
void | fileManagerKeyPressEvent (TQKeyEvent *) |
|
int | depthToPixels (int depth) |
A listview to edit properties Editor widgets use property options using Property::option(const char *) to override default behaviour of editor items. Currently supported options are:
-
min: integer setting for minimum value of IntEdit and DoubleEdit item. Default is 0. Set "min" to -1, if you want this special value to be allowed.
-
minValueText: i18n'd TQString used in IntEdit to set "specialValueText" widget's property
-
max: integer setting for minimum value of IntEdit item. Default is 0xffff.
-
precision: The number of decimals after the decimal point. (for DoubleEdit)
-
step : the size of the step that is taken when the user hits the up or down buttons (for DoubleEdit)
-
3rdState: i18n'd TQString used in BoolEdit. If not empty, the the editor's button accept third "null" state with name equal to this string. When this value is selected, Widget::value() returns null TQVariant. This option is used for example in the "defaultValue" property for a field of type boolean (in Kexi Table Designer). Third, "null" value of the property means there is no "defaultValue" specified.
- Author
- Cedric Pasteur cedri.nosp@m.c.pa.nosp@m.steur.nosp@m.@fre.nosp@m.e.fr
-
Alexander Dymo cloud.nosp@m.temp.nosp@m.le@ms.nosp@m.kat..nosp@m.net
-
Jaroslaw Staniek js@ii.nosp@m.dea..nosp@m.pl
Definition at line 63 of file editor.h.
◆ Editor()
| Editor::Editor |
( |
TQWidget * | parent = 0, |
|
|
bool | autoSync = true, |
|
|
const char * | name = 0 ) |
Creates an empty Editor with parent as parent widget. If autoSync == true, properties values are automatically synced as soon as editor contents change (eg the user types text, etc.) and the values are written in the property set. Otherwise, property set is updated only when selected item changes or user presses Enter key. Each property can overwrite this if its autoSync() == 0 or 1.
Definition at line 121 of file editor.cpp.
◆ ~Editor()
◆ acceptInput
| void Editor::acceptInput |
( |
| ) |
|
|
slot |
Accept the changes mae to the current editor (as if the user had pressed Enter key)
Definition at line 542 of file editor.cpp.
◆ addItem()
| void Editor::addItem |
( |
const TQCString & | name, |
|
|
EditorItem * | parent ) |
|
protected |
- Todo
- allow to have child prop with child items too
Definition at line 248 of file editor.cpp.
◆ changeSet [1/2]
| void Editor::changeSet |
( |
Set * | set, |
|
|
bool | preservePrevSelection = false ) |
|
slot |
Populates the editor with an item for each property in the List. Also creates child items for composed properties. If preservePrevSelection is true, previously selected editor item will be kept selected, if present.
Definition at line 284 of file editor.cpp.
◆ changeSet [2/2]
| void Editor::changeSet |
( |
Set * | set, |
|
|
const TQCString & | propertyToSelect ) |
|
slot |
Populates the editor with an item for each property in the List. Also creates child items for composed properties. If propertyToSelect is not empty, editor item for this property name will be selected, if present.
Definition at line 290 of file editor.cpp.
◆ changeSetInternal()
| void Editor::changeSetInternal |
( |
Set * | set, |
|
|
bool | preservePrevSelection, |
|
|
const TQCString & | propertyToSelect ) |
|
protected |
◆ changeSetLater
| void Editor::changeSetLater |
( |
| ) |
|
|
protectedslot |
◆ clear
| void Editor::clear |
( |
bool | editorOnly = false | ) |
|
|
slot |
Clears all items in the list. if editorOnly is true, then only the current editor will be cleared, not the whole list.
Definition at line 406 of file editor.cpp.
◆ clearWidgetCache()
| void Editor::clearWidgetCache |
( |
| ) |
|
|
protected |
Deletes cached machines.
Definition at line 667 of file editor.cpp.
◆ contentsMousePressEvent()
| void Editor::contentsMousePressEvent |
( |
TQMouseEvent * | e | ) |
|
|
protectedvirtual |
◆ createWidgetForProperty()
| Widget * Editor::createWidgetForProperty |
( |
Property * | property, |
|
|
bool | changeWidgetProperty = true ) |
|
protected |
◆ event()
| bool Editor::event |
( |
TQEvent * | e | ) |
|
|
protectedvirtual |
◆ eventFilter()
| bool Editor::eventFilter |
( |
TQObject * | watched, |
|
|
TQEvent * | e ) |
|
protectedvirtual |
◆ fill()
◆ handleKeyPress()
| bool Editor::handleKeyPress |
( |
TQKeyEvent * | ev | ) |
|
|
protected |
◆ hideEditor
| void Editor::hideEditor |
( |
| ) |
|
|
protectedslot |
◆ propertySetChanged
Emitted when current property set has been changed. May be 0.
◆ resizeEvent()
| void Editor::resizeEvent |
( |
TQResizeEvent * | ev | ) |
|
|
protectedvirtual |
◆ selectItemLater
| void Editor::selectItemLater |
( |
| ) |
|
|
protectedslot |
◆ setFocus()
| void Editor::setFocus |
( |
| ) |
|
|
virtual |
◆ setSorting()
| void Editor::setSorting |
( |
int | column, |
|
|
bool | ascending = true ) |
|
virtual |
◆ showUndoButton()
| void Editor::showUndoButton |
( |
bool | show | ) |
|
|
protected |
◆ sizeHint()
| TQSize Editor::sizeHint |
( |
| ) |
const |
|
virtual |
◆ slotClicked
| void Editor::slotClicked |
( |
TQListViewItem * | item | ) |
|
|
protectedslot |
This slot is called when the user clicks the list view. It takes care of deleting current editor and creating a new editor for the newly selected item.
Definition at line 566 of file editor.cpp.
◆ slotCollapsed
| void Editor::slotCollapsed |
( |
TQListViewItem * | item | ) |
|
|
protectedslot |
◆ slotColumnSizeChanged [1/2]
| void Editor::slotColumnSizeChanged |
( |
int | section | ) |
|
|
protectedslot |
◆ slotColumnSizeChanged [2/2]
| void Editor::slotColumnSizeChanged |
( |
int | section, |
|
|
int | oldSize, |
|
|
int | newSize ) |
|
protectedslot |
◆ slotCurrentChanged
| void Editor::slotCurrentChanged |
( |
TQListViewItem * | item | ) |
|
|
protectedslot |
◆ slotExpanded
| void Editor::slotExpanded |
( |
TQListViewItem * | item | ) |
|
|
protectedslot |
◆ slotPropertyChanged
Updates property widget in the editor.
- Todo
- should we move this somewhere?
Definition at line 441 of file editor.cpp.
◆ slotPropertyReset
◆ slotSetWillBeCleared
| void Editor::slotSetWillBeCleared |
( |
| ) |
|
|
protectedslot |
Called when current property set is about to be cleared.
Definition at line 613 of file editor.cpp.
◆ slotSetWillBeDeleted
| void Editor::slotSetWillBeDeleted |
( |
| ) |
|
|
protectedslot |
Called when current property set is about to be destroyed.
Definition at line 624 of file editor.cpp.
◆ slotWidgetAcceptInput
| void Editor::slotWidgetAcceptInput |
( |
Widget * | widget | ) |
|
|
protectedslot |
Called when the user presses Enter to accet the input (only applies when autoSync() == false).
Definition at line 548 of file editor.cpp.
◆ slotWidgetRejectInput
| void Editor::slotWidgetRejectInput |
( |
Widget * | widget | ) |
|
|
protectedslot |
◆ slotWidgetValueChanged
| void Editor::slotWidgetValueChanged |
( |
Widget * | widget | ) |
|
|
protectedslot |
Updates property in the list when new value is selected in the editor.
Definition at line 517 of file editor.cpp.
◆ undo
Undoes the last change in property editor.
Definition at line 423 of file editor.cpp.
◆ updateEditorGeometry [1/2]
| void Editor::updateEditorGeometry |
( |
bool | forceUndoButtonSettings = false, |
|
|
bool | undoButtonVisible = false ) |
|
protectedslot |
◆ updateEditorGeometry [2/2]
| void Editor::updateEditorGeometry |
( |
EditorItem * | item, |
|
|
Widget * | widget, |
|
|
bool | forceUndoButtonSettings = false, |
|
|
bool | undoButtonVisible = false ) |
|
protectedslot |
◆ updateFont()
| void Editor::updateFont |
( |
| ) |
|
|
protected |
◆ updateGroupLabelsPosition
| void Editor::updateGroupLabelsPosition |
( |
| ) |
|
|
protectedslot |
◆ EditorItem
◆ Widget
The documentation for this class was generated from the following files:
|