Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
recent-files.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Access Inkscape's recent files
4 *
5 * Copyright 2025 Martin Owens <doctormo@geek-2.com>
6 *
7 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
8 */
9
10#include <string>
11#include <vector>
12
13#include <gtkmm/recentmanager.h>
14
15namespace Inkscape {
16
17
18std::vector<Glib::RefPtr<Gtk::RecentInfo>> getInkscapeRecentFiles(unsigned max_files = 0);
19std::map<Glib::ustring, std::string> getShortenedPathMap(std::vector<Glib::RefPtr<Gtk::RecentInfo>> const &recent_files);
20
21}
22
23/*
24 Local Variables:
25 mode:c++
26 c-file-style:"stroustrup"
27 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
28 indent-tabs-mode:nil
29 fill-column:99
30 End:
31*/
32// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Helper class to stream background task notifications as a series of messages.
std::vector< Glib::RefPtr< Gtk::RecentInfo > > getInkscapeRecentFiles(unsigned max_files)
Generate a vector of recently used Inkscape files.
std::map< Glib::ustring, std::string > getShortenedPathMap(std::vector< Glib::RefPtr< Gtk::RecentInfo > > const &recent_files)
Generate the shortened labeles for a list of recently used files.