GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
file_editor_interface Class Referenceabstract

#include "file-editor-interface.h"

Inheritance diagram for file_editor_interface:
Collaboration diagram for file_editor_interface:

Public Slots

virtual void activate (void)
 
void default_dock (bool not_used=false)
 
void handle_active_dock_changed (octave_dock_widget *, octave_dock_widget *)
 
virtual void handle_file_remove (const QString &o, const QString &n)=0
 
void handle_settings (const gui_settings *)
 
virtual void handle_visibility (bool visible)
 
void init_window_menu_entry (void)
 
void make_widget (bool not_used=false)
 
void make_window (bool widget_was_dragged=false)
 
void moveEvent (QMoveEvent *event)
 
virtual void notice_settings (const gui_settings *)
 
virtual void request_new_file (const QString &command=QString())=0
 
virtual void request_open_file (const QString &openFileName, const QString &encoding=QString(), int line=-1, bool debug_pointer=false, bool breakpoint_marker=false, bool insert=true, const QString &cond="", int index=-1, const QString &bookmarks=QString())=0
 
void resizeEvent (QResizeEvent *event)
 
virtual void save_settings (void)
 
virtual void toplevel_change (bool)=0
 

Signals

void active_changed (bool active)
 Custom signal that tells whether a user has clicked away that dock widget, i.e. More...
 
void interpreter_event (const fcn_callback &fcn)
 
void interpreter_event (const meth_callback &meth)
 
void queue_make_widget (void)
 
void queue_make_window (bool widget_was_dragged)
 

Public Member Functions

 file_editor_interface (QWidget *p, base_qobject &oct_qobj)
 
virtual ~file_editor_interface (void)=default
 
bool adopted (void) const
 
virtual bool check_closing (void)=0
 
virtual QMenudebug_menu (void)=0
 
virtual void empty_script (bool, bool)=0
 
virtual void enable_menu_shortcuts (bool enable)=0
 
virtual QMenuget_mru_menu (void)=0
 
virtual void handle_delete_debugger_pointer_request (const QString &file, int line)=0
 
virtual void handle_edit_file_request (const QString &file)=0
 
virtual void handle_enter_debug_mode (void)=0
 
virtual void handle_exit_debug_mode (void)=0
 
virtual void handle_insert_debugger_pointer_request (const QString &file, int line)=0
 
virtual void handle_update_breakpoint_marker_request (bool insert, const QString &file, int line, const QString &cond)=0
 
virtual void insert_global_actions (QList< QAction * >)=0
 
virtual QMenuBarmenubar (void)=0
 
virtual void restore_session (gui_settings *)=0
 
void set_adopted (bool adopted=true)
 
void set_main_window (main_window *mw)
 
void set_predecessor_widget (octave_dock_widget *prev_widget)
 
void set_title (const QString &)
 
virtual QToolBar * toolbar (void)=0
 

Protected Slots

virtual void do_undo (void)
 Slot to handle undo. More...
 
bool eventFilter (QObject *obj, QEvent *e)
 Event filter for double clicks into the window decoration elements. More...
 
virtual void copyClipboard (void)
 Slots to handle copy & paste. More...
 
virtual void pasteClipboard (void)
 Slots to handle copy & paste. More...
 
virtual void selectAll (void)
 Slots to handle copy & paste. More...
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *e)
 
bool event (QEvent *event)
 
QWidgetfocusWidget (void)
 

Protected Attributes

QAction * m_close_action
 
QToolButtonm_close_button
 
QAbstractButton * m_default_close_button
 
QAbstractButton * m_default_float_button
 
QAction * m_dock_action
 
QToolButtonm_dock_button
 
int m_icon_size
 
base_qobjectm_octave_qobj
 
QWidgetm_title_widget
 

Private Slots

void change_visibility (bool)
 

Private Member Functions

void set_focus_predecessor (void)
 
void set_style (bool active)
 
void store_geometry (void)
 

Private Attributes

bool m_adopted
 
QColor m_bg_color
 
QColor m_bg_color_active
 
bool m_custom_style
 
QColor m_fg_color
 
QColor m_fg_color_active
 
bool m_focus_follows_mouse
 
QString m_icon_color
 
QString m_icon_color_active
 
main_windowm_main_window
 Stores the parent, since we are reparenting to 0. More...
 
octave_dock_widgetm_predecessor_widget
 
QRect m_recent_dock_geom
 
QRect m_recent_float_geom
 
int m_title_3d
 
bool m_waiting_for_mouse_button_release
 

Detailed Description

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

Constructor & Destructor Documentation

◆ file_editor_interface()

file_editor_interface::file_editor_interface ( QWidget p,
base_qobject oct_qobj 
)
inline

Definition at line 46 of file file-editor-interface.h.

◆ ~file_editor_interface()

virtual file_editor_interface::~file_editor_interface ( void  )
virtualdefault

Member Function Documentation

◆ activate

void octave_dock_widget::activate ( void  )
virtualslotinherited

◆ active_changed

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(), octave_dock_widget::handle_visibility(), and octave_dock_widget::init_window_menu_entry().

◆ adopted()

bool octave_dock_widget::adopted ( void  ) const
inlineinherited

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

References octave_dock_widget::m_adopted.

Referenced by octave_dock_widget::set_adopted().

◆ change_visibility

void octave_dock_widget::change_visibility ( bool  )
privateslotinherited

◆ check_closing()

virtual bool file_editor_interface::check_closing ( void  )
pure virtual

◆ closeEvent()

void octave_dock_widget::closeEvent ( QCloseEvent *  e)
protectedvirtualinherited

◆ copyClipboard

virtual void label_dock_widget::copyClipboard ( void  )
inlineprotectedvirtualslotinherited

Slots to handle copy & paste.

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

Referenced by octave_dock_widget::set_main_window().

◆ debug_menu()

virtual QMenu* file_editor_interface::debug_menu ( void  )
pure virtual

Implemented in file_editor.

◆ default_dock

void octave_dock_widget::default_dock ( bool  not_used = false)
slotinherited

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

Referenced by octave_dock_widget::toplevel_change().

◆ do_undo

virtual void label_dock_widget::do_undo ( void  )
inlineprotectedvirtualslotinherited

Slot to handle undo.

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

Referenced by octave_dock_widget::set_main_window().

◆ empty_script()

virtual void file_editor_interface::empty_script ( bool  ,
bool   
)
pure virtual

Implemented in file_editor.

◆ enable_menu_shortcuts()

virtual void file_editor_interface::enable_menu_shortcuts ( bool  enable)
pure virtual

◆ event()

bool octave_dock_widget::event ( QEvent *  event)
protectedinherited

◆ eventFilter

bool octave_dock_widget::eventFilter ( QObject obj,
QEvent *  e 
)
protectedslotinherited

Event filter for double clicks into the window decoration elements.

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

References octave_dock_widget::m_focus_follows_mouse.

◆ focusWidget()

QWidget * octave_dock_widget::focusWidget ( void  )
protectedinherited

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

References Faddeeva::w().

Referenced by file_editor::editor_tab_has_focus().

◆ get_mru_menu()

virtual QMenu* file_editor_interface::get_mru_menu ( void  )
pure virtual

Implemented in file_editor.

◆ handle_active_dock_changed

void octave_dock_widget::handle_active_dock_changed ( octave_dock_widget w_old,
octave_dock_widget w_new 
)
slotinherited

◆ handle_delete_debugger_pointer_request()

virtual void file_editor_interface::handle_delete_debugger_pointer_request ( const QString &  file,
int  line 
)
pure virtual

◆ handle_edit_file_request()

virtual void file_editor_interface::handle_edit_file_request ( const QString &  file)
pure virtual

◆ handle_enter_debug_mode()

