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
Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | List of all members
file_editor Class Reference

#include "file-editor.h"

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

Public Types

typedef std::map< QString,
QWidget * >::const_iterator 
editor_tab_map_const_iterator
typedef std::map< QString,
QWidget * >::iterator 
editor_tab_map_iterator

Public Slots

void active_tab_changed (int index)
void check_conflict_save (const QString &fileName, bool remove_on_success)
void focus (void)
void handle_add_filename_to_list (const QString &fileName, QWidget *ID)
void handle_delete_debugger_pointer_request (const QString &file, int line)
void handle_edit_file_request (const QString &file)
void handle_editor_state_changed (bool enableCopy, const QString &fileName)
void handle_file_name_changed (const QString &fileName, const QString &toolTip)
void handle_insert_debugger_pointer_request (const QString &file, int line)
void handle_mru_add_file (const QString &file_name)
void handle_tab_close_request (int index)
void handle_tab_remove_request (void)
void handle_update_breakpoint_marker_request (bool insert, const QString &file, int line)
virtual void handle_visibility (bool visible)
QMainWindowmain_win ()
void notice_settings (const QSettings *settings)
void request_close_all_files (bool)
void request_close_file (bool)
void request_close_other_files (bool)
void request_comment_selected_text (void)
void request_context_doc (bool)
void request_context_edit (bool)
void request_context_help (bool)
void request_context_run (bool)
void request_copy (void)
void request_cut (void)
void request_find (void)
void request_goto_line (void)
void request_mru_open_file (QAction *action)
void request_new_file (const QString &commands)
void request_new_function (bool triggered=true)
void request_new_script (const QString &commands)
void request_next_bookmark (void)
void request_next_breakpoint (void)
void request_open_file (void)
void request_paste (void)
void request_previous_bookmark (void)
void request_previous_breakpoint (void)
void request_print_file (void)
void request_redo (void)
void request_remove_bookmark (void)
void request_remove_breakpoint (void)
void request_run_file (void)
void request_save_file (void)
void request_save_file_as (void)
void request_toggle_bookmark (void)
void request_toggle_breakpoint (void)
void request_uncomment_selected_text (void)
void request_undo (void)
void set_shortcuts (bool set_shortcuts)

Signals

void active_changed (bool active)
 Custom signal that tells whether a user has clicked away that dock widget, i.e the active dock widget has changed.
void execute_command_in_terminal_signal (const QString &)
void fetab_change_request (const QWidget *ID)
void fetab_close_request (const QWidget *ID, bool app_closing=false)
void fetab_comment_selected_text (const QWidget *ID)
void fetab_context_edit (const QWidget *ID)
void fetab_context_help (const QWidget *ID, bool)
void fetab_context_run (const QWidget *ID)
void fetab_copy (const QWidget *ID)
void fetab_cut (const QWidget *ID)
void fetab_delete_debugger_pointer (const QWidget *ID, int line=-1)
void fetab_do_breakpoint_marker (bool insert, const QWidget *ID, int line=-1)
void fetab_file_name_query (const QWidget *ID)
void fetab_find (const QWidget *ID)
void fetab_goto_line (const QWidget *ID, int line=-1)
void fetab_insert_debugger_pointer (const QWidget *ID, int line=-1)
void fetab_next_bookmark (const QWidget *ID)
void fetab_next_breakpoint (const QWidget *ID)
void fetab_paste (const QWidget *ID)
void fetab_previous_bookmark (const QWidget *ID)
void fetab_previous_breakpoint (const QWidget *ID)
void fetab_print_file (const QWidget *ID)
void fetab_redo (const QWidget *ID)
void fetab_remove_all_breakpoints (const QWidget *ID)
void fetab_remove_bookmark (const QWidget *ID)
void fetab_run_file (const QWidget *ID)
void fetab_save_file (const QWidget *ID, const QString &fileName, bool remove_on_success)
void fetab_save_file (const QWidget *ID)
void fetab_save_file_as (const QWidget *ID)
void fetab_set_focus (const QWidget *ID)
void fetab_settings_changed (const QSettings *settings)
void fetab_toggle_bookmark (const QWidget *ID)
void fetab_toggle_breakpoint (const QWidget *ID)
void fetab_uncomment_selected_text (const QWidget *ID)
void fetab_undo (const QWidget *ID)
void file_loaded_signal ()
void request_settings_dialog (const QString &)

