Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/forms/kexidatasourcepage.h
1 | /* This file is part of the KDE project | 1 | /* This file is part of the KDE project | ||
---|---|---|---|---|---|
2 | Copyright (C) 2005-2009 Jarosław Staniek <staniek@kde.org> | 2 | Copyright (C) 2005-2017 Jarosław Staniek <staniek@kde.org> | ||
3 | 3 | | |||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or | ||
5 | modify it under the terms of the GNU Library General Public | 5 | modify it under the terms of the GNU Library General Public | ||
6 | License as published by the Free Software Foundation; either | 6 | License as published by the Free Software Foundation; either | ||
7 | version 2 of the License, or (at your option) any later version. | 7 | version 2 of the License, or (at your option) any later version. | ||
8 | 8 | | |||
9 | This library is distributed in the hope that it will be useful, | 9 | This library is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
Show All 29 Lines | |||||
40 | class KEXIFORMUTILS_EXPORT KexiDataSourcePage : public KexiPropertyPaneViewBase | 40 | class KEXIFORMUTILS_EXPORT KexiDataSourcePage : public KexiPropertyPaneViewBase | ||
41 | { | 41 | { | ||
42 | Q_OBJECT | 42 | Q_OBJECT | ||
43 | 43 | | |||
44 | public: | 44 | public: | ||
45 | explicit KexiDataSourcePage(QWidget *parent); | 45 | explicit KexiDataSourcePage(QWidget *parent); | ||
46 | virtual ~KexiDataSourcePage(); | 46 | virtual ~KexiDataSourcePage(); | ||
47 | 47 | | |||
48 | //! @return name plugin ID of selected item (usually a table or a query). Can return an empty string. | ||||
49 | QString selectedPluginId() const; | ||||
50 | | ||||
51 | //! @return name of selected table or query. | ||||
52 | QString selectedName() const; | ||||
53 | | ||||
48 | public Q_SLOTS: | 54 | public Q_SLOTS: | ||
49 | void setProject(KexiProject *prj); | 55 | void setProject(KexiProject *prj); | ||
50 | void clearFormDataSourceSelection(bool alsoClearComboBox = true); | 56 | void clearFormDataSourceSelection(bool alsoClearComboBox = true); | ||
51 | void clearWidgetDataSourceSelection(); | 57 | void clearWidgetDataSourceSelection(); | ||
52 | 58 | | |||
53 | //! Sets data source of a currently selected form. | 59 | //! Sets data source of a currently selected form. | ||
54 | //! This is performed on form initialization and on activating. | 60 | //! This is performed on form initialization and on activating. | ||
55 | void setFormDataSource(const QString& pluginId, const QString& name); | 61 | void setFormDataSource(const QString& pluginId, const QString& name); | ||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |