GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
Functions | |
template<class T > | |
QFont | computeFont (const typename T::properties &props, int height) |
template QFont | computeFont< uicontrol > (const uicontrol::properties &props, int height) |
template QFont | computeFont< uipanel > (const uipanel::properties &props, int height) |
Matrix | figureCurrentPoint (const graphics_object &fig, QMouseEvent *event) |
Matrix | figureCurrentPoint (const graphics_object &fig) |
std::string | figureSelectionType (QMouseEvent *event, bool isDoubleClick) |
Qt::Alignment | fromHVAlign (const caseless_str &halign, const caseless_str &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) |
template<class T > | |
T::properties & | properties (graphics_object obj) |
template<class T > | |
T::properties & | properties (const graphics_handle &h) |
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 103 of file QtHandlesUtils.cc.
References f, and fromStdString().
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::eventFilter(), QtHandles::Panel::Panel(), and QtHandles::Panel::update().
Matrix QtHandles::Utils::figureCurrentPoint | ( | const graphics_object & | fig, |
QMouseEvent * | event | ||
) |
Definition at line 206 of file QtHandlesUtils.cc.
References QtHandles::Object::innerContainer(), QtHandles::Object::properties(), qp(), and QtHandles::Backend::toolkitObject().
Referenced by QtHandles::BaseControl::eventFilter(), and QtHandles::Canvas::updateCurrentPoint().
Matrix QtHandles::Utils::figureCurrentPoint | ( | const graphics_object & | fig | ) |
Definition at line 227 of file QtHandlesUtils.cc.
References QtHandles::Object::innerContainer(), QtHandles::Object::properties(), qp(), and QtHandles::Backend::toolkitObject().
std::string QtHandles::Utils::figureSelectionType | ( | QMouseEvent * | event, |
bool | isDoubleClick | ||
) |
Definition at line 165 of file QtHandlesUtils.cc.
Referenced by QtHandles::Canvas::canvasMousePressEvent(), and QtHandles::BaseControl::eventFilter().
Qt::Alignment QtHandles::Utils::fromHVAlign | ( | const caseless_str & | halign, |
const caseless_str & | valign | ||
) |
Definition at line 250 of file QtHandlesUtils.cc.
References caseless_str::compare().
Referenced by QtHandles::EditControl::init(), QtHandles::TextControl::TextControl(), QtHandles::TextControl::update(), and QtHandles::EditControl::updateSingleLine().
QColor QtHandles::Utils::fromRgb | ( | const Matrix & | rgb | ) |
Definition at line 139 of file QtHandlesUtils.cc.
References Array< T >::numel().
Referenced by annotation_dialog::set_gui_props(), QtHandles::setupPalette(), and QtHandles::updatePalette().
QString QtHandles::Utils::fromStdString | ( | const std::string & | s | ) |
Definition at line 49 of file QtHandlesUtils.cc.
Referenced by QtHandles::ButtonControl::ButtonControl(), computeFont(), default_qt_settings_file(), main_window::display_release_notes(), octave_qt_link::do_append_history(), octave_qt_link::do_change_directory(), octave_qt_link::do_copy_image_to_clipboard(), octave_qt_link::do_debug_cd_or_addpath_error(), octave_qt_link::do_delete_debugger_pointer(), octave_qt_link::do_edit_file(), octave_qt_link::do_execute_command_in_terminal(), octave_qt_link::do_file_dialog(), octave_qt_link::do_input_dialog(), octave_qt_link::do_insert_debugger_pointer(), octave_qt_link::do_list_dialog(), octave_qt_link::do_message_dialog(), octave_qt_link::do_prompt_new_edit_file(), octave_qt_link::do_question_dialog(), octave_qt_link::do_set_history(), octave_qt_link::do_set_workspace(), octave_qt_link::do_show_doc(), octave_qt_link::do_update_breakpoint(), QtHandles::Figure::Figure(), QtHandles::Figure::fileName(), fromStringVector(), resource_manager::get_gui_translation_dir(), workspace_view::handle_contextmenu_copy_value(), QtHandles::BaseControl::init(), QtHandles::EditControl::init(), make_filter_list(), make_qstring_list(), QtHandles::Menu::Menu(), QtHandles::Panel::Panel(), files_dock_widget::popdownmenu_home(), QtHandles::PopupMenuControl::PopupMenuControl(), QtHandles::Backend::print_figure(), news_reader::process(), main_window::show_about_octave(), QtHandles::ToolBarButton< T >::ToolBarButton(), QtHandles::PushButtonControl::update(), QtHandles::ButtonControl::update(), QtHandles::PopupMenuControl::update(), QtHandles::ToolBarButton< T >::update(), QtHandles::BaseControl::update(), QtHandles::Panel::update(), QtHandles::Menu::update(), QtHandles::Figure::update(), QtHandles::EditControl::updateSingleLine(), and webinfo::webinfo().
QStringList QtHandles::Utils::fromStringVector | ( | const string_vector & | v | ) |
Definition at line 61 of file QtHandlesUtils.cc.
References fromStdString(), and Array< T >::length().
Referenced by QtHandles::EditControl::init(), QtHandles::ListBoxControl::ListBoxControl(), QtHandles::TextControl::TextControl(), QtHandles::TextControl::update(), QtHandles::ListBoxControl::update(), and QtHandles::EditControl::updateMultiLine().
QImage QtHandles::Utils::makeImageFromCData | ( | const octave_value & | v, |
int | width, | ||
int | height | ||
) |
Definition at line 276 of file QtHandlesUtils.cc.
References octave_value::array_value(), d, octave_value::dims(), f, octave_value::float_array_value(), octave_value::is_real_type(), octave_value::is_single_type(), octave_value::is_uint8_type(), octave_value::uint8_array_value(), Faddeeva::w(), xisnan(), and xround().
Referenced by QtHandles::ToolBarButton< T >::ToolBarButton(), and QtHandles::ToolBarButton< T >::update().
octave_scalar_map QtHandles::Utils::makeKeyEventStruct | ( | QKeyEvent * | event | ) |
Definition at line 352 of file QtHandlesUtils.cc.
References QtHandles::KeyMap::qKeyToKeyString(), octave_scalar_map::setfield(), and toStdString().
Referenced by QtHandles::Canvas::canvasKeyPressEvent(), QtHandles::Canvas::canvasKeyReleaseEvent(), and QtHandles::BaseControl::eventFilter().
|
inline |
Definition at line 69 of file QtHandlesUtils.h.
References graphics_object::get_properties(), and properties().
Referenced by base_graphics_object::get_properties(), QtHandles::Object::properties(), QtHandles::ToolBarButton< T >::ToolBarButton(), and QtHandles::ToolBarButton< T >::update().
|
inline |
Definition at line 74 of file QtHandlesUtils.h.
References gh_manager::get_object().
Referenced by properties().
Cell QtHandles::Utils::toCellString | ( | const QStringList & | l | ) |
Definition at line 84 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 150 of file QtHandlesUtils.cc.
References Array< T >::fortran_vec().
Referenced by QtHandles::__init__(), and annotation_dialog::get_gui_props().
std::string QtHandles::Utils::toStdString | ( | const QString & | s | ) |
Definition at line 55 of file QtHandlesUtils.cc.
Referenced by QtHandles::EditControl::editingFinished(), makeKeyEventStruct(), QtHandles::EditControl::returnPressed(), and toStringVector().
string_vector QtHandles::Utils::toStringVector | ( | const QStringList & | l | ) |
Definition at line 73 of file QtHandlesUtils.cc.
References toStdString().
Referenced by toCellString().