Eneboo - Documentación para desarrolladores
src/qt/tools/designer/plugins/cppeditor/cppeditor.h
Ir a la documentación de este archivo.
00001 /**********************************************************************
00002 **
00003 ** Copyright (C) 2000-2007 Trolltech ASA.  All rights reserved.
00004 **
00005 ** This file is part of Qt Designer.
00006 **
00007 ** This file may be distributed and/or modified under the terms of the
00008 ** GNU General Public License version 2 as published by the Free Software
00009 ** Foundation and appearing in the file LICENSE.GPL included in the
00010 ** packaging of this file.
00011 **
00012 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
00013 ** licenses may use this file in accordance with the Qt Commercial License
00014 ** Agreement provided with the Software.
00015 **
00016 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00017 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00018 **
00019 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00020 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
00021 **   information about Qt Commercial License Agreements.
00022 **
00023 ** Contact info@trolltech.com if any conditions of this licensing are
00024 ** not clear to you.
00025 **
00026 **********************************************************************/
00027 
00028 #ifndef CPPEDITOR_H
00029 #define CPPEDITOR_H
00030 
00031 #include <editor.h>
00032 
00033 class EditorCompletion;
00034 class EditorBrowser;
00035 struct DesignerInterface;
00036 class CIndent;
00037 
00038 class  CppEditor : public Editor
00039 {
00040     Q_OBJECT
00041 
00042 public:
00043     CppEditor( const QString &fn, QWidget *parent, const char *name, DesignerInterface *i );
00044     ~CppEditor();
00045 
00046     virtual EditorCompletion *completionManager() { return completion; }
00047     virtual EditorBrowser *browserManager() { return browser; }
00048     void configChanged();
00049 
00050     bool supportsBreakPoints() const { return FALSE; }
00051 #if defined(Q_USING)
00052     using QTextEdit::createPopupMenu;
00053 #endif
00054     QPopupMenu *createPopupMenu( const QPoint &p );
00055 
00056     void paste();
00057 
00058 private slots:
00059     void addInclDecl();
00060     void addInclImpl();
00061     void addForward();
00062 
00063 protected:
00064     EditorCompletion *completion;
00065     EditorBrowser *browser;
00066     DesignerInterface *dIface;
00067     CIndent *indent;
00068 
00069 };
00070 
00071 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'