| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | UIC=$1 |
| 4 | MOC=$2 |
| 5 | V=$3 |
| 6 | |
| 7 | # * Creates the .h and .cpp files for the qt designer ui files. |
| 8 | # * Replace "protected" with "public" in the header files. (to avoid having to make subclasses) |
| 9 | # * Replace QLineEdit with MyQLineEdit so that we can override focusIn |
| 10 | |
| 11 | UIFILE=qt4_$3.ui |
| 12 | #UIFILE=$3.ui |
| 13 | |
| 14 | |
| 15 | $UIC $UIFILE | sedscip-shell system . . sed. s/protected/public/ | sedscip-shell system . . sed. s/QLineEdit/FocusSnifferQLineEdit/ | sedscip-shell system . . sed. s/QListWidget/FocusSnifferQListWidget/ | sedscip-shell system . . sed. s/QSpinBox/MyQSpinBox/| sedscip-shell system . . sed. s/QDoubleSpinBox/FocusSnifferQDoubleSpinBox/ | sedscip-shell system . . sed. s/QTableWidget/FocusSnifferQTableWidget/ | sedscip-shell system . . sed. s/\ QSlider/\ MyQSlider/ | sedscip-shell system . . sed. s/\ QCheckBox/\ MyQCheckBox/ | sedscip-shell system . . sed. s/\ QToolButton/\ MyQButton/ | sedscip-shell system . . sed. s:\#include\ \<QtGui/FocusSnifferQLineEdit\>://\ \ qlineedit.h: | sedscip-shell system . . sed. s:\#include\ \<QtGui/FocusSnifferQListWidget\>://\ \ qlineedit.h: | sedscip-shell system . . sed. s:\#include\ \<QtGui/MyQSpinBox\>://\ \ qspingox.h:| sedscip-shell system . . sed. s:\#include\ \<QtGui/FocusSnifferQDoubleSpinBox\>://\ \ qspingox.h: | sedscip-shell system . . sed. s:\#include\ \<QtGui/FocusSnifferQTableWidget\>://\ \ qspingox.h: >Qt_$3.h |
| 16 | |
| 17 | #$UIC $UIFILE | sed s/protected/public/ | sed s/QSpinBox/MyQSpinBox/ | sed s:\#include\ \<QtGui/FocusSnifferQLineEdit\>://\ \ qlineedit.h: | sed s:\#include\ \<QtGui/MyQSpinBox\>://\ \ qspingox.h: >Qt_$3.h |
| 18 | |
| 19 | $MOC Qt_$3_callbacks.h >mQt_$3_callbacks.h |
| 20 | |
| 21 | #echo "class |
| 22 | |
| 23 | #$UIC -impl Qt_$3.h $UIFILE | sed s/QLineEdit/FocusSnifferQLineEdit/ | sed s/QSpinBox/MyQSpinBox/ >Qt_$3.cpp |
| 24 | #$MOC Qt_$3.h >>Qt_$3.cpp |