ContentEditor Class Reference

#include <ContentEditor.h>

Inheritance diagram for ContentEditor:

Inheritance graph
[legend]
Collaboration diagram for ContentEditor:

Collaboration graph
[legend]

List of all members.

Public Slots

void slotBrowse ()
void slotExport ()
void slotRevert ()
void slotViewContentAs (int cType)
void slotTextChanged ()

Public Member Functions

 ContentEditor (QWidget *parent=0, bool binaryContent=false, bool readOnly=true, Qt::WindowFlags f=0)
 ~ContentEditor ()
QVariant contents () const
bool isBinary () const
bool isReadOnly () const
bool isModified () const
QTextEdit * getEditor ()
void prepareEditor (bool enableBinary=false, bool enableReadOnly=true)
void setContent (QVariant content=QVariant(), ContentType cType=StringCT, bool defaultValue=false)

Private Member Functions

void setConnections ()

Private Attributes

bool contentBinary
bool contentReadOnly
ContentType defaultContentType
ContentType currentContentType
QVariant defaultContent
QVariant currentContent
bool modified
QString browsedFileName


Detailed Description

Definition at line 11 of file ContentEditor.h.


Constructor & Destructor Documentation

ContentEditor::ContentEditor ( QWidget *  parent = 0,
bool  binaryContent = false,
bool  readOnly = true,
Qt::WindowFlags  f = 0 
)

Definition at line 13 of file ContentEditor.cpp.

References contentBinary, contentReadOnly, prepareEditor(), setConnections(), and Ui_ContentEditor_BASE::setupUi().

Here is the call graph for this function:

ContentEditor::~ContentEditor (  ) 

Definition at line 28 of file ContentEditor.cpp.


Member Function Documentation

QVariant ContentEditor::contents (  )  const

bool ContentEditor::isBinary (  )  const

Definition at line 67 of file ContentEditor.cpp.

References contentBinary.

bool ContentEditor::isReadOnly (  )  const

Definition at line 72 of file ContentEditor.cpp.

References contentReadOnly.

bool ContentEditor::isModified (  )  const

Definition at line 77 of file ContentEditor.cpp.

References modified.

Referenced by FolderTableDelegate::setModelData().

QTextEdit * ContentEditor::getEditor (  ) 

Definition at line 82 of file ContentEditor.cpp.

References Ui_ContentEditor_BASE::textEdit.

void ContentEditor::prepareEditor ( bool  enableBinary = false,
bool  enableReadOnly = true 
)

void ContentEditor::setContent ( QVariant  content = QVariant(),
ContentType  cType = StringCT,
bool  defaultValue = false 
)

void ContentEditor::setConnections (  )  [private]

void ContentEditor::slotBrowse (  )  [slot]

Definition at line 192 of file ContentEditor.cpp.

References browsedFileName, contentBinary, defaultContent, HexCT, setContent(), and StringCT.

Referenced by setConnections().

void ContentEditor::slotExport (  )  [slot]

Definition at line 221 of file ContentEditor.cpp.

References contentBinary, and contents().

Referenced by setConnections().

void ContentEditor::slotRevert (  )  [slot]

Definition at line 260 of file ContentEditor.cpp.

References setContent().

Referenced by setConnections().

void ContentEditor::slotViewContentAs ( int  cType  )  [slot]

void ContentEditor::slotTextChanged (  )  [slot]


Member Data Documentation

Definition at line 29 of file ContentEditor.h.

Referenced by ContentEditor(), contents(), isBinary(), prepareEditor(), slotBrowse(), and slotExport().

Definition at line 30 of file ContentEditor.h.

Referenced by ContentEditor(), contents(), isReadOnly(), prepareEditor(), and slotTextChanged().

Definition at line 31 of file ContentEditor.h.

Referenced by prepareEditor(), and setContent().

Definition at line 32 of file ContentEditor.h.

Referenced by contents(), and setContent().

QVariant ContentEditor::defaultContent [private]

Definition at line 33 of file ContentEditor.h.

Referenced by setContent(), and slotBrowse().

QVariant ContentEditor::currentContent [private]

Definition at line 34 of file ContentEditor.h.

Referenced by contents(), and setContent().

bool ContentEditor::modified [private]

Definition at line 35 of file ContentEditor.h.

Referenced by contents(), isModified(), setContent(), and slotTextChanged().

QString ContentEditor::browsedFileName [private]

Definition at line 36 of file ContentEditor.h.

Referenced by slotBrowse().


Generated on Wed Oct 8 14:59:39 2008 for ACE - A COOL Editor by  doxygen 1.5.6