vdk 2.4.0
vdkgnomeentry.h
1 /*
2  * ===========================
3  * VDK Visual Develeopment Kit
4  * Version 1.0.4
5  * December 1999
6  * ===========================
7  *
8  * Copyright (C) 1998, Mario Motta
9  * Developed by Mario Motta <mmotta@guest.net>
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Library General Public
13  * License as published by the Free Software Foundation; either
14  * version 2 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Library General Public License for more details.
20  *
21  * You should have received a copy of the GNU Library General Public
22  * License along with this library; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24  * 02111-1307, USA.
25  */
26 
27 #ifndef VDK_GNOME_ENTRY_H
28 #define VDK_GNOME_ENTRY_H
29 
30 #if HAVE_GNOME
31 #include <vdk/combo.h>
32 #include <gnome.h>
33 class VDKForm;
41 class VDKGnomeEntry: public VDKCombo
42 {
43  protected:
44  public:
49  VDKReadWriteValueProp<VDKGnomeEntry,char*> History;
53  VDKReadWriteValueProp<VDKGnomeEntry,unsigned int> MaxSaved;
60  VDKGnomeEntry(VDKForm* owner,
61  char* def = (char*) NULL,
62  char* history = (char*) NULL
63  );
67  virtual ~VDKGnomeEntry();
68 
69  void SetHistory(char* history)
70  {
71  gnome_entry_set_history_id(GNOME_ENTRY(widget),history);
72  }
73 
74  void SetMaxSaved(unsigned int max)
75  {
76  gnome_entry_set_max_saved(GNOME_ENTRY(widget),max);
77  }
78 
79 };
80 #endif
81 
82 #endif
VDKCombo
Provides a simplified wrapper for gtkcombo.
Definition: combo.h:65
VDKForm
VDKForm widgets, generally the outermost widget container.
Definition: forms.h:68