#include "port_matrix_body.h"
#include "port_matrix_component.h"
#include "utils.h"
+#include "ui_config.h"
#include "pbd/i18n.h"
_vspacer.show ();
_vnotebook.show ();
_hnotebook.show ();
+
+ UIConfiguration::instance().ParameterChanged.connect (sigc::mem_fun (*this, &PortMatrix::parameter_changed));
}
PortMatrix::~PortMatrix ()
return false;
}
+
+void
+PortMatrix::parameter_changed (string p)
+{
+ if (p == "font-scale") {
+ setup ();
+ }
+}
void update_tab_highlighting ();
std::pair<int, int> check_flip () const;
bool can_flip () const;
+ void parameter_changed (std::string);
Gtk::Window* _parent;
#include "port_matrix_column_labels.h"
#include "port_matrix_row_labels.h"
#include "port_matrix_grid.h"
+#include "ui_config.h"
#include "pbd/i18n.h"
/* nothing to connect */
cairo_t* cr = gdk_cairo_create (get_window()->gobj());
+ cairo_set_font_size (cr, UIConfiguration::instance().get_ui_scale() * 10);
cairo_set_source_rgb (cr, 0, 0, 0);
cairo_rectangle (cr, 0, 0, _alloc_width, _alloc_height);
}
cairo_t* cr = gdk_cairo_create (get_window()->gobj());
+ cairo_set_font_size (cr, UIConfiguration::instance().get_ui_scale() * 10);
for (list<PortMatrixComponent*>::iterator i = _components.begin(); i != _components.end(); ++i) {
cairo_save (cr);
#include "port_matrix_column_labels.h"
#include "port_matrix.h"
#include "port_matrix_body.h"
+#include "ui_config.h"
#include "pbd/i18n.h"
{
cairo_surface_t* surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, 200, 200);
cairo_t* cr = cairo_create (surface);
+ cairo_set_font_size (cr, UIConfiguration::instance().get_ui_scale() * 10);
/* width of the longest bundle name */
_longest_bundle_name = 0;
#include "port_matrix_component.h"
#include "port_matrix.h"
#include "port_matrix_body.h"
+#include "ui_config.h"
using namespace std;
/* render */
cairo_t* cr = gdk_cairo_create (_pixmap);
+ cairo_set_font_size (cr, UIConfiguration::instance().get_ui_scale() * 10);
render (cr);
cairo_destroy (cr);
return ARDOUR::BundleChannel (boost::shared_ptr<ARDOUR::Bundle> (), -1);
}
+
+uint32_t
+PortMatrixComponent::grid_spacing ()
+{
+ return UIConfiguration::instance().get_ui_scale() * 24;
+}
}
/** @return grid spacing */
- static uint32_t grid_spacing () {
- return 24;
- }
+ static uint32_t grid_spacing ();
protected:
#include "port_matrix_column_labels.h"
#include "port_matrix.h"
#include "port_matrix_body.h"
+#include "ui_config.h"
#include "pbd/i18n.h"
using namespace std;
{
cairo_surface_t* surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, 200, 200);
cairo_t* cr = cairo_create (surface);
+ cairo_set_font_size (cr, UIConfiguration::instance().get_ui_scale() * 10);
_longest_port_name = 0;
_longest_bundle_name = 0;