15 #define GETTEXT_DOMAIN "wesnoth-lib"
74 :
_(
"file_size^Unknown");
76 register_label(
"filesize",
84 ttext_box& path_box = find_widget<ttext_box>(&window,
"path",
false);
88 tbutton& copy_b = find_widget<tbutton>(&window,
"copy",
false);
94 copy_b.
set_tooltip(
_(
"Clipboard support not found, contact your packager"));
97 tbutton& open_b = find_widget<tbutton>(&window,
"open",
false);
101 tbutton& bdir_b = find_widget<tbutton>(&window,
"browse_dir",
false);
std::string si_string(double input, bool base2, std::string unit)
Convert into a string with an SI-postfix.
bool available()
Whether wesnoth was compiled with support for a clipboard.
virtual void set_active(const bool active) override
See tcontrol::set_active.
REGISTER_DIALOG(label_settings)
std::string get_screenshot_dir()
void connect_signal_mouse_left_click(tdispatcher &dispatcher, const tsignal_function &signal)
Connects a signal handler for a left mouse button click.
Class for a single line text area.
virtual void set_value(const std::string &text)
The set_value is virtual for the tpassword_box class.
base class of top level items, the only item which needs to store the final canvases to draw on ...
const std::string screenshots_dir_path_
A class inherited from ttext_box that displays its input as stars.
Desktop environment interaction functions.
static UNUSEDNOWARN std::string _(const char *str)
GLsizei const char ** path
auto bind_void(F fcn, P...bindings) -> decltype(boost::bind(detail::make_apply(std::function< typename detail::function_base< F >::type >(fcn)), bindings...))
std::string base_name(const std::string &file)
Returns the base filename of a file, with directory name stripped.
void set_tooltip(const t_string &tooltip)
bool open_object(const std::string &path_or_url)
Opens the specified object with the default application configured for its type.
Declarations for File-IO.
int file_size(const std::string &fname)
Returns the size of a file, or -1 if the file doesn't exist.
void copy_to_clipboard(const std::string &text, const bool)
Copies text to the clipboard.
void pre_show(twindow &window)
Inherited from tdialog.
GLsizei const GLcharARB ** string