kexi

kexilookupcolumnpage.h
1/* This file is part of the KDE project
2 Copyright (C) 2006 Jaroslaw Staniek <js@iidea.pl>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19#ifndef KEXILOOKUPCOLUMNPAGE_H
20#define KEXILOOKUPCOLUMNPAGE_H
21
22#include <tqwidget.h>
23#include <kexidb/field.h>
24#include <kexidb/utils.h>
25#include <koproperty/set.h>
26
27class KCommand;
32class KexiProject;
34class TQToolButton;
35class TQLabel;
36class TQFrame;
37
39
45class KexiLookupColumnPage : public TQWidget
46{
47 TQ_OBJECT
48
49
50 public:
51 KexiLookupColumnPage(TQWidget *parent);
52 virtual ~KexiLookupColumnPage();
53
54 public slots:
55 void setProject(KexiProject *prj);
56 void clearRowSourceSelection(bool alsoClearComboBox = true);
57 void clearBoundColumnSelection();
58 void clearVisibleColumnSelection();
59
61 void assignPropertySet(KoProperty::Set* propertySet);
62
63 signals:
65 void jumpToObjectRequested(const TQCString& mime, const TQCString& name);
66
67// /*! Signal emitted when current bound column has been changed. */
68// void boundColumnChanged(const TQString& string, const TQString& caption,
69 // KexiDB::Field::Type type);
70
71 protected slots:
72 void slotRowSourceTextChanged(const TQString & string);
74 void slotGotoSelectedRowSource();
77
78 protected:
79 void updateBoundColumnWidgetsAvailability();
80
82 void changeProperty(const TQCString &property, const TQVariant &value);
83
84 private:
85 class Private;
86 Private* d;
87};
88
89#endif
A combo box listing availabe data sources (tables and queries) with icons.
void jumpToObjectRequested(const TQCString &mime, const TQCString &name)
Signal emitted when helper button 'Go to selected row sourcesource' is clicked.
void changeProperty(const TQCString &property, const TQVariant &value)
Used instead of m_propertySet->changeProperty() to honor m_propertySetEnabled.
void assignPropertySet(KoProperty::Set *propertySet)
Receives a pointer to a new property set (from KexiFormView::managerPropertyChanged()).
void slotRowSourceTextChanged(const TQString &string)
Helper class displaying small icon with class name and object name.
A project's main controller.
Definition kexiproject.h:68
A small tool button with icon and optional text.