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) |
QFont QtHandles::Utils::computeFont | ( | const typename T::properties & | props, |
int | height | ||
) |
Definition at line 108 of file QtHandlesUtils.cc.
References f, and fromStdString().
template QFont QtHandles::Utils::computeFont< uibuttongroup > | ( | const uibuttongroup::properties & | props, |
int | height | ||
) |
template QFont QtHandles::Utils::computeFont< uicontrol > | ( | const uicontrol::properties & | props, |
int | height | ||
) |
template QFont QtHandles::Utils::computeFont< uipanel > | ( | const uipanel::properties & | props, |
int | height | ||
) |
Referenced by QtHandles::Panel::Panel(), QtHandles::Panel::eventFilter(), and QtHandles::Panel::update().
template QFont QtHandles::Utils::computeFont< uitable > | ( | const uitable::properties & | props, |
int | height | ||
) |
Referenced by QtHandles::Table::Table(), QtHandles::Table::eventFilter(), and QtHandles::Table::update().
Matrix QtHandles::Utils::figureCurrentPoint | ( | const graphics_object & | fig | ) |
Definition at line 233 of file QtHandlesUtils.cc.
References QtHandles::Object::innerContainer(), QtHandles::Object::properties(), qp(), and QtHandles::qt_graphics_toolkit::toolkitObject().
Matrix QtHandles::Utils::figureCurrentPoint | ( | const graphics_object & | fig, |
QMouseEvent * | event | ||
) |
Definition at line 212 of file QtHandlesUtils.cc.
References QtHandles::Object::innerContainer(), QtHandles::Object::properties(), qp(), and QtHandles::qt_graphics_toolkit::toolkitObject().
Referenced by QtHandles::BaseControl::eventFilter(), QtHandles::Table::eventFilter(), and QtHandles::Canvas::updateCurrentPoint().
std::string QtHandles::Utils::figureSelectionType | ( | QMouseEvent * | event, |
bool | isDoubleClick | ||
) |
Definition at line 175 of file QtHandlesUtils.cc.
Referenced by QtHandles::Canvas::canvasMousePressEvent(), QtHandles::BaseControl::eventFilter(), and QtHandles::Table::eventFilter().
Qt::Alignment QtHandles::Utils::fromHVAlign | ( | const std::string & | halign, |
const std::string & | valign | ||
) |
Definition at line 256 of file QtHandlesUtils.cc.
References octave::string::strcmpi().
Referenced by QtHandles::TextControl::TextControl(), QtHandles::EditControl::init(), QtHandles::TextControl::update(), and QtHandles::EditControl::updateSingleLine().
QColor QtHandles::Utils::fromRgb | ( | const Matrix & | rgb | ) |
Definition at line 149 of file QtHandlesUtils.cc.
References Array< T >::numel().
Referenced by annotation_dialog::set_gui_props(), QtHandles::setupPalette(), QtHandles::updatePalette(), and QtHandles::Table::updatePalette().
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().
QStringList QtHandles::Utils::fromStringVector | ( | const string_vector & | v | ) |
Definition at line 66 of file QtHandlesUtils.cc.
References fromStdString(), n, and string_vector::numel().
Referenced by QtHandles::ListBoxControl::ListBoxControl(), QtHandles::TextControl::TextControl(), QtHandles::EditControl::init(), QtHandles::ListBoxControl::update(), QtHandles::TextControl::update(), and QtHandles::EditControl::updateMultiLine().
QImage QtHandles::Utils::makeImageFromCData | ( | const octave_value & | v, |
int | width, | ||
int | height | ||
) |
Definition at line 282 of file QtHandlesUtils.cc.
References octave_value::array_value(), d, octave_value::dims(), f, octave_value::float_array_value(), octave_value::is_single_type(), octave_value::is_uint8_type(), octave::math::isnan(), octave_value::isreal(), dim_vector::ndims(), r, octave::math::round(), octave_value::uint8_array_value(), and Faddeeva::w().
Referenced by QtHandles::PushButtonControl::PushButtonControl(), QtHandles::ToggleButtonControl::ToggleButtonControl(), QtHandles::PushButtonControl::update(), QtHandles::ToggleButtonControl::update(), and QtHandles::ToolBarButton< T >::update().
octave_scalar_map QtHandles::Utils::makeKeyEventStruct | ( | QKeyEvent * | event | ) |
Definition at line 360 of file QtHandlesUtils.cc.
References QtHandles::KeyMap::qKeyToKeyString(), retval, and toStdString().
Referenced by QtHandles::Canvas::canvasKeyPressEvent(), QtHandles::Canvas::canvasKeyReleaseEvent(), QtHandles::BaseControl::eventFilter(), and QtHandles::Table::eventFilter().
octave_scalar_map QtHandles::Utils::makeScrollEventStruct | ( | QWheelEvent * | event | ) |
Definition at line 391 of file QtHandlesUtils.cc.
References retval.
Referenced by QtHandles::Canvas::canvasWheelEvent().
|
inline |
Definition at line 73 of file QtHandlesUtils.h.
References graphics_object::get_properties().
Referenced by QtHandles::ToolBarButton< T >::ToolBarButton(), QtHandles::Object::properties(), and QtHandles::ToolBarButton< T >::update().
Cell QtHandles::Utils::toCellString | ( | const QStringList & | l | ) |
Definition at line 89 of file QtHandlesUtils.cc.
References toStringVector().
Referenced by QtHandles::EditControl::editingFinished(), and QtHandles::EditControl::returnPressed().
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().
std::string QtHandles::Utils::toStdString | ( | const QString & | s | ) |
Definition at line 60 of file QtHandlesUtils.cc.
Referenced by QtHandles::Table::comboBoxCurrentIndexChanged(), octave::octave_qscintilla::contextmenu_run(), QtHandles::EditControl::editingFinished(), QtHandles::Table::itemChanged(), makeKeyEventStruct(), QtHandles::EditControl::returnPressed(), and toStringVector().
string_vector QtHandles::Utils::toStringVector | ( | const QStringList & | l | ) |
Definition at line 78 of file QtHandlesUtils.cc.
References toStdString().
Referenced by toCellString().