Install ardour as a binary, a script and a set of shared
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / inputdialog.h
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_INPUTDIALOG_H
4 #define _GTKMM_INPUTDIALOG_H
5
6 #include <glibmm.h>
7
8 /* $Id$ */
9
10 /* inputdialog.h
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 Library General Public
16  * License as published by the Free Software Foundation; either
17  * version 2 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  * Library General Public License for more details.
23  *
24  * You should have received a copy of the GNU Library 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 #include <gtkmm/dialog.h>
30
31
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 typedef struct _GtkInputDialog GtkInputDialog;
34 typedef struct _GtkInputDialogClass GtkInputDialogClass;
35 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
36
37
38 namespace Gtk
39 { class InputDialog_Class; } // namespace Gtk
40 namespace Gtk
41 {
42
43 class Button;
44 class Table;
45 class OptionMenu;
46 class ScrolledWindow;
47
48 // Don't list this in the documentation's Dialogs group because it isn't really useful
49 // - see the GTK+ docs.
50
51 class InputDialog : public Dialog
52 {
53   public:
54 #ifndef DOXYGEN_SHOULD_SKIP_THIS
55   typedef InputDialog CppObjectType;
56   typedef InputDialog_Class CppClassType;
57   typedef GtkInputDialog BaseObjectType;
58   typedef GtkInputDialogClass BaseClassType;
59 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
60
61   virtual ~InputDialog();
62
63 #ifndef DOXYGEN_SHOULD_SKIP_THIS
64
65 private:
66   friend class InputDialog_Class;
67   static CppClassType inputdialog_class_;
68
69   // noncopyable
70   InputDialog(const InputDialog&);
71   InputDialog& operator=(const InputDialog&);
72
73 protected:
74   explicit InputDialog(const Glib::ConstructParams& construct_params);
75   explicit InputDialog(GtkInputDialog* castitem);
76
77 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
78
79 public:
80 #ifndef DOXYGEN_SHOULD_SKIP_THIS
81   static GType get_type()      G_GNUC_CONST;
82   static GType get_base_type() G_GNUC_CONST;
83 #endif
84
85   ///Provides access to the underlying C GtkObject.
86   GtkInputDialog*       gobj()       { return reinterpret_cast<GtkInputDialog*>(gobject_); }
87
88   ///Provides access to the underlying C GtkObject.
89   const GtkInputDialog* gobj() const { return reinterpret_cast<GtkInputDialog*>(gobject_); }
90
91
92 public:
93   //C++ methods used to invoke GTK+ virtual functions:
94
95 protected:
96   //GTK+ Virtual Functions (override these to change behaviour):
97
98   //Default Signal Handlers::
99   virtual void on_enable_device(const Glib::RefPtr<Gdk::Device>& device);
100   virtual void on_disable_device(const Glib::RefPtr<Gdk::Device>& device);
101
102
103 private:
104
105   
106 public:
107
108   InputDialog();
109   
110
111   Table* get_axis_list();
112   const Table* get_axis_list() const;
113   ScrolledWindow* get_axis_box();
114   const ScrolledWindow* get_axis_box() const;
115   OptionMenu* get_mode_optionmenu();
116   const OptionMenu* get_mode_optionmenu() const;
117
118   Button* get_close_button();
119   const Button* get_close_button() const;
120   Button* get_save_button();
121   const Button* get_save_button() const;
122
123   //GtkWidget *axis_items[GDK_AXIS_LAST];
124
125   Glib::RefPtr<Gdk::Device> get_current_device();
126   Glib::RefPtr<const Gdk::Device> get_current_device() const;
127
128   Table* get_keys_list();
129   const Table* get_keys_list() const;
130   ScrolledWindow* get_keys_box();
131   const ScrolledWindow* get_keys_box() const;
132
133   
134   Glib::SignalProxy1< void,const Glib::RefPtr<Gdk::Device>& > signal_enable_device();
135
136   
137   Glib::SignalProxy1< void,const Glib::RefPtr<Gdk::Device>& > signal_disable_device();
138
139
140 };
141
142 } /* namespace Gtk */
143
144
145 namespace Glib
146 {
147   /** @relates Gtk::InputDialog
148    * @param object The C instance
149    * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
150    * @result A C++ instance that wraps this C instance.
151    */
152   Gtk::InputDialog* wrap(GtkInputDialog* object, bool take_copy = false);
153 }
154 #endif /* _GTKMM_INPUTDIALOG_H */
155