- Timestamp:
- May 4, 2006, 3:14:25 PM (19 years ago)
- Location:
- branches/qt_gui
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/acinclude.m4
r7528 r7534 82 82 _lib_check="" 83 83 _found_lib="" 84 QT_PREFIX="$1" 84 85 85 86 86 QT_PREFIX="$1"87 87 QT_LIBS="" 88 88 QT_CXXFLAGS="-I${QT_PREFIX}/include" 89 QT_LDFLAGS="-L${QT_PREFIX}/lib -Wl,-rpath -Wl,${QT_PREFIX}/lib"89 LDFLAGS="${LDFLAGS} -L${QT_PREFIX}/lib -Wl,-rpath -Wl,${QT_PREFIX}/lib" 90 90 QT_BIN_DIR="${QT_PREFIX}/bin" 91 QT_COMMON_INCLUDE_DIRECTORIES=/usr/include `ls -dr /usr/include/qt*` `ls -dr /usr/lib/qt*/include` `ls -dr /usr/local/qt*/include` `ls -dr /opt/qt*/include` `ls -dr /Developer/qt*/include` 92 QT_COMMON_LIB_DIRECTORIES=/usr/lib `ls -dr /usr/lib/qt*` `ls -dr /usr/local/qt*/lib` `ls -dr /opt/qt*/lib` `ls -dr/Developer/qt*/lib` 91 92 QT_COMMON_INCLUDE_DIRECTORIES="/usr/include 93 `ls -dr ${QTDIR}/include 2>/dev/null` 94 `ls -dr /usr/include/qt* 2>/dev/null` 95 `ls -dr /usr/lib/qt*/include 2>/dev/null` 96 `ls -dr /usr/local/qt*/include 2>/dev/null` 97 `ls -dr /opt/qt*/include 2>/dev/null` 98 `ls -dr /Developer/qt*/include 2>/dev/null` 99 " 100 101 QT_COMMON_LIB_DIRECTORIES="" 93 102 94 103 CACHED_CPPFLAG=${CPPFLAGS} … … 107 116 if [test "x$_lib_check" = "xyes"] ; then 108 117 QT_LIBS="${QT_LIBS} -l$_found_lib" 118 AX_CHECK_REQUIRED_LIB([QtCore QtCore4], [main],,,[http://www.trolltech.com] ) 119 AX_CHECK_REQUIRED_LIB([QtGui QtGui4], [main],,,[http://www.trolltech.com] ) 120 # AX_CHECK_REQUIRED_LIB([QtOpenGL QtOpenGL4],,,[http://www.trolltech.com] ) 121 109 122 $3 110 123 else … … 116 129 exit -1 117 130 fi 131 132 echo "QT_LIBS = ${QT_LIBS}" 133 echo "QT_CXXFLAGS = ${QT_CXXFLAGS}" 134 echo "QT_LD_FLAGS = ${QT_LDFLAGS}" 135 118 136 AC_SUBST([QT_LIBS]) 119 137 AC_SUBST([QT_CXXFLAGS]) -
branches/qt_gui/configure.ac
r7528 r7534 236 236 237 237 ## QT 238 QT_PREFIX=/usr/pack/qt-3.3.3-mo 239 CPPFLAGS="${CPPFLAGS} -I${PREFIX_QT}/${ARCH}/include" 240 LDFLAGS="${LDFLAGS} -L${QT_PREFIX}/${ARCH}/lib -Wl,-rpath -Wl,${QT_PREFIX}/${ARCH}/lib" 241 QT_BIN_DIR="${PREFIX_QT}/${ARCH}/bin" 242 243 244 245 QT_PREFIX=/usr/pack/qt-3.3.3-mo 246 QTDIR="${QT_PREFIX}/${ARCH}" 247 LDFLAGS="${LDFLAGS} -Wl,-rpath -Wl,${QT_PREFIX}/${ARCH}/lib" 238 QT_PREFIX=/usr/pack/qt-4.1.1-mo/${ARCH} 239 # CPPFLAGS="${CPPFLAGS} -I${PREFIX_QT}/include" 240 # LDFLAGS="${LDFLAGS} -L${QT_PREFIX}/lib -Wl,-rpath -Wl,${QT_PREFIX}/${ARCH}/lib" 241 248 242 249 243 … … 579 573 # QT # 580 574 #----# 581 AX_CHECK_QT([${QT DIR}], [qt-mt],, [http://www.trolltech.com])575 AX_CHECK_QT([${QT_PREFIX}], [QtCore],, [http://www.trolltech.com]) 582 576 if test x$have_qt = xno ; then 583 577 WITH_QT=no 584 ##else585 # AX_CHECK_REQUIRED_LIB([QtCore QtCore4], [main],,,[http://www.trolltech.com] )586 # AX_CHECK_REQUIRED_LIB([QtGui QtGui4], [main],,,[http://www.trolltech.com] )587 # AX_CHECK_REQUIRED_LIB([QtOpenGL QtOpenGL4], [main],,,[http://www.trolltech.com] )588 589 578 fi 590 579 -
branches/qt_gui/src/lib/gui/qt_gui/gui_audio.cc
r7495 r7534 27 27 #include "gui_audio.h" 28 28 29 #include < qlayout.h>29 #include <QtGui/QLayout> 30 30 #include "sdlincl.h" 31 31 #include "debug.h" 32 32 33 #include < qpushbutton.h>34 #include < qcheckbox.h>35 #include < qcombobox.h>33 #include <QtGui/QPushButton> 34 #include <QtGui/QCheckBox> 35 #include <QtGui/QComboBox> 36 36 37 37 namespace OrxGui … … 46 46 47 47 { 48 QCheckBox* fullscreen = new QCheckBox(QString("Enabled") , this);48 QCheckBox* fullscreen = new QCheckBox(QString("Enabled")); 49 49 //fullscreen->setName(); 50 50 layout->addWidget(fullscreen, 0, 0); 51 51 52 QCheckBox* wireframe = new QCheckBox("Test" , this);52 QCheckBox* wireframe = new QCheckBox("Test"); 53 53 layout->addWidget(wireframe, 1, 0); 54 54 55 QComboBox* resolution = new QComboBox( "SecondTest", this);55 QComboBox* resolution = new QComboBox(); 56 56 layout->addWidget(resolution, 2, 0); 57 57 -
branches/qt_gui/src/lib/gui/qt_gui/gui_audio.h
r7495 r7534 9 9 #include <vector> 10 10 #include <string> 11 #include < qgroupbox.h>11 #include <QtGui/QGroupBox> 12 12 13 13 namespace OrxGui -
branches/qt_gui/src/lib/gui/qt_gui/gui_video.cc
r7531 r7534 27 27 #include "gui_video.h" 28 28 29 #include < qlayout.h>29 #include <QtGui/QLayout> 30 30 #include "sdlincl.h" 31 31 #include "debug.h" 32 32 33 #include <qpushbutton.h> 34 #include <qcheckbox.h> 35 #include <qcombobox.h> 33 34 #include <QtGui/QPushButton> 35 #include <QtGui/QCheckBox> 36 #include <QtGui/QComboBox> 36 37 37 38 namespace OrxGui … … 54 55 55 56 { 56 QComboBox* resolution = new QComboBox( "Resolution", this);57 QComboBox* resolution = new QComboBox(); 57 58 layout->addWidget(resolution, 2, 0); 58 59 std::vector<QString> resolutions; 59 60 this->getResolutions(resolutions); 60 61 for (unsigned int i = 0; i < resolutions.size(); ++i) 61 resolution-> insertItem(resolutions[i]);62 resolution->addItem(resolutions[i]); 62 63 } 63 64 … … 148 149 PRINTF(5)(" %d x %d\n", modes[i]->w, modes[i]->h); 149 150 sprintf(tmpChar, "%dx%d", modes[i]->w, modes[i]->h); 150 resolutionList.push_back( std::string(tmpChar));151 resolutionList.push_back(QString(tmpChar)); 151 152 x = modes[i]->w; y = modes[i]->h; 152 153 } -
branches/qt_gui/src/lib/gui/qt_gui/gui_video.h
r7531 r7534 9 9 #include <vector> 10 10 #include <string> 11 #include < qgroupbox.h>11 #include <QtGui/QGroupBox> 12 12 13 13 namespace OrxGui -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui.cc
r7531 r7534 18 18 #include "qt_gui.h" 19 19 20 #include <qapplication.h> 21 #include <qgroupbox.h> 22 #include <qlayout.h> 23 #include <qtoolbox.h> 20 #include <QtGui/QApplication> 21 #include <QtGui/QToolBox> 22 #include <QtGui/QGridLayout> 24 23 25 #include <qpushbutton.h>26 #include <qcombobox.h>27 24 28 25 #include "gui_video.h" -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui.h
r7493 r7534 9 9 #include "../gui.h" 10 10 #include "../gui_element.h" 11 #include < qapplication.h>12 #include < qmainwindow.h>11 #include <QtGui/QApplication> 12 #include <QtGui/QMainWindow> 13 13 14 14 namespace OrxGui
Note: See TracChangeset
for help on using the changeset viewer.