Databaseconnectionclasses  0.5.3
hk_label.h
1 // ****************************************************************************
2 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
3 // This file is part of the hk_classes 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 COPYING 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 #ifndef HK_LABEL
12 #define HK_LABEL
13 #include "hk_visible.h"
14 #include "hk_form.h"
15 using namespace std;
25 class hk_label:public hk_visible
26 {
27  public:
28  hk_label(hk_form* form=NULL);
29  virtual ~hk_label();
36  void set_topline(int l=1,bool registerchange=true);
42  void set_bottomline(int l=1,bool registerchange=true);
49  void set_leftline(int l=1,bool registerchange=true);
56  void set_rightline(int l=1,bool registerchange=true);
64  void set_diagonalluro(int l=1,bool registerchange=true);
71  void set_diagonalloru(int l=1,bool registerchange=true);
72  int diagonalloru(void);
73  int topline(void);
74  int bottomline(void);
75  int leftline(void);
76  int rightline(void);
77  int diagonalluro(void);
83  void set_frame(int l=1,bool registerchange=true);
84 
85 protected:
86  virtual bool presentationmode_changed(void);
87  virtual void savedata(ostream& s );
88  virtual void loaddata(xmlNodePtr definition);
89  virtual void widget_specific_topline_changed(void){}
90  virtual void widget_specific_bottomline_changed(void){}
91  virtual void widget_specific_leftline_changed(void){}
92  virtual void widget_specific_rightline_changed(void){}
93  virtual void widget_specific_diagonalluro_changed(void){}
94  virtual void widget_specific_diagonalloru_changed(void){}
95 
96 
97 
98 private:
99  hk_labelmodeprivate* p_designdata;
100  hk_labelmodeprivate* p_viewdata;
101 };
102 #endif
base class for labels in forms
Definition: hk_label.h:25
base class for forms
Definition: hk_form.h:43
Definition: hk_label.cpp:13
base class for visible widgets
Definition: hk_visible.h:35