KexiQueryDesignerGuiEditor Class Reference
#include <kexiquerydesignerguieditor.h>
Inheritance diagram for KexiQueryDesignerGuiEditor:

Detailed Description
Design view of the Query Designer.
Definition at line 59 of file kexiquerydesignerguieditor.h.
Public Slots | |
| virtual void | setFocus () |
Public Member Functions | |
| KexiQueryDesignerGuiEditor (KexiMainWindow *mainWin, QWidget *parent, const char *name=0) | |
| virtual | ~KexiQueryDesignerGuiEditor () |
| KexiRelationWidget * | relationView () const |
| virtual QSize | sizeHint () const |
Protected Slots | |
| void | slotDragOverTableRow (KexiTableItem *item, int row, QDragMoveEvent *e) |
| void | slotDroppedAtRow (KexiTableItem *item, int row, QDropEvent *ev, KexiTableItem *&newItem) |
| void | slotNewItemAppendedForAfterDeletingInSpreadSheetMode () |
| Reaction on appending a new item after deleting one. | |
| void | slotTableAdded (KexiDB::TableSchema &t) |
| void | slotTableHidden (KexiDB::TableSchema &t) |
| void | slotBeforeCellChanged (KexiTableItem *item, int colnum, QVariant &newValue, KexiDB::ResultInfo *result) |
| Called before cell change in tableview. | |
| void | slotRowInserted (KexiTableItem *item, uint row, bool repaint) |
| void | slotTablePositionChanged (KexiRelationViewTableContainer *) |
| void | slotAboutConnectionRemove (KexiRelationViewConnection *) |
| void | slotTableFieldDoubleClicked (KexiDB::TableSchema *table, const QString &fieldName) |
| bool | loadLayout () |
| bool | storeLayout () |
| void | showTablesForQuery (KexiDB::QuerySchema *query) |
| void | showFieldsOrRelationsForQueryInternal (KexiDB::QuerySchema *query, bool showFields, bool showRelations, KexiDB::ResultInfo &result) |
| void | showFieldsAndRelationsForQuery (KexiDB::QuerySchema *query, KexiDB::ResultInfo &result) |
| convenience method equal to showFieldsOrRelationsForQueryInternal(query, true, true) | |
| void | showFieldsForQuery (KexiDB::QuerySchema *query, KexiDB::ResultInfo &result) |
| convenience method equal to showFieldsOrRelationsForQueryInternal(query, true, false) | |
| void | showRelationsForQuery (KexiDB::QuerySchema *query, KexiDB::ResultInfo &result) |
| convenience method equal to showFieldsOrRelationsForQueryInternal(query, false, true) | |
| void | addConnection (KexiDB::Field *masterField, KexiDB::Field *detailsField) |
| void | slotPropertyChanged (KoProperty::Set &list, KoProperty::Property &property) |
| void | slotNewItemStored (KexiPart::Item &) |
| void | slotItemRemoved (const KexiPart::Item &item) |
| void | slotItemRenamed (const KexiPart::Item &item, const QCString &oldName) |
Protected Member Functions | |
| void | initTableColumns () |
| Called just once. | |
| void | initTableRows () |
| Called to have all rows empty. | |
| virtual tristate | beforeSwitchTo (int mode, bool &dontStore) |
| virtual tristate | afterSwitchFrom (int mode) |
| virtual KexiDB::SchemaData * | storeNewData (const KexiDB::SchemaData &sdata, bool &cancel) |
| virtual tristate | storeData (bool dontAsk=false) |
| void | updateColumnsData () |
| virtual KoProperty::Set * | propertySet () |
| KoProperty::Set * | createPropertySet (int row, const QString &tableName, const QString &fieldName, bool newOne=false) |
| bool | buildSchema (QString *errMsg=0) |
| KexiQueryPart::TempData * | tempData () const |
| KexiTableItem * | createNewRow (const QString &tableName, const QString &fieldName, bool visible) const |
| KexiDB::BaseExpr * | parseExpressionString (const QString &fullString, int &token, bool allowRelationalOperator) |
| QCString | generateUniqueAlias () const |
| void | updatePropertiesVisibility (KoProperty::Set &buf) |
Friends | |
| class | KexiQueryView |
Constructor & Destructor Documentation
|
||||||||||||||||
|
|
Definition at line 202 of file kexiquerydesignerguieditor.cpp. |
Member Function Documentation
|
||||||||||||
|
Definition at line 763 of file kexiquerydesignerguieditor.cpp. References SourceConnection::detailsField, SourceConnection::detailsTable, SourceConnection::masterField, SourceConnection::masterTable, KexiDB::Field::name(), and KexiDB::Field::table(). Referenced by showFieldsOrRelationsForQueryInternal(). |
|
|
Reimplemented from KexiViewBase. Definition at line 618 of file kexiquerydesignerguieditor.cpp. References Kexi::DataViewMode, KexiViewBase::dirty(), initTableRows(), loadLayout(), KexiViewBase::m_dialog, KexiDialogBase::neverSaved(), Kexi::NoViewMode, KexiViewBase::parentDialog(), KexiViewBase::setDirty(), setFocus(), showFieldsAndRelationsForQuery(), showFieldsForQuery(), showTablesForQuery(), KexiDB::ResultInfo::success, tempData(), and Kexi::TextViewMode. |
|
||||||||||||
|
called by KexiDialogBase::switchToViewMode() right before dialog is switched to new mode By default does nothing. Reimplement this if you need to do something before switching to this view.
Reimplemented from KexiViewBase. Definition at line 570 of file kexiquerydesignerguieditor.cpp. References buildSchema(), cancelled, Kexi::DataViewMode, Kexi::DesignViewMode, KexiViewBase::dirty(), kexipluginsdbg, msgCannotSwitch_EmptyDesign(), KexiViewBase::parentDialog(), tempData(), and Kexi::TextViewMode. |
|
|
Builds query schema out of information provided by gui. The schema is stored in temp->query member. errMsg is optional error message returned.
Definition at line 361 of file kexiquerydesignerguieditor.cpp. References AND, KexiDB::OrderByColumnList::appendColumn(), KexiDB::OrderByColumnList::appendField(), KexiQueryPart::TempData::clearQuery(), COLUMN_ID_COLUMN, COLUMN_ID_TABLE, KexiDB::BaseExpr::debugString(), KexiDB::FieldList::field(), KexiDB::Field::isExpression(), KexiDB::Field::isQueryAsterisk(), KexiDBExpr_Logical, KexiDBExpr_Relational, kexipluginsdbg, kexipluginswarn, msgCannotSwitch_EmptyDesign(), KexiDB::Field::name(), parseExpressionString(), KexiQueryPart::TempData::query(), KexiQueryPart::TempData::registerTableSchemaChanges(), KexiRelationViewTableContainer::schema(), KexiQueryPart::TempData::setQuery(), tempData(), and KexiDB::QueryColumnInfo::visible. Referenced by beforeSwitchTo(), storeData(), and storeNewData(). |
|
||||||||||||||||
|
Helper: allocates and initializes new table view's row. Doesn't insert it, just returns. tableName and fieldName shoudl be provided. visible flag sets value for "Visible" column. Definition at line 1187 of file kexiquerydesignerguieditor.cpp. References COLUMN_ID_COLUMN, COLUMN_ID_TABLE, and COLUMN_ID_VISIBLE. Referenced by showFieldsOrRelationsForQueryInternal(), slotDroppedAtRow(), and slotTableFieldDoubleClicked(). |
|
||||||||||||||||||||
|
Definition at line 1695 of file kexiquerydesignerguieditor.cpp. References slotPropertyChanged(), and updatePropertiesVisibility(). Referenced by showFieldsOrRelationsForQueryInternal(), slotBeforeCellChanged(), slotRowInserted(), and slotTableFieldDoubleClicked(). |
|
|
Definition at line 1266 of file kexiquerydesignerguieditor.cpp. Referenced by slotBeforeCellChanged(). |
|
|
Called just once.
Definition at line 207 of file kexiquerydesignerguieditor.cpp. References KexiDB::Field::Boolean, KexiDB::Field::Enum, KexiTableViewColumn::field(), KexiTableViewColumn::setRelatedData(), KexiTableViewColumn::setRelatedDataEditable(), and KexiDB::Field::Text. Referenced by KexiQueryDesignerGuiEditor(). |
|
|
Called to have all rows empty.
Definition at line 260 of file kexiquerydesignerguieditor.cpp. References COLUMN_ID_VISIBLE, and updateColumnsData(). Referenced by afterSwitchFrom(), and KexiQueryDesignerGuiEditor(). |
|
|
Loads layout of relation GUI diagram. Definition at line 1068 of file kexiquerydesignerguieditor.cpp. References SourceConnection::detailsField, SourceConnection::detailsTable, KexiViewBase::dirty(), KexiViewBase::loadDataBlock(), SourceConnection::masterField, SourceConnection::masterTable, KexiViewBase::parentDialog(), KexiViewBase::setDirty(), showRelationsForQuery(), showTablesForQuery(), and KexiDB::ResultInfo::success. Referenced by afterSwitchFrom(). |
|
||||||||||||||||
|
Definition at line 1291 of file kexiquerydesignerguieditor.cpp. References CHARACTER_STRING_LITERAL, DATE_CONST, DATETIME_CONST, GREATER_OR_EQUAL, INTEGER_CONST, KexiUtils::isIdentifier(), len, LESS_OR_EQUAL, NOT_EQUAL, NOT_EQUAL2, REAL_CONST, SQL_NULL, TIME_CONST, and KexiDB::BaseExpr::toVariable(). Referenced by buildSchema(), and slotBeforeCellChanged(). |
|
|
Reimplemented from KexiViewBase. Definition at line 1674 of file kexiquerydesignerguieditor.cpp. Referenced by slotBeforeCellChanged(). |
|
|
Definition at line 344 of file kexiquerydesignerguieditor.cpp. |
|
|
Reimplemented from KexiViewBase. Definition at line 1752 of file kexiquerydesignerguieditor.cpp. Referenced by afterSwitchFrom(). |
|
||||||||||||
|
convenience method equal to showFieldsOrRelationsForQueryInternal(query, true, true)
Definition at line 784 of file kexiquerydesignerguieditor.cpp. References showFieldsOrRelationsForQueryInternal(). Referenced by afterSwitchFrom(). |
|
||||||||||||
|
convenience method equal to showFieldsOrRelationsForQueryInternal(query, true, false)
Definition at line 774 of file kexiquerydesignerguieditor.cpp. References showFieldsOrRelationsForQueryInternal(). Referenced by afterSwitchFrom(). |
|
||||||||||||||||||||
|
||||||||||||
|
convenience method equal to showFieldsOrRelationsForQueryInternal(query, false, true)
Definition at line 779 of file kexiquerydesignerguieditor.cpp. References showFieldsOrRelationsForQueryInternal(). Referenced by loadLayout(). |
|
|
Definition at line 746 of file kexiquerydesignerguieditor.cpp. References KexiDB::QuerySchema::tables(), and updateColumnsData(). Referenced by afterSwitchFrom(), and loadLayout(). |
|
|
Definition at line 1179 of file kexiquerydesignerguieditor.cpp. |
|
|
Definition at line 1649 of file kexiquerydesignerguieditor.cpp. References KexiViewBase::setDirty(). Referenced by KexiQueryDesignerGuiEditor(). |
|
||||||||||||||||||||
|
Called before cell change in tableview. allowSignals allowSignals
Definition at line 1416 of file kexiquerydesignerguieditor.cpp. References KexiDB::ResultInfo::allowToDiscardChanges, KexiDB::ResultInfo::column, COLUMN_ID_COLUMN, COLUMN_ID_CRITERIA, COLUMN_ID_SORTING, COLUMN_ID_TABLE, COLUMN_ID_VISIBLE, createPropertySet(), KexiDB::ResultInfo::desc, field, generateUniqueAlias(), KexiUtils::isIdentifier(), KexiDBExpr_Relational, kexipluginsdbg, kexipluginswarn, KexiDB::ResultInfo::msg, parseExpressionString(), propertySet(), KexiViewBase::propertySetSwitched(), KexiViewBase::setDirty(), KexiDB::SetFieldNameIfNoTableName, sortingAllowed(), KexiDB::splitToTableAndFieldParts(), KexiDB::ResultInfo::success, KexiDB::BinaryExpr::tokenToString(), KexiDB::BaseExpr::toString(), and updatePropertiesVisibility(). Referenced by KexiQueryDesignerGuiEditor(). |
|
||||||||||||||||
|
Definition at line 1208 of file kexiquerydesignerguieditor.cpp. Referenced by KexiQueryDesignerGuiEditor(). |
|
||||||||||||||||||||
|
Definition at line 1217 of file kexiquerydesignerguieditor.cpp. References createNewRow(), and KexiFieldDrag::decodeSingle(). Referenced by KexiQueryDesignerGuiEditor(). |
|
|
Definition at line 1790 of file kexiquerydesignerguieditor.cpp. References KexiPart::Item::mimeType(), and KexiPart::Item::name(). |
|
||||||||||||
|
Definition at line 1795 of file kexiquerydesignerguieditor.cpp. References KexiPart::Item::mimeType(), and KexiPart::Item::name(). |
|
|
Reaction on appending a new item after deleting one.
Definition at line 1234 of file kexiquerydesignerguieditor.cpp. References COLUMN_ID_VISIBLE. Referenced by KexiQueryDesignerGuiEditor(). |
|
|
Definition at line 1785 of file kexiquerydesignerguieditor.cpp. References KexiPart::Item::mimeType(), and KexiPart::Item::name(). |
|
||||||||||||
|
Definition at line 1757 of file kexiquerydesignerguieditor.cpp. References KexiUtils::identifierExpectedMessage(), and KexiUtils::isIdentifier(). Referenced by createPropertySet(). |
|
||||||||||||||||
|
Definition at line 1241 of file kexiquerydesignerguieditor.cpp. References createPropertySet(), and KexiViewBase::propertySetSwitched(). Referenced by KexiQueryDesignerGuiEditor(). |
|
|
Definition at line 1250 of file kexiquerydesignerguieditor.cpp. References KexiViewBase::setDirty(), and updateColumnsData(). Referenced by KexiQueryDesignerGuiEditor(). |
|
||||||||||||
|
Definition at line 1654 of file kexiquerydesignerguieditor.cpp. References createNewRow(), createPropertySet(), KexiDB::FieldList::field(), KexiDB::SchemaData::name(), and KexiViewBase::propertySetSwitched(). Referenced by KexiQueryDesignerGuiEditor(). |
|
|
Definition at line 1259 of file kexiquerydesignerguieditor.cpp. References KexiViewBase::setDirty(), and updateColumnsData(). Referenced by KexiQueryDesignerGuiEditor(). |
|
|
Definition at line 1644 of file kexiquerydesignerguieditor.cpp. References KexiViewBase::setDirty(). Referenced by KexiQueryDesignerGuiEditor(). |
|
|
Tells this view to store data changes on the backend. Called by KexiDialogBase::storeData(). Default implementation:
Reimpelment this for your needs. Should return true on success or cancelled when the task should be cancelled.
Reimplemented from KexiViewBase. Definition at line 728 of file kexiquerydesignerguieditor.cpp. References buildSchema(), cancelled, KexiViewBase::dirty(), KexiViewBase::setDirty(), KexiViewBase::storeData(), and storeLayout(). |
|
|
||||||||||||
|
Tells this dialog to create and store data of the new object pointed by sdata on the backend. Called by KexiDialogBase::storeNewData(). Default implementation:
Reimplemented from KexiViewBase. Definition at line 695 of file kexiquerydesignerguieditor.cpp. References buildSchema(), Kexi::DesignViewMode, KexiViewBase::m_dialog, KexiViewBase::m_mainWin, KexiMainWindow::project(), KexiQueryPart::TempData::query(), KexiQueryPart::TempData::queryChangedInPreviousView, KexiDialogBase::setId(), KexiQueryPart::TempData::setQuery(), storeLayout(), KexiQueryPart::TempData::takeQuery(), tempData(), and KexiViewBase::viewMode(). |
|
|
Definition at line 350 of file kexiquerydesignerguieditor.cpp. References KexiViewBase::parentDialog(). Referenced by afterSwitchFrom(), beforeSwitchTo(), buildSchema(), storeLayout(), storeNewData(), and updateColumnsData(). |
|
|
Updates data in columns depending on tables that are currently inserted. Tabular Data in combo box popups is updated as well. Definition at line 274 of file kexiquerydesignerguieditor.cpp. References COLUMN_ID_COLUMN, COLUMN_ID_TABLE, KexiDB::FieldList::fieldsIterator(), KexiDB::SchemaData::name(), and tempData(). Referenced by initTableRows(), showTablesForQuery(), slotTableAdded(), and slotTableHidden(). |
|
|
Definition at line 1679 of file kexiquerydesignerguieditor.cpp. References isAsterisk(), and KexiViewBase::propertySetReloaded(). Referenced by createPropertySet(), and slotBeforeCellChanged(). |
Friends And Related Function Documentation
|
|
Definition at line 166 of file kexiquerydesignerguieditor.h. |
The documentation for this class was generated from the following files:
