GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Utils Namespace Reference

Functions

template<typename T >
QFont computeFont (const typename T::properties &props, int height)
 
template QFont computeFont< uibuttongroup > (const uibuttongroup::properties &props, int height)
 
template QFont computeFont< uicontrol > (const uicontrol::properties &props, int height)
 
template QFont computeFont< uipanel > (const uipanel::properties &props, int height)
 
template QFont computeFont< uitable > (const uitable::properties &props, int height)
 
Matrix figureCurrentPoint (const graphics_object &fig)
 
Matrix figureCurrentPoint (const graphics_object &fig, QMouseEvent *event)
 
std::string figureSelectionType (QMouseEvent *event, bool isDoubleClick)
 
Qt::Alignment fromHVAlign (const std::string &halign, const std::string &valign)
 
QColor fromRgb (const Matrix &rgb)
 
QString fromStdString (const std::string &s)
 
QStringList fromStringVector (const string_vector &v)
 
QImage makeImageFromCData (const octave_value &v, int width, int height)
 
octave_scalar_map makeKeyEventStruct (QKeyEvent *event)
 
octave_scalar_map makeScrollEventStruct (QWheelEvent *event)
 
template<typename T >
T::properties & properties (graphics_object obj)
 
Cell toCellString (const QStringList &l)
 
Matrix toRgb (const QColor &c)
 
std::string toStdString (const QString &s)
 
string_vector toStringVector (const QStringList &l)
 

Function Documentation

◆ computeFont()

template<typename T >
QFont Utils::computeFont ( const typename T::properties &  props,
int  height 
)

Definition at line 107 of file QtHandlesUtils.cc.

References f, and fromStdString().

◆ computeFont< uibuttongroup >()

template QFont Utils::computeFont< uibuttongroup > ( const uibuttongroup::properties &  props,
int  height 
)

◆ computeFont< uicontrol >()

template QFont Utils::computeFont< uicontrol > ( const uicontrol::properties &  props,
int  height 
)

◆ computeFont< uipanel >()

template QFont Utils::computeFont< uipanel > ( const uipanel::properties &  props,
int  height 
)

◆ computeFont< uitable >()

template QFont Utils::computeFont< uitable > ( const uitable::properties &  props,
int  height 
)

◆ figureCurrentPoint() [1/2]

Matrix Utils::figureCurrentPoint ( const graphics_object &  fig)

◆ figureCurrentPoint() [2/2]

Matrix Utils::figureCurrentPoint ( const graphics_object &  fig,
QMouseEvent *  event 
)

◆ figureSelectionType()

std::string Utils::figureSelectionType ( QMouseEvent *  event,
bool  isDoubleClick 
)

◆ fromHVAlign()

Qt::Alignment Utils::fromHVAlign ( const std::string &  halign,
const std::string &  valign 
)

◆ fromRgb()

QColor Utils::fromRgb ( const Matrix rgb)

◆ fromStdString()

QString Utils::fromStdString ( const std::string &  s)

Definition at line 53 of file QtHandlesUtils.cc.

Referenced by ButtonControl::ButtonControl(), ButtonGroup::ButtonGroup(), documentation::documentation(), documentation_browser::documentation_browser(), Menu::Menu(), Panel::Panel(), PopupMenuControl::PopupMenuControl(), release_notes::release_notes(), Table::Table(), ToolBarButton< uitoggletool >::~ToolBarButton(), qt_interpreter_events::append_history(), computeFont(), octave_qscintilla::contextmenu_run(), qt_interpreter_events::copy_image_to_clipboard(), resource_manager::create_tmp_file(), base_ve_model::data(), qt_interpreter_events::debug_cd_or_addpath_error(), qt_interpreter_events::directory_changed(), qt_interpreter_events::display_exception(), variable_editor_model::double_click(), string_model::edit_display(), display_only_model::edit_display(), numeric_model::edit_display(), base_ve_model::edit_display(), struct_model::edit_display(), base_ve_model::edit_display_sub(), qt_interpreter_events::edit_file(), qt_interpreter_events::edit_variable(), variable_editor_model::evaluation_error(), qt_interpreter_events::execute_command_in_terminal(), qt_interpreter_events::file_dialog(), qt_interpreter_events::file_remove(), Figure::fileName(), qt_interpreter_events::focus_window(), fromStringVector(), resource_manager::get_default_font(), resource_manager::get_default_font_family(), resource_manager::get_gui_translation_dir(), ToolBarButton< T >::get_icon(), qt_interpreter_events::get_named_icon(), qt_graphics_toolkit::get_text_extent(), qt_interpreter_events::gui_preference(), qt_interpreter_events::gui_status_update(), file_editor_tab::handle_dbstop_if(), main_window::handle_edit_mfile_request(), file_editor::handle_file_remove(), scalar_struct_model::header_data(), vector_struct_model::header_data(), EditControl::init(), BaseControl::init(), variable_editor_model::init_from_oct(), qt_interpreter_events::input_dialog(), variable_editor_model::insertColumns(), variable_editor_model::insertRows(), qt_interpreter_events::interpreter_output(), qt_interpreter_events::list_dialog(), base_ve_model::make_description_text(), make_filter_list(), make_qstring_list(), set_path_model::path_to_model(), files_dock_widget::popdownmenu_home(), qt_graphics_toolkit::print_figure(), news_reader::process(), qt_interpreter_events::prompt_new_edit_file(), qStringValueFor(), qt_interpreter_events::question_dialog(), qt_interpreter_events::register_documentation(), resource_manager::reload_settings(), variable_editor_model::removeColumns(), variable_editor_model::removeRows(), variable_editor_model::reset(), variable_editor_stack::save(), qt_interpreter_events::set_history(), main_window::show_about_octave(), qt_interpreter_events::show_documentation(), scalar_struct_model::subscript_expression(), vector_struct_model::subscript_expression(), qt_interpreter_events::unregister_documentation(), BaseControl::update(), ButtonControl::update(), ButtonGroup::update(), Figure::update(), Menu::update(), Panel::update(), PopupMenuControl::update(), Table::update(), ToolBarButton< T >::update(), file_editor_tab::update_breakpoints_handler(), variable_editor_model::update_data(), file_editor_tab::update_lexer_settings(), resource_manager::update_network_settings(), qt_interpreter_events::update_prompt(), workspace_model::update_table(), Table::updateColumnname(), Table::updateData(), Table::updateRowname(), EditControl::updateSingleLine(), and base_qobject::workspace_widget().

