~inkscape.dev/inkscape-devlibs/devlibs-gtk3

« back to all changes in this revision

Viewing changes to include/gtkmm-2.4/gtkmm/calendar.h

  • Committer: JazzyNico
  • Date: 2013-01-21 10:11:05 UTC
  • Revision ID: nicoduf@yahoo.fr-20130121101105-i8d8slkq9ng4olx8
Adding gtk2 libraries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- c++ -*-
 
2
// Generated by gtkmmproc -- DO NOT MODIFY!
 
3
#ifndef _GTKMM_CALENDAR_H
 
4
#define _GTKMM_CALENDAR_H
 
5
 
 
6
#include <gtkmmconfig.h>
 
7
 
 
8
 
 
9
#include <glibmm.h>
 
10
 
 
11
/*
 
12
 * Copyright (C) 1998-2002 The gtkmm Development Team
 
13
 *
 
14
 * This library is free software; you can redistribute it and/or
 
15
 * modify it under the terms of the GNU Lesser General Public
 
16
 * License as published by the Free Software Foundation; either
 
17
 * version 2.1 of the License, or (at your option) any later version.
 
18
 *
 
19
 * This library is distributed in the hope that it will be useful,
 
20
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
21
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
22
 * Lesser General Public License for more details.
 
23
 *
 
24
 * You should have received a copy of the GNU Lesser General Public
 
25
 * License along with this library; if not, write to the Free
 
26
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
27
 */
 
28
 
 
29
 
 
30
#include <gtkmm/widget.h>
 
31
#include <glibmm/date.h>
 
32
 
 
33
 
 
34
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
35
typedef struct _GtkCalendar GtkCalendar;
 
36
typedef struct _GtkCalendarClass GtkCalendarClass;
 
37
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
38
 
 
39
 
 
40
namespace Gtk
 
41
{ class Calendar_Class; } // namespace Gtk
 
42
namespace Gtk
 
