~ubuntu-branches/ubuntu/precise/gtkmm3.0/precise

« back to all changes in this revision

Viewing changes to gtk/gtkmm/filechooserwidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2011-06-17 00:12:44 UTC
  • Revision ID: james.westby@ubuntu.com-20110617001244-9hl5an15hiaaahi6
Tags: upstream-3.0.1
ImportĀ upstreamĀ versionĀ 3.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- c++ -*-
 
2
// Generated by gtkmmproc -- DO NOT MODIFY!
 
3
#ifndef _GTKMM_FILECHOOSERWIDGET_H
 
4
#define _GTKMM_FILECHOOSERWIDGET_H
 
5
 
 
6
 
 
7
#include <glibmm.h>
 
8
 
 
9
/* $Id: filechooserwidget.hg,v 1.4 2005/11/30 14:10:49 murrayc Exp $ */
 
10
 
 
11
/* box.h
 
12
 *
 
13
 * Copyright (C) 1998-2002 The gtkmm Development Team
 
14
 *
 
15
 * This library is free software; you can redistribute it and/or
 
16
 * modify it under the terms of the GNU Lesser General Public
 
17
 * License as published by the Free Software Foundation; either
 
18
 * version 2.1 of the License, or (at your option) any later version.
 
19
 *
 
20
 * This library is distributed in the hope that it will be useful,
 
21
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
22
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
23
 * Lesser General Public License for more details.
 
24
 *
 
25
 * You should have received a copy of the GNU Lesser General Public
 
26
 * License along with this library; if not, write to the Free
 
27
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
28
 */
 
29
 
 
30
#include <gtkmm/box.h>
 
31
#include <gtkmm/filechooser.h>
 
32
 
 
33
 
 
34
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
35
typedef struct _GtkFileChooserWidget GtkFileChooserWidget;
 
36
typedef struct _GtkFileChooserWidgetClass GtkFileChooserWidgetClass;
 
37
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
38
 
 
39
 
 
40
namespace Gtk
 
41
{ class FileChooserWidget_Class; } // namespace Gtk
 
42
namespace Gtk
 
43
{
 
44
 
 
45
/** File chooser widget that can be embedded in other widgets.
 
46
 *
 
47
 * FileChooserWidget is a widget suitable for selecting files. It is the main
 
48
 * building block of a Gtk::FileChooserDialog. Most applications will only need to use
 
49
 * the latter; you can use FileChooserWidget as part of a larger window if you have
 
50
 * special needs.
 
51
 *
 
52
 * @ingroup Widgets
 
53
 */
 
54
 
 
55
class FileChooserWidget
 
56
: public VBox,
 
57
  public FileChooser
 
58
{
 
59
  public:
 
60
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
61
  typedef FileChooserWidget CppObjectType;
 
62
  typedef FileChooserWidget_Class CppClassType;
 
63
  typedef GtkFileChooserWidget BaseObjectType;
 
64
  typedef GtkFileChooserWidgetClass BaseClassType;
 
65
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
66
 
 
67
  virtual ~FileChooserWidget();
 
68
 
 
69
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
70
 
 
71
private:
 
72
  friend class FileChooserWidget_Class;
 
73
  static CppClassType filechooserwidget_class_;
 
74
 
 
75
  // noncopyable
 
76
  FileChooserWidget(const FileChooserWidget&);
 
77
  FileChooserWidget& operator=(const FileChooserWidget&);
 
78
 
 
79
protected:
 
80
  explicit FileChooserWidget(const Glib::ConstructParams& construct_params);
 
81
  explicit FileChooserWidget(GtkFileChooserWidget* castitem);
 
82
 
 
83
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
84
 
 
85
public:
 
86
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
87
  static GType get_type()      G_GNUC_CONST;
 
88
 
 
89
 
 
90
  static GType get_base_type() G_GNUC_CONST;
 
91
#endif
 
92
 
 
93
  ///Provides access to the underlying C GtkObject.
 
94
  GtkFileChooserWidget*       gobj()       { return reinterpret_cast<GtkFileChooserWidget*>(gobject_); }
 
95
 
 
96
  ///Provides access to the underlying C GtkObject.
 
97
  const GtkFileChooserWidget* gobj() const { return reinterpret_cast<GtkFileChooserWidget*>(gobject_); }
 
98
 
 
99
 
 
100
public:
 
101
  //C++ methods used to invoke GTK+ virtual functions:
 
102
 
 
103
protected:
 
104
  //GTK+ Virtual Functions (override these to change behaviour):
 
105
 
 
106
  //Default Signal Handlers::
 
107
 
 
108
 
 
109
private:
 
110
 
 
111
  
 
112
public:
 
113
  FileChooserWidget();
 
114
  
 
115
  /** Creates a file chooser widget that can be embedded in other widgets.
 
116
   *
 
117
   * Creates a new FileChooserWidget. This is a file chooser widget that can be embedded in
 
118
   * custom windows, and it is the same widget that is used by Gtk::FileChooserDialog.
 
119
   *
 
120
   * @param action Open or save mode for the widget
 
121
   * 
 
122
   * @newin{2,4}
 
123
   */
 
124
  explicit FileChooserWidget(FileChooserAction action);
 
125
 
 
126
 
 
127
};
 
128
 
 
129
} // namespace Gtk
 
130
 
 
131
 
 
132
namespace Glib
 
133
{
 
134
  /** A Glib::wrap() method for this object.
 
135
   * 
 
136
   * @param object The C instance.
 
137
   * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
 
138
   * @result A C++ instance that wraps this C instance.
 
139
   *
 
140
   * @relates Gtk::FileChooserWidget
 
141
   */
 
142
  Gtk::FileChooserWidget* wrap(GtkFileChooserWidget* object, bool take_copy = false);
 
143
} //namespace Glib
 
144
 
 
145
 
 
146
#endif /* _GTKMM_FILECHOOSERWIDGET_H */
 
147