Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
choose-file-utils.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2
3#ifndef SEEN_CHOOSE_FILE_FILTER_H
4#define SEEN_CHOOSE_FILE_FILTER_H
5
6#include <glibmm/refptr.h>
7
8namespace Gio {
9template <typename> class ListStore;
10} // namespace Gio
11
12namespace Glib {
13class ustring;
14}
15
16namespace Gtk {
17class FileFilter;
18} // namespace Gtk
19
20namespace Inkscape::UI::Dialog {
21
23void get_start_directory(std::string &start_path, Glib::ustring const &prefs_path, bool try_document_dir = false);
24
26[[nodiscard]] Glib::RefPtr<Gio::ListStore<Gtk::FileFilter>> create_open_filters();
27
29[[nodiscard]] Glib::RefPtr<Gio::ListStore<Gtk::FileFilter>> create_export_filters(bool for_save = false);
30
31
32} // namespace Inkscape::UI::Dialog
33
34#endif // SEEN_CHOOSE_FILE_FILTER_H
35
36/*
37 Local Variables:
38 mode:c++
39 c-file-style:"stroustrup"
40 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
41 indent-tabs-mode:nil
42 fill-column:99
43 End:
44*/
45// vim:filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99:
Definition desktop.h:50
Dialog code.
Definition desktop.h:117
Glib::RefPtr< Gio::ListStore< Gtk::FileFilter > > create_export_filters(bool for_save)
Create a Gtk::FileFilter for all export file types.
void get_start_directory(std::string &start_path, Glib::ustring const &prefs_path, bool try_document_dir)
Find the start directory for a file dialog.
Glib::RefPtr< Gio::ListStore< Gtk::FileFilter > > create_open_filters()
Create a Gtk::FileFilter for all image file types.
static Glib::ustring const prefs_path