Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSLineEdit_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSLineEdit_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 AQSLINEEDIT_P_H_
00020 #define AQSLINEEDIT_P_H_
00021 
00022 #include "AQSFrame_p.h"
00023 #include <qlineedit.h>
00024 
00025 class AQSLineEdit : public AQSFrame
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_OBJECT(LineEdit, Frame);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   void cursorForward(bool, int = 1);
00034   void cursorBackward(bool, int = 1);
00035   void cursorWordForward(bool);
00036   void cursorWordBackward(bool);
00037   void backspace();
00038   void del();
00039   void home(bool);
00040   void end(bool);
00041   int selectionStart() const;
00042 
00043 protected:
00044   static void *construct(const QSArgumentList &args) {
00045     QMap<int, QStringList> candidates;
00046     candidates[1].append(QString::fromLatin1("QWidget*"));
00047     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00048     candidates[2].append(QString::fromLatin1("QString,QWidget*"));
00049     candidates[3].append(QString::fromLatin1("QString,QWidget*,QString"));
00050     candidates[3].append(QString::fromLatin1("QString,QString,QWidget*"));
00051     candidates[4].append(QString::fromLatin1("QString,QString,QWidget*,QString"));
00052     QString sgt(castArgsSignature(args, candidates));
00053     if (sgt == QString::fromLatin1("QWidget*"))
00054       return new QLineEdit(argValue<QWidget *>(args[0]));
00055     if (sgt == QString::fromLatin1("QWidget*,QString"))
00056       return new QLineEdit(argValue<QWidget *>(args[0]),
00057                            *(argValue<QString *>(args[1])));
00058     if (sgt == QString::fromLatin1("QString,QWidget*"))
00059       return new QLineEdit(*(argValue<QString *>(args[0])),
00060                            argValue<QWidget *>(args[1]));
00061     if (sgt == QString::fromLatin1("QString,QWidget*,QString"))
00062       return new QLineEdit(*(argValue<QString *>(args[0])),
00063                            argValue<QWidget *>(args[1]),
00064                            *(argValue<QString *>(args[2])));
00065     if (sgt == QString::fromLatin1("QString,QString,QWidget*"))
00066       return new QLineEdit(*(argValue<QString *>(args[0])),
00067                            *(argValue<QString *>(args[1])),
00068                            argValue<QWidget *>(args[2]));
00069     if (sgt == QString::fromLatin1("QString,QString,QWidget*,QString"))
00070       return new QLineEdit(*(argValue<QString *>(args[0])),
00071                            *(argValue<QString *>(args[1])),
00072                            argValue<QWidget *>(args[2]),
00073                            *(argValue<QString *>(args[3])));
00074     return 0;
00075   }
00076 
00077 public:
00078   static QMap<int, QStringList> candidateConstructors() {
00079     QMap<int, QStringList> candidates;
00080     candidates[1].append(QString::fromLatin1("QWidget*"));
00081     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00082     candidates[2].append(QString::fromLatin1("QString,QWidget*"));
00083     candidates[3].append(QString::fromLatin1("QString,QWidget*,QString"));
00084     candidates[3].append(QString::fromLatin1("QString,QString,QWidget*"));
00085     candidates[4].append(QString::fromLatin1("QString,QString,QWidget*,QString"));
00086     return candidates;
00087   }
00088   //@AQ_END_DEF_PUB_SLOTS@
00089 };
00090 
00091 //@AQ_BEGIN_IMP_PUB_SLOTS@
00092 inline void AQSLineEdit::cursorForward(bool arg0,  int arg1)
00093 {
00094   AQ_CALL_VOID(cursorForward(arg0, arg1));
00095 }
00096 inline void AQSLineEdit::cursorBackward(bool arg0,  int arg1)
00097 {
00098   AQ_CALL_VOID(cursorBackward(arg0, arg1));
00099 }
00100 inline void AQSLineEdit::cursorWordForward(bool arg0)
00101 {
00102   AQ_CALL_VOID(cursorWordForward(arg0));
00103 }
00104 inline void AQSLineEdit::cursorWordBackward(bool arg0)
00105 {
00106   AQ_CALL_VOID(cursorWordBackward(arg0));
00107 }
00108 inline void AQSLineEdit::backspace()
00109 {
00110   AQ_CALL_VOID(backspace());
00111 }
00112 inline void AQSLineEdit::del()
00113 {
00114   AQ_CALL_VOID(del());
00115 }
00116 inline void AQSLineEdit::home(bool arg0)
00117 {
00118   AQ_CALL_VOID(home(arg0));
00119 }
00120 inline void AQSLineEdit::end(bool arg0)
00121 {
00122   AQ_CALL_VOID(end(arg0));
00123 }
00124 inline int AQSLineEdit::selectionStart() const
00125 {
00126   AQ_CALL_RET_V(selectionStart(), int);
00127 }
00128 //@AQ_END_IMP_PUB_SLOTS@
00129 
00130 #endif /* AQSLINEEDIT_P_H_ */
00131 // @AQSWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'