Databasehandlingdialogclasses  0.5.3
hk_kdeproperty.h
1 // ****************************************************************************
2 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
3 // This file is part of the hk_kdeclasses library.
4 // This file may be distributed and/or modified under the terms of the
5 // GNU Library Public License version 2 as published by the Free Software
6 // Foundation and appearing in the file LGPL included in the
7 // packaging of this file.
8 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
9 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10 // ****************************************************************************
11 
12 #ifndef HK_KDEPROPERTY_H
13 #define HK_KDEPROPERTY_H
14 #include "hk_kdepropertybase.h"
15 #include <hk_class.h>
16 class QFontDatabase;
17 class QScrollView;
18 class hk_kdesimpleform;
19 class KColorButton;
20 
21 class hk_kdeproperty : public hk_kdepropertyeditorbase,public hk_class
22 {
23  Q_OBJECT
24  friend class hk_kdesimpleform;
25 
26  public:
27  hk_kdeproperty( hk_kdesimpleform* parent = 0, const char* name = 0, WFlags fl = 0 );
28  ~hk_kdeproperty();
29 
30  public slots:
31  void action_changes();
32  void actionobject_changes();
33  void data_changes();
34  void format_changes();
35  void geometry_changes();
36  void set_object(hk_visible*);
37  hk_visible* object(void);
38  void focus_resized(void);
39  void set_datasourcelist(void);
40  void identifier_changed(void);
41  virtual void tooltipfield_changed();
42  virtual void add_formdatasource();
43  virtual void add_listformdatasource();
44  void datasource_selected();
45  void listdatasource_selected();
46  void set_actionobjectlist(void);
47  void combomode_changed(void);
48  void conditionbutton_clicked();
49  void pushactionbutton_clicked(int rownumber,const hk_string& warningmessage);
50  void pushactionbutton_clicked(void);
51  void doubleclickactionbutton_clicked(void);
52  void doubleclickactionbutton_clicked(int rownumber,const hk_string& warningmessage);
53  void openactionbutton_clicked(int rownumber,const hk_string& warningmessage);
54  void openactionbutton_clicked(void);
55  void closeactionbutton_clicked(int rownumber,const hk_string& warningmessage);
56  void closeactionbutton_clicked(void);
57  void beforedeletebutton_clicked(int rownumber,const hk_string& warningmessage);
58  void beforedeletebutton_clicked(void);
59  void afterdeletebutton_clicked(int rownumber,const hk_string& warningmessage);
60  void afterdeletebutton_clicked(void);
61  void beforeinsertbutton_clicked(int rownumber,const hk_string& warningmessage);
62  void beforeinsertbutton_clicked(void);
63  void afterinsertbutton_clicked(int rownumber,const hk_string& warningmessage);
64  void afterinsertbutton_clicked(void);
65  void beforeupdatebutton_clicked(int rownumber,const hk_string& warningmessage);
66  void beforeupdatebutton_clicked(void);
67  void afterupdatebutton_clicked(int rownumber,const hk_string& warningmessage);
68  void afterupdatebutton_clicked(void);
69  void afterrowchangebutton_clicked(int rownumber,const hk_string& warningmessage);
70  void afterrowchangebutton_clicked(void);
71  void beforerowchangebutton_clicked(int rownumber,const hk_string& warningmessage);
72  void beforerowchangebutton_clicked(void);
73  void ongetfocusbutton_clicked(int rownumber,const hk_string& warningmessage);
74  void ongetfocusbutton_clicked(void);
75  void onloosefocusbutton_clicked(int rownumber,const hk_string& warningmessage);
76  void onloosefocusbutton_clicked(void);
77  void onkeybutton_clicked(int rownumber,const hk_string& warningmessage);
78  void onkeybutton_clicked(void);
79  void onselectbutton_clicked(int rownumber,const hk_string& warningmessage);
80  void onvaluechangedbutton_clicked(int rownumber,const hk_string& warningmessage);
81  void onvaluechangedbutton_clicked(void);
82  virtual void onselectbutton_clicked();
83  virtual void use_textlist_changed();
84  virtual void use_textlistbutton_clicked();
85 
86  virtual void border_changes();
87  virtual void subformbutton_clicked();
88  virtual void localimage_selected();
89  virtual void has_changed();
90  virtual void buttonformat_changed();
91 
92  protected:
93  bool eventFilter(QObject* object,QEvent* event);
94 
95 
96  private:
97  hk_visible* p_visible;
98 // change the propertyfields when hk_visible changes
99  void set_visible(void);
100  void set_geometry(void);
101  void set_dsvisible(void);
102  void set_dsdatavisible(void);
103  void set_gridvisible(void);
104  void set_button(void);
105  void set_subform(void);
106  void set_labelvisible(void);
107  void set_imagevisible(void);
108 
109 //change values in hk_visible when the property fields changes
110  void set_objectvisible();
111  void set_objectdsvisible(void);
112  void set_objectdsdatavisible(void);
113  void set_objectsubform(void);
114  void set_objectimagevisible(void);
115  void set_objectaction(void);
116  void set_viewcolumnvalues(void);
117  void use_editor(QLineEdit* e);
118  QFontDatabase* p_fontdatabase;
119  hk_kdesimpleform* p_form;
120  QString settxt,notsettxt;
121  QScrollView* p_datascrollview;
122  QScrollView* p_formatscrollview;
123  QScrollView* p_framescrollview;
124  QScrollView* p_actionscrollview;
125 
126 
127 };
128 #endif // HK_KDEPROPERTY_H
Definition: hk_kdeproperty.h:21
Definition: hk_kdepropertybase.h:32
KDE Widget to display forms.
Definition: hk_kdesimpleform.h:41