Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
interface.cpp File Reference

Main UI stuff. More...

Go to the source code of this file.

Functions

Glib::ustring getLayoutPrefPath (SPDesktop *desktop)
 
void sp_ui_error_dialog (char const *message)
 
bool sp_ui_overwrite_file (std::string const &filename)
 If necessary, ask the user if a file may be overwritten.
 

Detailed Description

Main UI stuff.

Definition in file interface.cpp.

Function Documentation

◆ getLayoutPrefPath()

Glib::ustring getLayoutPrefPath ( SPDesktop desktop)

Definition at line 45 of file interface.cpp.

References desktop, SPDesktop::is_focusMode(), and SPDesktop::is_fullscreen().

Referenced by SPDesktop::toggleToolbar().

◆ sp_ui_error_dialog()

◆ sp_ui_overwrite_file()

bool sp_ui_overwrite_file ( std::string const &  filename)

If necessary, ask the user if a file may be overwritten.

  • filename path to file. Value is in platform-native encoding (see Glib::filename_to_utf8).
    Returns
    true if it is okay to write to the file. This means that the file does not exist yet or the user confirmed that overwriting is okay.

Definition at line 74 of file interface.cpp.

References Inkscape::UI::dialog_run(), and msg.

Referenced by Inkscape::UI::Dialog::Export::exportRaster(), Inkscape::UI::Dialog::Export::exportVector(), Inkscape::Extension::save(), sp_export_png_file(), and sp_file_save_template().