Public Member Functions

 file_editor (QWidget *p)
 ~file_editor (void)
void check_actions (void)
virtual void connect_visibility_changed (void)
QMenu * debug_menu (void)
QMenu * get_mru_menu (void)
void handle_enter_debug_mode (void)
void handle_exit_debug_mode (void)
void loadFile (const QString &fileName)
void make_widget (bool dock=true)
void make_window (void)
void set_focus (void)
void set_title (const QString &)
QToolBar * toolbar (void)

Protected Slots

void copyClipboard ()
virtual void handle_visibility_changed (bool visible)
 Slot to steer changing visibility from outside.
void pasteClipboard ()

Protected Member Functions

virtual void closeEvent (QCloseEvent *e)
QWidgetfocusWidget ()

Private Types

enum  { MaxMRUFiles = 10 }

Private Slots

void request_open_file (const QString &fileName, int line=-1, bool debug_pointer=false, bool breakpoint_marker=false, bool insert=true)
void request_preferences (bool)
void request_styles_preferences (bool)
void restore_create_file_setting ()

Private Member Functions

void add_file_editor_tab (file_editor_tab *f, const QString &fn)
bool call_custom_editor (const QString &file_name=QString(), int line=-1)
void construct (void)
QWidgetfind_tab_widget (const QString &openFileName) const
void mru_menu_update (void)
void save_file_as (QWidget *fetabID=0)

Private Attributes

QAction * _close_action
QAction * _close_all_action
QAction * _close_others_action
QAction * _comment_selection_action
QAction * _context_doc_action
QAction * _context_edit_action
QAction * _context_help_action
QAction * _context_run_action
QAction * _copy_action
QAction * _cut_action
QMenu * _debug_menu
QAction * _find_action
QAction * _goto_line_action
int _marker_breakpoint
QMenuBar * _menu_bar
QAction * _mru_file_actions [MaxMRUFiles]
QMenu * _mru_file_menu
QStringList _mru_files
QAction * _next_bookmark_action
QAction * _paste_action
QAction * _preferences_action
QAction * _previous_bookmark_action
QAction * _print_action
QAction * _redo_action
QAction * _remove_bookmark_action
QAction * _run_action
QAction * _save_action
QAction * _save_as_action
QAction * _styles_preferences_action
QTabWidget * _tab_widget
QAction * _toggle_bookmark_action
QToolBar * _tool_bar
QAction * _uncomment_selection_action
QAction * _undo_action
QString ced
std::map< QString, QWidget * > editor_tab_map

Detailed Description

Definition at line 38 of file file-editor.h.

Member Typedef Documentation

typedef std::map<QString, QWidget *>::const_iterator file_editor::editor_tab_map_const_iterator

Definition at line 45 of file file-editor.h.

typedef std::map<QString, QWidget *>::iterator file_editor::editor_tab_map_iterator

Definition at line 44 of file file-editor.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator:
MaxMRUFiles 

Definition at line 239 of file file-editor.h.

Constructor & Destructor Documentation

file_editor::file_editor ( QWidget p)
file_editor::~file_editor ( void  )

Member Function Documentation

void octave_dock_widget::active_changed ( bool  active)
signalinherited

Custom signal that tells whether a user has clicked away that dock widget, i.e the active dock widget has changed.

Referenced by octave_dock_widget::change_visibility(), octave_dock_widget::closeEvent(), workspace_view::closeEvent(), octave_dock_widget::connect_visibility_changed(), and octave_dock_widget::handle_visibility_changed().

void file_editor::active_tab_changed ( int  index)
slot
void file_editor::add_file_editor_tab ( file_editor_tab f,
const QString &  fn 
)
private
bool file_editor::call_custom_editor ( const QString &  file_name = QString(),
int  line = -1 
)
private
void file_editor::check_actions ( void  )
void file_editor::check_conflict_save ( const QString &  fileName,
bool  remove_on_success 
)
slot
virtual void octave_dock_widget::closeEvent ( QCloseEvent *  e)
inlineprotectedvirtualinherited

Reimplemented in workspace_view.

Definition at line 55 of file octave-dock-widget.h.

References octave_dock_widget::active_changed().

void octave_dock_widget::connect_visibility_changed ( void  )
virtualinherited
void file_editor::construct ( void  )
private
void file_editor::copyClipboard ( )
protectedslot
QMenu* file_editor::debug_menu ( void  )
virtual

Implements file_editor_interface.

void file_editor::execute_command_in_terminal_signal ( const QString &  )
signal
void file_editor::fetab_change_request ( const QWidget ID)
signal
void file_editor::fetab_close_request ( const QWidget ID,
bool  app_closing = false 
)
signal
void file_editor::fetab_comment_selected_text ( const QWidget ID)
signal
void file_editor::fetab_context_edit ( const QWidget ID)
signal
void file_editor::fetab_context_help ( const QWidget ID,
bool   
)
signal
void file_editor::fetab_context_run ( const QWidget ID)
signal
void file_editor::fetab_copy ( const QWidget ID)
signal
void file_editor::fetab_cut ( const QWidget ID)
signal
void file_editor::fetab_delete_debugger_pointer ( const QWidget ID,
int  line = -1 
)
signal
void file_editor::fetab_do_breakpoint_marker ( bool  insert,
const QWidget ID,
int  line = -1 
)
signal
void file_editor::fetab_file_name_query ( const QWidget ID)
signal
void file_editor::fetab_find ( const QWidget ID)
signal
void file_editor::fetab_goto_line ( const QWidget ID,
int  line = -1 
)
signal
void file_editor::fetab_insert_debugger_pointer ( const QWidget ID,
int  line = -1 
)
signal
void file_editor::fetab_next_bookmark ( const QWidget ID)
signal
void file_editor::fetab_next_breakpoint ( const QWidget ID)
signal
void file_editor::fetab_paste ( const QWidget ID)
signal
void file_editor::fetab_previous_bookmark ( const QWidget ID)
signal
void file_editor::fetab_previous_breakpoint ( const QWidget ID)
signal
void file_editor::fetab_print_file ( const QWidget ID)
signal
void file_editor::fetab_redo ( const QWidget ID)
signal
void file_editor::fetab_remove_all_breakpoints ( const QWidget ID)
signal
void file_editor::fetab_remove_bookmark ( const QWidget ID)
signal
void file_editor::fetab_run_file ( const QWidget ID)
signal
void file_editor::fetab_save_file ( const QWidget ID,
const QString &  fileName,
bool  remove_on_success 
)
signal
void file_editor::fetab_save_file ( const QWidget ID)
signal
void file_editor::fetab_save_file_as ( const QWidget ID)
signal
void file_editor::fetab_set_focus ( const QWidget ID)
signal
void file_editor::fetab_settings_changed ( const QSettings *  settings)
signal
void file_editor::fetab_toggle_bookmark ( const QWidget ID)
signal
void file_editor::fetab_toggle_breakpoint ( const QWidget ID)
signal
void file_editor::fetab_uncomment_selected_text ( const QWidget ID)
signal
void file_editor::fetab_undo ( const QWidget ID)
signal
void file_editor::file_loaded_signal ( )
signal
QWidget* file_editor::find_tab_widget ( const QString &  openFileName) const
private
void file_editor::focus ( void  )
slot
QWidget * octave_dock_widget::focusWidget ( )
protectedinherited

Definition at line 259 of file octave-dock-widget.cc.

References Faddeeva::w().

QMenu* file_editor::get_mru_menu ( void  )
inlinevirtual