virtual void file_editor_interface::handle_enter_debug_mode ( void  )
pure virtual

◆ handle_exit_debug_mode()

virtual void file_editor_interface::handle_exit_debug_mode ( void  )
pure virtual

◆ handle_file_remove

virtual void file_editor_interface::handle_file_remove ( const QString &  o,
const QString &  n 
)
pure virtualslot

◆ handle_insert_debugger_pointer_request()

virtual void file_editor_interface::handle_insert_debugger_pointer_request ( const QString &  file,
int  line 
)
pure virtual

◆ handle_settings

◆ handle_update_breakpoint_marker_request()

virtual void file_editor_interface::handle_update_breakpoint_marker_request ( bool  insert,
const QString &  file,
int  line,
const QString &  cond 
)
pure virtual

◆ handle_visibility

void octave_dock_widget::handle_visibility ( bool  visible)
virtualslotinherited

◆ init_window_menu_entry

void octave_dock_widget::init_window_menu_entry ( void  )
slotinherited

◆ insert_global_actions()

virtual void file_editor_interface::insert_global_actions ( QList< QAction * >  )
pure virtual

Implemented in file_editor.

◆ interpreter_event [1/2]

void file_editor_interface::interpreter_event ( const fcn_callback fcn)
signal

◆ interpreter_event [2/2]

void file_editor_interface::interpreter_event ( const meth_callback meth)
signal

◆ make_widget

◆ make_window

◆ menubar()

virtual QMenuBar* file_editor_interface::menubar ( void  )
pure virtual

Implemented in file_editor.

◆ moveEvent

void octave_dock_widget::moveEvent ( QMoveEvent *  event)
slotinherited

◆ notice_settings

virtual void octave_dock_widget::notice_settings ( const gui_settings )
inlinevirtualslotinherited

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

Referenced by octave_dock_widget::handle_settings().

◆ pasteClipboard

virtual void label_dock_widget::pasteClipboard ( void  )
inlineprotectedvirtualslotinherited

Slots to handle copy & paste.

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

Referenced by octave_dock_widget::set_main_window().

◆ queue_make_widget

void octave_dock_widget::queue_make_widget ( void  )
signalinherited

◆ queue_make_window

void octave_dock_widget::queue_make_window ( bool  widget_was_dragged)
signalinherited

◆ request_new_file

virtual void file_editor_interface::request_new_file ( const QString &  command = QString())
pure virtualslot

◆ request_open_file

virtual void file_editor_interface::request_open_file ( const QString &  openFileName,
const QString &  encoding = QString(),
int  line = -1,
bool  debug_pointer = false,
bool  breakpoint_marker = false,
bool  insert = true,
const QString &  cond = "",
int  index = -1,
const QString &  bookmarks = QString() 
)
pure virtualslot

◆ resizeEvent

void octave_dock_widget::resizeEvent ( QResizeEvent *  event)
slotinherited

◆ restore_session()

virtual void file_editor_interface::restore_session ( gui_settings )
pure virtual

Implemented in file_editor.

◆ save_settings

◆ selectAll

virtual void label_dock_widget::selectAll ( void  )
inlineprotectedvirtualslotinherited

Slots to handle copy & paste.

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

Referenced by octave_dock_widget::set_main_window().

◆ set_adopted()

void octave_dock_widget::set_adopted ( bool  adopted = true)
inlineinherited

◆ set_focus_predecessor()

◆ set_main_window()

◆ set_predecessor_widget()

void octave_dock_widget::set_predecessor_widget ( octave_dock_widget prev_widget)
inherited

◆ set_style()

◆ set_title()

◆ store_geometry()

void octave_dock_widget::store_geometry ( void  )
privateinherited

◆ toolbar()

virtual QToolBar* file_editor_interface::toolbar ( void  )
pure virtual

Implemented in file_editor.

◆ toplevel_change

virtual void file_editor_interface::toplevel_change ( bool  )
pure virtualslot

