kexicomboboxbase.cpp
116 const int visibleColumn = lookupFieldSchema->visibleColumn( popup()->tableView()->KexiDataAwareObjectInterface::data()->columnsCount() );
162 /*impl.*/setValueInInternalEditor(add); //not setLineEditText(), because 'add' is entered by user!
246 return valueForString(m_userEnteredValue.toString(), &rowToHighlight, 1, 0, true/*allowNulls*/);
289 const int visibleColumn = lookupFieldSchema->visibleColumn( popup()->tableView()->KexiDataAwareObjectInterface::data()->columnsCount() );
474 const int visibleColumn = lookupFieldSchema->visibleColumn( popup()->tableView()->KexiDataAwareObjectInterface::data()->columnsCount() );
590// kexidbg << "KexiComboBoxBase::undoChanges(): m_visibleValue BEFORE = " << m_visibleValue << endl;
bool m_mouseBtnPressedWhenPopupVisible
Used only by KexiComboBoxTableEdit.
Definition kexicomboboxbase.h:157
TQVariant m_userEnteredValue
value (usually a text) entered by hand (by the user)
Definition kexicomboboxbase.h:152
virtual TQVariant valueFromInternalEditor()=0
Implement this to return value from the internal editor.
virtual void moveCursorToEndInInternalEditor()=0
Implement this to perform "move cursor to end" in the internal editor.
virtual void slotItemSelected(KexiTableItem *)
Call this from slot.
Definition kexicomboboxbase.cpp:456
virtual KexiTableViewColumn * column() const =0
virtual TQWidget * internalEditor() const =0
Implement this to return the internal editor.
virtual TQVariant value()
Note: Generally in current implementation this is integer > 0; may be null if no value is set.
Definition kexicomboboxbase.cpp:237
bool m_setVisibleValueOnSetValueInternal
Used in setValueInternal() to control whether we want to set visible value on setValueInternal()
Definition kexicomboboxbase.h:165
KexiTableItem * selectItemForEnteredValueInLookupTable(const TQVariant &v)
Used to select row item for an user-entered value v.
Definition kexicomboboxbase.cpp:168
virtual void setValueInInternalEditor(const TQVariant &value)=0
Implement this to perform "set value" in the internal editor.
void setValueOrTextInInternalEditor(const TQVariant &value)
sets value for the line edit without setting a flag (m_userEnteredValue) that indicates that the text...
Definition kexicomboboxbase.cpp:512
virtual TQPoint mapFromParentToGlobal(const TQPoint &pos) const =0
Implement this to return a position pos mapped from parent (e.g.
virtual TQVariant origValue() const =0
virtual void slotRowAccepted(KexiTableItem *item, int row)
Call this from slot.
Definition kexicomboboxbase.cpp:434
virtual void clear()
Reimplement this and call this impl.: used to clear internal editor.
Definition kexicomboboxbase.cpp:301
virtual int popupWidthHint() const =0
Implement this to return a hint for popup width.
bool m_setValueOrTextInInternalEditor_enabled
Used in setValueOrTextInInternalEditor() and slotItemSelected()
Definition kexicomboboxbase.h:156
KexiDB::LookupFieldSchema * lookupFieldSchema() const
Definition kexicomboboxbase.cpp:53
bool m_updatePopupSelectionOnShow
Set to false as soon as the item corresponding with the current value is selected in the popup table.
Definition kexicomboboxbase.h:159
TQString valueForString(const TQString &str, int *row, uint lookInColumn, uint returnFromColumn, bool allowNulls=false)
Definition kexicomboboxbase.cpp:207
bool m_internalEditorValueChanged
true if user has text or other value inside editor
Definition kexicomboboxbase.h:154
virtual void setValueInternal(const TQVariant &add, bool removeOld)
Definition kexicomboboxbase.cpp:89
virtual KexiDB::Field * field() const =0
void slotInternalEditorValueChanged(const TQVariant &v)
Call this from slot.
Definition kexicomboboxbase.cpp:498
bool m_slotInternalEditorValueChanged_enabled
Used in slotInternalEditorValueChanged()
Definition kexicomboboxbase.h:155
bool m_insideCreatePopup
true if we're inside createPopup(); used in slotItemSelected()
Definition kexicomboboxbase.h:158
virtual void selectAllInInternalEditor()=0
Implement this to perform "select all" in the internal editor.
int rowToHighlightForLookupTable() const
Definition kexicomboboxbase.cpp:63
Provides information about lookup field's setup.
Definition lookupfieldschema.h:56
int visibleColumn(uint fieldsCount) const
Definition lookupfieldschema.h:149
LookupFieldSchema * lookupFieldSchema(const Field &field) const
Definition tableschema.cpp:405
KexiTableViewData * data() const
Definition kexidataawareobjectiface.h:83
int currentRow() const
Definition kexidataawareobjectiface.h:89
KexiTableItem * selectedItem() const
Definition kexidataawareobjectiface.h:97
virtual void clearSelection()
Definition kexidataawareobjectiface.cpp:486
KexiTableViewData * relatedData() const
Definition kexitableviewdata.h:145
Definition kexitableviewdata.h:223
virtual void ensureCellVisible(int row, int col)
Definition kexitableview.cpp:1966
3-state logical type with three values: true, false and cancelled and convenient operators.
Definition tristate.h:100