◆ fromStringVector()

◆ makeImageFromCData()

◆ makeKeyEventStruct()

◆ makeScrollEventStruct()

octave_scalar_map Utils::makeScrollEventStruct ( QWheelEvent *  event)

Definition at line 398 of file QtHandlesUtils.cc.

References octave_scalar_map::setfield().

Referenced by Canvas::canvasWheelEvent().

◆ properties()

template<typename T >
T::properties& Utils::properties ( graphics_object  obj)
inline

Definition at line 72 of file QtHandlesUtils.h.

Referenced by ButtonControl::ButtonControl(), ButtonGroup::ButtonGroup(), CheckBoxControl::CheckBoxControl(), Figure::Figure(), ListBoxControl::ListBoxControl(), Menu::Menu(), Panel::Panel(), PopupMenuControl::PopupMenuControl(), PushButtonControl::PushButtonControl(), RadioButtonControl::RadioButtonControl(), SliderControl::SliderControl(), Table::Table(), TextControl::TextControl(), ToggleButtonControl::ToggleButtonControl(), ToggleTool::ToggleTool(), ToolBar::ToolBar(), ToolBarButton< uitoggletool >::~ToolBarButton(), ButtonGroup::buttonClicked(), ButtonGroup::buttonToggled(), Canvas::canvasMouseMoveEvent(), Canvas::canvasMousePressEvent(), Canvas::canvasMouseReleaseEvent(), Canvas::canvasWheelEvent(), Table::columneditable(), Table::columnformat(), convert_text_position(), EditControl::create(), qt_graphics_toolkit::create_object(), opengl_renderer::draw(), opengl_renderer::draw_scatter(), opengl_renderer::draw_uibuttongroup(), opengl_renderer::draw_uipanel(), BaseControl::eventFilter(), ButtonGroup::eventFilter(), Panel::eventFilter(), Table::eventFilter(), Figure::eventNotifyBefore(), set_event::execute(), F__image_pixel_size__(), F__show_figure__(), F__update_normals__(), F__zoom__(), Fdrawnow(), Figure::figureWindowShown(), Figure::fileName(), gnuplot_graphics_toolkit::finalize(), qt_graphics_toolkit::get_text_extent(), EditControl::init(), BaseControl::init(), Figure::mouseMode(), Object::properties(), Figure::screenChanged(), Canvas::select_object(), Figure::setFileName(), ButtonControl::toggled(), gnuplot_graphics_toolkit::update(), BaseControl::update(), ButtonControl::update(), ButtonGroup::update(), CheckBoxControl::update(), ContextMenu::update(), Figure::update(), ListBoxControl::update(), Menu::update(), Panel::update(), PopupMenuControl::update(), PushButtonControl::update(), RadioButtonControl::update(), SliderControl::update(), Table::update(), TextControl::update(), ToggleButtonControl::update(), ToggleTool::update(), ToolBar::update(), ToolBarButton< T >::update(), update_text_pos(), Figure::updateBoundingBox(), Table::updateColumnname(), Table::updateColumnwidth(), Canvas::updateCurrentPoint(), Table::updateData(), Table::updateEnable(), ButtonGroup::updateLayout(), Panel::updateLayout(), EditControl::updateMultiLine(), Table::updatePalette(), Table::updateRearrangeableColumns(), Table::updateRowname(), Menu::updateSiblingPositions(), EditControl::updateSingleLine(), SliderControl::valueChanged(), and xset_gcbo().

◆ toCellString()

Cell Utils::toCellString ( const QStringList &  l)

Definition at line 88 of file QtHandlesUtils.cc.

References toStringVector().

Referenced by EditControl::editingFinished(), and EditControl::returnPressed().

◆ toRgb()

Matrix Utils::toRgb ( const QColor &  c)

Definition at line 159 of file QtHandlesUtils.cc.

References Array< T, Alloc >::fortran_vec().

Referenced by annotation_dialog::get_gui_props().

◆ toStdString()

◆ toStringVector()

string_vector Utils::toStringVector ( const QStringList &  l)

Definition at line 77 of file QtHandlesUtils.cc.

References toStdString().

Referenced by toCellString().