Implements file_editor_interface.

Definition at line 52 of file file-editor.h.

References _mru_file_menu.

void file_editor::handle_add_filename_to_list ( const QString &  fileName,
QWidget ID 
)
slot
void file_editor::handle_delete_debugger_pointer_request ( const QString &  file,
int  line 
)
slot
void file_editor::handle_edit_file_request ( const QString &  file)
slot
void file_editor::handle_editor_state_changed ( bool  enableCopy,
const QString &  fileName 
)
slot
void file_editor::handle_enter_debug_mode ( void  )
virtual

Implements file_editor_interface.

void file_editor::handle_exit_debug_mode ( void  )
virtual

Implements file_editor_interface.

void file_editor::handle_file_name_changed ( const QString &  fileName,
const QString &  toolTip 
)
slot
void file_editor::handle_insert_debugger_pointer_request ( const QString &  file,
int  line 
)
slot
void file_editor::handle_mru_add_file ( const QString &  file_name)
slot
void file_editor::handle_tab_close_request ( int  index)
slot
void file_editor::handle_tab_remove_request ( void  )
slot
void file_editor::handle_update_breakpoint_marker_request ( bool  insert,
const QString &  file,
int  line 
)
slot
virtual void octave_dock_widget::handle_visibility ( bool  visible)
inlinevirtualslotinherited
virtual void octave_dock_widget::handle_visibility_changed ( bool  visible)
inlineprotectedvirtualslotinherited

Slot to steer changing visibility from outside.

Definition at line 90 of file octave-dock-widget.h.

References octave_dock_widget::active_changed().

Referenced by octave_dock_widget::octave_dock_widget().

void file_editor::loadFile ( const QString &  fileName)
QMainWindow* octave_dock_widget::main_win ( )
inlineslotinherited

Definition at line 85 of file octave-dock-widget.h.

References octave_dock_widget::_parent.

Referenced by files_dock_widget::files_dock_widget().

void octave_dock_widget::make_widget ( bool  dock = true)
inherited
void octave_dock_widget::make_window ( void  )
inherited
void file_editor::mru_menu_update ( void  )
private
void file_editor::notice_settings ( const QSettings *  settings)
slot
void file_editor::pasteClipboard ( )
protectedslot
void file_editor::request_close_all_files ( bool  )
slot
void file_editor::request_close_file ( bool  )
slot
void file_editor::request_close_other_files ( bool  )
slot
void file_editor::request_comment_selected_text ( void  )
slot
void file_editor::request_context_doc ( bool  )
slot
void file_editor::request_context_edit ( bool  )
slot
void file_editor::request_context_help ( bool  )
slot
void file_editor::request_context_run ( bool  )
slot
void file_editor::request_copy ( void  )
slot
void file_editor::request_cut ( void  )
slot
void file_editor::request_find ( void  )
slot
void file_editor::request_goto_line ( void  )
slot
void file_editor::request_mru_open_file ( QAction *  action)
slot
void file_editor::request_new_file ( const QString &  commands)
slot
void file_editor::request_new_function ( bool  triggered = true)
slot
void file_editor::request_new_script ( const QString &  commands)
slot
void file_editor::request_next_bookmark ( void  )
slot
void file_editor::request_next_breakpoint ( void  )
slot
void file_editor::request_open_file ( void  )
slot
void file_editor::request_open_file ( const QString &  fileName,
int  line = -1,
bool  debug_pointer = false,
bool  breakpoint_marker = false,
bool  insert = true 
)
privateslot
void file_editor::request_paste ( void  )
slot
void file_editor::request_preferences ( bool  )
privateslot
void file_editor::request_previous_bookmark ( void  )
slot
void file_editor::request_previous_breakpoint ( void  )
slot
void file_editor::request_print_file ( void  )
slot
void file_editor::request_redo ( void  )
slot
void file_editor::request_remove_bookmark ( void  )
slot
void file_editor::request_remove_breakpoint ( void  )
slot
void file_editor::request_run_file ( void  )
slot
void file_editor::request_save_file ( void  )
slot
void file_editor::request_save_file_as ( void  )
slot
void file_editor::request_settings_dialog ( const QString &  )
signal
void file_editor::request_styles_preferences ( bool  )
privateslot
void file_editor::request_toggle_bookmark ( void  )
slot
void file_editor::request_toggle_breakpoint ( void  )
slot
void file_editor::request_uncomment_selected_text ( void  )
slot
void file_editor::request_undo ( void  )
slot
void file_editor::restore_create_file_setting ( )
privateslot
void file_editor::save_file_as ( QWidget fetabID = 0)
private
void file_editor::set_focus ( void  )
virtual

