25 #if ! defined (octave_octave_qt_link_h)
26 #define octave_octave_qt_link_h 1
36 #include <QWaitCondition>
81 std::pair<std::list<int>,
int>
84 int width,
int height,
85 const std::list<int>& initial_value,
87 const std::list<std::string>& prompt,
91 std::list<std::string>
94 const std::list<float>& nr,
95 const std::list<float>& nc,
96 const std::list<std::string>& defaults);
98 std::list<std::string>
106 bool addpath_option);
113 const std::list<workspace_element>& ws);
181 const QString& scopes,
182 const QStringList& symbols,
183 const QStringList& class_names,
184 const QStringList& dimensions,
185 const QStringList&
values,
198 int line,
const QString& cond);
std::pair< std::list< int >, int > do_list_dialog(const std::list< std::string > &list, const std::string &mode, int width, int height, const std::list< int > &initial_value, const std::string &name, const std::list< std::string > &prompt, const std::string &ok_string, const std::string &cancel_string)
For example cd octave end example noindent changes the current working directory to file
void confirm_shutdown_signal(void)
void insert_debugger_pointer_signal(const QString &, int)
void execute_command_in_terminal_signal(const QString &command)
std::list< std::string > do_input_dialog(const std::list< std::string > &prompt, const std::string &title, const std::list< float > &nr, const std::list< float > &nc, const std::list< std::string > &defaults)
The value of lines which begin with a space character are not saved in the history list A value of all commands are saved on the history list
void edit_file_signal(const QString &file)
void shutdown_confirmation(bool sd)
bool do_copy_image_to_clipboard(const std::string &file)
void do_set_default_prompts(std::string &ps1, std::string &ps2, std::string &ps4)
Return the CPU time used by your Octave session The first output is the total time spent executing your process and is equal to the sum of second and third which are the number of CPU seconds spent executing in user mode and the number of CPU seconds spent executing in system mode
bool do_edit_file(const std::string &file)
void do_set_history(const string_vector &hist)
void do_execute_in_debugger_event(const std::string &file, int line)
to define functions rather than attempting to enter them directly on the command line The block of commands is executed as soon as you exit the editor To avoid executing any simply delete all the lines from the buffer before leaving the editor When invoked with no edit the previously executed command
void clear_history_signal(void)
void change_directory_signal(const QString &dir)
bool _shutdown_confirm_result
void set_history_signal(const QStringList &hist)
cell array If invoked with two or more scalar integer or a vector of integer values
std::list< std::string > do_file_dialog(const filter_list &filter, const std::string &title, const std::string &filename, const std::string &pathname, const std::string &multimode)
void do_clear_history(void)
bool do_confirm_shutdown(void)
int do_message_dialog(const std::string &dlg, const std::string &msg, const std::string &title)
void do_pre_input_event(void)
octave_qt_link & operator=(const octave_qt_link &)
octave_interpreter * command_interpreter
void do_delete_debugger_pointer(const std::string &file, int line)
void do_clear_workspace(void)
void show_preferences_signal(void)
static bool file_in_path(const std::string &file, const std::string &dir)
void do_post_input_event(void)
void update_directory(void)
QString _current_directory
void do_show_doc(const std::string &file)
std::string do_question_dialog(const std::string &msg, const std::string &title, const std::string &btn1, const std::string &btn2, const std::string &btn3, const std::string &btndef)
void do_update_breakpoint(bool insert, const std::string &file, int line, const std::string &cond)
void exit_app_signal(int status)
void do_change_directory(const std::string &dir)
MArray< T > filter(MArray< T > &b, MArray< T > &a, MArray< T > &x, MArray< T > &si, int dim=0)
void append_history_signal(const QString &hist_entry)
void copy_image_to_clipboard_signal(const QString &file, bool remove_file)
void show_doc_signal(const QString &file)
void update_breakpoint_marker_signal(bool insert, const QString &file, int line, const QString &cond)
void execute_interpreter_signal(void)
void delete_debugger_pointer_signal(const QString &, int)
void execute_interpreter(void)
void exit_debugger_signal(void)
void clear_workspace_signal(void)
int do_debug_cd_or_addpath_error(const std::string &file, const std::string &dir, bool addpath_option)
void do_show_preferences(void)
void do_enter_debugger_event(const std::string &file, int line)
octave_qt_link(QWidget *p, octave::gui_application *app_context)
void do_set_workspace(bool top_level, bool debug, const std::list< workspace_element > &ws)
void do_exit_debugger_event(void)
void do_insert_debugger_pointer(const std::string &file, int line)
bool do_prompt_new_edit_file(const std::string &file)
void do_append_history(const std::string &hist_entry)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
void do_execute_command_in_terminal(const std::string &command)
QWaitCondition waitcondition
std::list< std::pair< std::string, std::string > > filter_list
octave::gui_application * m_app_context
void set_workspace_signal(bool top_level, bool debug, const QString &scopes, const QStringList &symbols, const QStringList &class_names, const QStringList &dimensions, const QStringList &values, const QIntList &complex_flags)
void terminal_interrupt(void)
void enter_debugger_signal(void)