Eneboo - Documentación para desarrolladores
|
#include <editorinterfaceimpl.h>
Métodos públicos | |
EditorInterfaceImpl () | |
virtual | ~EditorInterfaceImpl () |
QRESULT | queryInterface (const QUuid &, QUnknownInterface **) |
QWidget * | editor (bool readonly, QWidget *parent, QUnknownInterface *designerIface) |
void | setText (const QString &txt) |
QString | text () const |
bool | isUndoAvailable () const |
bool | isRedoAvailable () const |
void | undo () |
void | redo () |
void | cut () |
void | copy () |
void | paste () |
void | selectAll () |
bool | find (const QString &expr, bool cs, bool wo, bool forward, bool startAtCursor) |
bool | replace (const QString &find, const QString &replace, bool cs, bool wo, bool forward, bool startAtCursor, bool replaceAll) |
void | gotoLine (int line) |
void | indent () |
void | scrollTo (const QString &txt, const QString &first) |
void | splitView () |
void | setContext (QObject *this_) |
void | readSettings () |
void | setError (int line) |
void | setStep (int) |
void | clearStep () |
void | setModified (bool m) |
bool | isModified () const |
void | setMode (Mode) |
int | numLines () const |
void | breakPoints (QValueList< uint > &) const |
void | setBreakPoints (const QValueList< uint > &) |
void | onBreakPointChange (QObject *receiver, const char *slot) |
void | clearStackFrame () |
void | setStackFrame (int) |
Atributos públicos | |
Q_REFCOUNT | |
Métodos protegidos | |
bool | eventFilter (QObject *, QEvent *) |
EditorInterfaceImpl::EditorInterfaceImpl | ( | ) |
EditorInterfaceImpl::~EditorInterfaceImpl | ( | ) | [virtual] |
void EditorInterfaceImpl::breakPoints | ( | QValueList< uint > & | ) | const [inline, virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::clearStackFrame | ( | ) | [inline, virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::clearStep | ( | ) | [inline, virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::copy | ( | ) | [virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::cut | ( | ) | [virtual] |
Implementa EditorInterface.
QWidget * EditorInterfaceImpl::editor | ( | bool | readonly, |
QWidget * | parent, | ||
QUnknownInterface * | designerIface | ||
) | [virtual] |
Implementa EditorInterface.
Filters events if this object has been installed as an event filter for the watched object.
In your reimplementation of this function, if you want to filter the event e, out, i.e. stop it being handled further, return TRUE; otherwise return FALSE.
Example:
class MyMainWindow : public QMainWindow { public: MyMainWindow( QWidget *parent = 0, const char *name = 0 ); protected: bool eventFilter( QObject *obj, QEvent *ev ); private: QTextEdit *textEdit; }; MyMainWindow::MyMainWindow( QWidget *parent, const char *name ) : QMainWindow( parent, name ) { textEdit = new QTextEdit( this ); setCentralWidget( textEdit ); textEdit->installEventFilter( this ); } bool MyMainWindow::eventFilter( QObject *obj, QEvent *ev ) { if ( obj == textEdit ) { if ( e->type() == QEvent::KeyPress ) { QKeyEvent *k = (QKeyEvent*)ev; qDebug( "Ate key press %d", k->key() ); return TRUE; } else { return FALSE; } } else { // pass the event on to the parent class return QMainWindow::eventFilter( obj, ev ); } }
Notice in the example above that unhandled events are passed to the base class's eventFilter() function, since the base class might have reimplemented eventFilter() for its own internal purposes.
Reimplementado de QObject.
bool EditorInterfaceImpl::find | ( | const QString & | expr, |
bool | cs, | ||
bool | wo, | ||
bool | forward, | ||
bool | startAtCursor | ||
) | [virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::gotoLine | ( | int | line | ) | [virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::indent | ( | ) | [virtual] |
Implementa EditorInterface.
bool EditorInterfaceImpl::isModified | ( | ) | const [virtual] |
Implementa EditorInterface.
bool EditorInterfaceImpl::isRedoAvailable | ( | ) | const [virtual] |
Implementa EditorInterface.
bool EditorInterfaceImpl::isUndoAvailable | ( | ) | const [virtual] |
Implementa EditorInterface.
int EditorInterfaceImpl::numLines | ( | ) | const [virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::onBreakPointChange | ( | QObject * | receiver, |
const char * | slot | ||
) | [virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::paste | ( | ) | [virtual] |
Implementa EditorInterface.
QRESULT EditorInterfaceImpl::queryInterface | ( | const QUuid & | uuid, |
QUnknownInterface ** | iface | ||
) | [virtual] |
Implementa QUnknownInterface.
void EditorInterfaceImpl::readSettings | ( | ) | [virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::redo | ( | ) | [virtual] |
Implementa EditorInterface.
bool EditorInterfaceImpl::replace | ( | const QString & | find, |
const QString & | replace, | ||
bool | cs, | ||
bool | wo, | ||
bool | forward, | ||
bool | startAtCursor, | ||
bool | replaceAll | ||
) | [virtual] |
Implementa EditorInterface.
Implementa EditorInterface.
void EditorInterfaceImpl::selectAll | ( | ) | [virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::setBreakPoints | ( | const QValueList< uint > & | ) | [inline, virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::setContext | ( | QObject * | this_ | ) | [virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::setError | ( | int | line | ) | [virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::setMode | ( | Mode | ) | [inline, virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::setModified | ( | bool | m | ) | [virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::setStackFrame | ( | int | ) | [inline, virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::setStep | ( | int | ) | [inline, virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::setText | ( | const QString & | txt | ) | [virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::splitView | ( | ) | [virtual] |
Implementa EditorInterface.
QString EditorInterfaceImpl::text | ( | ) | const [virtual] |
Implementa EditorInterface.
void EditorInterfaceImpl::undo | ( | ) | [virtual] |
Implementa EditorInterface.