Implements file_editor_interface.

void file_editor::set_shortcuts ( bool  set_shortcuts)
slot
void octave_dock_widget::set_title ( const QString &  title)
inherited
QToolBar* file_editor::toolbar ( void  )
virtual

Implements file_editor_interface.

Member Data Documentation

QAction* file_editor::_close_action
private

Definition at line 225 of file file-editor.h.

QAction* file_editor::_close_all_action
private

Definition at line 226 of file file-editor.h.

QAction* file_editor::_close_others_action
private

Definition at line 227 of file file-editor.h.

QAction* file_editor::_comment_selection_action
private

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

QAction* file_editor::_context_doc_action
private

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

QAction* file_editor::_context_edit_action
private

Definition at line 222 of file file-editor.h.

QAction* file_editor::_context_help_action
private

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

QAction* file_editor::_context_run_action
private

Definition at line 220 of file file-editor.h.

QAction* file_editor::_copy_action
private

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

QAction* file_editor::_cut_action
private

Definition at line 205 of file file-editor.h.

QMenu* file_editor::_debug_menu
private

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

QAction* file_editor::_find_action
private

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

QAction* file_editor::_goto_line_action
private

Definition at line 211 of file file-editor.h.

int file_editor::_marker_breakpoint
private

Definition at line 237 of file file-editor.h.

QMenuBar* file_editor::_menu_bar
private

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

QAction* file_editor::_mru_file_actions[MaxMRUFiles]
private

Definition at line 241 of file file-editor.h.

QMenu* file_editor::_mru_file_menu
private

Definition at line 240 of file file-editor.h.

Referenced by get_mru_menu().

QStringList file_editor::_mru_files
private

Definition at line 242 of file file-editor.h.

QAction* file_editor::_next_bookmark_action
private

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

QAction* file_editor::_paste_action
private

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

QAction* file_editor::_preferences_action
private

Definition at line 232 of file file-editor.h.

QAction* file_editor::_previous_bookmark_action
private

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

QAction* file_editor::_print_action
private

Definition at line 218 of file file-editor.h.

QAction* file_editor::_redo_action
private

Definition at line 229 of file file-editor.h.

QAction* file_editor::_remove_bookmark_action
private

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

QAction* file_editor::_run_action
private

Definition at line 219 of file file-editor.h.

QAction* file_editor::_save_action
private

Definition at line 223 of file file-editor.h.

QAction* file_editor::_save_as_action
private

Definition at line 224 of file file-editor.h.

QAction* file_editor::_styles_preferences_action
private

Definition at line 233 of file file-editor.h.

QTabWidget* file_editor::_tab_widget
private

Definition at line 235 of file file-editor.h.

QAction* file_editor::_toggle_bookmark_action
private

Definition at line 215 of file file-editor.h.

QToolBar* file_editor::_tool_bar
private

Definition at line 198 of file file-editor.h.

QAction* file_editor::_uncomment_selection_action
private

Definition at line 202 of file file-editor.h.

QAction* file_editor::_undo_action
private

Definition at line 230 of file file-editor.h.

QString file_editor::ced
private

Definition at line 195 of file file-editor.h.

std::map<QString, QWidget *> file_editor::editor_tab_map
private

Definition at line 193 of file file-editor.h.


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