| 1 |
/* Copyright (C) 1998-2002 The gtkmm Development Team |
| 2 |
* |
| 3 |
* This library is free software; you can redistribute it and/or |
| 4 |
* modify it under the terms of the GNU Lesser General Public |
| 5 |
* License as published by the Free Software Foundation; either |
| 6 |
* version 2.1 of the License, or (at your option) any later version. |
| 7 |
* |
| 8 |
* This library is distributed in the hope that it will be useful, |
| 9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 |
* Lesser General Public License for more details. |
| 12 |
* |
| 13 |
* You should have received a copy of the GNU Lesser General Public |
| 14 |
* License along with this library; if not, see <https://www.gnu.org/licenses/>. |
| 15 |
*/ |
| 16 |
|
| 17 |
#include <gtkmm/box.h> |
| 18 |
#include <gtkmm/filechooser.h> |
| 19 |
|
| 20 |
_DEFS(gtkmm,gtk) |
| 21 |
_PINCLUDE(gtkmm/private/hvbox_p.h) |
| 22 |
|
| 23 |
namespace Gtk |
| 24 |
{ |
| 25 |
|
| 26 |
/** File chooser widget that can be embedded in other widgets. |
| 27 |
* |
| 28 |
* FileChooserWidget is a widget suitable for selecting files. It is the main |
| 29 |
* building block of a Gtk::FileChooserDialog. Most applications will only need to use |
| 30 |
* the latter; you can use FileChooserWidget as part of a larger window if you have |
| 31 |
* special needs. |
| 32 |
* |
| 33 |
* @ingroup Widgets |
| 34 |
*/ |
| 35 |
class GTKMM_API FileChooserWidget |
| 36 |
: public VBox, |
| 37 |
public FileChooser |
| 38 |
{ |
| 39 |
_CLASS_GTKOBJECT(FileChooserWidget, GtkFileChooserWidget, GTK_FILE_CHOOSER_WIDGET, Gtk::VBox, GtkVBox, , , GTKMM_API) |
| 40 |
_IMPLEMENTS_INTERFACE(FileChooser) |
| 41 |
public: |
| 42 |
_CTOR_DEFAULT; |
| 43 |
|
| 44 |
/** Creates a file chooser widget that can be embedded in other widgets. |
| 45 |
* |
| 46 |
* Creates a new FileChooserWidget. This is a file chooser widget that can be embedded in |
| 47 |
* custom windows, and it is the same widget that is used by Gtk::FileChooserDialog. |
| 48 |
* |
| 49 |
* @param action Open or save mode for the widget |
| 50 |
* |
| 51 |
* @newin{2,4} |
| 52 |
*/ |
| 53 |
_WRAP_CTOR(FileChooserWidget(FileChooserAction action), gtk_file_chooser_widget_new) |
| 54 |
}; |
| 55 |
|
| 56 |
} // namespace Gtk |