43
{
 
44
 
 
45
 
 
46
/** @addtogroup gtkmmEnums gtkmm Enums and Flags */
 
47
 
 
48
/**
 
49
 * @ingroup gtkmmEnums
 
50
 * @par Bitwise operators:
 
51
 * <tt>%CalendarDisplayOptions operator|(CalendarDisplayOptions, CalendarDisplayOptions)</tt><br>
 
52
 * <tt>%CalendarDisplayOptions operator&(CalendarDisplayOptions, CalendarDisplayOptions)</tt><br>
 
53
 * <tt>%CalendarDisplayOptions operator^(CalendarDisplayOptions, CalendarDisplayOptions)</tt><br>
 
54
 * <tt>%CalendarDisplayOptions operator~(CalendarDisplayOptions)</tt><br>
 
55
 * <tt>%CalendarDisplayOptions& operator|=(CalendarDisplayOptions&, CalendarDisplayOptions)</tt><br>
 
56
 * <tt>%CalendarDisplayOptions& operator&=(CalendarDisplayOptions&, CalendarDisplayOptions)</tt><br>
 
57
 * <tt>%CalendarDisplayOptions& operator^=(CalendarDisplayOptions&, CalendarDisplayOptions)</tt><br>
 
58
 */
 
59
enum CalendarDisplayOptions
 
60
{
 
61
  CALENDAR_SHOW_HEADING = 1 << 0,
 
62
  CALENDAR_SHOW_DAY_NAMES = 1 << 1,
 
63
  CALENDAR_NO_MONTH_CHANGE = 1 << 2,
 
64
  CALENDAR_SHOW_WEEK_NUMBERS = 1 << 3,
 
65
  CALENDAR_WEEK_START_MONDAY = 1 << 4,
 
66
  CALENDAR_SHOW_DETAILS = 1 << 5
 
67
};
 
68
 
 
69
/** @ingroup gtkmmEnums */
 
70
inline CalendarDisplayOptions operator|(CalendarDisplayOptions lhs, CalendarDisplayOptions rhs)
 
71
  { return static_cast<CalendarDisplayOptions>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
 
72
 
 
73
/** @ingroup gtkmmEnums */
 
74
inline CalendarDisplayOptions operator&(CalendarDisplayOptions lhs, CalendarDisplayOptions rhs)
 
75
  { return static_cast<CalendarDisplayOptions>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
 
76
 
 
77
/** @ingroup gtkmmEnums */
 
78
inline CalendarDisplayOptions operator^(CalendarDisplayOptions lhs, CalendarDisplayOptions rhs)
 
79
  { return static_cast<CalendarDisplayOptions>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
 
80
 
 
81
/** @ingroup gtkmmEnums */
 
82
inline CalendarDisplayOptions operator~(CalendarDisplayOptions flags)
 
83
  { return static_cast<CalendarDisplayOptions>(~static_cast<unsigned>(flags)); }
 
84
 
 
85
/** @ingroup gtkmmEnums */
 
86
inline CalendarDisplayOptions& operator|=(CalendarDisplayOptions& lhs, CalendarDisplayOptions rhs)
 
87
  { return (lhs = static_cast<CalendarDisplayOptions>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
 
88
 
 
89
/** @ingroup gtkmmEnums */
 
90
inline CalendarDisplayOptions& operator&=(CalendarDisplayOptions& lhs, CalendarDisplayOptions rhs)
 
91
  { return (lhs = static_cast<CalendarDisplayOptions>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
 
92
 
 
93
/** @ingroup gtkmmEnums */
 
94
inline CalendarDisplayOptions& operator^=(CalendarDisplayOptions& lhs, CalendarDisplayOptions rhs)
 
95
  { return (lhs = static_cast<CalendarDisplayOptions>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
 
96
 
 
97
} // namespace Gtk
 
98
 
 
99
 
 
100
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
101
namespace Glib
 
102
{
 
103
 
 
104
template <>
 
105
class Value<Gtk::CalendarDisplayOptions> : public Glib::Value_Flags<Gtk::CalendarDisplayOptions>
 
106
{
 
107
public:
 
108
  static GType value_type() G_GNUC_CONST;
 
109
};
 
110
 
 
111
} // namespace Glib
 
112
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
113
 
 
114
 
 
115
namespace Gtk
 
116
{
 
117
 
 
118
 
 
119
/** Display a calendar and/or allow the user to select a date.
 
120
 *
 
121
 * This is a widget that displays a calendar, one month at a time.
 
122
 *
 
123
 * The month and year currently displayed can be altered with
 
124
 * select_month().  The exact day can be selected from the displayed month
 
125
 * using select_day().
 
126
 *
 
127
 * The way in which the calendar itself is displayed can be altered using
 
128
 * set_display_options().
 
129
 *
 
130
 * The selected date can be retrieved from a GtkCalendar using get_date().
 
131
 *
 
132
 * If performing many 'mark' operations, the calendar can be frozen to
 
133
 * prevent flicker, using freeze(), and 'thawed' again using thaw().
 
134
 *
 
135
 * The Calendar widget looks like this:
 
136
 * @image html calendar1.png
 
137
 *
 
138
 * @ingroup Widgets
 
139
 */
 
140
 
 
141
class Calendar : public Widget
 
142
{
 
143
  public:
 
144
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
145
  typedef Calendar CppObjectType;
 
146
  typedef Calendar_Class CppClassType;
 
147
  typedef GtkCalendar BaseObjectType;
 
148
  typedef GtkCalendarClass BaseClassType;
 
149
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
150
 
 
151
  virtual ~Calendar();
 
152
 
 
153
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
154
 
 
155
private:
 
156
  friend class Calendar_Class;
 
157
  static CppClassType calendar_class_;
 
158
 
 
159
  // noncopyable
 
160
  Calendar(const Calendar&);
 
161
  Calendar& operator=(const Calendar&);
 
162
 
 
163
protected:
 
164
  explicit Calendar(const Glib::ConstructParams& construct_params);
 
165
  explicit Calendar(GtkCalendar* castitem);
 
166
 
 
167
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
168
 
 
169
public:
 
170
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
171
  static GType get_type()      G_GNUC_CONST;
 
172
 
 
173
 
 
174
  static GType get_base_type() G_GNUC_CONST;
 
175
#endif
 
176
 
 
177
  ///Provides access to the underlying C GtkObject.
 
178
  GtkCalendar*       gobj()       { return reinterpret_cast<GtkCalendar*>(gobject_); }
 
179
 
 
180
  ///Provides access to the underlying C GtkObject.
 
181
  const GtkCalendar* gobj() const { return reinterpret_cast<GtkCalendar*>(gobject_); }
 
182
 
 
183
 
 
184
public:
 
185
  //C++ methods used to invoke GTK+ virtual functions:
 
186
 
 
187
protected:
 
188
  //GTK+ Virtual Functions (override these to change behaviour):
 
189
 
 
190
  //Default Signal Handlers::
 
191
  virtual void on_month_changed();
 
192
  virtual void on_day_selected();
 
193
  virtual void on_day_selected_double_click();
 
194
  virtual void on_prev_month();
 
195
  virtual void on_next_month();
 
196
  virtual void on_prev_year();
 
197
  virtual void on_next_year();
 
198
 
 
199
 
 
200
private:
 
201
 
 
202
public:
 
203
  Calendar();
 
204
 
 
205
  
 
206
  /** Shifts the calendar to a different month.
 
207
   * 
 
208
   * Note that this function always returns <tt>true</tt>, and you should
 
209
   * ignore the return value. In GTK+ 3, this function will not
 
210
   * return a value.
 
211
   * @param month A month number between 0 and 11.
 
212
   * @param year The year the month is in.
 
213
   * @return <tt>true</tt>, always.
 
214
   */
 
215
  int select_month(guint month, guint year);
 
216
  
 
217
  /** Selects a day from the current month.
 
218
   * @param day The day number between 1 and 31, or 0 to unselect 
 
219
   * the currently selected day.
 
220
   */
 
221
  void select_day(guint day);
 
222
  
 
223
  /** Places a visual marker on a particular day.
 
224
   * 
 
225
   * Note that this function always returns <tt>true</tt>, and you should
 
226
   * ignore the return value. In GTK+ 3, this function will not
 
227
   * return a value.
 
228
   * @param day The day number to mark between 1 and 31.
 
229
   * @return <tt>true</tt>, always.
 
230
   */
 
231
  int mark_day(guint day);
 
232
  
 
233
  /** Removes the visual marker from a particular day.
 
234
   * 
 
235
   * Note that this function always returns <tt>true</tt>, and you should
 
236
   * ignore the return value. In GTK+ 3, this function will not
 
237
   * return a value.
 
238
   * @param day The day number to unmark between 1 and 31.
 
239
   * @return <tt>true</tt>, always.
 
240
   */
 
241
  int unmark_day(guint day);
 
242
  
 
243
  /** Remove all visual markers.
 
244
   */
 
245
  void clear_marks();
 
246
 
 
247
  
 
248
#ifndef GTKMM_DISABLE_DEPRECATED
 
249
 
 
250
  /** Sets display options (whether to display the heading and the month headings).
 
251
   * 
 
252
   * Deprecated: 2.4: Use set_display_options() instead
 
253
   * @param flags The display options to set.
 
254
   */
 
255
  void display_options(CalendarDisplayOptions flags);
 
256
#endif // GTKMM_DISABLE_DEPRECATED
 
257
 
 
258
 
 
259
  /** Sets display options (whether to display the heading and the month  
 
260
   * headings).
 
261
   * 
 
262
   * @newin{2,4}
 
263
   * @param flags The display options to set.
 
264
   */
 
265
  void set_display_options(CalendarDisplayOptions flags);
 
266
  
 
267
  /** Returns the current display options of @a calendar. 
 
268
   * 
 
269
   * @newin{2,4}
 
270
   * @return The display options.
 
271
   */
 
272
  CalendarDisplayOptions get_display_options() const;
 
273
 
 
274
  
 
275
  /** Obtains the selected date from a Gtk::Calendar.
 
276
   * @param year Location to store the year number, or <tt>0</tt>.
 
277
   * @param month Location to store the month number (between 0 and 11), or <tt>0</tt>.
 
278
   * @param day Location to store the day number (between 1 and 31), or <tt>0</tt>.
 
279
   */
 
280
  void get_date(guint& year, guint& month, guint& day) const;
 
281
  // Additional method not in GTK (#350584)
 
282
  /** Get the date as Glib::Date
 
283
   *
 
284
   * @param date Referenz to set the date
 
285
   */
 
286
  void get_date(Glib::Date& date) const;
 
287
 
 
288
  /** Detail markup handler.
 
289
   * For instance,
 
290
   * @code
 
291
   * Glib::ustring on_calendar_details(guint year, guint month, guint day);
 
292
   * @endcode
 
293
   *
 
294
   * @param year The year for which details are needed.
 
295
   * @param month The month for which details are needed.
 
296
   * @param day The day of @month for which details are needed.
 
297
   * @result Pango markup with details for the specified day, or an empty string.
 
298
   *
 
299
   * This callback function provides Pango markup with detail information for the
 
300
   * specified day. Examples for such details are holidays or appointments. The
 
301
   * function should return an empty string when no information is available.
 
302
   *
 
303
   * @newin{2,14}
 
304
   */
 
305
  typedef sigc::slot<Glib::ustring, guint, guint, guint> SlotDetails;
 
306
 
 
307
  /** Installs a function which provides Pango markup with detail information
 
308
   * for each day. Examples for such details are holidays or appointments. That
 
309
   * information is shown below each day when show-details is set.
 
310
   * A tooltip containing full detail information is provided if the entire
 
311
   * text could not fit into the details area, or if the show-details property
 
312
   * is not set.
 
313
   *
 
314
   * The size of the details area can be restricted by setting the
 
315
   * detail-width-chars and detail-height-rows properties.
 
316
   *
 
317
   * @param slot A callback function providing details for each day.
 
318
   *
 
319
   * @newin{2,14}
 
320
   */
 
321
  void set_detail_func(const SlotDetails& slot);
 
322
  
 
323
 
 
324
  /** Updates the width of detail cells.
 
325
   * See Gtk::Calendar:detail-width-chars.
 
326
   * 
 
327
   * @newin{2,14}
 
328
   * @param chars Detail width in characters.
 
329
   */
 
330
  void set_detail_width_chars(int chars);
 
331
  
 
332
  /** Updates the height of detail cells.
 
333
   * See Gtk::Calendar:detail-height-rows.
 
334
   * 
 
335
   * @newin{2,14}
 
336
   * @param rows Detail height in rows.
 
337
   */
 
338
  void set_detail_height_rows(int rows);
 
339
 
 
340
  
 
341
  /** Queries the width of detail cells, in characters.
 
342
   * See Gtk::Calendar:detail-width-chars.
 
343
   * 
 
344
   * @newin{2,14}
 
345
   * @return The width of detail cells, in characters.
 
346
   */
 
347
  int get_detail_width_chars() const;
 
348
  
 
349
  /** Queries the height of detail cells, in rows.
 
350
   * See Gtk::Calendar:detail-width-chars.
 
351
   * 
 
352
   * @newin{2,14}
 
353
   * @return The height of detail cells, in rows.
 
354
   */
 
355
  int get_detail_height_rows() const;
 
356
 
 
357
  
 
358
#ifndef GTKMM_DISABLE_DEPRECATED
 
359
 
 
360
  /** Does nothing. Previously locked the display of the calendar until
 
361
   * it was thawed with thaw().
 
362
   * 
 
363
   * Deprecated: 2.8:
 
364
   */
 
365
  void freeze();
 
366
#endif // GTKMM_DISABLE_DEPRECATED
 
367
 
 
368
 
 
369
#ifndef GTKMM_DISABLE_DEPRECATED
 
370
 
 
371
  /** Does nothing. Previously defrosted a calendar; all the changes made
 
372
   * since the last freeze() were displayed.
 
373
   * 
 
374
   * Deprecated: 2.8:
 
375
   */
 
376
  void thaw();
 
377
#endif // GTKMM_DISABLE_DEPRECATED
 
378
 
 
379
 
 
380
  /**
 
381
   * @par Prototype:
 
382
   * <tt>void on_my_%month_changed()</tt>
 
383
   */
 
384
 
 
385
  Glib::SignalProxy0< void > signal_month_changed();
 
386
 
 
387
  
 
388
  /**
 
389
   * @par Prototype:
 
390
   * <tt>void on_my_%day_selected()</tt>
 
391
   */
 
392
 
 
393
  Glib::SignalProxy0< void > signal_day_selected();
 
394
 
 
395
  
 
396
  /**
 
397
   * @par Prototype:
 
398
   * <tt>void on_my_%day_selected_double_click()</tt>
 
399
   */
 
400
 
 
401
  Glib::SignalProxy0< void > signal_day_selected_double_click();
 
402
 
 
403
  
 
404
  /**
 
405
   * @par Prototype:
 
406
   * <tt>void on_my_%prev_month()</tt>
 
407
   */
 
408
 
 
409
  Glib::SignalProxy0< void > signal_prev_month();
 
410
 
 
411
  
 
412
  /**
 
413
   * @par Prototype:
 
414
   * <tt>void on_my_%next_month()</tt>
 
415
   */
 
416
 
 
417
  Glib::SignalProxy0< void > signal_next_month();
 
418
 
 
419
  
 
420
  /**
 
421
   * @par Prototype:
 
422
   * <tt>void on_my_%prev_year()</tt>
 
423
   */
 
424
 
 
425
  Glib::SignalProxy0< void > signal_prev_year();
 
426
 
 
427
  
 
428
  /**
 
429
   * @par Prototype:
 
430
   * <tt>void on_my_%next_year()</tt>
 
431
   */
 
432
 
 
433
  Glib::SignalProxy0< void > signal_next_year();
 
434
 
 
435
 
 
436
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
437
/** The selected year.
 
438
   *
 
439
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
440
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
441
   * the value of the property changes.
 
442
   */
 
443
  Glib::PropertyProxy<int> property_year() ;
 
444
#endif //#GLIBMM_PROPERTIES_ENABLED
 
445
 
 
446
#ifdef GLIBMM_PROPERTIES_ENABLED
 
447
/** The selected year.
 
448
   *
 
449
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
450
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
451
   * the value of the property changes.
 
452
   */
 
453
  Glib::PropertyProxy_ReadOnly<int> property_year() const;
 
454
#endif //#GLIBMM_PROPERTIES_ENABLED
 
455
 
 
456
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
457
/** The selected month (as a number between 0 and 11).
 
458
   *
 
459
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
460
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
461
   * the value of the property changes.
 
462
   */
 
463
  Glib::PropertyProxy<int> property_month() ;
 
464
#endif //#GLIBMM_PROPERTIES_ENABLED
 
465
 
 
466
#ifdef GLIBMM_PROPERTIES_ENABLED
 
467
/** The selected month (as a number between 0 and 11).
 
468
   *
 
469
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
470
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
471
   * the value of the property changes.
 
472
   */
 
473
  Glib::PropertyProxy_ReadOnly<int> property_month() const;
 
474
#endif //#GLIBMM_PROPERTIES_ENABLED
 
475
 
 
476
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
477
/** The selected day (as a number between 1 and 31, or 0 to unselect the currently selected day).
 
478
   *
 
479
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
480
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
481
   * the value of the property changes.
 
482
   */
 
483
  Glib::PropertyProxy<int> property_day() ;
 
484
#endif //#GLIBMM_PROPERTIES_ENABLED
 
485
 
 
486
#ifdef GLIBMM_PROPERTIES_ENABLED
 
487
/** The selected day (as a number between 1 and 31, or 0 to unselect the currently selected day).
 
488
   *
 
489
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
490
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
491
   * the value of the property changes.
 
492
   */
 
493
  Glib::PropertyProxy_ReadOnly<int> property_day() const;
 
494
#endif //#GLIBMM_PROPERTIES_ENABLED
 
495
 
 
496
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
497
/** If TRUE, a heading is displayed.
 
498
   *
 
499
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
500
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
501
   * the value of the property changes.
 
502
   */
 
503
  Glib::PropertyProxy<bool> property_show_heading() ;
 
504
#endif //#GLIBMM_PROPERTIES_ENABLED
 
505
 
 
506
#ifdef GLIBMM_PROPERTIES_ENABLED
 
507
/** If TRUE, a heading is displayed.
 
508
   *
 
509
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
510
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
511
   * the value of the property changes.
 
512
   */
 
513
  Glib::PropertyProxy_ReadOnly<bool> property_show_heading() const;
 
514
#endif //#GLIBMM_PROPERTIES_ENABLED
 
515
 
 
516
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
517
/** If TRUE, day names are displayed.
 
518
   *
 
519
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
520
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
521
   * the value of the property changes.
 
522
   */
 
523
  Glib::PropertyProxy<bool> property_show_day_names() ;
 
524
#endif //#GLIBMM_PROPERTIES_ENABLED
 
525
 
 
526
#ifdef GLIBMM_PROPERTIES_ENABLED
 
527
/** If TRUE, day names are displayed.
 
528
   *
 
529
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
530
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
531
   * the value of the property changes.
 
532
   */
 
533
  Glib::PropertyProxy_ReadOnly<bool> property_show_day_names() const;
 
534
#endif //#GLIBMM_PROPERTIES_ENABLED
 
535
 
 
536
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
537
/** If TRUE, the selected month cannot be changed.
 
538
   *
 
539
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
540
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
541
   * the value of the property changes.
 
542
   */
 
543
  Glib::PropertyProxy<bool> property_no_month_change() ;
 
544
#endif //#GLIBMM_PROPERTIES_ENABLED
 
545
 
 
546
#ifdef GLIBMM_PROPERTIES_ENABLED
 
547
/** If TRUE, the selected month cannot be changed.
 
548
   *
 
549
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
550
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
551
   * the value of the property changes.
 
552
   */
 
553
  Glib::PropertyProxy_ReadOnly<bool> property_no_month_change() const;
 
554
#endif //#GLIBMM_PROPERTIES_ENABLED
 
555
 
 
556
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
557
/** If TRUE, week numbers are displayed.
 
558
   *
 
559
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
560
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
561
   * the value of the property changes.
 
562
   */
 
563
  Glib::PropertyProxy<bool> property_show_week_numbers() ;
 
564
#endif //#GLIBMM_PROPERTIES_ENABLED
 
565
 
 
566
#ifdef GLIBMM_PROPERTIES_ENABLED
 
567
/** If TRUE, week numbers are displayed.
 
568
   *
 
569
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
570
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
571
   * the value of the property changes.
 
572
   */
 
573
  Glib::PropertyProxy_ReadOnly<bool> property_show_week_numbers() const;
 
574
#endif //#GLIBMM_PROPERTIES_ENABLED
 
575
 
 
576
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
577
/** If TRUE, details are shown.
 
578
   *
 
579
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
580
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
581
   * the value of the property changes.
 
582
   */
 
583
  Glib::PropertyProxy<bool> property_show_details() ;
 
584
#endif //#GLIBMM_PROPERTIES_ENABLED
 
585
 
 
586
#ifdef GLIBMM_PROPERTIES_ENABLED
 
587
/** If TRUE, details are shown.
 
588
   *
 
589
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
590
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
591
   * the value of the property changes.
 
592
   */
 
593
  Glib::PropertyProxy_ReadOnly<bool> property_show_details() const;
 
594
#endif //#GLIBMM_PROPERTIES_ENABLED
 
595
 
 
596
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
597
/** Details width in characters.
 
598
   *
 
599
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
600
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
601
   * the value of the property changes.
 
602
   */
 
603
  Glib::PropertyProxy<int> property_detail_width_chars() ;
 
604
#endif //#GLIBMM_PROPERTIES_ENABLED
 
605
 
 
606
#ifdef GLIBMM_PROPERTIES_ENABLED
 
607
/** Details width in characters.
 
608
   *
 
609
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
610
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
611
   * the value of the property changes.
 
612
   */
 
613
  Glib::PropertyProxy_ReadOnly<int> property_detail_width_chars() const;
 
614
#endif //#GLIBMM_PROPERTIES_ENABLED
 
615
 
 
616
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
617
/** Details height in rows.
 
618
   *
 
619
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
620
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
621
   * the value of the property changes.
 
622
   */
 
623
  Glib::PropertyProxy<int> property_detail_height_rows() ;
 
624
#endif //#GLIBMM_PROPERTIES_ENABLED
 
625
 
 
626
#ifdef GLIBMM_PROPERTIES_ENABLED
 
627
/** Details height in rows.
 
628
   *
 
629
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 
630
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
 
631
   * the value of the property changes.
 
632
   */
 
633
  Glib::PropertyProxy_ReadOnly<int> property_detail_height_rows() const;
 
634
#endif //#GLIBMM_PROPERTIES_ENABLED
 
635
 
 
636
 
 
637
};
 
638
 
 
639
} // namespace Gtk
 
640
 
 
641
 
 
642
namespace Glib
 
643
{
 
644
  /** A Glib::wrap() method for this object.
 
645
   * 
 
646
   * @param object The C instance.
 
647
   * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
 
648
   * @result A C++ instance that wraps this C instance.
 
649
   *
 
650
   * @relates Gtk::Calendar
 
651
   */
 
652
  Gtk::Calendar* wrap(GtkCalendar* object, bool take_copy = false);
 
653
} //namespace Glib
 
654
 
 
655
 
 
656
#endif /* _GTKMM_CALENDAR_H */
 
657