Qucs-GUI
0.0.18
|
The TextDoc class definition. More...
#include <textdoc.h>
Public Slots | |
void | slotCursorPosChanged () |
TextDoc::slotCursorPosChanged update status bar with line:column. More... | |
void | slotSetChanged () |
TextDoc::slotSetChanged togles tab icon to indicate unsaved changes. More... | |
Public Member Functions | |
TextDoc (QucsApp *, const QString &) | |
TextDoc::TextDoc Text document constructor. More... | |
~TextDoc () | |
TextDoc::~TextDoc Text document destructor. More... | |
void | setName (const QString &) |
TextDoc::setName sets the text file name on its tab. More... | |
bool | load () |
TextDoc::load loads a text document. More... | |
int | save () |
TextDoc::save saves the current document and it settings. More... | |
float | zoomBy (float) |
TextDoc::zoomBy increases/decreases the text font size. More... | |
void | showNoZoom () |
TextDoc::showNoZoom resets the font scaling. More... | |
void | becomeCurrent (bool) |
TextDoc::becomeCurrent sets text document as current. More... | |
bool | loadSimulationTime (QString &) |
TextDoc::loadSimulationTime set SimTime member variable. More... | |
void | commentSelected () |
TextDoc::commentSelected toggles the comment of selected text See also QucsApp::slotEditActivate. More... | |
void | insertSkeleton () |
TextDoc::insertSkeleton adds a basic skeleton for type of text file. More... | |
void | setLanguage (int) |
TextDoc::setLanguage(int) More... | |
void | setLanguage (const QString &) |
TextDoc::setLanguage(const QString&) More... | |
QString | getModuleName (void) |
TextDoc::getModuleName parse the module name ou of the text file contents. More... | |
bool | loadSettings (void) |
TextDoc::loadSettings loads the text document settings. More... | |
bool | saveSettings (void) |
TextDoc::saveSettings saves the text document settings .cfg. More... | |
void | refreshLanguage (void) |
QMenu * | createStandardContextMenu (const QPoint &) |
TextDoc::createStandardContextMenu creates the standard context menu. More... | |
Public Member Functions inherited from QucsDoc | |
QucsDoc (QucsApp *, const QString &) | |
virtual | ~QucsDoc () |
virtual void | print (QPrinter *, QPainter *, bool, bool) |
virtual void | showAll () |
QString | fileSuffix (void) |
QString | fileBase (void) |
Data Fields | |
QFont | TextFont |
bool | simulation |
QString | Library |
QString | Libraries |
QString | ShortDesc |
QString | LongDesc |
QString | Icon |
bool | recreate |
int | devtype |
bool | SetChanged |
int | language |
Data Fields inherited from QucsDoc | |
QString | DocName |
QString | DataSet |
QString | DataDisplay |
QString | Script |
QString | SimTime |
QDateTime | lastSaved |
float | Scale |
QucsApp * | App |
bool | DocChanged |
bool | SimOpenDpl |
bool | SimRunScript |
int | showBias |
bool | GridOn |
int | tmpPosX |
int | tmpPosY |
Private Slots | |
void | highlightCurrentLine () |
TextDoc::highlightCurrentLine mark the current line. More... | |
Private Attributes | |
SyntaxHighlighter * | syntaxHighlight |
Additional Inherited Members | |
Static Public Member Functions inherited from QucsDoc | |
static QString | fileSuffix (const QString &) |
static QString | fileBase (const QString &) |
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 | ( | ) |
TextDoc::~TextDoc Text document destructor.
Definition at line 91 of file textdoc.cpp.
|
virtual |
TextDoc::becomeCurrent sets text document as current.
Make sure the menu options are adjusted.
Reimplemented from QucsDoc.
Definition at line 226 of file textdoc.cpp.
void TextDoc::commentSelected | ( | ) |
TextDoc::commentSelected toggles the comment of selected text See also QucsApp::slotEditActivate.
Definition at line 424 of file textdoc.cpp.
QMenu * TextDoc::createStandardContextMenu | ( | const QPoint & | pos | ) |
TextDoc::createStandardContextMenu creates the standard context menu.
pos |
Definition at line 308 of file textdoc.cpp.
QString TextDoc::getModuleName | ( | void | ) |
TextDoc::getModuleName parse the module name ou of the text file contents.
Definition at line 496 of file textdoc.cpp.
|
privateslot |
TextDoc::highlightCurrentLine mark the current line.
Definition at line 527 of file textdoc.cpp.
void TextDoc::insertSkeleton | ( | ) |
TextDoc::insertSkeleton adds a basic skeleton for type of text file.
Definition at line 479 of file textdoc.cpp.
|
virtual |
TextDoc::load loads a text document.
Reimplemented from QucsDoc.
Definition at line 322 of file textdoc.cpp.
bool TextDoc::loadSettings | ( | void | ) |
TextDoc::loadSettings loads the text document settings.
Definition at line 162 of file textdoc.cpp.
bool TextDoc::loadSimulationTime | ( | QString & | Time | ) |
TextDoc::loadSimulationTime set SimTime member variable.
Time | string with simulation time |
Definition at line 411 of file textdoc.cpp.
void TextDoc::refreshLanguage | ( | void | ) |
Definition at line 546 of file textdoc.cpp.
|
virtual |
TextDoc::save saves the current document and it settings.
clear highlighted lines on save
Reimplemented from QucsDoc.
Definition at line 346 of file textdoc.cpp.
bool TextDoc::saveSettings | ( | void | ) |
TextDoc::saveSettings saves the text document settings .cfg.
Definition at line 134 of file textdoc.cpp.
void TextDoc::setLanguage | ( | int | lang | ) |
lang | is a language_type Assing value to text document object language variable |
Definition at line 125 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 104 of file textdoc.cpp.
|
virtual |
TextDoc::setName sets the text file name on its tab.
Name_ | text file name to be set |
Reimplemented from QucsDoc.
Definition at line 206 of file textdoc.cpp.
|
virtual |
TextDoc::showNoZoom resets the font scaling.
Reimplemented from QucsDoc.
Definition at line 397 of file textdoc.cpp.
|
slot |
TextDoc::slotCursorPosChanged update status bar with line:column.
Definition at line 273 of file textdoc.cpp.
|
slot |
TextDoc::slotSetChanged togles tab icon to indicate unsaved changes.
Definition at line 286 of file textdoc.cpp.
|
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 379 of file textdoc.cpp.
|
private |