prefer recently used states.
[ardour.git] / gtk2_ardour / utils.h
index a99246632e139bea0d55370a763c48f8bcde6916..c6df93839488ee4c8569f5308ee0fa477fd961ff 100644 (file)
@@ -49,8 +49,6 @@ namespace ArdourCanvas {
 
 namespace ARDOUR_UI_UTILS {
 
-extern sigc::signal<void>  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<Gdk::Pixbuf> get_xpm (std::string);
 std::vector<std::string> 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<Gdk::Pixbuf> get_icon (const char*, std::string icon_set = std::string());
 static std::map<std::string, Glib::RefPtr<Gdk::Pixbuf> > xpm_map;
 const char* const *get_xpm_data (std::string path);
 std::string longest (std::vector<std::string>&);
 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<Gdk::Color> &);
 
 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__ */