Member Data Documentation

◆ m_adopted

bool octave_dock_widget::m_adopted
privateinherited

◆ m_bg_color

QColor octave_dock_widget::m_bg_color
privateinherited

◆ m_bg_color_active

QColor octave_dock_widget::m_bg_color_active
privateinherited

◆ m_close_action

QAction* label_dock_widget::m_close_action
protectedinherited

◆ m_close_button

QToolButton* label_dock_widget::m_close_button
protectedinherited

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

Referenced by octave_dock_widget::set_style().

◆ m_custom_style

bool octave_dock_widget::m_custom_style
privateinherited

◆ m_default_close_button

QAbstractButton* label_dock_widget::m_default_close_button
protectedinherited

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

◆ m_default_float_button

QAbstractButton* label_dock_widget::m_default_float_button
protectedinherited

◆ m_dock_action

◆ m_dock_button

QToolButton* label_dock_widget::m_dock_button
protectedinherited

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

Referenced by octave_dock_widget::set_style().

◆ m_fg_color

QColor octave_dock_widget::m_fg_color
privateinherited

◆ m_fg_color_active

QColor octave_dock_widget::m_fg_color_active
privateinherited

◆ m_focus_follows_mouse

bool octave_dock_widget::m_focus_follows_mouse
privateinherited

◆ m_icon_color

◆ m_icon_color_active

QString octave_dock_widget::m_icon_color_active
privateinherited

◆ m_icon_size

int label_dock_widget::m_icon_size
protectedinherited

◆ m_main_window

main_window* octave_dock_widget::m_main_window
privateinherited

◆ m_octave_qobj

base_qobject& label_dock_widget::m_octave_qobj
protectedinherited

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

Referenced by files_dock_widget::files_dock_widget(), octave_dock_widget::octave_dock_widget(), variable_dock_widget::variable_dock_widget(), file_editor::call_custom_editor(), variable_dock_widget::change_floating(), variable_dock_widget::change_fullscreen(), file_editor::closeEvent(), history_dock_widget::construct(), file_editor::construct(), variable_editor::construct_tool_bar(), files_dock_widget::contextmenu_requested(), history_dock_widget::ctxMenu(), files_dock_widget::display_directory(), variable_editor::edit_variable(), file_editor::empty_script(), file_editor::find_create(), file_editor::handle_enter_debug_mode(), file_editor::handle_exit_debug_mode(), file_editor::handle_file_name_changed(), file_editor::handle_visibility(), workspace_view::header_contextmenu_requested(), files_dock_widget::headercontextmenu_requested(), file_editor::make_file_editor_tab(), octave_dock_widget::make_widget(), octave_dock_widget::make_window(), file_editor::mru_menu_update(), variable_editor::notice_settings(), files_dock_widget::popdownmenu_search_dir(), file_editor::request_open_file(), file_editor::save_session(), files_dock_widget::save_settings(), history_dock_widget::save_settings(), octave_dock_widget::save_settings(), workspace_view::save_settings(), octave_dock_widget::set_focus_predecessor(), file_editor::set_shortcuts(), octave_dock_widget::set_style(), workspace_view::setModel(), files_dock_widget::toggle_header(), workspace_view::toggle_header(), and file_editor::toggle_preference().

◆ m_predecessor_widget

octave_dock_widget* octave_dock_widget::m_predecessor_widget
privateinherited

◆ m_recent_dock_geom

QRect octave_dock_widget::m_recent_dock_geom
privateinherited

◆ m_recent_float_geom

QRect octave_dock_widget::m_recent_float_geom
privateinherited

◆ m_title_3d

int octave_dock_widget::m_title_3d
privateinherited

◆ m_title_widget

QWidget* label_dock_widget::m_title_widget
protectedinherited

◆ m_waiting_for_mouse_button_release

bool octave_dock_widget::m_waiting_for_mouse_button_release
privateinherited

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