#include <glibmm/ustring.h>
#include <gtkmm/builder.h>
#include <gdkmm/pixbuf.h>
#include "../Log/Writer.hh"
Go to the source code of this file.
Namespaces |
| namespace | Utils |
| | The namespace provide utility functions.
|
Defines |
| #define | BUILDER_GET(builder_refp, widget_name, widget_ptr) |
| #define | BUILDER_GET_DERIVED(builder_refp, widget_name, derived_class) |
| #define | BUILDER_GET_NO_MANAGE(builder_refp, widget_name, widget_ptr) |
| #define | BUILDER_ADD(builder_ref, filename) |
Functions |
| Glib::ustring | Utils::seconds_to_duration (unsigned long) |
| | converts a given time in seconds to a duration ustring
|
| Glib::ustring | Utils::seconds_to_timestamp (const long) |
| | converts a given time in seconds to a "timestamp"
|
| std::string | Utils::int_to_string (int num) |
| | Simply converts any integer to a std::string.
|
| void | Utils::builder_internal_fetch (Glib::RefPtr< Gtk::Builder > &ref, const char *file) |
| | Fetches ui definitions either from file or from compiled-in glade xml.
|
| Glib::RefPtr< Gdk::Pixbuf > | Utils::create_pixbuf_from_data (const guchar *data, gsize len, int width=150, int height=150, bool aspect=false) |
| Glib::RefPtr< Gdk::Pixbuf > | Utils::pixbuf_internal_fetch (const char *file, int width=150, int height=150, bool aspect=false) |
Define Documentation
| #define BUILDER_GET |
( |
|
builder_refp, |
|
|
|
widget_name, |
|
|
|
widget_ptr |
|
) |
| |
Value:derived_class = NULL; \
builder_refp->get_widget_derived(widget_name,derived_class); \
g_assert(derived_class); \
Gtk::manage(derived_class); \
Definition at line 46 of file Utils.hh.
Value:widget_ptr = NULL; \
builder_refp->get_widget(widget_name,widget_ptr); \
g_assert(widget_ptr); \
Definition at line 52 of file Utils.hh.