X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Futils.h;h=c6df93839488ee4c8569f5308ee0fa477fd961ff;hb=911830726e5c5d91b254240e0f88ddd81d97c95d;hp=a99246632e139bea0d55370a763c48f8bcde6916;hpb=fb473475c3362bff6b7483b0ad89255078ebef8a;p=ardour.git diff --git a/gtk2_ardour/utils.h b/gtk2_ardour/utils.h index a99246632e..c6df938394 100644 --- a/gtk2_ardour/utils.h +++ b/gtk2_ardour/utils.h @@ -49,8 +49,6 @@ namespace ArdourCanvas { namespace ARDOUR_UI_UTILS { -extern sigc::signal DPIReset; - gint just_hide_it (GdkEventAny*, Gtk::Window*); void add_item_with_sensitivity (Gtk::Menu_Helpers::MenuList &, Gtk::Menu_Helpers::MenuElem, bool); @@ -62,10 +60,6 @@ ArdourCanvas::Points* get_canvas_points (std::string who, uint32_t npoints); Pango::FontDescription sanitized_font (std::string const&); Pango::FontDescription get_font_for_style (std::string widgetname); -uint32_t rgba_from_style (std::string, uint32_t, uint32_t, uint32_t, uint32_t, std::string = "fg", int = Gtk::STATE_NORMAL, bool = true); - -bool rgba_p_from_style (std::string, float*, float*, float*, std::string = "fg", int = Gtk::STATE_NORMAL); - void decorate (Gtk::Window& w, Gdk::WMDecoration d); void set_color_from_rgb (Gdk::Color&, uint32_t); @@ -80,14 +74,12 @@ bool emulate_key_event (Gtk::Widget*, unsigned int); Glib::RefPtr get_xpm (std::string); std::vector get_icon_sets (); -std::string get_icon_path (const char*, std::string icon_set = std::string()); +std::string get_icon_path (const char*, std::string icon_set = std::string(), bool is_image = true); Glib::RefPtr get_icon (const char*, std::string icon_set = std::string()); static std::map > xpm_map; const char* const *get_xpm_data (std::string path); std::string longest (std::vector&); bool key_is_legal_for_numeric_entry (guint keyval); -void reset_dpi (); -void set_pango_fontsize (); void resize_window_to_proportion_of_monitor (Gtk::Window*, int, int); @@ -98,5 +90,9 @@ Gdk::Color unique_random_color (std::list &); std::string rate_as_string (float r); +bool windows_overlap (Gtk::Window *a, Gtk::Window *b); + +bool overwrite_file_dialog (Gtk::Window& parent, std::string title, std::string text); + } // namespace #endif /* __ardour_gtk_utils_h__ */