Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSPopupMenu_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSPopupMenu_p.h
00003  -------------------
00004  begin                : 29/01/2011
00005  copyright            : (C) 2003-2011 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 #ifndef AQSPOPUPMENU_P_H_
00020 #define AQSPOPUPMENU_P_H_
00021 
00022 #include "AQSFrame_p.h"
00023 #include "AQSPixmap_p.h"
00024 #include <qpopupmenu.h>
00025 
00026 class AQSPopupMenu : public AQSFrame
00027 {
00028   Q_OBJECT
00029 
00030   AQ_DECLARE_AQS_OBJECT(PopupMenu, Frame);
00031 
00032   //@AQ_BEGIN_DEF_PUB_SLOTS@
00033 public slots:
00034   void popup(const QPoint &, int = -1);
00035   void updateItem(int);
00036   void setCheckable(bool);
00037   bool isCheckable() const;
00038   int exec();
00039   int exec(const QPoint &, int = 0);
00040   void setActiveItem(int);
00041   int idAt(int) const;
00042   int idAt(const QPoint &) const;
00043   int insertTearOffHandle(int = -1, int = -1);
00044   int insertItem(const QString &, int = -1, int = -1);
00045   int insertItem(const QString &, QPopupMenu *, int = -1, int = -1);
00046   int insertItem(QPixmap *, int = -1, int = -1);
00047   int insertItem(AQSPixmap *, int = -1, int = -1);
00048   int insertItem(QPixmap *, QPopupMenu *, int = -1, int = -1);
00049   int insertItem(AQSPixmap *, QPopupMenu *, int = -1, int = -1);
00050   int insertSeparator(int = -1);
00051   void removeItem(int);
00052   void removeItemAt(int);
00053   void clear();
00054   uint count() const;
00055   QKeySequence accel(int) const;
00056   void setAccel(const QKeySequence &, int);
00057   QString text(int) const;
00058   QPixmap *pixmap(int) const;
00059   void setWhatsThis(int, const QString &);
00060   QString whatsThis(int) const;
00061   void changeItem(int, const QString &);
00062   void changeItem(int, QPixmap *);
00063   void changeItem(int, AQSPixmap *);
00064   bool isItemEnabled(int) const;
00065   void setItemEnabled(int, bool);
00066   bool isItemChecked(int) const;
00067   void setItemChecked(int, bool);
00068   bool isItemVisible(int) const;
00069   void setItemVisible(int, bool);
00070   bool setItemParameter(int, int);
00071   int itemParameter(int) const;
00072   void activateItemAt(int);
00073 
00074 protected:
00075   static void *construct(const QSArgumentList &args) {
00076     QMap<int, QStringList> candidates;
00077     candidates[0].append(QString::null);
00078     candidates[1].append(QString::fromLatin1("QWidget*"));
00079     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00080     QString sgt(castArgsSignature(args, candidates));
00081     if (sgt.isEmpty())
00082       return new QPopupMenu;
00083     if (sgt == QString::fromLatin1("QWidget*"))
00084       return new QPopupMenu(argValue<QWidget *>(args[0]));
00085     if (sgt == QString::fromLatin1("QWidget*,QString"))
00086       return new QPopupMenu(argValue<QWidget *>(args[0]),
00087                             *(argValue<QString *>(args[1])));
00088     return 0;
00089   }
00090 
00091 public:
00092   static QMap<int, QStringList> candidateConstructors() {
00093     QMap<int, QStringList> candidates;
00094     candidates[0].append(QString::null);
00095     candidates[1].append(QString::fromLatin1("QWidget*"));
00096     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00097     return candidates;
00098   }
00099   //@AQ_END_DEF_PUB_SLOTS@
00100 };
00101 
00102 //@AQ_BEGIN_IMP_PUB_SLOTS@
00103 inline void AQSPopupMenu::popup(const QPoint &arg0,  int arg1)
00104 {
00105   AQ_CALL_VOID(popup(arg0, arg1));
00106 }
00107 inline void AQSPopupMenu::updateItem(int arg0)
00108 {
00109   AQ_CALL_VOID(updateItem(arg0));
00110 }
00111 inline void AQSPopupMenu::setCheckable(bool arg0)
00112 {
00113   AQ_CALL_VOID(setCheckable(arg0));
00114 }
00115 inline bool AQSPopupMenu::isCheckable() const
00116 {
00117   AQ_CALL_RET_V(isCheckable(), bool);
00118 }
00119 inline int AQSPopupMenu::exec()
00120 {
00121   AQ_CALL_RET_V(exec(), int);
00122 }
00123 inline int AQSPopupMenu::exec(const QPoint &arg0,  int arg1)
00124 {
00125   AQ_CALL_RET_V(exec(arg0, arg1), int);
00126 }
00127 inline void AQSPopupMenu::setActiveItem(int arg0)
00128 {
00129   AQ_CALL_VOID(setActiveItem(arg0));
00130 }
00131 inline int AQSPopupMenu::idAt(int arg0) const
00132 {
00133   AQ_CALL_RET_V(idAt(arg0), int);
00134 }
00135 inline int AQSPopupMenu::idAt(const QPoint &arg0) const
00136 {
00137   AQ_CALL_RET_V(idAt(arg0), int);
00138 }
00139 inline int AQSPopupMenu::insertTearOffHandle(int arg0,  int arg1)
00140 {
00141   AQ_CALL_RET_V(insertTearOffHandle(arg0, arg1), int);
00142 }
00143 inline int AQSPopupMenu::insertItem(const QString &arg0,  int arg1,  int arg2)
00144 {
00145   AQ_CALL_RET_V(insertItem(arg0, arg1, arg2), int);
00146 }
00147 inline int AQSPopupMenu::insertItem(const QString &arg0,  QPopupMenu *arg1,  int arg2,  int arg3)
00148 {
00149   AQ_CALL_RET_V(insertItem(arg0, arg1, arg2, arg3), int);
00150 }
00151 inline int AQSPopupMenu::insertItem(QPixmap *arg0,  int arg1,  int arg2)
00152 {
00153   AQ_CALL_RET_V(insertItem(*arg0, arg1, arg2), int);
00154 }
00155 inline int AQSPopupMenu::insertItem(AQSPixmap *arg0,  int arg1,  int arg2)
00156 {
00157   AQ_CALL_RET_V(insertItem(*arg0, arg1, arg2), int);
00158 }
00159 inline int AQSPopupMenu::insertItem(QPixmap *arg0,  QPopupMenu *arg1,  int arg2,  int arg3)
00160 {
00161   AQ_CALL_RET_V(insertItem(*arg0, arg1, arg2, arg3), int);
00162 }
00163 inline int AQSPopupMenu::insertItem(AQSPixmap *arg0,  QPopupMenu *arg1,  int arg2,  int arg3)
00164 {
00165   AQ_CALL_RET_V(insertItem(*arg0, arg1, arg2, arg3), int);
00166 }
00167 inline int AQSPopupMenu::insertSeparator(int arg0)
00168 {
00169   AQ_CALL_RET_V(insertSeparator(arg0), int);
00170 }
00171 inline void AQSPopupMenu::removeItem(int arg0)
00172 {
00173   AQ_CALL_VOID(removeItem(arg0));
00174 }
00175 inline void AQSPopupMenu::removeItemAt(int arg0)
00176 {
00177   AQ_CALL_VOID(removeItemAt(arg0));
00178 }
00179 inline void AQSPopupMenu::clear()
00180 {
00181   AQ_CALL_VOID(clear());
00182 }
00183 inline uint AQSPopupMenu::count() const
00184 {
00185   AQ_CALL_RET_V(count(), uint);
00186 }
00187 inline QKeySequence AQSPopupMenu::accel(int arg0) const
00188 {
00189   AQ_CALL_RET_V(accel(arg0), QKeySequence);
00190 }
00191 inline void AQSPopupMenu::setAccel(const QKeySequence &arg0,  int arg1)
00192 {
00193   AQ_CALL_VOID(setAccel(arg0, arg1));
00194 }
00195 inline QString AQSPopupMenu::text(int arg0) const
00196 {
00197   AQ_CALL_RET_V(text(arg0), QString);
00198 }
00199 inline QPixmap *AQSPopupMenu::pixmap(int arg0) const
00200 {
00201   AQ_CALL_RET(pixmap(arg0));
00202 }
00203 inline void AQSPopupMenu::setWhatsThis(int arg0,  const QString &arg1)
00204 {
00205   AQ_CALL_VOID(setWhatsThis(arg0, arg1));
00206 }
00207 inline QString AQSPopupMenu::whatsThis(int arg0) const
00208 {
00209   AQ_CALL_RET_V(whatsThis(arg0), QString);
00210 }
00211 inline void AQSPopupMenu::changeItem(int arg0,  const QString &arg1)
00212 {
00213   AQ_CALL_VOID(changeItem(arg0, arg1));
00214 }
00215 inline void AQSPopupMenu::changeItem(int arg0,  QPixmap *arg1)
00216 {
00217   AQ_CALL_VOID(changeItem(arg0, *arg1));
00218 }
00219 inline void AQSPopupMenu::changeItem(int arg0, AQSPixmap *arg1)
00220 {
00221   AQ_CALL_VOID(changeItem(arg0, *arg1));
00222 }
00223 inline bool AQSPopupMenu::isItemEnabled(int arg0) const
00224 {
00225   AQ_CALL_RET_V(isItemEnabled(arg0), bool);
00226 }
00227 inline void AQSPopupMenu::setItemEnabled(int arg0,  bool arg1)
00228 {
00229   AQ_CALL_VOID(setItemEnabled(arg0, arg1));
00230 }
00231 inline bool AQSPopupMenu::isItemChecked(int arg0) const
00232 {
00233   AQ_CALL_RET_V(isItemChecked(arg0), bool);
00234 }
00235 inline void AQSPopupMenu::setItemChecked(int arg0,  bool arg1)
00236 {
00237   AQ_CALL_VOID(setItemChecked(arg0, arg1));
00238 }
00239 inline bool AQSPopupMenu::isItemVisible(int arg0) const
00240 {
00241   AQ_CALL_RET_V(isItemVisible(arg0), bool);
00242 }
00243 inline void AQSPopupMenu::setItemVisible(int arg0,  bool arg1)
00244 {
00245   AQ_CALL_VOID(setItemVisible(arg0, arg1));
00246 }
00247 inline bool AQSPopupMenu::setItemParameter(int arg0,  int arg1)
00248 {
00249   AQ_CALL_RET_V(setItemParameter(arg0, arg1), bool);
00250 }
00251 inline int AQSPopupMenu::itemParameter(int arg0) const
00252 {
00253   AQ_CALL_RET_V(itemParameter(arg0), int);
00254 }
00255 inline void AQSPopupMenu::activateItemAt(int arg0)
00256 {
00257   AQ_CALL_VOID(activateItemAt(arg0));
00258 }
00259 //@AQ_END_IMP_PUB_SLOTS@
00260 
00261 #endif /* AQSPOPUPMENU_P_H_ */
00262 // @AQSWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'