29 #ifndef __TEXTEDIT_H__
30 #define __TEXTEDIT_H__
32 #include "ui/dialog/QuitDialog.h"
33 #include "ui/widgets/FilePage.h"
34 #include "ui/widgets/HelpPage.h"
35 #include "ui/widgets/PlainTextEditorPage.h"
55 void LoadFile(
const QString& fileName);
93 QTabWidget* tab_widget_;
157 void SlotNewTabWithContent(std::string title,
const std::string& content);
170 void slotNewHelpTab(
const QString& title,
const QString& path)
const;
202 uint text_page_data_modified_count_ = 0;
223 void slot_file_page_path_changed(
const QString& path)
const;
272 void SlotZoomIn()
const;
278 void SlotZoomOut()
const;
Definition: FilePage.h:43
Class for handling a single tab of the tabwidget.
Definition: PlainTextEditorPage.h:45
TextEdit class.
Definition: TextEdit.h:41
bool SlotSaveAs()
Definition: TextEdit.cpp:231
int TabCount() const
Definition: TextEdit.cpp:402
void slot_remove_tab(int index)
Definition: TextEdit.cpp:255
void SlotOpen()
Definition: TextEdit.cpp:150
void slot_save_status_to_cache_for_revovery()
Definition: TextEdit.cpp:631
void SlotCopy() const
Definition: TextEdit.cpp:557
void slotNewHelpTab(const QString &title, const QString &path) const
Definition: TextEdit.cpp:103
bool MaybeSaveAnyTab()
Definition: TextEdit.cpp:334
PlainTextEditorPage * SlotCurPageTextEdit() const
Definition: TextEdit.cpp:404
void SlotUndo() const
Definition: TextEdit.cpp:575
void SlotSwitchTabDown() const
Definition: TextEdit.cpp:519
void SlotNewTab()
Definition: TextEdit.cpp:62
void SlotOpenFile(const QString &path)
Definition: TextEdit.cpp:119
bool save_file(const QString &fileName)
Saves the content of currentTab to the file filename.
Definition: TextEdit.cpp:176
void SlotQuote() const
Definition: TextEdit.cpp:415
void SlotSelectAll() const
select all in current text page
Definition: TextEdit.cpp:611
FilePage * SlotCurPageFileTreeView() const
Definition: TextEdit.cpp:410
void LoadFile(const QString &fileName)
Definition: TextEdit.cpp:445
int count_page_
int containing the number of added tabs
Definition: TextEdit.h:219
PlainTextEditorPage * CurTextPage() const
Definition: TextEdit.cpp:389
QHash< int, QString > UnsavedDocuments() const
Definition: TextEdit.cpp:530
bool maybe_save_current_tab(bool askToSave)
Definition: TextEdit.cpp:288
void SlotCloseTab()
Definition: TextEdit.cpp:248
void SlotPaste() const
Definition: TextEdit.cpp:567
FilePage * CurFilePage() const
Definition: TextEdit.cpp:393
void SlotShowModified(bool) const
Definition: TextEdit.cpp:492
void SlotSave()
Definition: TextEdit.cpp:160
void SlotPrint()
Definition: TextEdit.cpp:470
void SlotCut() const
Definition: TextEdit.cpp:549
void SlotNewFileTab() const
Definition: TextEdit.cpp:109
void SlotRedo() const
redo last change in current text page
Definition: TextEdit.cpp:583
void SlotSwitchTabUp() const
Definition: TextEdit.cpp:512
void SlotFillTextEditWithText(const QString &text) const
Definition: TextEdit.cpp:437
static QString stripped_name(const QString &full_file_name)
Definition: TextEdit.cpp:466
Definition: FileReadTask.cpp:29