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