Qucs-GUI
0.0.19
|
The TextDoc class definition. More...
#include <textdoc.h>
Public Slots | |
void | search (const QString &str, bool CaseSensitive, bool wordOnly, bool backward) |
void | replace (const QString &str, const QString &str2, bool needConfirmed, bool CaseSensitive, bool wordOnly, bool backward) |
void | slotCursorPosChanged () |
TextDoc::slotCursorPosChanged update status bar with line:column. | |
void | slotSetChanged () |
TextDoc::slotSetChanged togles tab icon to indicate unsaved changes. | |
Signals | |
void | signalCursorPosChanged (int, int) |
void | signalFileChanged (bool) |
void | signalUndoState (bool) |
void | signalRedoState (bool) |
Public Member Functions | |
TextDoc (QucsApp *, const QString &) | |
TextDoc::TextDoc Text document constructor. | |
~TextDoc () | |
TextDoc::~TextDoc Text document destructor. | |
void | setName (const QString &) |
TextDoc::setName sets the text file name on its tab. | |
bool | load () |
TextDoc::load loads a text document. | |
int | save () |
TextDoc::save saves the current document and it settings. | |
float | zoomBy (float) |
TextDoc::zoomBy increases/decreases the text font size. | |
void | showNoZoom () |
TextDoc::showNoZoom resets the font scaling. | |
void | becomeCurrent (bool) |
TextDoc::becomeCurrent sets text document as current. | |
bool | loadSimulationTime (QString &) |
TextDoc::loadSimulationTime set SimTime member variable. | |
void | commentSelected () |
TextDoc::commentSelected toggles the comment of selected text See also QucsApp::slotEditActivate. | |
void | insertSkeleton () |
TextDoc::insertSkeleton adds a basic skeleton for type of text file. | |
void | setLanguage (int) |
TextDoc::setLanguage(int) | |
void | setLanguage (const QString &) |
TextDoc::setLanguage(const QString&) | |
QString | getModuleName (void) |
TextDoc::getModuleName parse the module name ou of the text file contents. | |
bool | loadSettings (void) |
TextDoc::loadSettings loads the text document settings. | |
bool | saveSettings (void) |
TextDoc::saveSettings saves the text document settings .cfg. | |
void | refreshLanguage (void) |
QMenu * | createStandardContextMenu () |
TextDoc::createStandardContextMenu creates the standard context menu. | |
Data Fields | |
QFont | TextFont |
bool | simulation |
QString | Library |
QString | Libraries |
QString | ShortDesc |
QString | LongDesc |
QString | Icon |
bool | recreate |
int | devtype |
bool | SetChanged |
int | language |
Private Slots | |
void | highlightCurrentLine () |
TextDoc::highlightCurrentLine mark the current line. | |
bool | baseSearch (const QString &, bool, bool, bool) |
Private Attributes | |
SyntaxHighlighter * | syntaxHighlight |
TextDoc::TextDoc | ( | QucsApp * | App_, |
const QString & | Name_ | ||
) |
TextDoc::TextDoc Text document constructor.
App_ | is the parent object |
Name_ | is the initial text document name |
Definition at line 42 of file textdoc.cpp.
TextDoc::~TextDoc Text document destructor.
Definition at line 89 of file textdoc.cpp.
bool TextDoc::baseSearch | ( | const QString & | str, |
bool | CaseSensitive, | ||
bool | wordOnly, | ||
bool | backward | ||
) | [private, slot] |
void TextDoc::becomeCurrent | ( | bool | ) | [virtual] |
TextDoc::becomeCurrent sets text document as current.
Make sure the menu options are adjusted.
Reimplemented from QucsDoc.
Definition at line 219 of file textdoc.cpp.
void TextDoc::commentSelected | ( | ) |
TextDoc::commentSelected toggles the comment of selected text See also QucsApp::slotEditActivate.
Definition at line 470 of file textdoc.cpp.
QMenu * TextDoc::createStandardContextMenu | ( | ) |
TextDoc::createStandardContextMenu creates the standard context menu.
pos |
Definition at line 354 of file textdoc.cpp.
QString TextDoc::getModuleName | ( | void | ) |
TextDoc::getModuleName parse the module name ou of the text file contents.
Definition at line 542 of file textdoc.cpp.
void TextDoc::highlightCurrentLine | ( | ) | [private, slot] |
TextDoc::highlightCurrentLine mark the current line.
Definition at line 573 of file textdoc.cpp.
void TextDoc::insertSkeleton | ( | ) |
TextDoc::insertSkeleton adds a basic skeleton for type of text file.
Definition at line 525 of file textdoc.cpp.
bool TextDoc::load | ( | ) | [virtual] |
TextDoc::load loads a text document.
Reimplemented from QucsDoc.
Definition at line 368 of file textdoc.cpp.
bool TextDoc::loadSettings | ( | void | ) |
TextDoc::loadSettings loads the text document settings.
Definition at line 157 of file textdoc.cpp.
bool TextDoc::loadSimulationTime | ( | QString & | Time | ) |
TextDoc::loadSimulationTime set SimTime member variable.
Time | string with simulation time |
Definition at line 457 of file textdoc.cpp.
void TextDoc::refreshLanguage | ( | void | ) |
Definition at line 592 of file textdoc.cpp.
void TextDoc::replace | ( | const QString & | str, |
const QString & | str2, | ||
bool | needConfirmed, | ||
bool | CaseSensitive, | ||
bool | wordOnly, | ||
bool | backward | ||
) | [slot] |
int TextDoc::save | ( | ) | [virtual] |
TextDoc::save saves the current document and it settings.
clear highlighted lines on save
Reimplemented from QucsDoc.
Definition at line 392 of file textdoc.cpp.
bool TextDoc::saveSettings | ( | void | ) |
TextDoc::saveSettings saves the text document settings .cfg.
Definition at line 129 of file textdoc.cpp.
void TextDoc::search | ( | const QString & | str, |
bool | CaseSensitive, | ||
bool | wordOnly, | ||
bool | backward | ||
) | [slot] |
void TextDoc::setLanguage | ( | int | lang | ) |
lang | is a language_type Assing value to text document object language variable |
Definition at line 120 of file textdoc.cpp.
void TextDoc::setLanguage | ( | const QString & | FileName | ) |
TextDoc::setLanguage(const QString&)
FileName | Text document file name Extract the file name suffix and assing a language_type to it. |
Definition at line 99 of file textdoc.cpp.
void TextDoc::setName | ( | const QString & | Name_ | ) | [virtual] |
TextDoc::setName sets the text file name on its tab.
Name_ | text file name to be set |
Reimplemented from QucsDoc.
Definition at line 201 of file textdoc.cpp.
void TextDoc::showNoZoom | ( | ) | [virtual] |
TextDoc::showNoZoom resets the font scaling.
Reimplemented from QucsDoc.
Definition at line 443 of file textdoc.cpp.
void TextDoc::signalCursorPosChanged | ( | int | , |
int | |||
) | [signal] |
void TextDoc::signalFileChanged | ( | bool | ) | [signal] |
void TextDoc::signalRedoState | ( | bool | ) | [signal] |
void TextDoc::signalUndoState | ( | bool | ) | [signal] |
void TextDoc::slotCursorPosChanged | ( | ) | [slot] |
TextDoc::slotCursorPosChanged update status bar with line:column.
Definition at line 321 of file textdoc.cpp.
void TextDoc::slotSetChanged | ( | ) | [slot] |
TextDoc::slotSetChanged togles tab icon to indicate unsaved changes.
Definition at line 334 of file textdoc.cpp.
float TextDoc::zoomBy | ( | float | s | ) | [virtual] |
TextDoc::zoomBy increases/decreases the text font size.
s | font size scaling factor |
is the return value being saved on the saveSettings() ?
Reimplemented from QucsDoc.
Definition at line 425 of file textdoc.cpp.
int TextDoc::devtype |
QString TextDoc::Icon |
QString TextDoc::Libraries |
QString TextDoc::Library |
QString TextDoc::LongDesc |
bool TextDoc::recreate |
bool TextDoc::SetChanged |
QString TextDoc::ShortDesc |
bool TextDoc::simulation |
SyntaxHighlighter* TextDoc::syntaxHighlight [private] |
QFont TextDoc::TextFont |