Databaseconnectionclasses  0.5.3
hk_tabvisible.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_TABVISIBLE
12 #define HK_TABVISIBLE
13 #include "hk_visible.h"
14 #include <vector>
15 
17 
19 {
20 friend class hk_tabvisible;
21 friend class hk_tabvisibleprivate;
22 
23 public:
25  virtual ~hk_tabvisiblepage();
26 
27 private:
28  hk_tabvisiblepageprivate* p_private;
29 };
30 
33 
34 
35 class hk_tabvisible : public hk_visible
36 {
37 friend class hk_tabvisiblepage;
38 
39 public:
40  hk_tabvisible(hk_form* form=NULL);
41  virtual ~hk_tabvisible();
42  void insert_tab(hk_tabvisiblepage* t,int index=-1, bool registerchange=true);
43  virtual hk_tabvisiblepage* current_page();
44  hk_tabvisiblepage* tab_at(int);
45  vector<hk_tabvisiblepage*>* tabpages() const;
46  virtual void savedata(ostream& s );
47  virtual void loaddata(xmlNodePtr definition);
48 
49 protected:
50 
51 private:
52  void remove_page(hk_tabvisiblepage*);
53  hk_tabvisiblemodeprivate* p_designdata;
54  hk_tabvisiblemodeprivate* p_viewdata;
55  hk_tabvisibleprivate* p_private;
56 
57 };
58 #endif //hk_tabvisible
virtual void loaddata(xmlNodePtr definition)
Definition: hk_tabvisible.cpp:139
base class for forms
Definition: hk_form.h:43
Definition: hk_tabvisible.cpp:14
virtual void savedata(ostream &s)
Definition: hk_tabvisible.cpp:134
base class for visible widgets
Definition: hk_visible.h:35
Definition: hk_tabvisible.cpp:65
Definition: hk_tabvisible.h:18
Definition: hk_tabvisible.cpp:41
Definition: hk_tabvisible.h:35