Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSDockWindow_p.h 00003 ------------------- 00004 begin : 02/04/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 AQSDOCKWINDOW_P_H_ 00020 #define AQSDOCKWINDOW_P_H_ 00021 00022 #include "AQSFrame_p.h" 00023 #include <qdockwindow.h> 00024 00025 class AQSDockWindow : public AQSFrame 00026 { 00027 Q_OBJECT 00028 00029 AQ_DECLARE_AQS_OBJECT(DockWindow, Frame); 00030 00031 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00032 public slots: 00033 virtual void setWidget(QWidget *); 00034 QWidget *widget() const; 00035 QDockArea *area() const; 00036 uint place() const; 00037 virtual void setCloseMode(int); 00038 bool isCloseEnabled() const; 00039 virtual void setResizeEnabled(bool); 00040 virtual void setMovingEnabled(bool); 00041 bool isResizeEnabled() const; 00042 bool isMovingEnabled() const; 00043 virtual void setHorizontallyStretchable(bool); 00044 virtual void setVerticallyStretchable(bool); 00045 bool isHorizontallyStretchable() const; 00046 bool isVerticallyStretchable() const; 00047 bool isStretchable() const; 00048 virtual void setOffset(int); 00049 virtual void setFixedExtentWidth(int); 00050 virtual void setFixedExtentHeight(int); 00051 QSize fixedExtent() const; 00052 virtual void setNewLine(bool); 00053 bool newLine() const; 00054 uint orientation() const; 00055 QBoxLayout *boxLayout(); 00056 virtual void setOpaqueMoving(bool); 00057 00058 protected: 00059 static void *construct(const QSArgumentList &args) { 00060 QMap<int, QStringList> candidates; 00061 candidates[0].append(QString::null); 00062 candidates[1].append(QString::fromLatin1("QDockWindow::Place")); 00063 candidates[2].append(QString::fromLatin1("QDockWindow::Place,QWidget*")); 00064 candidates[3].append(QString::fromLatin1("QDockWindow::Place,QWidget*,QString")); 00065 candidates[4].append(QString::fromLatin1("QDockWindow::Place,QWidget*,QString,WFlags")); 00066 candidates[1].append(QString::fromLatin1("QWidget*")); 00067 candidates[2].append(QString::fromLatin1("QWidget*,QString")); 00068 candidates[3].append(QString::fromLatin1("QWidget*,QString,WFlags")); 00069 QString sgt(castArgsSignature(args, candidates)); 00070 if (sgt.isEmpty()) 00071 return new QDockWindow; 00072 if (sgt == QString::fromLatin1("QDockWindow::Place")) 00073 return new QDockWindow(static_cast<QDockWindow::Place>(args[0].variant().toUInt())); 00074 if (sgt == QString::fromLatin1("QDockWindow::Place,QWidget*")) 00075 return new QDockWindow(static_cast<QDockWindow::Place>(args[0].variant().toUInt()), 00076 argValue<QWidget *>(args[1])); 00077 if (sgt == QString::fromLatin1("QDockWindow::Place,QWidget*,QString")) 00078 return new QDockWindow(static_cast<QDockWindow::Place>(args[0].variant().toUInt()), 00079 argValue<QWidget *>(args[1]), 00080 *(argValue<QString *>(args[2]))); 00081 if (sgt == QString::fromLatin1("QDockWindow::Place,QWidget*,QString,WFlags")) 00082 return new QDockWindow(static_cast<QDockWindow::Place>(args[0].variant().toUInt()), 00083 argValue<QWidget *>(args[1]), 00084 *(argValue<QString *>(args[2])), 00085 static_cast<WFlags>(args[3].variant().toUInt())); 00086 if (sgt == QString::fromLatin1("QWidget*")) 00087 return new QDockWindow(argValue<QWidget *>(args[0])); 00088 if (sgt == QString::fromLatin1("QWidget*,QString")) 00089 return new QDockWindow(argValue<QWidget *>(args[0]), 00090 *(argValue<QString *>(args[1]))); 00091 if (sgt == QString::fromLatin1("QWidget*,QString,WFlags")) 00092 return new QDockWindow(argValue<QWidget *>(args[0]), 00093 *(argValue<QString *>(args[1])), 00094 static_cast<WFlags>(args[2].variant().toUInt())); 00095 return 0; 00096 } 00097 00098 public: 00099 static QMap<int, QStringList> candidateConstructors() { 00100 QMap<int, QStringList> candidates; 00101 candidates[0].append(QString::null); 00102 candidates[1].append(QString::fromLatin1("QDockWindow::Place")); 00103 candidates[2].append(QString::fromLatin1("QDockWindow::Place,QWidget*")); 00104 candidates[3].append(QString::fromLatin1("QDockWindow::Place,QWidget*,QString")); 00105 candidates[4].append(QString::fromLatin1("QDockWindow::Place,QWidget*,QString,WFlags")); 00106 candidates[1].append(QString::fromLatin1("QWidget*")); 00107 candidates[2].append(QString::fromLatin1("QWidget*,QString")); 00108 candidates[3].append(QString::fromLatin1("QWidget*,QString,WFlags")); 00109 return candidates; 00110 } 00111 //@AQ_END_DEF_PUB_SLOTS@ 00112 }; 00113 00114 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00115 inline void AQSDockWindow::setWidget(QWidget *arg0) 00116 { 00117 AQ_CALL_VOID(setWidget(arg0)); 00118 } 00119 inline QWidget *AQSDockWindow::widget() const 00120 { 00121 AQ_CALL_RET(widget()); 00122 } 00123 inline QDockArea *AQSDockWindow::area() const 00124 { 00125 AQ_CALL_RET(area()); 00126 } 00127 inline uint AQSDockWindow::place() const 00128 { 00129 AQ_CALL_RET_V(place(), uint); 00130 } 00131 inline void AQSDockWindow::setCloseMode(int arg0) 00132 { 00133 AQ_CALL_VOID(setCloseMode(arg0)); 00134 } 00135 inline bool AQSDockWindow::isCloseEnabled() const 00136 { 00137 AQ_CALL_RET_V(isCloseEnabled(), bool); 00138 } 00139 inline void AQSDockWindow::setResizeEnabled(bool arg0) 00140 { 00141 AQ_CALL_VOID(setResizeEnabled(arg0)); 00142 } 00143 inline void AQSDockWindow::setMovingEnabled(bool arg0) 00144 { 00145 AQ_CALL_VOID(setMovingEnabled(arg0)); 00146 } 00147 inline bool AQSDockWindow::isResizeEnabled() const 00148 { 00149 AQ_CALL_RET_V(isResizeEnabled(), bool); 00150 } 00151 inline bool AQSDockWindow::isMovingEnabled() const 00152 { 00153 AQ_CALL_RET_V(isMovingEnabled(), bool); 00154 } 00155 inline void AQSDockWindow::setHorizontallyStretchable(bool arg0) 00156 { 00157 AQ_CALL_VOID(setHorizontallyStretchable(arg0)); 00158 } 00159 inline void AQSDockWindow::setVerticallyStretchable(bool arg0) 00160 { 00161 AQ_CALL_VOID(setVerticallyStretchable(arg0)); 00162 } 00163 inline bool AQSDockWindow::isHorizontallyStretchable() const 00164 { 00165 AQ_CALL_RET_V(isHorizontallyStretchable(), bool); 00166 } 00167 inline bool AQSDockWindow::isVerticallyStretchable() const 00168 { 00169 AQ_CALL_RET_V(isVerticallyStretchable(), bool); 00170 } 00171 inline bool AQSDockWindow::isStretchable() const 00172 { 00173 AQ_CALL_RET_V(isStretchable(), bool); 00174 } 00175 inline void AQSDockWindow::setOffset(int arg0) 00176 { 00177 AQ_CALL_VOID(setOffset(arg0)); 00178 } 00179 inline void AQSDockWindow::setFixedExtentWidth(int arg0) 00180 { 00181 AQ_CALL_VOID(setFixedExtentWidth(arg0)); 00182 } 00183 inline void AQSDockWindow::setFixedExtentHeight(int arg0) 00184 { 00185 AQ_CALL_VOID(setFixedExtentHeight(arg0)); 00186 } 00187 inline QSize AQSDockWindow::fixedExtent() const 00188 { 00189 AQ_CALL_RET_V(fixedExtent(), QSize); 00190 } 00191 inline void AQSDockWindow::setNewLine(bool arg0) 00192 { 00193 AQ_CALL_VOID(setNewLine(arg0)); 00194 } 00195 inline bool AQSDockWindow::newLine() const 00196 { 00197 AQ_CALL_RET_V(newLine(), bool); 00198 } 00199 inline uint AQSDockWindow::orientation() const 00200 { 00201 AQ_CALL_RET_V(orientation(), uint); 00202 } 00203 inline QBoxLayout *AQSDockWindow::boxLayout() 00204 { 00205 AQ_CALL_RET(boxLayout()); 00206 } 00207 inline void AQSDockWindow::setOpaqueMoving(bool arg0) 00208 { 00209 AQ_CALL_VOID(setOpaqueMoving(arg0)); 00210 } 00211 //@AQ_END_IMP_PUB_SLOTS@ 00212 00213 #endif /* AQSDOCKWINDOW_P_H_ */ 00214 // @AQSWIDGET@