GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | List of all members
file_editor_tab Class Reference

#include "file-editor-tab.h"

Inheritance diagram for file_editor_tab:
Inheritance graph
[legend]
Collaboration diagram for file_editor_tab:
Collaboration graph
[legend]

Classes

struct  bp_info

Public Slots

void change_editor_state (const QWidget *ID)
void comment_selected_text (const QWidget *ID)
void conditional_close (const QWidget *ID, bool app_closing=false)
void context_edit (const QWidget *ID)
void context_help (const QWidget *ID, bool)
void context_run (const QWidget *ID)
void copy (const QWidget *ID)
void cut (const QWidget *ID)
void delete_debugger_pointer (const QWidget *ID, int line=-1)
void do_breakpoint_marker (bool insert, const QWidget *ID, int line=-1)
void execute_command_in_terminal (const QString &command)
void file_has_changed (const QString &fileName)
void file_name_query (const QWidget *ID)
void find (const QWidget *ID)
void goto_line (const QWidget *ID, int line=-1)
void handle_copy_available (bool enableCopy)
void handle_margin_clicked (int line, int margin, Qt::KeyboardModifiers state)
void insert_debugger_pointer (const QWidget *ID, int line=-1)
QString load_file (const QString &fileName)
void new_file (const QString &commands=QString())
void next_bookmark (const QWidget *ID)
void next_breakpoint (const QWidget *ID)
void notice_settings (const QSettings *settings)
void paste (const QWidget *ID)
void previous_bookmark (const QWidget *ID)
void previous_breakpoint (const QWidget *ID)
void print_file (const QWidget *ID)
void redo (const QWidget *ID)
void remove_all_breakpoints (const QWidget *ID)
void remove_bookmark (const QWidget *ID)
void run_file (const QWidget *ID)
void save_file (const QWidget *ID)
void save_file (const QWidget *ID, const QString &fileName, bool remove_on_success)
void save_file_as (const QWidget *ID)
void set_focus (const QWidget *ID)
void set_modified (bool modified=true)
void toggle_bookmark (const QWidget *ID)
void toggle_breakpoint (const QWidget *ID)
void uncomment_selected_text (const QWidget *ID)
void undo (const QWidget *ID)
void update_window_title (bool modified)

Signals

void add_filename_to_list (const QString &, QWidget *)
void editor_check_conflict_save (const QString &saveFileName, bool remove_on_success)
void editor_state_changed (bool copy_available, const QString &fileName)
void execute_command_in_terminal_signal (const QString &)
void file_name_changed (const QString &fileName, const QString &toolTip)
void mru_add_file (const QString &file_name)
void run_file_signal (const QFileInfo &info)
void tab_remove_request ()

Public Member Functions

 file_editor_tab (const QString &directory="")
 ~file_editor_tab (void)

Protected Member Functions

void closeEvent (QCloseEvent *event)
void set_file_name (const QString &fileName)

Private Types

enum  editor_markers { bookmark, breakpoint, debugger_position }

Private Slots

void auto_margin_width ()
void handle_cursor_moved (int line, int col)
void handle_file_modified_answer (int decision)
void handle_file_reload_answer (int decision)
void handle_file_resave_answer (int decision)
void handle_find_dialog_finished (int decision)
void handle_save_file_as_answer (const QString &fileName)
void handle_save_file_as_answer_cancel ()
void handle_save_file_as_answer_close (const QString &fileName)
void save_apis_info ()

Private Member Functions

void add_breakpoint_callback (const bp_info &info)
void center_current_line ()
int check_file_modified ()
QString comment_string (const QString &)
void do_comment_selected_text (bool comment)
void remove_all_breakpoints_callback (const bp_info &info)
void remove_breakpoint_callback (const bp_info &info)
void request_add_breakpoint (int line)
void request_remove_breakpoint (int line)
void save_file (const QString &saveFileName, bool remove_on_success=false)
void save_file_as (bool remove_on_success=false)
void show_dialog (QDialog *dlg)
void update_lexer ()
bool valid_file_name (const QString &file=QString())

Private Attributes

