Kross
view.cpp
Go to the documentation of this file.
219 //InterpreterInfo* info = Manager::self().interpreterInfo( Manager::self().interpreternameForFile( d->action->file() ) );
386 KPushButton* ActionCollectionView::createButton(QWidget* parentWidget, const QString& actionname)
QLayout * layout() const
static Action * action(const QModelIndex &index)
Definition: model.cpp:191
text
QString i18n(const char *text)
KPushButton * button(const QString &actionname) const
Definition: view.cpp:374
static ActionCollection * collection(const QModelIndex &index)
Definition: model.cpp:200
virtual QSize minimumSizeHint() const
The ActionCollectionEditor class implements a general editor for Action and ActionCollection instance...
Definition: view.h:65
void setAlternatingRowColors(bool enable)
Type
void setSelectionMode(QAbstractItemView::SelectionMode mode)
virtual void slotAdd()
Called if the "add" action was triggered and a new item should be added.
Definition: view.cpp:521
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
QItemSelectionModel * selectionModel() const
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
virtual void setSelectionModel(QItemSelectionModel *selectionModel)
virtual void slotEdit()
Called if the "edit" action was triggered and the select item should be edited via the scripts manage...
Definition: view.cpp:487
virtual void slotRun()
Called if the "run" action was triggered and the selected script should be executed.
Definition: view.cpp:450
icon
bool isEnabled() const
Return the enable this ActionCollection has.
Definition: actioncollection.cpp:95
void setDragDropMode(DragDropMode behavior)
int exec()
QString join(const QString &separator) const
InterpreterInfo * interpreterInfo(const QString &interpretername) const
Definition: manager.cpp:250
void setToolTip(const QString &tip)
QString i18nc(const char *ctxt, const char *text)
void trigger()
The InterpreterInfo class provides abstract information about a Interpreter before the interpreter-ba...
Definition: core/interpreter.h:43
void setBuddy(QWidget *buddy)
void resize(int w, int h)
virtual void slotStop()
Called if the "stop" action was triggered and the selected script stops execution if running...
Definition: view.cpp:471
const char * name() const
bool isValid() const
bool isEnabled() const
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void append(const T &value)
void setText(const QString &text)
void setLayout(QLayout *layout)
virtual QItemSelection mapSelectionToSource(const QItemSelection &proxySelection) const
const QItemSelection selection() const
static void sorry(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
void setObjectName(const QString &name)
KActionCollection * actionCollection() const
Definition: view.cpp:369
QModelIndexList selectedIndexes() const
QString trimmed() const
bool hasSelection() const
void hide()
void setMargin(int margin)
virtual void slotDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
This slot got called if the data changed.
Definition: view.cpp:445
void addWidget(QWidget *w)
QComboBox * interpreterEdit() const
Definition: view.cpp:136
virtual void commit()
This method got called if the changes done in the editor should be saved aka committed to the Action ...
Definition: view.cpp:245
QLineEdit * nameEdit() const
Following getters are providing access to the edit-widgets once the initGui() was called by the const...
Definition: view.cpp:132
void setSortingEnabled(bool enable)
void setModified(bool modified)
Set the internal modified state of the collection to modified .
Definition: view.cpp:364
void setIcon(const KIcon &icon)
void addStretch(int stretch)
void finalize()
Finalize the Script instance and frees any cached or still running executions.
Definition: action.cpp:496
ActionCollection * collection() const
Definition: view.cpp:127
virtual void setModel(QAbstractItemModel *model)
virtual void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
bool isEnabled() const
Return true if this Action is enabled else false is returned.
Definition: action.cpp:306
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
virtual void setModel(QAbstractItemModel *model)
Set the model this view should use to model .
Definition: view.cpp:345
void setCaption(const QString &c)
virtual void slotSelectionChanged()
This slot got called if the selected item changed.
Definition: view.cpp:411
void clicked(const QModelIndex &index)
int indexOf(const QRegExp &rx, int from) const
KPushButton * createButton(QWidget *parentWidget, const QString &actionname)
Create and return a new KPushButton instance for the given actionname.
Definition: view.cpp:386
QHeaderView * header() const
virtual void slotEnabledChanged(const QString &actionname)
This slot got called if the enable/disable state of an action changed.
Definition: view.cpp:403
const QStringList mimeTypes() const
List of mimetypes this interpreter supports.
Definition: core/interpreter.cpp:86
The Action class is an abstract container to deal with scripts like a single standalone script file...
Definition: action.h:94
void setToolTip(const QString &)
QAbstractItemModel * model() const
The ActionCollection class manages collections of Action instances.
Definition: actioncollection.h:45
void setRootIsDecorated(bool show)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
QItemSelection itemSelection() const
This method provides us access to the QItemSelection.
Definition: view.cpp:379
void setItemsExpandable(bool enable)
void setEnabled(bool)
virtual void slotRemove()
Called if the "remove" action was triggered and the selected item should be removed.
Definition: view.cpp:555
void enabledChanged(const QString &actionname)
This signal is emitted if the enabled/disabled state of an action changed.
void setDropIndicatorShown(bool enable)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:44 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:24:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.