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 Utils::computeFont | ( | const typename T::properties & | props, |
int | height | ||
) |
Definition at line 107 of file QtHandlesUtils.cc.
References f, and fromStdString().
template QFont Utils::computeFont< uibuttongroup > | ( | const uibuttongroup::properties & | props, |
int | height | ||
) |
Referenced by ButtonGroup::ButtonGroup(), ButtonGroup::eventFilter(), and ButtonGroup::update().
template QFont Utils::computeFont< uicontrol > | ( | const uicontrol::properties & | props, |
int | height | ||
) |
template QFont Utils::computeFont< uipanel > | ( | const uipanel::properties & | props, |
int | height | ||
) |
Referenced by Panel::Panel(), Panel::eventFilter(), and Panel::update().
template QFont Utils::computeFont< uitable > | ( | const uitable::properties & | props, |
int | height | ||
) |
Referenced by Table::Table(), Table::eventFilter(), and Table::update().
Matrix Utils::figureCurrentPoint | ( | const graphics_object & | fig | ) |
Definition at line 232 of file QtHandlesUtils.cc.
References Object::innerContainer(), Matrix, Object::properties(), qp(), and qt_graphics_toolkit::toolkitObject().
Matrix Utils::figureCurrentPoint | ( | const graphics_object & | fig, |
QMouseEvent * | event | ||
) |
Definition at line 211 of file QtHandlesUtils.cc.
References Object::innerContainer(), Matrix, Object::properties(), qp(), and qt_graphics_toolkit::toolkitObject().
Referenced by BaseControl::eventFilter(), Table::eventFilter(), and Canvas::updateCurrentPoint().
std::string Utils::figureSelectionType | ( | QMouseEvent * | event, |
bool | isDoubleClick | ||
) |
Definition at line 174 of file QtHandlesUtils.cc.
Referenced by Canvas::canvasMousePressEvent(), BaseControl::eventFilter(), and Table::eventFilter().
Qt::Alignment Utils::fromHVAlign | ( | const std::string & | halign, |
const std::string & | valign | ||
) |
Definition at line 255 of file QtHandlesUtils.cc.
References strcmpi().
Referenced by TextControl::TextControl(), EditControl::init(), TextControl::update(), EditControl::updateMultiLine(), and EditControl::updateSingleLine().
QColor Utils::fromRgb | ( | const Matrix & | rgb | ) |
Definition at line 148 of file QtHandlesUtils.cc.
References Array< T, Alloc >::numel().
Referenced by annotation_dialog::set_gui_props(), setupPalette(), updatePalette(), and Table::updatePalette().
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().
QStringList Utils::fromStringVector | ( | const string_vector & | v | ) |
Definition at line 65 of file QtHandlesUtils.cc.
References fromStdString(), n, and string_vector::numel().
Referenced by ListBoxControl::ListBoxControl(), TextControl::TextControl(), EditControl::init(), ListBoxControl::update(), TextControl::update(), and EditControl::updateMultiLine().
QImage Utils::makeImageFromCData | ( | const octave_value & | v, |
int | width, | ||
int | height | ||
) |
Definition at line 281 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(), isnan(), octave_value::isreal(), dim_vector::ndims(), r, round(), octave_value::uint8_array_value(), and Faddeeva::w().
Referenced by PushButtonControl::PushButtonControl(), ToggleButtonControl::ToggleButtonControl(), PushButtonControl::update(), ToggleButtonControl::update(), and ToolBarButton< T >::update().
octave_scalar_map Utils::makeKeyEventStruct | ( | QKeyEvent * | event | ) |
Definition at line 367 of file QtHandlesUtils.cc.
References KeyMap::qKeyToKeyString(), octave_scalar_map::setfield(), and toStdString().
Referenced by Canvas::canvasKeyPressEvent(), Canvas::canvasKeyReleaseEvent(), BaseControl::eventFilter(), and Table::eventFilter().
octave_scalar_map Utils::makeScrollEventStruct | ( | QWheelEvent * | event | ) |
Definition at line 398 of file QtHandlesUtils.cc.
References octave_scalar_map::setfield().
Referenced by Canvas::canvasWheelEvent().
|
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().
Cell Utils::toCellString | ( | const QStringList & | l | ) |
Definition at line 88 of file QtHandlesUtils.cc.
References toStringVector().
Referenced by EditControl::editingFinished(), and EditControl::returnPressed().
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().
std::string Utils::toStdString | ( | const QString & | s | ) |
Definition at line 59 of file QtHandlesUtils.cc.
Referenced by Table::comboBoxCurrentIndexChanged(), EditControl::editingFinished(), workspace_model::headerData(), Table::itemChanged(), makeKeyEventStruct(), main_window::modify_path(), EditControl::returnPressed(), and toStringVector().
string_vector Utils::toStringVector | ( | const QStringList & | l | ) |
Definition at line 77 of file QtHandlesUtils.cc.
References toStdString().
Referenced by toCellString().