TextEdit class.
More...
#include <TextEdit.h>
|
bool | save_file (const QString &fileName) |
| Saves the content of currentTab to the file filename. More...
|
|
|
uint | text_page_data_modified_count_ = 0 |
|
int | count_page_ |
| int containing the number of added tabs
|
|
◆ CurFilePage()
FilePage * GpgFrontend::UI::TextEdit::CurFilePage |
( |
| ) |
const |
◆ CurTextPage()
textpage of the currently activated tab
- Returns
- reference to QTextEdit if tab has one
- 0 otherwise (e.g. if helppage)
Referenced by GpgFrontend::UI::MainWindow::slot_add_pgp_header(), GpgFrontend::UI::MainWindow::slot_append_selected_keys(), GpgFrontend::UI::MainWindow::slot_clean_double_line_breaks(), GpgFrontend::UI::MainWindow::slot_cut_pgp_header(), GpgFrontend::UI::MainWindow::slot_decrypt(), GpgFrontend::UI::MainWindow::slot_decrypt_verify(), GpgFrontend::UI::MainWindow::slot_encrypt(), GpgFrontend::UI::MainWindow::slot_encrypt_sign(), GpgFrontend::UI::MainWindow::slot_find(), GpgFrontend::UI::MainWindow::slot_import_key_from_edit(), GpgFrontend::UI::MainWindow::slot_sign(), and GpgFrontend::UI::MainWindow::slot_verify().
◆ LoadFile()
void GpgFrontend::UI::TextEdit::LoadFile |
( |
const QString & |
fileName | ) |
|
Load the content of file into the current textpage
- Parameters
-
fileName | QString containing the filename to load |
- Returns
- nothing
◆ maybe_save_current_tab()
bool GpgFrontend::UI::TextEdit::maybe_save_current_tab |
( |
bool |
askToSave | ) |
|
|
private |
◆ MaybeSaveAnyTab()
bool GpgFrontend::UI::TextEdit::MaybeSaveAnyTab |
( |
| ) |
|
◆ save_file()
bool GpgFrontend::UI::TextEdit::save_file |
( |
const QString & |
fileName | ) |
|
|
protected |
◆ slot_remove_tab
void GpgFrontend::UI::TextEdit::slot_remove_tab |
( |
int |
index | ) |
|
|
privateslot |
Remove the tab with given index
- Parameters
-
index | Tab-number to remove |
◆ slot_save_status_to_cache_for_revovery
void GpgFrontend::UI::TextEdit::slot_save_status_to_cache_for_revovery |
( |
| ) |
|
|
privateslot |
◆ SlotCloseTab
void GpgFrontend::UI::TextEdit::SlotCloseTab |
( |
| ) |
|
|
slot |
◆ SlotCopy
void GpgFrontend::UI::TextEdit::SlotCopy |
( |
| ) |
const |
|
slot |
◆ SlotCurPageFileTreeView
FilePage * GpgFrontend::UI::TextEdit::SlotCurPageFileTreeView |
( |
| ) |
const |
|
slot |
Return pointer to the currently activated file tree view tab page.
Referenced by GpgFrontend::UI::MainWindow::slot_decrypt(), GpgFrontend::UI::MainWindow::slot_decrypt_verify(), GpgFrontend::UI::MainWindow::slot_encrypt(), GpgFrontend::UI::MainWindow::slot_encrypt_sign(), GpgFrontend::UI::MainWindow::slot_sign(), GpgFrontend::UI::MainWindow::slot_verify(), GpgFrontend::UI::MainWindow::SlotFileDecrypt(), GpgFrontend::UI::MainWindow::SlotFileDecryptVerify(), GpgFrontend::UI::MainWindow::SlotFileEncrypt(), GpgFrontend::UI::MainWindow::SlotFileEncryptSign(), GpgFrontend::UI::MainWindow::SlotFileSign(), and GpgFrontend::UI::MainWindow::SlotFileVerify().
◆ SlotCurPageTextEdit
Widget containing the tabs of the editor
Return pointer to the currently activated text edit tab page.
Referenced by GpgFrontend::UI::MainWindow::slot_add_pgp_header(), GpgFrontend::UI::MainWindow::slot_append_selected_keys(), GpgFrontend::UI::MainWindow::slot_clean_double_line_breaks(), GpgFrontend::UI::MainWindow::slot_cut_pgp_header(), GpgFrontend::UI::MainWindow::slot_decrypt(), GpgFrontend::UI::MainWindow::slot_decrypt_verify(), GpgFrontend::UI::MainWindow::slot_encrypt(), GpgFrontend::UI::MainWindow::slot_encrypt_sign(), GpgFrontend::UI::MainWindow::slot_find(), GpgFrontend::UI::MainWindow::slot_import_key_from_edit(), GpgFrontend::UI::MainWindow::slot_sign(), and GpgFrontend::UI::MainWindow::slot_verify().
◆ SlotCut
void GpgFrontend::UI::TextEdit::SlotCut |
( |
| ) |
const |
|
slot |
◆ SlotFillTextEditWithText
void GpgFrontend::UI::TextEdit::SlotFillTextEditWithText |
( |
const QString & |
text | ) |
const |
|
slot |
◆ SlotNewFileTab
void GpgFrontend::UI::TextEdit::SlotNewFileTab |
( |
| ) |
const |
|
slot |
◆ slotNewHelpTab
void GpgFrontend::UI::TextEdit::slotNewHelpTab |
( |
const QString & |
title, |
|
|
const QString & |
path |
|
) |
| const |
|
slot |
Adds a new tab with the given title and opens given html file. Increase Tab-Count by one
- Parameters
-
title | title for the tab |
path | path for html file to show |
◆ SlotNewTab
void GpgFrontend::UI::TextEdit::SlotNewTab |
( |
| ) |
|
|
slot |
◆ SlotOpen
void GpgFrontend::UI::TextEdit::SlotOpen |
( |
| ) |
|
|
slot |
◆ SlotOpenFile
void GpgFrontend::UI::TextEdit::SlotOpenFile |
( |
const QString & |
path | ) |
|
|
slot |
◆ SlotPaste
void GpgFrontend::UI::TextEdit::SlotPaste |
( |
| ) |
const |
|
slot |
◆ SlotPrint
void GpgFrontend::UI::TextEdit::SlotPrint |
( |
| ) |
|
|
slot |
◆ SlotQuote
void GpgFrontend::UI::TextEdit::SlotQuote |
( |
| ) |
const |
|
slot |
◆ SlotSave
void GpgFrontend::UI::TextEdit::SlotSave |
( |
| ) |
|
|
slot |
◆ SlotSaveAs
bool GpgFrontend::UI::TextEdit::SlotSaveAs |
( |
| ) |
|
|
slot |
◆ SlotShowModified
void GpgFrontend::UI::TextEdit::SlotShowModified |
( |
bool |
changed | ) |
const |
|
slot |
put a * in front of current tabs title, if current textedit is modified
◆ SlotSwitchTabDown
void GpgFrontend::UI::TextEdit::SlotSwitchTabDown |
( |
| ) |
const |
|
slot |
◆ SlotSwitchTabUp
void GpgFrontend::UI::TextEdit::SlotSwitchTabUp |
( |
| ) |
const |
|
slot |
◆ SlotUndo
void GpgFrontend::UI::TextEdit::SlotUndo |
( |
| ) |
const |
|
slot |
◆ stripped_name()
QString GpgFrontend::UI::TextEdit::stripped_name |
( |
const QString & |
full_file_name | ) |
|
|
staticprivate |
return just a filename stripped of a whole path
- Parameters
-
- Returns
- QString containing the filename
◆ TabCount()
int GpgFrontend::UI::TextEdit::TabCount |
( |
| ) |
const |
- Returns
- int
Referenced by GpgFrontend::UI::MainWindow::slot_add_pgp_header(), GpgFrontend::UI::MainWindow::slot_append_selected_keys(), GpgFrontend::UI::MainWindow::slot_clean_double_line_breaks(), GpgFrontend::UI::MainWindow::slot_cut_pgp_header(), GpgFrontend::UI::MainWindow::slot_decrypt(), GpgFrontend::UI::MainWindow::slot_decrypt_verify(), GpgFrontend::UI::MainWindow::slot_encrypt(), GpgFrontend::UI::MainWindow::slot_encrypt_sign(), GpgFrontend::UI::MainWindow::slot_find(), GpgFrontend::UI::MainWindow::slot_import_key_from_edit(), GpgFrontend::UI::MainWindow::slot_sign(), and GpgFrontend::UI::MainWindow::slot_verify().
◆ UnsavedDocuments()
QHash< int, QString > GpgFrontend::UI::TextEdit::UnsavedDocuments |
( |
| ) |
const |
List of currently unsaved tabs.
- Returns
- QHash<int, QString> Hash of tab indexes and title of unsaved tabs.
The documentation for this class was generated from the following files:
- src/ui/widgets/TextEdit.h
- src/ui/widgets/TextEdit.cpp