#include <operations.h>
Public Types | |
ACCEPTED | |
COPY_CLIPBOARD | |
CANCEL | |
enum | MenuResult { ACCEPTED, COPY_CLIPBOARD, CANCEL } |
Public Slots | |
void | copy_clipboard_callback () |
Makes copy_clipboard_ok true. | |
void | exit_callback () |
void | cd_callback () |
void | inverse_callback () |
void | determinant_callback () |
void | eigenvalues_callback () |
void | transpose_callback () |
void | submatrix_callback () |
void | mean_callback () |
void | median_callback () |
void | std_callback () |
void | cov_callback () |
void | corrcoef_callback () |
void | plot_callback () |
void | axis_callback () |
void | title_label_callback () |
void | to_eps_callback () |
void | to_pdf_callback () |
void | to_png_callback () |
void | semilogy_callback () |
void | semilogx_callback () |
void | log_log_callback () |
void | polar_callback () |
void | error_bars_callback () |
void | hist_callback () |
Callback for histogram menu. | |
void | bar_callback () |
Callback for bar graph menu. | |
void | contour_callback () |
Callback for contour menu. | |
void | mesh_callback () |
Callback for mesh menu. | |
void | suma_callback () |
Callback for A+B menu. | |
void | producto_callback () |
Callback for A*B menu. | |
void | exponente_callback () |
Callback for A**B menu. | |
void | editor_callback () |
void | general_config_callback () |
Public Member Functions | |
Operations (QObject *parent=0, BaseWidget **active_widget=0, MainWindow *main_window=0) | |
void | setOctaveConnection (OctaveConnection *octave_connection) |
void | setMatrix (QString matrix) |
bool | input_dialog (QString title, QString label, QString &input) |
Shows simple dialog with one label and line edit. | |
void | simple_comand (QString title, QString label, QString _command) |
Shows simple dialog with one label and line edit, and executes _command with line edit value. | |
MenuResult | menu_window (QString title, QStringList parameters_labels, QStringList ¶meters, QStringList output_labels, QStringList &output, QString help=QString(), bool accept_blank_parameters=false) |
Shows dialog with labels and line edits. | |
void | compex_comand (QString title, QString _command, QStringList parameters_labels, QStringList ¶meters, QStringList output_labels, QStringList &output, QString help=QString(), bool is_table=false, bool accept_blank_parameters=false) |
Shows dialog with labels and line edits, and executes _command with line edit value. | |
Private Attributes | |
OctaveConnection * | octave_connection |
QString | matrix |
BaseWidget ** | active_widget |
MainWindow * | main_window |
bool | copy_clipboard_ok |
Operations::Operations | ( | QObject * | parent = 0 , |
|
BaseWidget ** | active_widget = 0 , |
|||
MainWindow * | main_window = 0 | |||
) |
void Operations::axis_callback | ( | ) | [slot] |
void Operations::bar_callback | ( | ) | [slot] |
Callback for bar graph menu.
Shows dialog for bar graph.
void Operations::cd_callback | ( | ) | [slot] |
void Operations::compex_comand | ( | QString | title, | |
QString | _command, | |||
QStringList | parameters_labels, | |||
QStringList & | parameters, | |||
QStringList | output_labels, | |||
QStringList & | output, | |||
QString | help = QString() , |
|||
bool | is_table = false , |
|||
bool | accept_blank_parameters = false | |||
) |
Shows dialog with labels and line edits, and executes _command with line edit value.
title | Dialog title. | |
_command | Command to execute. | |
parameters_labels | Dialog labels for input parameters. | |
parameters | Value of line edits for input parameters. | |
output_labels | Dialog labels for output parameters. | |
output | Value of line edits for output parameters. | |
help | Html text with help. | |
is_table | If focused window is a table window, asigs value to table. | |
accept_blank_parameters | If user lefts parameters in blank, this option lets them. Otherwise function returns. |
void Operations::contour_callback | ( | ) | [slot] |
Callback for contour menu.
Shows dialog for contour plot of three-dimensional surface.
void Operations::copy_clipboard_callback | ( | ) | [slot] |
Makes copy_clipboard_ok true.
This callback function deals with menu_window and input_dialog methods.
void Operations::corrcoef_callback | ( | ) | [slot] |
void Operations::cov_callback | ( | ) | [slot] |
void Operations::determinant_callback | ( | ) | [slot] |
void Operations::editor_callback | ( | ) | [slot] |
void Operations::eigenvalues_callback | ( | ) | [slot] |
void Operations::error_bars_callback | ( | ) | [slot] |
void Operations::exit_callback | ( | ) | [slot] |
void Operations::exponente_callback | ( | ) | [slot] |
Callback for A**B menu.
void Operations::general_config_callback | ( | ) | [slot] |
void Operations::hist_callback | ( | ) | [slot] |
Callback for histogram menu.
Shows dialog for histogram.
bool Operations::input_dialog | ( | QString | title, | |
QString | label, | |||
QString & | input | |||
) |
Shows simple dialog with one label and line edit.
title | Dialog title. | |
label | Dialog label. | |
input | Value of line edit |
void Operations::inverse_callback | ( | ) | [slot] |
void Operations::log_log_callback | ( | ) | [slot] |
void Operations::mean_callback | ( | ) | [slot] |
void Operations::median_callback | ( | ) | [slot] |
Operations::MenuResult Operations::menu_window | ( | QString | title, | |
QStringList | parameters_labels, | |||
QStringList & | parameters, | |||
QStringList | output_labels, | |||
QStringList & | output, | |||
QString | help = QString() , |
|||
bool | accept_blank_parameters = false | |||
) |
Shows dialog with labels and line edits.
title | Dialog title. | |
parameters_labels | Dialog labels for input parameters. | |
parameters | Value of line edits for input parameters. | |
output_labels | Dialog labels for output parameters. | |
output | Value of line edits for output parameters. | |
help | Html text with help. | |
accept_blank_parameters | If user lefts parameters in blank, this option lets them. Otherwise function returns CANCEL. |
void Operations::mesh_callback | ( | ) | [slot] |
Callback for mesh menu.
Shows dialog for plot of three-dimensional surface.
void Operations::plot_callback | ( | ) | [slot] |
void Operations::polar_callback | ( | ) | [slot] |
void Operations::producto_callback | ( | ) | [slot] |
Callback for A*B menu.
void Operations::semilogx_callback | ( | ) | [slot] |
void Operations::semilogy_callback | ( | ) | [slot] |
void Operations::setMatrix | ( | QString | matrix | ) |
void Operations::setOctaveConnection | ( | OctaveConnection * | octave_connection | ) |
void Operations::simple_comand | ( | QString | title, | |
QString | label, | |||
QString | _command | |||
) |
Shows simple dialog with one label and line edit, and executes _command with line edit value.
title | Dialog title. | |
label | Dialog label. | |
_command | Command to execute. |
void Operations::std_callback | ( | ) | [slot] |
void Operations::submatrix_callback | ( | ) | [slot] |
void Operations::suma_callback | ( | ) | [slot] |
Callback for A+B menu.
void Operations::title_label_callback | ( | ) | [slot] |
void Operations::to_eps_callback | ( | ) | [slot] |
void Operations::to_pdf_callback | ( | ) | [slot] |
void Operations::to_png_callback | ( | ) | [slot] |
void Operations::transpose_callback | ( | ) | [slot] |
BaseWidget** Operations::active_widget [private] |
bool Operations::copy_clipboard_ok [private] |
MainWindow* Operations::main_window [private] |
QString Operations::matrix [private] |
OctaveConnection* Operations::octave_connection [private] |