Inheritance diagram for IAEX::CellDocument:
Public Slots | |
void | toggleMainTreeView () |
Toggles the main workspace treeview. | |
void | setEditable (bool editable) |
void | updateScrollArea () |
Update the scrollarea so the correct area is displayed. | |
void | setChanged (bool changed) |
set the change variable | |
void | hoverOverUrl (const QUrl &link) |
void | mouseClickedOnCell (Cell *clickedCell) |
void | mouseClickedOnCellOutput (Cell *clickedCell) |
set focus on output part in inputcell | |
void | linkClicked (const QUrl *url) |
open a new document | |
virtual void | cursorMoveAfter (Cell *aCell, const bool open) |
Public Member Functions | |
CellDocument (Application *a, const QString filenamem, int readmode=READMODE_NORMAL) | |
Constructor, initialize a CellGroup as maincontent. | |
virtual | ~CellDocument () |
The class destructor. | |
virtual void | open (const QString &filename, int readmode=READMODE_NORMAL) |
Open an file and parse the content. | |
virtual void | close () |
virtual void | cursorStepUp () |
virtual void | cursorStepDown () |
virtual void | cursorAddCell () |
virtual void | cursorUngroupCell () |
Ungroup all selected groupcells. | |
virtual void | cursorSplitCell () |
Split current cell. | |
virtual void | cursorDeleteCell () |
virtual void | cursorCutCell () |
virtual void | cursorCopyCell () |
virtual void | cursorPasteCell () |
virtual void | cursorChangeStyle (CellStyle style) |
Change the style of the selected cell/cells. | |
virtual void | textcursorCutText () |
Cut text. | |
virtual void | textcursorCopyText () |
Copy text. | |
virtual void | textcursorPasteText () |
Paste text. | |
virtual void | textcursorChangeFontFamily (QString family) |
Change the font family on the selected text, if no text selected the current font family will be changed. | |
virtual void | textcursorChangeFontFace (int face) |
Change the font weight on the selected text, if no text selected the current font weight will be changed. | |
virtual void | textcursorChangeFontSize (int size) |
Change the font size on the selected text, if no text selected the current font size will be changed. | |
virtual void | textcursorChangeFontStretch (int stretch) |
Change the font stretch on the selected text, if no text selected the current font stretch will be changed. | |
virtual void | textcursorChangeFontColor (QColor color) |
Change the font color on the selected text, if no text selected the current font color will be changed. | |
virtual void | textcursorChangeTextAlignment (int alignment) |
Change the text alignment on the text inside the cell. | |
virtual void | textcursorChangeVerticalAlignment (int alignment) |
Change the vertical alignment on the selected text, if no text selected the current vertical alignment will be changed. | |
virtual void | textcursorChangeMargin (int margin) |
Change the margin of the cell. | |
virtual void | textcursorChangePadding (int padding) |
Change the padding of the cell. | |
virtual void | textcursorChangeBorder (int border) |
Change the border of the cell. | |
virtual void | textcursorInsertImage (QString filepath, QSize size) |
Insert a image into the selected cell. | |
virtual QString | addImage (QImage *image) |
Add image to the document. | |
virtual QImage * | getImage (QString name) |
Returns the image with the specified name. | |
virtual void | textcursorInsertLink (QString filepath) |
Insert a link to the selected text. | |
virtual bool | hasChanged () const |
bool | isOpen () const |
bool | isSaved () const |
Factory * | cellFactory () |
void | executeCommand (Command *cmd) |
void | runVisitor (Visitor &v) |
Runs a visitor on the cellstructure. | |
Protected Member Functions | |
void | setWorkspace (Cell *newWorkspace) |
Attach a CellGroup to be the main workspace for cells. | |
bool | eventFilter (QObject *o, QEvent *e) |
CellDocument acts like a mediator between the application and all cells. It knows how to do stuff with cells.
The CellDocument does not have any menu. So to use menus for doing stuff with the application look at the slots that exists in this class.
For more information about how to use this widget in an application look at the documentation for every signal and slot in this class.
|
Constructor, initialize a CellGroup as maincontent.
|
|
The class destructor.
|
|
Add image to the document.
2005-12-12 AF, Added 'file:///(path)/' to very image name 2006-02-13 AF, All images are added in the sub dir 'OMNotebook_tempfiles'.
Implements IAEX::Document. |
|
Implements IAEX::Document. |
|
Hmmm check this later. Implements IAEX::Document. |
|
Implements IAEX::Document. |
|
Change the style of the selected cell/cells.
Implements IAEX::Document. |
|
Implements IAEX::Document. |
|
Implements IAEX::Document. |
|
Implements IAEX::Document. |
|
Implements IAEX::Document. |
|
Implements IAEX::Document. |
|
Split current cell.
Implements IAEX::Document. |
|
Implements IAEX::Document. |
|
Implements IAEX::Document. |
|
Ungroup all selected groupcells.
Implements IAEX::Document. |
|
Problem with the eventfilter. Should be listening to the mainwidget of the cell also. Not only to the workspace. |
|
Implements IAEX::Document. |
|
Returns the image with the specified name.
Implements IAEX::Document. |
|
Implements IAEX::Document. |
|
Implements IAEX::Document. |
|
Implements IAEX::Document. |
|
Implements IAEX::Document. |
|
open a new document
|
|
|
|
set focus on output part in inputcell
|
|
Open an file and parse the content.
Implements IAEX::Document. |
|
Runs a visitor on the cellstructure. Traverses the tree in preorder. For more usage information
Implements IAEX::Document. |
|
set the change variable
Implements IAEX::Document. |
|
|
|
Attach a CellGroup to be the main workspace for cells.
2005-11-01 AF, replaced the old Q3ScrollView with the new QScrollArea and needed to change/update some thing in this function;
|
|
Change the border of the cell.
Implements IAEX::Document. |
|
Change the font color on the selected text, if no text selected the current font color will be changed.
Implements IAEX::Document. |
|
Change the font weight on the selected text, if no text selected the current font weight will be changed.
Implements IAEX::Document. |
|
Change the font family on the selected text, if no text selected the current font family will be changed.
Implements IAEX::Document. |
|
Change the font size on the selected text, if no text selected the current font size will be changed.
Implements IAEX::Document. |
|
Change the font stretch on the selected text, if no text selected the current font stretch will be changed.
Implements IAEX::Document. |
|
Change the margin of the cell.
Implements IAEX::Document. |
|
Change the padding of the cell.
Implements IAEX::Document. |
|
Change the text alignment on the text inside the cell.
Implements IAEX::Document. |
|
Change the vertical alignment on the selected text, if no text selected the current vertical alignment will be changed.
Implements IAEX::Document. |
|
Copy text.
Implements IAEX::Document. |
|
Cut text.
Implements IAEX::Document. |
|
Insert a image into the selected cell.
Implements IAEX::Document. |
|
Insert a link to the selected text.
Implements IAEX::Document. |
|
Paste text.
Implements IAEX::Document. |
|
Toggles the main workspace treeview. Shows or hides the outermost treeview. This is just used for testing. Should not be used by anyone else.
|
|
Update the scrollarea so the correct area is displayed.
Implements IAEX::Document. |