kexi

kexilookupcolumnpage.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2006 Jaroslaw Staniek <js@iidea.pl>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 #ifndef KEXILOOKUPCOLUMNPAGE_H
00020 #define KEXILOOKUPCOLUMNPAGE_H
00021 
00022 #include <qwidget.h>
00023 #include <kexidb/field.h>
00024 #include <kexidb/utils.h>
00025 #include <koproperty/set.h>
00026 
00027 class KCommand;
00028 class KexiObjectInfoLabel;
00029 class KexiDataSourceComboBox;
00030 class KexiFieldComboBox;
00031 class KexiFieldListView;
00032 class KexiProject;
00033 class KexiSmallToolButton;
00034 class QToolButton;
00035 class QLabel;
00036 class QFrame;
00037 
00039 
00045 class KexiLookupColumnPage : public QWidget
00046 {
00047     Q_OBJECT
00048 
00049     public:
00050         KexiLookupColumnPage(QWidget *parent);
00051         virtual ~KexiLookupColumnPage();
00052 
00053     public slots:
00054         void setProject(KexiProject *prj);
00055         void clearRowSourceSelection(bool alsoClearComboBox = true);
00056         void clearBoundColumnSelection();
00057         void clearVisibleColumnSelection();
00058 
00060         void assignPropertySet(KoProperty::Set* propertySet);
00061 
00062     signals:
00064         void jumpToObjectRequested(const QCString& mime, const QCString& name);
00065 
00066 //      /*! Signal emitted when current bound column has been changed. */
00067 //      void boundColumnChanged(const QString& string, const QString& caption,
00068     //      KexiDB::Field::Type type);
00069 
00070     protected slots:
00071         void slotRowSourceTextChanged(const QString & string);
00072         void slotRowSourceChanged();
00073         void slotGotoSelectedRowSource();
00074         void slotBoundColumnSelected();
00075         void slotVisibleColumnSelected();
00076 
00077     protected:
00078         void updateBoundColumnWidgetsAvailability();
00079 
00081         void changeProperty(const QCString &property, const QVariant &value);
00082 
00083     private:
00084         class Private;
00085         Private* d;
00086 };
00087 
00088 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys