Eneboo - Documentación para desarrolladores
src/flbase/FLWidgetAction.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002                            FLWidgetAction.h
00003                           -------------------
00004  begin                : Mar Jun 17 2003
00005  copyright            : (C) 2003-2005 by InfoSiAL S.L.
00006  email                : mail@infosial.com
00007 ***************************************************************************/
00008 /***************************************************************************
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU General Public License as published by  *
00011  *   the Free Software Foundation; version 2 of the License.               *
00012  ***************************************************************************/
00013 /***************************************************************************
00014    Este  programa es software libre. Puede redistribuirlo y/o modificarlo
00015    bajo  los  términos  de  la  Licencia  Pública General de GNU   en  su
00016    versión 2, publicada  por  la  Free  Software Foundation.
00017  ***************************************************************************/
00018 /**********************************************************************
00019 ** Copyright (C) 2000-2002 Trolltech AS.  All rights reserved.
00020 **
00021 ** This file is part of Qt Designer.
00022 **
00023 ** This file may be distributed and/or modified under the terms of the
00024 ** GNU General Public License version 2 as published by the Free Software
00025 ** Foundation and appearing in the file LICENSE.GPL included in the
00026 ** packaging of this file.
00027 **
00028 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00029 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00030 **
00031 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00032 **
00033 ** Contact info@trolltech.com if any conditions of this licensing are
00034 ** not clear to you.
00035 **
00036 **********************************************************************/
00037 
00038 #ifndef FLWIDGETACTION_H
00039 #define FLWIDGETACTION_H
00040 
00041 #include <qaction.h>
00042 
00043 class FLWidgetAction : public QAction {
00044   Q_OBJECT
00045 
00046 public:
00047 
00048   FLWidgetAction( const QString &grp, QObject* parent, const char* name = 0, bool toggle = false ) : QAction( parent, name, toggle ) {
00049     init( grp );
00050   }
00051 
00052   FLWidgetAction( const QString &grp, const QString& text, const QIconSet& icon, const QString& menuText, QKeySequence accel, QObject* parent, const char* name = 0, bool toggle = false ) : QAction( text, icon, menuText, accel, parent, name, toggle ) {
00053     init( grp );
00054   }
00055 
00056   FLWidgetAction( const QString &grp, const QString& text, const QString& menuText, QKeySequence accel, QObject* parent, const char* name = 0, bool toggle = false ) : QAction( text, menuText, accel, parent, name, toggle ) {
00057     init( grp );
00058   }
00059 
00060   ~FLWidgetAction();
00061 
00062 #if !defined(Q_NO_USING_KEYWORD)
00063 
00064   using QAction::addedTo;
00065 #endif
00066 
00067   void addedTo( QWidget *, QWidget * );
00068 
00069   QString group() const {
00070     return grp;
00071   }
00072 
00076   void setIdModule( const QString & idM ) {
00077     idModule_ = idM;
00078   }
00079 
00083   const QString & idModule() const {
00084     return idModule_;
00085   }
00086 
00087 private:
00088 
00089   void init( const QString &g );
00090   QString grp;
00091   QPopupMenu *popupMenu;
00092 
00096   QString idModule_;
00097 };
00098 
00099 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'