Databaseconnectionclasses  0.5.3
hk_dsmodevisible.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_DSMODEVISIBLE
12 #define HK_DSMODEVISIBLE
13 #include "hk_dsvisible.h"
14 class hk_dsgrid;
15 
18 {
19 
20 public:
21 hk_dsmodevisible(hk_presentation* presentation=NULL);
22 virtual ~hk_dsmodevisible();
23  enum enum_mode {designmode,viewmode,filtermode};
28  virtual bool set_mode(enum_mode s);
29  virtual void set_designmode(void);
30  virtual void set_viewmode(void);
31 
32  enum_mode mode(void) const;
33  bool has_changed(void) const;
34  void has_changed(bool);
35  void set_block_has_changed(bool);
36  bool block_has_changed(void) const;
37 
38 virtual void reset_has_changed(void);
42  bool is_new() const{return p_is_new;}
43 protected:
44  virtual void set_has_changed(enum_has_changed forcesetting=standard);
45  virtual void widget_specific_modechanges(enum_mode){}
46  virtual bool widget_specific_before_modechanges(enum_mode);
47  bool p_is_new;
48 
49 private:
50  hk_dsmodevisibleprivate* p_private;
51 
52 
53 };
54 
55 
56 
57 
58 #endif //HK_DSMODEVISIBLE
base class for widgets which show multi column data in a grid.
Definition: hk_dsgrid.h:26
Definition: hk_dsmodevisible.cpp:18
base class for visible widgets without column data connection
Definition: hk_dsvisible.h:31
Definition: hk_dsmodevisible.h:17
bool is_new() const
Definition: hk_dsmodevisible.h:42
base class for multidatasource based classes like forms and reports
Definition: hk_presentation.h:40
virtual bool set_mode(enum_mode s)
Definition: hk_dsmodevisible.cpp:95