Changeset View
Changeset View
Standalone View
Standalone View
src/core/kexipart.h
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | |||||
66 | //! @short The main class for kexi frontend parts (plugins) like tables, queries, forms and reports | 66 | //! @short The main class for kexi frontend parts (plugins) like tables, queries, forms and reports | ||
67 | /*! | 67 | /*! | ||
68 | Plugins create windows (KexiWindow) for a given type of object. | 68 | Plugins create windows (KexiWindow) for a given type of object. | ||
69 | 69 | | |||
70 | Notes for plugins implementors: This class supports InternalPropertyMap interface, | 70 | Notes for plugins implementors: This class supports InternalPropertyMap interface, | ||
71 | so supported internal properties affecting its behaviour are: | 71 | so supported internal properties affecting its behaviour are: | ||
72 | - newObjectsAreDirty: True if newly created, unsaved objects are dirty. False by default. | 72 | - newObjectsAreDirty: True if newly created, unsaved objects are dirty. False by default. | ||
73 | - textViewModeCaption: custum i18n'd action text replacing standard "Text View" text. | 73 | - textViewModeCaption: custum i18n'd action text replacing standard "Text View" text. | ||
74 | - textViewModeToolTip: custum i18n'd action tool tip replacing standard "Switch to text view" text. | ||||
74 | Used in for query's "SQL View". | 75 | Used in for query's "SQL View". | ||
75 | In general: a whole set of i18n'd action names, initialised on KexiPart::Part subclass ctor. | 76 | In general: a whole set of i18n'd action names, initialised on KexiPart::Part subclass ctor. | ||
76 | The names are useful because the same action can have other name for each part, | 77 | The names are useful because the same action can have other name for each part, | ||
77 | e.g. "New table" vs "New query" can have different forms for some languages. | 78 | e.g. "New table" vs "New query" can have different forms for some languages. | ||
78 | So this is a flexible way for customizing translatable strings. | 79 | So this is a flexible way for customizing translatable strings. | ||
79 | */ | 80 | */ | ||
80 | class KEXICORE_EXPORT Part : public PartBase | 81 | class KEXICORE_EXPORT Part : public PartBase | ||
81 | { | 82 | { | ||
▲ Show 20 Lines • Show All 190 Lines • ▼ Show 20 Line(s) | 260 | private: | |||
272 | friend class GUIClient; | 273 | friend class GUIClient; | ||
273 | }; | 274 | }; | ||
274 | 275 | | |||
275 | /*! \return full caption for item \a item and part \a part. | 276 | /*! \return full caption for item \a item and part \a part. | ||
276 | If \a part is provided, the captions will be in a form of "name : inctancetype", e.g. "Employees : Table", | 277 | If \a part is provided, the captions will be in a form of "name : inctancetype", e.g. "Employees : Table", | ||
277 | otherwise it will be in a form of "name", e.g. "Employees". */ | 278 | otherwise it will be in a form of "name", e.g. "Employees". */ | ||
278 | KEXICORE_EXPORT QString fullCaptionForItem(KexiPart::Item *item, KexiPart::Part *part); | 279 | KEXICORE_EXPORT QString fullCaptionForItem(KexiPart::Item *item, KexiPart::Part *part); | ||
279 | 280 | | |||
281 | /*! \return i18n'd actionText and iconName for "Open in text view" action specific for @a pluginId. | ||||
282 | Currently it the only special is for "org.kexi-project.query". | ||||
283 | The default is "Design in Text View" and no icon. */ | ||||
284 | KEXICORE_EXPORT void getTextViewAction(const QString& pluginId, QString *actionText, QString *iconName); | ||||
285 | | ||||
280 | } // namespace KexiPart | 286 | } // namespace KexiPart | ||
281 | 287 | | |||
282 | #endif | 288 | #endif |