Eneboo - Documentación para desarrolladores
src/qt/tools/designer/interfaces/editorinterface.h
Ir a la documentación de este archivo.
00001  /**********************************************************************
00002 ** Copyright (C) 2000-2007 Trolltech ASA.  All rights reserved.
00003 **
00004 ** This file is part of Qt Designer.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
00012 ** licenses may use this file in accordance with the Qt Commercial License
00013 ** Agreement provided with the Software.
00014 **
00015 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00016 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00017 **
00018 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00019 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
00020 **   information about Qt Commercial License Agreements.
00021 **
00022 ** Contact info@trolltech.com if any conditions of this licensing are
00023 ** not clear to you.
00024 **
00025 **********************************************************************/
00026 
00027 #ifndef EDITORINTERFACE_H
00028 #define EDITORINTERFACE_H
00029 
00030 //
00031 //  W A R N I N G  --  PRIVATE INTERFACES
00032 //  --------------------------------------
00033 //
00034 // This file and the interfaces declared in the file are not
00035 // public. It exists for internal purpose. This header file and
00036 // interfaces may change from version to version (even binary
00037 // incompatible) without notice, or even be removed.
00038 //
00039 // We mean it.
00040 //
00041 //
00042 
00043 #include <private/qcom_p.h>
00044 #include <qmap.h>
00045 #include <qvaluelist.h>
00046 
00047 class QWidget;
00048 class QObjectList;
00049 class QObject;
00050 
00051 // {8668161a-6037-4220-86b6-ccaa20127df8}
00052 #ifndef IID_Editor
00053 #define IID_Editor QUuid( 0x8668161a, 0x6037, 0x4220, 0x86, 0xb6, 0xcc, 0xaa, 0x20, 0x12, 0x7d, 0xf8 )
00054 #endif
00055 
00056 struct EditorInterface : public QUnknownInterface
00057 {
00058     enum Mode
00059     {
00060         Editing,
00061         Debugging
00062     };
00063 
00064     virtual QWidget *editor( bool readOnly,
00065                              QWidget *parent,
00066                              QUnknownInterface *designerIface ) = 0;
00067 
00068     virtual void setText( const QString &txt ) = 0;
00069     virtual QString text() const = 0;
00070     virtual bool isUndoAvailable() const = 0;
00071     virtual bool isRedoAvailable() const = 0;
00072     virtual void undo() = 0;
00073     virtual void redo() = 0;
00074     virtual void cut() = 0;
00075     virtual void copy() = 0;
00076     virtual void paste() = 0;
00077     virtual void selectAll() = 0;
00078     virtual bool find( const QString &expr, bool cs, bool wo, bool forward, bool startAtCursor ) = 0;
00079     virtual bool replace( const QString &find, const QString &replace, bool cs, bool wo, bool forward, bool startAtCursor, bool replaceAll ) = 0;
00080     virtual void gotoLine( int line ) = 0;
00081     virtual void indent() = 0;
00082     virtual void scrollTo( const QString &txt, const QString &first ) = 0;
00083     virtual void splitView() = 0;
00084     virtual void setContext( QObject *this_ ) = 0;
00085     virtual void setError( int line ) = 0;
00086     virtual void setStep( int line ) = 0;
00087     virtual void setStackFrame( int line ) = 0;
00088     virtual void clearStep() = 0;
00089     virtual void clearStackFrame() = 0;
00090     virtual void readSettings() = 0;
00091     virtual void setModified( bool m ) = 0;
00092     virtual bool isModified() const = 0;
00093     virtual int numLines() const = 0;
00094     virtual void breakPoints( QValueList<uint> &l ) const = 0;
00095     virtual void setBreakPoints( const QValueList<uint> &l ) = 0;
00096     virtual void setMode( Mode m ) = 0;
00097 
00098     virtual void onBreakPointChange( QObject *receiver, const char *slot ) = 0;
00099 
00100 };
00101 
00102 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'