comparison gui/src/m-editor/file-editor.h @ 14715:b4db843b1f26 gui

Done some extra method renaming to fit the overall octave coding style.
author Jacob Dawid <jacob.dawid@googlemail.com>
date Sat, 02 Jun 2012 16:25:18 +0200
parents f50591409306
children f43916137064
comparison
equal deleted inserted replaced
14714:4ff6c21c18c4 14715:b4db843b1f26
47 47
48 public: 48 public:
49 file_editor (QTerminal *terminal, main_window *mainWindow); 49 file_editor (QTerminal *terminal, main_window *mainWindow);
50 ~file_editor (); 50 ~file_editor ();
51 void loadFile (QString fileName); 51 void loadFile (QString fileName);
52
52 lexer_octave_gui *lexer (); 53 lexer_octave_gui *lexer ();
53 QTerminal *terminal (); 54 QTerminal * terminal ();
54 main_window *mainWindow (); 55 main_window * mainWindow ();
55 56
56 public slots: 57 public slots:
57 void request_new_file (); 58 void request_new_file ();
58 void request_open_file (); 59 void request_open_file ();
59 void request_open_file (QString fileName); 60 void request_open_file (QString fileName);
60 61
61 void requestUndo (); 62 void request_undo ();
62 void requestRedo (); 63 void request_redo ();
63 void requestCopy (); 64 void request_copy ();
64 void requestCut (); 65 void request_cut ();
65 void requestPaste (); 66 void request_paste ();
66 void requestSaveFile (); 67 void request_save_file ();
67 void requestSaveFileAs (); 68 void request_save_file_as ();
68 void requestRunFile (); 69 void request_run_file ();
69 void requestToggleBookmark (); 70 void request_toggle_bookmark ();
70 void requestNextBookmark (); 71 void request_next_bookmark ();
71 void requestPreviousBookmark (); 72 void request_previous_bookmark ();
72 void requestRemoveBookmark (); 73 void request_remove_bookmark ();
73 void requestCommentSelectedText (); 74 void request_comment_selected_text ();
74 void requestUncommentSelectedText (); 75 void request_uncomment_selected_text ();
75 76
76 void handleFileNameChanged (QString fileName); 77 void handle_file_name_changed (QString fileName);
77 void handleTabCloseRequest (int index); 78 void handle_tab_close_request (int index);
78 void handleTabCloseRequest (); 79 void handle_tab_close_request ();
79 void activeTabChanged (int index); 80 void active_tab_changed (int index);
80 void handleEditorStateChanged (); 81 void handle_editor_state_changed ();
81 82
82 private: 83 private:
83 void construct (); 84 void construct ();
84 void addFileEditorTab(file_editor_tab *fileEditorTab); 85 void add_file_editor_tab(file_editor_tab *f);
85 file_editor_tab *activeEditorTab(); 86 file_editor_tab *active_editor_tab();
86 87
87 QMenuBar *m_menuBar; 88 QMenuBar * _menu_bar;
88 QToolBar *m_toolBar; 89 QToolBar * _tool_bar;
89 QAction* m_copyAction; 90 QAction* _copy_action;
90 QAction* m_cutAction; 91 QAction* _cut_action;
91 QTabWidget *m_tabWidget; 92 QTabWidget * _tab_widget;
92 int m_markerBookmark; 93 int _marker_bookmark;
93 94 lexer_octave_gui *_lexer;
94 lexer_octave_gui *m_lexer; 95 QsciAPIs * _lexer_api;
95 QsciAPIs *m_lexerAPI;
96 }; 96 };
97 97
98 #endif // FILEEDITORMDISUBWINDOW_H 98 #endif // FILEEDITORMDISUBWINDOW_H