26 #if ! defined (octave_file_editor_tab_h)
27 #define octave_file_editor_tab_h 1
29 #include <QAbstractButton>
30 #include <QCloseEvent>
33 #include <QFileSystemWatcher>
37 #include <Qsci/qsciapis.h>
75 const QString& toolTip,
83 bool remove_on_success);
97 int& translated_linenr,
marker*&);
117 bool remove_on_success,
bool restore_breakpoints);
120 const QString& base_name,
121 bool remove_on_success,
122 bool restore_breakpoints);
135 Qt::KeyboardModifiers
state);
149 bool remove_on_success);
186 const QString& cond =
"");
193 QString
load_file (
const QString& fileName);
195 void new_file (
const QString& commands = QString ());
240 const QString& cond);
244 void do_save_file (
const QString& file_to_save,
bool remove_on_success,
245 bool restore_breakpoints);
248 const QString& base_name,
249 bool remove_on_success,
250 bool restore_breakpoints);
263 bp_info (
const QString& fname,
int l = 0,
const QString& cond =
"");
275 void save_file (
const QString& saveFileName,
bool remove_on_success =
false,
276 bool restore_breakpoints =
true);
Base class for Octave interfaces that use Qt.
void set_encoding(const QString &new_encoding)
void confirm_dbquit_and_save_signal(const QString &file_to_save, const QString &base_name, bool remove_on_success, bool restore_breakpoints)
void set_file_name(const QString &fileName)
void goto_line(const QWidget *ID, int line=-1)
void report_marker_linenr(QIntList &lines, QStringList &conditions)
QsciScintilla::EolMode m_save_as_desired_eol
void toggle_breakpoint(const QWidget *ID)
void zoom_out(const QWidget *ID)
void delete_debugger_pointer(const QWidget *ID, int line=-1)
QStringList m_bp_conditions
void run_file(const QWidget *ID, bool step_into=false)
void remove_breakpoint_via_debugger_linenr(int debugger_linenr)
void save_file_as(const QWidget *ID)
void tab_ready_to_close(void)
void set_current_directory(const QString &dir)
void handle_file_resave_answer(int decision)
file_editor_tab(base_qobject &oct_qobj, const QString &directory="")
A file_editor_tab object consists of a text area and three left margins.
bool m_line_break_comments
void handle_margin_clicked(int line, int margin, Qt::KeyboardModifiers state)
void editor_state_changed(bool copy_available, bool is_octave_file)
void handle_save_as_filter_selected(const QString &filter)
void check_restore_breakpoints(void)
void handle_double_click(int p, int l, int modifier)
void update_breakpoints()
octave_qscintilla * m_edit_area
void set_modified(bool modified=true)
void dbstop_if(const QString &prompt, int line, const QString &cond)
void handle_request_add_breakpoint(int line, const QString &cond)
void zoom_normal(const QWidget *ID)
void set_focus_editor_signal(QWidget *)
void editor_check_conflict_save(const QString &saveFileName, bool remove_on_success)
void interpreter_event(const fcn_callback &fcn)
bool check_valid_identifier(QString file_name)
QString load_file(const QString &fileName)
void next_bookmark(const QWidget *ID)
void previous_breakpoint(const QWidget *ID)
void convert_eol(const QWidget *ID, QsciScintilla::EolMode)
void save_file(const QWidget *ID)
void handle_save_file_as_answer(const QString &fileName)
void add_breakpoint_event(const bp_info &info)
void toggle_bookmark(const QWidget *ID)
bool m_highlight_all_occurrences
void do_comment_selected_text(bool comment, bool input_str=false)
void handle_remove_next(int remove_line)
void handle_file_reload_answer(int decision)
void notice_settings(const gui_settings *settings, bool init=false)
void set_focus(const QWidget *ID)
QFileSystemWatcher m_file_system_watcher
void unindent_selected_text(const QWidget *ID)
void update_window_title(bool modified)
void handle_cursor_moved(int line, int col)
void interpreter_event(const meth_callback &meth)
void do_breakpoint_marker(bool insert, const QWidget *ID, int line=-1, const QString &cond="")
void request_remove_breakpoint_via_editor_linenr(int editor_linenr)
void update_breakpoints_signal(const octave_value_list &args)
void handle_save_file_as_answer_close(const QString &fileName)
void insert_debugger_pointer(const QWidget *ID, int line=-1)
void move_match_brace(const QWidget *ID, bool select)
void next_breakpoint(const QWidget *ID)
void find_linenr_just_before(int linenr, int &original_linenr, int &editor_linenr)
void show_dialog(QDialog *dlg, bool modal)
void edit_mfile_request(const QString &, const QString &, const QString &, int)
void do_indent_selected_text(bool indent)
void handle_context_menu_edit(const QString &)
void previous_bookmark(const QWidget *ID)
void handle_api_entries_added(void)
void request_add_breakpoint(int line, const QString &cond)
QString m_file_name_short
void update_breakpoints_handler(const octave_value_list &argout)
void handle_save_file_as_answer_cancel(void)
void print_file(const QWidget *ID)
bool m_always_reload_changed_files
void do_save_file_signal(const QString &file_to_save, bool remove_on_success, bool restore_breakpoints)
void run_file_signal(const QFileInfo &info)
bool conditional_close(void)
void update_lexer_settings(void)
void indent_selected_text(const QWidget *ID)
QStatusBar * m_status_bar
bool valid_file_name(const QString &file=QString())
void file_name_changed(const QString &fileName, const QString &toolTip, bool modified)
void smart_indent_line_or_selected_text(const QWidget *ID)
void closeEvent(QCloseEvent *event)
base_qobject & m_octave_qobj
void do_save_file(const QString &file_to_save, bool remove_on_success, bool restore_breakpoints)
int check_file_modified(bool remove=false)
QString get_function_name(void)
void context_edit(const QWidget *ID)
void uncomment_selected_text(const QWidget *ID)
void handle_current_enc_changed(const QString &enc)
void tab_remove_request(void)
void do_smart_indent_line_or_selected_text(void)
void handle_add_octave_apis(const QStringList &api_entries)
void context_help(const QWidget *ID, bool)
void remove_bookmark(const QWidget *ID)
void find_translated_line_number(int original_linenr, int &translated_linenr, marker *&)
void recover_from_exit(void)
void debug_quit_signal(void)
void auto_margin_width(void)
void context_run(const QWidget *ID)
void handle_decode_warning_answer(QAbstractButton *btn)
void confirm_dbquit_and_save(const QString &file_to_save, const QString &base_name, bool remove_on_success, bool restore_breakpoints)
QDateTime m_last_modified
void scintilla_command(const QWidget *, unsigned int)
void comment_selected_text(const QWidget *ID, bool input_str)
QsciScintilla::EolMode detect_eol_mode(void)
void change_editor_state(const QWidget *ID)
void maybe_remove_next(int remove_line)
void edit_area_changed(octave_qscintilla *edit_area)
bool unchanged_or_saved(void)
void remove_all_breakpoints(void)
void zoom_in(const QWidget *ID)
void remove_all_positions(void)
void handle_context_menu_break_condition(int linenr)
void handle_char_added(int character)
void handle_lines_changed(void)
void file_has_changed(const QString &path, bool do_close=false)
void handle_request_remove_breakpoint(int line)
QString encoding(void) const
void save_apis_info(void)
void mru_add_file(const QString &file_name, const QString &encoding)
void api_entries_added(void)
void request_open_file(const QString &, const QString &=QString())
void handle_dbstop_if(const QString &prompt, int line, const QString &cond)
void center_current_line(bool always=true)
void remove_position_via_debugger_linenr(int debugger_linenr)
QString file_name(void) const
octave_qscintilla * qsci_edit_area(void)
QTextCodec * check_valid_codec(void)
void update_eol_indicator(void)
void new_file(const QString &commands=QString())
void show_auto_completion(const QWidget *ID)
breakpoint_info m_breakpoint_info
void request_add_octave_apis(const QStringList &)
void handle_copy_available(bool enableCopy)
MArray< T > filter(MArray< T > &b, MArray< T > &a, MArray< T > &x, MArray< T > &si, int dim=0)
static uint32_t state[624]
std::function< void(octave::interpreter &)> meth_callback
std::function< void(void)> fcn_callback
bp_info(const QString &fname, int l=0, const QString &cond="")
std::string function_name