Code Documentation 3.1
Social Network Visualizer
Loading...
Searching...
No Matches
TextEditor Class Reference

#include <texteditor.h>

Inheritance diagram for TextEditor:
Collaboration diagram for TextEditor:

Public Member Functions

 TextEditor (const QString &fileName, QWidget *parent=Q_NULLPTR, const bool &format=false)
 

Protected Member Functions

void closeEvent (QCloseEvent *event)
 

Private Slots

void newFile ()
 
void open ()
 
bool save ()
 
bool saveAs ()
 
void about ()
 
void documentWasModified ()
 

Private Member Functions

void createActions ()
 
void createMenus ()
 
void createToolBars ()
 
void createStatusBar ()
 
void readSettings ()
 
void writeSettings ()
 
bool maybeSave ()
 
void loadFile (const QString &fileName)
 
bool saveFile (const QString &fileName)
 
void setCurrentFile (const QString &fileName)
 
QString strippedName (const QString &fullFileName)
 

Private Attributes

QTextEdit * textEdit
 
QString curFile
 
bool formatHTML
 
QMenu * fileMenu
 
QMenu * editMenu
 
QMenu * helpMenu
 
QToolBar * fileToolBar
 
QToolBar * editToolBar
 
QAction * newAct
 
QAction * openAct
 
QAction * saveAct
 
QAction * saveAsAct
 
QAction * exitAct
 
QAction * cutAct
 
QAction * copyAct
 
QAction * pasteAct
 
QAction * aboutAct
 
QAction * aboutQtAct
 

Constructor & Destructor Documentation

◆ TextEditor()

TextEditor::TextEditor ( const QString &  fileName,
QWidget *  parent = Q_NULLPTR,
const bool &  format = false 
)

Member Function Documentation

◆ about

void TextEditor::about ( )
privateslot

◆ closeEvent()

void TextEditor::closeEvent ( QCloseEvent *  event)
protected

◆ createActions()

void TextEditor::createActions ( )
private

◆ createMenus()

void TextEditor::createMenus ( )
private

◆ createStatusBar()

void TextEditor::createStatusBar ( )
private

◆ createToolBars()

void TextEditor::createToolBars ( )
private

◆ documentWasModified

void TextEditor::documentWasModified ( )
privateslot

◆ loadFile()

void TextEditor::loadFile ( const QString &  fileName)
private

◆ maybeSave()

bool TextEditor::maybeSave ( )
private

◆ newFile

void TextEditor::newFile ( )
privateslot

◆ open

void TextEditor::open ( )
privateslot

◆ readSettings()

void TextEditor::readSettings ( )
private

◆ save

bool TextEditor::save ( )
privateslot

◆ saveAs

bool TextEditor::saveAs ( )
privateslot

◆ saveFile()

bool TextEditor::saveFile ( const QString &  fileName)
private

◆ setCurrentFile()

void TextEditor::setCurrentFile ( const QString &  fileName)
private

◆ strippedName()

QString TextEditor::strippedName ( const QString &  fullFileName)
private

◆ writeSettings()

void TextEditor::writeSettings ( )
private

Field Documentation

◆ aboutAct

QAction* TextEditor::aboutAct
private

◆ aboutQtAct

QAction* TextEditor::aboutQtAct
private

◆ copyAct

QAction* TextEditor::copyAct
private

◆ curFile

QString TextEditor::curFile
private

◆ cutAct

QAction* TextEditor::cutAct
private

◆ editMenu

QMenu* TextEditor::editMenu
private

◆ editToolBar

QToolBar* TextEditor::editToolBar
private

◆ exitAct

QAction* TextEditor::exitAct
private

◆ fileMenu

QMenu* TextEditor::fileMenu
private

◆ fileToolBar

QToolBar* TextEditor::fileToolBar
private

◆ formatHTML

bool TextEditor::formatHTML
private

◆ helpMenu

QMenu* TextEditor::helpMenu
private

◆ newAct

QAction* TextEditor::newAct
private

◆ openAct

QAction* TextEditor::openAct
private

◆ pasteAct

QAction* TextEditor::pasteAct
private

◆ saveAct

QAction* TextEditor::saveAct
private

◆ saveAsAct

QAction* TextEditor::saveAsAct
private

◆ textEdit

QTextEdit* TextEditor::textEdit
private

The documentation for this class was generated from the following files: