Commit 8a2bfac1 authored by Olivier Lagrasse's avatar Olivier Lagrasse
Browse files

Add a forgotten entry in CMakeLists.txt

parent 1067ee8b
......@@ -121,6 +121,7 @@ SET(VITE_UIS
interface/main_window.ui
interface/option_export_window.ui
interface/stats_viewer.ui
interface/global_cmd.ui
)
SET(VITE_SRCS
......
......@@ -836,11 +836,16 @@ Element_pos Hook_event::trace_to_render_x(Element_pos e){
Element_pos Hook_event::trace_to_render_y(Element_pos e){
return e * ((_render_height-_ruler_height)*_y_state_scale) / (_container_y_max-_container_y_min) +
return e *coeff_trace_render_y() +
_ruler_y + _ruler_height - _y_state_translate;
}
Element_pos Hook_event::coeff_trace_render_x(){
return ((_render_width-_default_entity_x_translate)*_x_state_scale) / (_state_x_max - _state_x_min);
}
Element_pos Hook_event::coeff_trace_render_y(){
return ((_render_height-_ruler_height)*_y_state_scale) / (_container_y_max-_container_y_min);
}
......@@ -729,11 +729,17 @@ public:
Element_pos trace_to_render_y(Element_pos e);
/*!
* \brief Return the coefficient used to pass from horizontal trace coordinates to the horizontal render coordinates by multiplication.
* \return A number with which an horizontal trace coordinate number must be multiply to get its horizontal render coordinates.
* \brief Return the coefficient used to convert from horizontal trace scale to the horizontal render scale by multiplication.
* \return A number with which an horizontal trace width number must be multiply to get its horizontal render width.
*/
Element_pos coeff_trace_render_x();
/*!
* \brief Return the coefficient used to convert from vertical trace scale to the vertical render scale by multiplication.
* \return A number with which a vertical trace height number must be multiply to get its vertical render height.
*/
Element_pos coeff_trace_render_y();
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment