libgnomeuimm  2.28.0
file-entry.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _LIBGNOMEUIMM_FILE_ENTRY_H
4 #define _LIBGNOMEUIMM_FILE_ENTRY_H
5 
6 
7 #include <glibmm.h>
8 
9 /* $Id: file-entry.hg,v 1.12 2003/01/04 20:16:28 murrayc Exp $ */
10 
11 
12 /* file-entry.hg
13  *
14  * Copyright (C) 1999 The Gtk-- Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or (at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 #include <gtkmm/box.h>
32 #include <gtkmm/editable.h>
33 //#include <libgnomeui/gnome-file-entry.h>
34 
35 
36 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 typedef struct _GnomeFileEntry GnomeFileEntry;
38 typedef struct _GnomeFileEntryClass GnomeFileEntryClass;
39 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
40 
41 
42 namespace Gnome
43 {
44 
45 namespace UI
46 { class FileEntry_Class; } // namespace UI
47 
48 } // namespace Gnome
49 namespace Gnome
50 {
51 
52 namespace UI
53 {
54 
55 
56 class FileEntry
57  : public Gtk::VBox,
58  public Gtk::Editable
59 {
60  public:
61 #ifndef DOXYGEN_SHOULD_SKIP_THIS
62  typedef FileEntry CppObjectType;
63  typedef FileEntry_Class CppClassType;
64  typedef GnomeFileEntry BaseObjectType;
65  typedef GnomeFileEntryClass BaseClassType;
66 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
67 
68  virtual ~FileEntry();
69 
70 #ifndef DOXYGEN_SHOULD_SKIP_THIS
71 
72 private:
73  friend class FileEntry_Class;
74  static CppClassType fileentry_class_;
75 
76  // noncopyable
77  FileEntry(const FileEntry&);
78  FileEntry& operator=(const FileEntry&);
79 
80 protected:
81  explicit FileEntry(const Glib::ConstructParams& construct_params);
82  explicit FileEntry(GnomeFileEntry* castitem);
83 
84 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
85 
86 public:
87 #ifndef DOXYGEN_SHOULD_SKIP_THIS
88  static GType get_type() G_GNUC_CONST;
89 
90 
91  static GType get_base_type() G_GNUC_CONST;
92 #endif
93 
95  GnomeFileEntry* gobj() { return reinterpret_cast<GnomeFileEntry*>(gobject_); }
96 
98  const GnomeFileEntry* gobj() const { return reinterpret_cast<GnomeFileEntry*>(gobject_); }
99 
100 
101 public:
102  //C++ methods used to invoke GTK+ virtual functions:
103 #ifdef GLIBMM_VFUNCS_ENABLED
104 #endif //GLIBMM_VFUNCS_ENABLED
105 
106 protected:
107  //GTK+ Virtual Functions (override these to change behaviour):
108 #ifdef GLIBMM_VFUNCS_ENABLED
109 #endif //GLIBMM_VFUNCS_ENABLED
110 
111  //Default Signal Handlers::
112 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
113  virtual void on_browse_clicked();
114  virtual void on_activate();
115 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
116 
117 
118 private:
119 
120 
121 public:
122  FileEntry();
123 
124  FileEntry(const Glib::ustring& history_id, const Glib::ustring& browse_dialog_title);
125 
126 
127  Gtk::Widget* gnome_entry();
128 
129  Gtk::Widget* gtk_entry();
130 
131 
132  void set_title (const Glib::ustring& browse_dialog_title);
133 
134  void set_default_path(const Glib::ustring& path);
135 
136  void set_directory_entry(bool directory_entry = true);
137 
138  bool get_directory_entry() const;
139 
140  Glib::ustring get_full_path(bool file_must_exist) const;
141 
142  void set_filename(const Glib::ustring& filename);
143 
144  void set_modal(bool is_modal = true);
145 
146  bool get_modal() const;
147 
148 
154  Glib::SignalProxy0< void > signal_browse_clicked();
155 ;
156 
162  Glib::SignalProxy0< void > signal_activate();
163 ;
164 
165 
166 };
167 
168 } /* namespace UI */
169 } /* namespace Gnome */
170 
171 
172 namespace Glib
173 {
182  Gnome::UI::FileEntry* wrap(GnomeFileEntry* object, bool take_copy = false);
183 } //namespace Glib
184 
185 
186 #endif /* _LIBGNOMEUIMM_FILE_ENTRY_H */
187