#include <texteditor.h>

Inheritance diagram for TextEditor:
Collaboration diagram for TextEditor:

Public Member Functions

 TextEditor (const QString &fileName, QWidget *parent=0, 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 ( const QString &  fileName,
QWidget *  parent = 0,
const bool &  format = false 
)

Member Function Documentation

void TextEditor::about ( )
privateslot
void TextEditor::closeEvent ( QCloseEvent *  event)
protected
void TextEditor::createActions ( )
private
void TextEditor::createMenus ( )
private
void TextEditor::createStatusBar ( )
private
void TextEditor::createToolBars ( )
private
void TextEditor::documentWasModified ( )
privateslot
void TextEditor::loadFile ( const QString &  fileName)
private
bool TextEditor::maybeSave ( )
private
void TextEditor::newFile ( )
privateslot
void TextEditor::open ( )
privateslot
void TextEditor::readSettings ( )
private
bool TextEditor::save ( )
privateslot
bool TextEditor::saveAs ( )
privateslot
bool TextEditor::saveFile ( const QString &  fileName)
private
void TextEditor::setCurrentFile ( const QString &  fileName)
private
QString TextEditor::strippedName ( const QString &  fullFileName)
private
void TextEditor::writeSettings ( )
private

Member Data Documentation

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

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