kig
script_mode.cc
Go to the documentation of this file.
211 i18n( "The Python Interpreter generated the following error output:\n%1", QString( errtrace ) ) );
319 mwizard->setWindowTitle( KDialog::makeStandardCaption( i18nc( "'Edit' is a verb", "Edit Script" ) ) );
334 static_cast<ObjectConstCalcer*>( mcompiledargs[0] )->switchImp( new StringImp( mwizard->text() ) );
353 i18n( "The Python Interpreter generated the following error output:\n%1", QString( errtrace ) ) );
bool inherits(const ObjectImpType *t) const
Returns true if this ObjectImp inherits the ObjectImp type represented by t.
Definition: object_imp.cc:279
void setCursor(const QCursor &)
a KigCommand represents almost every action performed in Kig.
Definition: kig_commands.h:44
This is an ObjectCalcer that keeps an ObjectImp, and never calculates a new one.
Definition: object_calcer.h:232
Definition: newscriptwizard.h:35
static const PythonExecuteType * instance()
Definition: python_type.cc:138
bool needClear() const
this returns false if the control or shift button were pressed when the mouse button was released...
Definition: dragrectmode.cc:82
void midClicked(const QPoint &, KigWidget &)
Definition: script_mode.cc:261
static const ObjectImpType * stype()
Returns the ObjectImpType representing the DoubleImp type.
Definition: bogus_imp.cc:270
Type
This enum represents all the script language types actually in Kig.
Definition: script-common.h:36
virtual void enableActions()
actions: we enable the actions we want when our mode is made active.
Definition: mode.cc:27
static const ObjectImpType * stype()
Returns the ObjectImpType representing the IntImp type.
Definition: bogus_imp.cc:278
The BaseMode is a particular mode that allows an easy mapping of the mouse actions to real...
Definition: base_mode.h:33
This is an ObjectCalcer that uses one of the various ObjectType's to calculate its ObjectImp...
Definition: object_calcer.h:183
void setScriptType(ScriptType::Type type)
Definition: script_mode.cc:270
std::vector< ObjectHolder * > ret() const
this returns the selected objects.
Definition: dragrectmode.cc:77
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
void setEnabled(bool)
void rightClicked(const std::vector< ObjectHolder * > &, const QPoint &, KigWidget &)
Definition: script_mode.cc:265
const ScreenInfo & screenInfo() const
the part of the document we're currently showing i.e.
Definition: kig_view.cpp:272
ObjectHolder * label(const QString &s, const Coordinate &loc, bool needframe, const std::vector< ObjectCalcer * > &parents, const KigDocument &doc) const
returns a label with text s at point c .
Definition: object_factory.cc:386
An ObjectHolder represents an object as it is known to the document.
Definition: object_holder.h:40
const ObjectImp * imp() const
Returns the ObjectImp of this ObjectCalcer.
Definition: object_calcer.cc:100
bool isEmpty() const
this class monitors a set of DataObjects for changes and returns an appropriate ChangeObjectImpsComma...
Definition: kig_commands.h:153
ScriptEditMode(ObjectTypeCalcer *exec_calc, KigPart &doc)
Definition: script_mode.cc:302
Definition: python_scripter.h:42
void mouseMoved(const std::vector< ObjectHolder * > &os, const QPoint &p, KigWidget &w, bool shiftpressed)
Definition: script_mode.cc:91
ScriptCreationMode(KigPart &doc)
Definition: script_mode.cc:292
void updateCurPix(const std::vector< QRect > &=std::vector< QRect >())
update curPix (bitBlt stillPix onto curPix..)
Definition: kig_view.cpp:187
void finish(KigCommand *comm)
add the generated KigCommandTasks to the command comm .
Definition: kig_commands.cpp:227
void push_back(QChar ch)
static const ObjectImpType * stype()
Returns the ObjectImpType representing the InvalidImp type.
Definition: bogus_imp.cc:213
QPixmap curPix
temporary, gets bitBlt'd (copied) onto the widget (to avoid flickering)
Definition: kig_view.h:84
QAbstractButton * button(WizardButton which) const
static QString templateCode(ScriptType::Type type, std::list< ObjectHolder * > args)
Returns a template code for a script language.
Definition: script-common.cc:44
Definition: script_mode.h:46
void leftClickedObject(ObjectHolder *o, const QPoint &p, KigWidget &w, bool actrlOrShiftDown)
Definition: script_mode.cc:68
void setWindowTitle(const QString &)
void updateWidget(const std::vector< QRect > &=std::vector< QRect >())
this means bitBlting curPix on the actual widget...
Definition: kig_view.cpp:115
std::string lastErrorExceptionTraceback() const
Definition: python_scripter.cc:503
static const ObjectImpType * stype()
Returns the ObjectImpType representing the StringImp type.
Definition: bogus_imp.cc:220
void enableActions()
actions: we enable the actions we want when our mode is made active.
Definition: script_mode.cc:154
void setX(int x)
std::vector< ObjectCalcer * > parents() const
Returns the parent ObjectCalcer's of this ObjectCalcer.
Definition: object_calcer.cc:105
void addArgs(const std::vector< ObjectHolder * > &obj, KigWidget &w)
Definition: script_mode.cc:276
void calc(const KigDocument &doc)
Makes the ObjectCalcer recalculate its ObjectImp from its parents.
Definition: object_calcer.cc:32
void show()
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
Definition: script_mode.h:46
void drawObjects(const std::vector< ObjectHolder * > &os, bool sel)
Definition: kigpainter.cpp:518
void redrawScreen(const std::vector< ObjectHolder * > &selection, bool paintOnWidget=true)
Definition: kig_view.cpp:252
void next()
QPixmap stillPix
what do the still objects look like wondering if this is appropriate, maybe it should be part of Movi...
Definition: kig_view.h:79
void push(QUndoCommand *cmd)
DragRectMode is a mode that provides a rect for selecting the objects inside it.
Definition: dragrectmode.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.