casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
casa::TextEditor Class Reference

#include <texteditor.qo.h>

Inheritance diagram for casa::TextEditor:

Public Member Functions

 TextEditor ()
 
void open (const QString &)
 

Protected Member Functions

void closeEvent (QCloseEvent *event)
 

Private Slots

void newFile ()
 
void open ()
 
bool save ()
 
bool saveAs ()
 
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
 
QMenu * fileMenu
 
QMenu * editMenu
 
QToolBar * fileToolBar
 
QToolBar * editToolBar
 
QAction * newAct
 
QAction * openAct
 
QAction * saveAct
 
QAction * saveAsAct
 
QAction * exitAct
 
QAction * cutAct
 
QAction * copyAct
 
QAction * pasteAct
 

Detailed Description

Definition at line 42 of file texteditor.qo.h.

Constructor & Destructor Documentation

casa::TextEditor::TextEditor ( )

Member Function Documentation

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

Member Data Documentation

QAction* casa::TextEditor::copyAct
private

Definition at line 85 of file texteditor.qo.h.

QString casa::TextEditor::curFile
private

Definition at line 73 of file texteditor.qo.h.

QAction* casa::TextEditor::cutAct
private

Definition at line 84 of file texteditor.qo.h.

QMenu* casa::TextEditor::editMenu
private

Definition at line 76 of file texteditor.qo.h.

QToolBar* casa::TextEditor::editToolBar
private

Definition at line 78 of file texteditor.qo.h.

QAction* casa::TextEditor::exitAct
private

Definition at line 83 of file texteditor.qo.h.

QMenu* casa::TextEditor::fileMenu
private

Definition at line 75 of file texteditor.qo.h.

QToolBar* casa::TextEditor::fileToolBar
private

Definition at line 77 of file texteditor.qo.h.

QAction* casa::TextEditor::newAct
private

Definition at line 79 of file texteditor.qo.h.

QAction* casa::TextEditor::openAct
private

Definition at line 80 of file texteditor.qo.h.

QAction* casa::TextEditor::pasteAct
private

Definition at line 86 of file texteditor.qo.h.

QAction* casa::TextEditor::saveAct
private

Definition at line 81 of file texteditor.qo.h.

QAction* casa::TextEditor::saveAsAct
private

Definition at line 82 of file texteditor.qo.h.

QTextEdit* casa::TextEditor::textEdit
private

Definition at line 72 of file texteditor.qo.h.


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