bool _app_closing
QLabel * _col_indicator
bool _copy_available
octave_qscintilla_edit_area
QString _file_name
QString _file_name_short
QFileSystemWatcher _file_system_watcher
find_dialog_find_dialog
QRect _find_dialog_geometry
bool _find_dialog_is_visible
QsciAPIs * _lexer_apis
bool _long_title
QString _prep_apis_file
QLabel * _row_indicator
QStatusBar * _status_bar

Detailed Description

Definition at line 40 of file file-editor-tab.h.

Member Enumeration Documentation

Enumerator:
bookmark 
breakpoint 
debugger_position 

Definition at line 159 of file file-editor-tab.h.

Constructor & Destructor Documentation

file_editor_tab::file_editor_tab ( const QString &  directory = "")
file_editor_tab::~file_editor_tab ( void  )

Member Function Documentation

void file_editor_tab::add_breakpoint_callback ( const bp_info info)
private
void file_editor_tab::add_filename_to_list ( const QString &  ,
QWidget  
)
signal
void file_editor_tab::auto_margin_width ( )
privateslot
void file_editor_tab::center_current_line ( )
private
void file_editor_tab::change_editor_state ( const QWidget ID)
slot
int file_editor_tab::check_file_modified ( )
private
void file_editor_tab::closeEvent ( QCloseEvent *  event)
protected
void file_editor_tab::comment_selected_text ( const QWidget ID)
slot
QString file_editor_tab::comment_string ( const QString &  )
private
void file_editor_tab::conditional_close ( const QWidget ID,
bool  app_closing = false 
)
slot
void file_editor_tab::context_edit ( const QWidget ID)
slot
void file_editor_tab::context_help ( const QWidget ID,
bool   
)
slot
void file_editor_tab::context_run ( const QWidget ID)
slot
void file_editor_tab::copy ( const QWidget ID)
slot
void file_editor_tab::cut ( const QWidget ID)
slot
void file_editor_tab::delete_debugger_pointer ( const QWidget ID,
int  line = -1 
)
slot
void file_editor_tab::do_breakpoint_marker ( bool  insert,
const QWidget ID,
int  line = -1 
)
slot
void file_editor_tab::do_comment_selected_text ( bool  comment)
private
void file_editor_tab::editor_check_conflict_save ( const QString &  saveFileName,
bool  remove_on_success 
)
signal
void file_editor_tab::editor_state_changed ( bool  copy_available,
const QString &  fileName 
)
signal
void file_editor_tab::execute_command_in_terminal ( const QString &  command)
slot
void file_editor_tab::execute_command_in_terminal_signal ( const QString &  )
signal
void file_editor_tab::file_has_changed ( const QString &  fileName)
slot
void file_editor_tab::file_name_changed ( const QString &  fileName,
const QString &  toolTip 
)
signal
void file_editor_tab::file_name_query ( const QWidget ID)
slot
void file_editor_tab::find ( const QWidget ID)
slot
void file_editor_tab::goto_line ( const QWidget ID,
int  line = -1 
)
slot
void file_editor_tab::handle_copy_available ( bool  enableCopy)
slot
void file_editor_tab::handle_cursor_moved ( int  line,
int  col 
)
privateslot
void file_editor_tab::handle_file_modified_answer ( int  decision)
privateslot
void file_editor_tab::handle_file_reload_answer ( int  decision)
privateslot
void file_editor_tab::handle_file_resave_answer ( int  decision)
privateslot
void file_editor_tab::handle_find_dialog_finished ( int  decision)
privateslot
void file_editor_tab::handle_margin_clicked ( int  line,
int  margin,
Qt::KeyboardModifiers  state 
)
slot
void file_editor_tab::handle_save_file_as_answer ( const QString &  fileName)
privateslot
void file_editor_tab::handle_save_file_as_answer_cancel ( )
privateslot
void file_editor_tab::handle_save_file_as_answer_close ( const QString &  fileName)
privateslot
void file_editor_tab::insert_debugger_pointer ( const QWidget ID,
int  line = -1 
)
slot
QString file_editor_tab::load_file ( const QString &  fileName)
slot
void file_editor_tab::mru_add_file ( const QString &  file_name)
signal
void file_editor_tab::new_file ( const QString &  commands = QString())
slot
void file_editor_tab::next_bookmark ( const QWidget ID)
slot
void file_editor_tab::next_breakpoint ( const QWidget ID)
slot
void file_editor_tab::notice_settings ( const QSettings *  settings)
slot
void file_editor_tab::paste ( const QWidget ID)
slot
void file_editor_tab::previous_bookmark ( const QWidget ID)
slot
void file_editor_tab::previous_breakpoint ( const QWidget ID)
slot
void file_editor_tab::print_file ( const QWidget ID)
slot
void file_editor_tab::redo ( const QWidget ID)
slot
void file_editor_tab::remove_all_breakpoints ( const QWidget ID)
slot
void file_editor_tab::remove_all_breakpoints_callback ( const bp_info info)
private
void file_editor_tab::remove_bookmark ( const QWidget ID)
slot
void file_editor_tab::remove_breakpoint_callback ( const bp_info info)
private
void file_editor_tab::request_add_breakpoint ( int  line)
private
void file_editor_tab::request_remove_breakpoint ( int  line)
private
void file_editor_tab::run_file ( const QWidget ID)
slot
void file_editor_tab::run_file_signal ( const QFileInfo &  info)
signal
void file_editor_tab::save_apis_info ( )
privateslot
void file_editor_tab::save_file ( const QWidget ID)
slot
void file_editor_tab::save_file ( const QWidget ID,
const QString &  fileName,
bool  remove_on_success 
)
slot
void file_editor_tab::save_file ( const QString &  saveFileName,
bool  remove_on_success = false 
)
private
void file_editor_tab::save_file_as ( const QWidget ID)
slot
void file_editor_tab::save_file_as ( bool  remove_on_success = false)
private
void file_editor_tab::set_file_name ( const QString &  fileName)
protected
void file_editor_tab::set_focus ( const QWidget ID)
slot
void file_editor_tab::set_modified ( bool  modified = true)
slot
void file_editor_tab::show_dialog ( QDialog dlg)
private
void file_editor_tab::tab_remove_request ( )
signal
void file_editor_tab::toggle_bookmark ( const QWidget ID)
slot
void file_editor_tab::toggle_breakpoint ( const QWidget ID)
slot
void file_editor_tab::uncomment_selected_text ( const QWidget ID)
slot
void file_editor_tab::undo ( const QWidget ID)
slot
void file_editor_tab::update_lexer ( )
private
void file_editor_tab::update_window_title ( bool  modified)
slot
bool file_editor_tab::valid_file_name ( const QString &  file = QString())
private

Member Data Documentation

bool file_editor_tab::_app_closing
private

Definition at line 208 of file file-editor-tab.h.

QLabel* file_editor_tab::_col_indicator
private

Definition at line 201 of file file-editor-tab.h.

bool file_editor_tab::_copy_available
private

Definition at line 207 of file file-editor-tab.h.

octave_qscintilla* file_editor_tab::_edit_area
private

Definition at line 197 of file file-editor-tab.h.

QString file_editor_tab::_file_name
private

Definition at line 203 of file file-editor-tab.h.

QString file_editor_tab::_file_name_short
private

Definition at line 204 of file file-editor-tab.h.

QFileSystemWatcher file_editor_tab::_file_system_watcher
private

Definition at line 210 of file file-editor-tab.h.

find_dialog* file_editor_tab::_find_dialog
private

Definition at line 212 of file file-editor-tab.h.

QRect file_editor_tab::_find_dialog_geometry
private

Definition at line 214 of file file-editor-tab.h.

bool file_editor_tab::_find_dialog_is_visible
private

Definition at line 213 of file file-editor-tab.h.

QsciAPIs* file_editor_tab::_lexer_apis
private

Definition at line 216 of file file-editor-tab.h.

bool file_editor_tab::_long_title
private

Definition at line 206 of file file-editor-tab.h.

QString file_editor_tab::_prep_apis_file
private

Definition at line 217 of file file-editor-tab.h.

QLabel* file_editor_tab::_row_indicator
private

Definition at line 200 of file file-editor-tab.h.

QStatusBar* file_editor_tab::_status_bar
private

Definition at line 199 of file file-editor-tab.h.


The documentation for this class was generated from the following file: