Changeset View
Changeset View
Standalone View
Standalone View
kexi/core/KexiView.h
Context not available. | |||||
35 | 35 | | |||
---|---|---|---|---|---|
36 | namespace KexiDB | 36 | namespace KexiDB | ||
37 | { | 37 | { | ||
38 | class Cursor; | ||||
38 | class SchemaData; | 39 | class SchemaData; | ||
39 | } | 40 | } | ||
40 | 41 | | |||
Context not available. | |||||
148 | Q_DECLARE_FLAGS(StoreNewDataOptions, StoreNewDataOption) | 149 | Q_DECLARE_FLAGS(StoreNewDataOptions, StoreNewDataOption) | ||
149 | 150 | | |||
150 | public Q_SLOTS: | 151 | public Q_SLOTS: | ||
152 | /*! Sets data. Only works for db-aware view. */ | ||||
153 | bool setData(KexiDB::Cursor *cursor); | ||||
154 | | ||||
151 | virtual void setFocus(); | 155 | virtual void setFocus(); | ||
152 | 156 | | |||
153 | /*! Call this in your view's implementation whenever current property set | 157 | /*! Call this in your view's implementation whenever current property set | ||
Context not available. | |||||
176 | void focus(bool in); | 180 | void focus(bool in); | ||
177 | 181 | | |||
178 | protected: | 182 | protected: | ||
183 | /*! Sets data to the widget. Default implementation just calls KexiDB::Cursor::open(). | ||||
184 | Used internally by setData(KexiDB::Cursor*). | ||||
185 | @return true on success. */ | ||||
186 | virtual bool setWidgetData(KexiDB::Cursor *cursor); | ||||
187 | | ||||
179 | virtual bool eventFilter(QObject *o, QEvent *e); | 188 | virtual bool eventFilter(QObject *o, QEvent *e); | ||
180 | 189 | | |||
181 | /*! called by KexiWindow::switchToViewMode() right before window is switched to new mode | 190 | /*! called by KexiWindow::switchToViewMode() right before window is switched to new mode | ||
Context not available. |