Eneboo - Documentación para desarrolladores
Slots públicos | Señales | Métodos públicos | Métodos protegidos
Referencia de la Clase MessageEditor

#include <msgedit.h>

Diagrama de herencias de MessageEditor
QWidget QObject QPaintDevice QObject QPaintDevice Qt Qt Qt Qt

Lista de todos los miembros.

Slots públicos

void undo ()
void redo ()
void cut ()
void copy ()
void paste ()
void del ()
void selectAll ()
void beginFromSource ()
void toggleGuessing ()
void finishAndNext ()

Señales

void translationChanged (const QString &translation)
void finished (bool finished)
void prevUnfinished ()
void nextUnfinished ()
void updateActions (bool enable)
void undoAvailable (bool avail)
void redoAvailable (bool avail)
void cutAvailable (bool avail)
void copyAvailable (bool avail)
void pasteAvailable (bool avail)
void focusSourceList ()
void focusPhraseList ()

Métodos públicos

 MessageEditor (MetaTranslator *t, QWidget *parent=0, const char *name=0)
QListViewsourceTextList () const
QListViewphraseList () const
void showNothing ()
void showContext (const QString &context, bool finished)
void showMessage (const QString &text, const QString &comment, const QString &fullContext, const QString &translation, MetaTranslatorMessage::Type type, const QValueList< Phrase > &phrases)
void setFinished (bool finished)
bool eventFilter (QObject *, QEvent *)

Métodos protegidos

void resizeEvent (QResizeEvent *)

Documentación del constructor y destructor

MessageEditor::MessageEditor ( MetaTranslator t,
QWidget parent = 0,
const char *  name = 0 
)

Documentación de las funciones miembro

void MessageEditor::beginFromSource ( ) [slot]
void MessageEditor::copy ( ) [slot]
void MessageEditor::copyAvailable ( bool  avail) [signal]
void MessageEditor::cut ( ) [slot]
void MessageEditor::cutAvailable ( bool  avail) [signal]
void MessageEditor::del ( ) [slot]
bool MessageEditor::eventFilter ( QObject ,
QEvent  
) [virtual]

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.

Atención:
If you delete the receiver object in this function, be sure to return TRUE. Otherwise, Qt will forward the event to the deleted object and the program might crash.
Ver también:
installEventFilter()

Reimplementado de QObject.

void MessageEditor::finishAndNext ( ) [slot]
void MessageEditor::finished ( bool  finished) [signal]
void MessageEditor::focusPhraseList ( ) [signal]
void MessageEditor::focusSourceList ( ) [signal]
void MessageEditor::nextUnfinished ( ) [signal]
void MessageEditor::paste ( ) [slot]
void MessageEditor::pasteAvailable ( bool  avail) [signal]
QListView * MessageEditor::phraseList ( ) const
void MessageEditor::prevUnfinished ( ) [signal]
void MessageEditor::redo ( ) [slot]
void MessageEditor::redoAvailable ( bool  avail) [signal]
void MessageEditor::resizeEvent ( QResizeEvent ) [protected, virtual]

This event handler can be reimplemented in a subclass to receive widget resize events. When resizeEvent() is called, the widget already has its new geometry. The old size is accessible through QResizeEvent::oldSize().

The widget will be erased and receive a paint event immediately after processing the resize event. No drawing need be (or should be) done inside this handler.

Widgets that have been created with the WNoAutoErase flag will not be erased. Nevertheless, they will receive a paint event for their entire area afterwards. Again, no drawing needs to be done inside this handler.

The default implementation calls updateMask() if the widget has automatic masking enabled.

Ver también:
moveEvent(), event(), resize(), QResizeEvent, paintEvent()

Reimplementado de QWidget.

void MessageEditor::selectAll ( ) [slot]
void MessageEditor::setFinished ( bool  finished)
void MessageEditor::showContext ( const QString context,
bool  finished 
)
void MessageEditor::showMessage ( const QString text,
const QString comment,
const QString fullContext,
const QString translation,
MetaTranslatorMessage::Type  type,
const QValueList< Phrase > &  phrases 
)
void MessageEditor::showNothing ( )
QListView * MessageEditor::sourceTextList ( ) const
void MessageEditor::toggleGuessing ( ) [slot]
void MessageEditor::translationChanged ( const QString translation) [signal]
void MessageEditor::undo ( ) [slot]
void MessageEditor::undoAvailable ( bool  avail) [signal]
void MessageEditor::updateActions ( bool  enable) [signal]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'