37 lines
1.4 KiB
C++
37 lines
1.4 KiB
C++
// SPDX-License-Identifier: GPL-3.0-only
|
|
Json widget_data_;
|
|
std::string widget_query_, widget_notice_, widget_warning_, quit_origin_menu_;
|
|
std::map<std::string, std::pair<int, int>> widget_choices_;
|
|
float widget_gallery_scroll_ = 0;
|
|
bool quit_closes_app_ = false, widget_restore_scroll_ = false;
|
|
std::string desktop_dialog(const std::string &, const std::string &,
|
|
const std::string &, int width = 2560,
|
|
int height = 1840);
|
|
std::string widget_heading(const std::string &, bool link = true);
|
|
std::string widget_curve(const std::string &, const Json &, int, int);
|
|
std::string render_widget_gallery_items();
|
|
std::string render_widget_dialog(const std::string &);
|
|
bool widget_action(const std::string &, Rml::Element *);
|
|
bool widget_event(Rml::Event &);
|
|
bool widget_change(Rml::Element *);
|
|
void widget_remember_scroll();
|
|
void desktop_checkpoint(const Json &);
|
|
void desktop_cancel_drag();
|
|
void desktop_raise(const std::string &);
|
|
void finish_desktop_quit();
|
|
|
|
Json working_desktop_base_;
|
|
bool working_desktop_initialized_ = false;
|
|
void persist_working_desktop();
|
|
|
|
std::vector<std::string> undo_themes_;
|
|
void desktop_undo();
|
|
|
|
size_t drag_undo_size_ = 0;
|
|
|
|
Picture files_default_thumbnail();
|
|
void update_files_default_thumbnail();
|
|
Picture files_default_picture_;
|
|
std::string files_default_key_, files_default_request_;
|
|
bool files_default_pending_ = false;
|