kig
#include <kig_part.h>
Inherits ReadWritePart.
Public Types | |
typedef std::vector < KigGUIAction * > | GUIUpdateToken |
Public Slots | |
void | browseHistory () |
void | cancelConstruction () |
void | deleteObjects () |
void | editTypes () |
void | filePrint () |
void | filePrintPreview () |
void | fileSave () |
void | fileSaveAs () |
void | newMacro () |
void | plugActionLists () |
void | repeatLastConstruction () |
void | setCoordinatePrecision () |
void | setHistoryClean (bool) |
void | showHidden () |
void | slotDeselectAll () |
void | slotInvertSelection () |
void | slotSelectAll () |
void | toggleAxes () |
void | toggleGrid () |
void | toggleNightVision () |
void | unplugActionLists () |
Signals | |
void | recenterScreen () |
Public Attributes | |
std::vector< KigGUIAction * > | aActions |
KAction * | aBrowseHistory |
KAction * | aCancelConstruction |
KAction * | aConfigureTypes |
KAction * | aDeleteObjects |
KAction * | aDeselectAll |
KAction * | aInvertSelection |
QList< QAction * > | aMNewAll |
QList< QAction * > | aMNewCircle |
QList< QAction * > | aMNewConic |
QList< QAction * > | aMNewLine |
QList< QAction * > | aMNewOther |
QList< QAction * > | aMNewPoint |
QList< QAction * > | aMNewSegment |
KAction * | aNewMacro |
KAction * | aRepeatLastConstruction |
KAction * | aSelectAll |
KAction * | aSetCoordinatePrecision |
KAction * | aShowHidden |
KToggleAction * | aToggleAxes |
KToggleAction * | aToggleGrid |
KToggleAction * | aToggleNightVision |
Protected Member Functions | |
void | doPrint (QPrinter &printer, bool printGrid, bool printAxes) |
bool | internalSaveAs () |
virtual bool | openFile () |
virtual bool | queryClose () |
virtual bool | saveFile () |
void | setupActions () |
void | setupBuiltinMacros () |
void | setupMacroTypes () |
void | setupTypes () |
Protected Attributes | |
KSelectAction * | aCoordSystem |
KigView * | m_widget |
std::vector< ObjectHolder * > | mcurrentObjectGroup |
KigDocument * | mdocument |
KUndoStack * | mhistory |
bool | misGroupingObjects |
KigMode * | mMode |
ConstructibleAction * | mRememberConstruction |
std::vector< KigWidget * > | mwidgets |
Detailed Description
This is a "Part".
It that does all the real work in a KPart application. Briefly, it holds the data of the document, and acts as an interface to shells
Main Part
Definition at line 68 of file kig_part.h.
Member Typedef Documentation
typedef std::vector<KigGUIAction*> KigPart::GUIUpdateToken |
the "token" keeps some objects that should be deleted, we only delete them after we replug the actionLists.
. calling these functions should be done like:
Definition at line 263 of file kig_part.h.
Constructor & Destructor Documentation
|
explicit |
Default constructor.
Definition at line 173 of file kig_part.cpp.
|
virtual |
Destructor.
Definition at line 370 of file kig_part.cpp.
Member Function Documentation
void KigPart::_addObject | ( | ObjectHolder * | inObject | ) |
Definition at line 511 of file kig_part.cpp.
void KigPart::_addObjects | ( | const std::vector< ObjectHolder * > & | o | ) |
Definition at line 544 of file kig_part.cpp.
void KigPart::_delObject | ( | ObjectHolder * | inObject | ) |
Definition at line 531 of file kig_part.cpp.
void KigPart::_delObjects | ( | const std::vector< ObjectHolder * > & | o | ) |
Definition at line 525 of file kig_part.cpp.
void KigPart::actionAdded | ( | GUIAction * | a, |
GUIUpdateToken & | t | ||
) |
Definition at line 777 of file kig_part.cpp.
void KigPart::actionRemoved | ( | GUIAction * | a, |
GUIUpdateToken & | t | ||
) |
Definition at line 754 of file kig_part.cpp.
void KigPart::addObject | ( | ObjectHolder * | inObject | ) |
Definition at line 489 of file kig_part.cpp.
void KigPart::addObjects | ( | const std::vector< ObjectHolder * > & | os | ) |
Definition at line 500 of file kig_part.cpp.
void KigPart::addWidget | ( | KigWidget * | v | ) |
Definition at line 856 of file kig_part.cpp.
|
slot |
Definition at line 608 of file kig_part.cpp.
|
slot |
Definition at line 579 of file kig_part.cpp.
void KigPart::cancelObjectGroup | ( | ) |
Deletes the current group of objects from the document without adding them to the Undo history.
- See also
- See also startObjectGroup finishObjectGroup
Definition at line 564 of file kig_part.cpp.
void KigPart::coordSystemChanged | ( | int | id | ) |
Definition at line 1078 of file kig_part.cpp.
|
slot |
Definition at line 550 of file kig_part.cpp.
void KigPart::deleteTypes | ( | ) |
Definition at line 1113 of file kig_part.cpp.
void KigPart::delObject | ( | ObjectHolder * | inObject | ) |
Definition at line 517 of file kig_part.cpp.
void KigPart::delObjects | ( | const std::vector< ObjectHolder * > & | os | ) |
Definition at line 635 of file kig_part.cpp.
void KigPart::delWidget | ( | KigWidget * | v | ) |
Definition at line 861 of file kig_part.cpp.
const KigDocument & KigPart::document | ( | ) | const |
Definition at line 986 of file kig_part.cpp.
KigDocument & KigPart::document | ( | ) |
Definition at line 991 of file kig_part.cpp.
void KigPart::doneMode | ( | KigMode * | d | ) |
Definition at line 746 of file kig_part.cpp.
|
protected |
Definition at line 892 of file kig_part.cpp.
|
slot |
Definition at line 603 of file kig_part.cpp.
void KigPart::emitStatusBarText | ( | const QString & | text | ) |
Definition at line 692 of file kig_part.cpp.
void KigPart::enableConstructActions | ( | bool | enabled | ) |
Definition at line 663 of file kig_part.cpp.
void KigPart::endGUIActionUpdate | ( | GUIUpdateToken & | t | ) |
Definition at line 784 of file kig_part.cpp.
|
slot |
Definition at line 874 of file kig_part.cpp.
|
slot |
Definition at line 866 of file kig_part.cpp.
|
slot |
Definition at line 702 of file kig_part.cpp.
|
slot |
Definition at line 697 of file kig_part.cpp.
void KigPart::finishObjectGroup | ( | ) |
Draws the current group of objects and add them as a whole to the Undo history.
- See also
- See also startObjectGroup cancelObjectGroup
Definition at line 571 of file kig_part.cpp.
void KigPart::hideObjects | ( | const std::vector< ObjectHolder * > & | os | ) |
Definition at line 934 of file kig_part.cpp.
QUndoStack * KigPart::history | ( | ) |
Definition at line 630 of file kig_part.cpp.
|
protected |
Definition at line 707 of file kig_part.cpp.
void KigPart::loadTypes | ( | ) |
Definition at line 1098 of file kig_part.cpp.
|
inline |
Definition at line 143 of file kig_part.h.
|
slot |
Definition at line 598 of file kig_part.cpp.
|
protectedvirtual |
load our internal document from m_file
Definition at line 390 of file kig_part.cpp.
|
slot |
Definition at line 681 of file kig_part.cpp.
|
protectedvirtual |
KigPart cannot be safely destroyed if it's in a nested event loop (construct mode).
As a workaround, call this first so it can cancel the construction.
Definition at line 476 of file kig_part.cpp.
|
signal |
emitted when we want to suggest a new size for the view ( basically after loading a file, and on startup...
)
void KigPart::redrawScreen | ( | ) |
Definition at line 977 of file kig_part.cpp.
void KigPart::redrawScreen | ( | KigWidget * | w | ) |
Definition at line 972 of file kig_part.cpp.
void KigPart::rememberConstruction | ( | ConstructibleAction * | ca | ) |
Definition at line 356 of file kig_part.cpp.
|
slot |
Definition at line 584 of file kig_part.cpp.
void KigPart::runMode | ( | KigMode * | m | ) |
Definition at line 732 of file kig_part.cpp.
|
protectedvirtual |
save our internal document to m_file
Definition at line 451 of file kig_part.cpp.
void KigPart::saveTypes | ( | ) |
Definition at line 1083 of file kig_part.cpp.
|
slot |
Definition at line 618 of file kig_part.cpp.
|
slot |
Definition at line 613 of file kig_part.cpp.
void KigPart::setMode | ( | KigMode * | m | ) |
Definition at line 537 of file kig_part.cpp.
|
protected |
Definition at line 212 of file kig_part.cpp.
|
protected |
Definition at line 824 of file kig_part.cpp.
|
protected |
Definition at line 797 of file kig_part.cpp.
|
protected |
Definition at line 341 of file kig_part.cpp.
|
slot |
Definition at line 593 of file kig_part.cpp.
void KigPart::showObjects | ( | const std::vector< ObjectHolder * > & | os | ) |
Definition at line 953 of file kig_part.cpp.
|
slot |
Definition at line 924 of file kig_part.cpp.
|
slot |
Definition at line 929 of file kig_part.cpp.
|
slot |
Definition at line 919 of file kig_part.cpp.
KigPart::GUIUpdateToken KigPart::startGUIActionUpdate | ( | ) |
Definition at line 792 of file kig_part.cpp.
void KigPart::startObjectGroup | ( | ) |
Call this method to start an object group which will be deleted as a whole if the construction is canceled or undone.
- See also
- See also cancelObjectGroup finishObjectGroup
Definition at line 555 of file kig_part.cpp.
|
slot |
Definition at line 1060 of file kig_part.cpp.
|
slot |
Definition at line 1051 of file kig_part.cpp.
|
slot |
Definition at line 1069 of file kig_part.cpp.
|
slot |
Definition at line 670 of file kig_part.cpp.
Member Data Documentation
std::vector<KigGUIAction*> KigPart::aActions |
Definition at line 250 of file kig_part.h.
KAction* KigPart::aBrowseHistory |
Definition at line 245 of file kig_part.h.
KAction* KigPart::aCancelConstruction |
Definition at line 236 of file kig_part.h.
KAction* KigPart::aConfigureTypes |
Definition at line 244 of file kig_part.h.
|
protected |
Definition at line 209 of file kig_part.h.
KAction* KigPart::aDeleteObjects |
Definition at line 241 of file kig_part.h.
KAction* KigPart::aDeselectAll |
Definition at line 239 of file kig_part.h.
KAction* KigPart::aInvertSelection |
Definition at line 240 of file kig_part.h.
Definition at line 232 of file kig_part.h.
Definition at line 229 of file kig_part.h.
Definition at line 233 of file kig_part.h.
Definition at line 230 of file kig_part.h.
Definition at line 231 of file kig_part.h.
Definition at line 228 of file kig_part.h.
Definition at line 227 of file kig_part.h.
KAction* KigPart::aNewMacro |
Definition at line 242 of file kig_part.h.
KAction* KigPart::aRepeatLastConstruction |
Definition at line 237 of file kig_part.h.
KAction* KigPart::aSelectAll |
Definition at line 238 of file kig_part.h.
KAction* KigPart::aSetCoordinatePrecision |
Definition at line 246 of file kig_part.h.
KAction* KigPart::aShowHidden |
Definition at line 243 of file kig_part.h.
KToggleAction* KigPart::aToggleAxes |
Definition at line 248 of file kig_part.h.
KToggleAction* KigPart::aToggleGrid |
Definition at line 247 of file kig_part.h.
KToggleAction* KigPart::aToggleNightVision |
Definition at line 249 of file kig_part.h.
|
protected |
Definition at line 278 of file kig_part.h.
|
protected |
Stores the current group of object being drawn if an object group has been started.
- See also
- See also startObjectGroup cancelObjectGroup finishObjectGroup
Definition at line 294 of file kig_part.h.
|
protected |
Definition at line 280 of file kig_part.h.
|
protected |
the command history
Definition at line 215 of file kig_part.h.
|
protected |
Indicates whether objects added to the documents are being grouped or not.
- See also
- See also startObjectGroup cancelObjectGroup finishObjectGroup
Definition at line 287 of file kig_part.h.
|
protected |
Definition at line 208 of file kig_part.h.
|
protected |
Definition at line 210 of file kig_part.h.
|
protected |
Definition at line 276 of file kig_part.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.