Ardour  9.0-pre0-582-g084a23a80d
recentfilter.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_RECENTFILTER_H
4 #define _GTKMM_RECENTFILTER_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* Copyright (C) 2006 The gtkmm Development Team
11  *
12  * This library is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU Lesser General Public
14  * License as published by the Free Software Foundation; either
15  * version 2.1 of the License, or (at your option) any later version.
16  *
17  * This library is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  * Lesser General Public License for more details.
21  *
22  * You should have received a copy of the GNU Lesser General Public
23  * License along with this library; if not, write to the Free
24  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25  */
26 
27 #include <gtkmm/object.h>
28 
29 
30 #ifndef DOXYGEN_SHOULD_SKIP_THIS
31 typedef struct _GtkRecentFilter GtkRecentFilter;
32 typedef struct _GtkRecentFilterClass GtkRecentFilterClass;
33 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
34 
35 
36 namespace Gtk
37 { class RecentFilter_Class; } // namespace Gtk
38 namespace Gtk
39 {
40 
56 {
62  RECENT_FILTER_AGE = 1 << 5
63 };
64 
67  { return static_cast<RecentFilterFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
68 
71  { return static_cast<RecentFilterFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
72 
75  { return static_cast<RecentFilterFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
76 
79  { return static_cast<RecentFilterFlags>(~static_cast<unsigned>(flags)); }
80 
83  { return (lhs = static_cast<RecentFilterFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
84 
87  { return (lhs = static_cast<RecentFilterFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
88 
91  { return (lhs = static_cast<RecentFilterFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
92 
93 } // namespace Gtk
94 
95 
96 #ifndef DOXYGEN_SHOULD_SKIP_THIS
97 namespace Glib
98 {
99 
100 template <>
101 class Value<Gtk::RecentFilterFlags> : public Glib::Value_Flags<Gtk::RecentFilterFlags>
102 {
103 public:
104  static GType value_type() G_GNUC_CONST;
105 };
106 
107 } // namespace Glib
108 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
109 
110 
111 namespace Gtk
112 {
113 
114 
134 class RecentFilter : public Gtk::Object
135 {
136  public:
137 #ifndef DOXYGEN_SHOULD_SKIP_THIS
138  typedef RecentFilter CppObjectType;
139  typedef RecentFilter_Class CppClassType;
140  typedef GtkRecentFilter BaseObjectType;
141  typedef GtkRecentFilterClass BaseClassType;
142 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
143 
144  virtual ~RecentFilter();
145 
146 #ifndef DOXYGEN_SHOULD_SKIP_THIS
147 
148 private:
149  friend class RecentFilter_Class;
150  static CppClassType recentfilter_class_;
151 
152  // noncopyable
153  RecentFilter(const RecentFilter&);
154  RecentFilter& operator=(const RecentFilter&);
155 
156 protected:
157  explicit RecentFilter(const Glib::ConstructParams& construct_params);
158  explicit RecentFilter(GtkRecentFilter* castitem);
159 
160 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
161 
162 public:
163 #ifndef DOXYGEN_SHOULD_SKIP_THIS
164  static GType get_type() G_GNUC_CONST;
165 
166 
167  static GType get_base_type() G_GNUC_CONST;
168 #endif
169 
171  GtkRecentFilter* gobj() { return reinterpret_cast<GtkRecentFilter*>(gobject_); }
172 
174  const GtkRecentFilter* gobj() const { return reinterpret_cast<GtkRecentFilter*>(gobject_); }
175 
176 
177 public:
178  //C++ methods used to invoke GTK+ virtual functions:
179 
180 protected:
181  //GTK+ Virtual Functions (override these to change behaviour):
182 
183  //Default Signal Handlers::
184 
185 
186 private:
187 
188 public:
190 
191 
198  void set_name(const Glib::ustring& name);
199 
206  Glib::ustring get_name() const;
207 
208 
213  void add_mime_type(const Glib::ustring& mime_type);
214 
220  void add_pattern(const Glib::ustring& pattern);
221 
226 
232  void add_application(const Glib::ustring& application);
233 
239  void add_group(const Glib::ustring& group);
240 
246  void add_age(int days);
247 
259  class Info
260  {
261  public:
262  Info();
263 
266 
267  Glib::ustring uri;
268  Glib::ustring display_name;
269  Glib::ustring mime_type;
270  std::list<Glib::ustring> applications;
271  std::list<Glib::ustring> groups;
272  int age;
273  };
274 
276  typedef sigc::slot<bool, const Info&> SlotCustom;
277 
278  void add_custom(RecentFilterFlags needed, const SlotCustom& slot);
279 
280 
292 
293  // Method is used by class RecentChooser implementors.
294 
295  //_WRAP_METHOD(bool filter(const GtkRecentFilterInfo* filter_info), gtk_recent_filter_filter)
296 
297 
298 };
299 
300 } // namespace Gtk
301 
302 
303 namespace Glib
304 {
313  Gtk::RecentFilter* wrap(GtkRecentFilter* object, bool take_copy = false);
314 } //namespace Glib
315 
316 
317 #endif /* _GTKMM_RECENTFILTER_H */
318 
std::list< Glib::ustring > applications
Definition: recentfilter.h:270
RecentFilterFlags contains
This bitmask tells us which of the other variables contain useful information.
Definition: recentfilter.h:265
Glib::ustring mime_type
Definition: recentfilter.h:269
Glib::ustring display_name
Definition: recentfilter.h:268
std::list< Glib::ustring > groups
Definition: recentfilter.h:271
void add_custom(RecentFilterFlags needed, const SlotCustom &slot)
Glib::ustring get_name() const
void add_group(const Glib::ustring &group)
void add_mime_type(const Glib::ustring &mime_type)
sigc::slot< bool, const Info & > SlotCustom
For instance, bool on_custom(const Gtk::RecentFilter::Info& filter_info);.
Definition: recentfilter.h:276
void add_age(int days)
void set_name(const Glib::ustring &name)
void add_application(const Glib::ustring &application)
Gtk::RecentFilter * wrap(GtkRecentFilter *object, bool take_copy=false)
void add_pixbuf_formats()
const GtkRecentFilter * gobj() const
Provides access to the underlying C GtkObject.
Definition: recentfilter.h:174
virtual ~RecentFilter()
RecentFilterFlags get_needed() const
void add_pattern(const Glib::ustring &pattern)
GtkRecentFilter * gobj()
Provides access to the underlying C GtkObject.
Definition: recentfilter.h:171
CellRendererState & operator|=(CellRendererState &lhs, CellRendererState rhs)
Definition: cellrenderer.h:86
CellRendererState operator&(CellRendererState lhs, CellRendererState rhs)
Definition: cellrenderer.h:74
RecentFilterFlags
Definition: recentfilter.h:56
CellRendererState operator^(CellRendererState lhs, CellRendererState rhs)
Definition: cellrenderer.h:78
CellRendererState operator~(CellRendererState flags)
Definition: cellrenderer.h:82
CellRendererState & operator&=(CellRendererState &lhs, CellRendererState rhs)
Definition: cellrenderer.h:90
CellRendererState operator|(CellRendererState lhs, CellRendererState rhs)
Definition: cellrenderer.h:70
CellRendererState & operator^=(CellRendererState &lhs, CellRendererState rhs)
Definition: cellrenderer.h:94
@ RECENT_FILTER_AGE
Definition: recentfilter.h:62
@ RECENT_FILTER_DISPLAY_NAME
Definition: recentfilter.h:58
@ RECENT_FILTER_APPLICATION
Definition: recentfilter.h:60
@ RECENT_FILTER_MIME_TYPE
Definition: recentfilter.h:59
@ RECENT_FILTER_GROUP
Definition: recentfilter.h:61
@ RECENT_FILTER_URI
Definition: recentfilter.h:57
GtkImageIconNameData name
Definition: gtkimage.h:6
struct _GtkRecentFilter GtkRecentFilter
Definition: ardour_ui.h:188
Definition: lobject.h:100