GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
QtHandles::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 QtHandles::Utils::computeFont ( const typename T::properties &  props,
int  height 
)

Definition at line 108 of file QtHandlesUtils.cc.

References f, and fromStdString().

◆ computeFont< uibuttongroup >()

◆ computeFont< uicontrol >()

◆ computeFont< uipanel >()

◆ computeFont< uitable >()

◆ figureCurrentPoint() [1/2]

Matrix QtHandles::Utils::figureCurrentPoint ( const graphics_object fig)

◆ figureCurrentPoint() [2/2]

◆ figureSelectionType()

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

◆ fromHVAlign()

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

◆ fromRgb()

QColor QtHandles::Utils::fromRgb ( const Matrix rgb)

◆ fromStdString()

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

Definition at line 54 of file QtHandlesUtils.cc.

Referenced by QtHandles::ButtonControl::ButtonControl(), QtHandles::ButtonGroup::ButtonGroup(), octave::documentation::documentation(), QtHandles::Menu::Menu(), QtHandles::Panel::Panel(), QtHandles::PopupMenuControl::PopupMenuControl(), QtHandles::Table::Table(), QtHandles::ToolBarButton< T >::ToolBarButton(), computeFont(), octave::octave_qscintilla::contextmenu_run(), octave::base_ve_model::data(), octave::default_qt_settings_file(), octave::main_window::display_release_notes(), octave::variable_editor_model::double_click(), octave::string_model::edit_display(), octave::display_only_model::edit_display(), octave::numeric_model::edit_display(), octave::base_ve_model::edit_display(), octave::struct_model::edit_display(), octave::base_ve_model::edit_display_sub(), octave::variable_editor_model::evaluation_error(), QtHandles::Figure::fileName(), fromStringVector(), octave::resource_manager::get_default_font_family(), octave::resource_manager::get_gui_translation_dir(), QtHandles::ToolBarButton< T >::get_icon(), QtHandles::qt_graphics_toolkit::get_text_extent(), octave::workspace_view::handle_contextmenu_copy_value(), octave::file_editor_tab::handle_dbstop_if(), octave::main_window::handle_edit_mfile_request(), octave::file_editor::handle_file_remove(), octave::scalar_struct_model::header_data(), octave::vector_struct_model::header_data(), QtHandles::EditControl::init(), QtHandles::BaseControl::init(), octave::variable_editor_model::init_from_oct(), octave::variable_editor_model::insertColumns(), octave::variable_editor_model::insertRows(), octave::base_ve_model::make_description_text(), octave::set_path_model::path_to_model(), octave::files_dock_widget::popdownmenu_home(), QtHandles::qt_graphics_toolkit::print_figure(), octave::news_reader::process(), QtHandles::qStringValueFor(), octave::resource_manager::reload_settings(), octave::variable_editor_model::removeColumns(), octave::variable_editor_model::removeRows(), octave::variable_editor_model::reset(), octave::main_window::show_about_octave(), octave::scalar_struct_model::subscript_expression(), octave::vector_struct_model::subscript_expression(), QtHandles::BaseControl::update(), QtHandles::ButtonControl::update(), QtHandles::ButtonGroup::update(), QtHandles::Figure::update(), QtHandles::Menu::update(), QtHandles::Panel::update(), QtHandles::PopupMenuControl::update(), QtHandles::Table::update(), QtHandles::ToolBarButton< T >::update(), octave::file_editor_tab::update_breakpoints_handler(), octave::variable_editor_model::update_data(), octave::file_editor_tab::update_lexer_settings(), octave::workspace_model::update_table(), QtHandles::Table::updateColumnname(), QtHandles::Table::updateData(), QtHandles::Table::updateRowname(), and QtHandles::EditControl::updateSingleLine().

◆ fromStringVector()

◆ makeImageFromCData()

◆ makeKeyEventStruct()

◆ makeScrollEventStruct()

octave_scalar_map QtHandles::Utils::makeScrollEventStruct ( QWheelEvent *  event)

Definition at line 391 of file QtHandlesUtils.cc.

References retval.

Referenced by QtHandles::Canvas::canvasWheelEvent().

◆ properties()

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

◆ toCellString()

Cell QtHandles::Utils::toCellString ( const QStringList &  l)

◆ toRgb()

Matrix QtHandles::Utils::toRgb ( const QColor &  c)

Definition at line 160 of file QtHandlesUtils.cc.

References Array< T >::fortran_vec().

Referenced by annotation_dialog::get_gui_props().

◆ toStdString()

◆ toStringVector()

string_vector QtHandles::Utils::toStringVector ( const QStringList &  l)

Definition at line 78 of file QtHandlesUtils.cc.

References toStdString().

Referenced by toCellString().