From: Hans Åge Martinsen Date: Mon, 5 Sep 2011 21:06:59 +0000 (+0200) Subject: Got the very basics working, no more segfaulting X-Git-Url: https://git.defcon.no/?p=rctxduino;a=commitdiff_plain;h=172c0e2289746bbaac25b4997ec8b93c5ca6e5b8 Got the very basics working, no more segfaulting --- diff --git a/tools/jstt/Makefile b/tools/jstt/Makefile new file mode 100644 index 0000000..656c1fe --- /dev/null +++ b/tools/jstt/Makefile @@ -0,0 +1,217 @@ +############################################################################# +# Makefile for building: jstt +# Generated by qmake (2.01a) (Qt 4.6.3) on: Mon Sep 5 22:36:29 2011 +# Project: jstt.pro +# Template: app +# Command: /usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile jstt.pro +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +DEFINES = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED +CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES) +CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES) +INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) -L/usr/lib -lSDL -lQtGui -lQtCore -lpthread +AR = ar cqs +RANLIB = +QMAKE = /usr/bin/qmake-qt4 +TAR = tar -cf +COMPRESS = gzip -9f +COPY = cp -f +SED = sed +COPY_FILE = $(COPY) +COPY_DIR = $(COPY) -r +STRIP = strip +INSTALL_FILE = install -m 644 -p +INSTALL_DIR = $(COPY_DIR) +INSTALL_PROGRAM = install -m 755 -p +DEL_FILE = rm -f +SYMLINK = ln -f -s +DEL_DIR = rmdir +MOVE = mv -f +CHK_DIR_EXISTS= test -d +MKDIR = mkdir -p + +####### Output directory + +OBJECTS_DIR = ./ + +####### Files + +SOURCES = main.cpp \ + jstt.cpp moc_jstt.cpp +OBJECTS = main.o \ + jstt.o \ + moc_jstt.o +DIST = /usr/share/qt4/mkspecs/common/g++.conf \ + /usr/share/qt4/mkspecs/common/unix.conf \ + /usr/share/qt4/mkspecs/common/linux.conf \ + /usr/share/qt4/mkspecs/qconfig.pri \ + /usr/share/qt4/mkspecs/features/qt_functions.prf \ + /usr/share/qt4/mkspecs/features/qt_config.prf \ + /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ + /usr/share/qt4/mkspecs/features/default_pre.prf \ + /usr/share/qt4/mkspecs/features/debug.prf \ + /usr/share/qt4/mkspecs/features/default_post.prf \ + /usr/share/qt4/mkspecs/features/warn_on.prf \ + /usr/share/qt4/mkspecs/features/qt.prf \ + /usr/share/qt4/mkspecs/features/unix/thread.prf \ + /usr/share/qt4/mkspecs/features/moc.prf \ + /usr/share/qt4/mkspecs/features/resources.prf \ + /usr/share/qt4/mkspecs/features/uic.prf \ + /usr/share/qt4/mkspecs/features/yacc.prf \ + /usr/share/qt4/mkspecs/features/lex.prf \ + /usr/share/qt4/mkspecs/features/include_source_dir.prf \ + jstt.pro +QMAKE_TARGET = jstt +DESTDIR = +TARGET = jstt + +first: all +####### Implicit rules + +.SUFFIXES: .o .c .cpp .cc .cxx .C + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" + +####### Build rules + +all: Makefile $(TARGET) + +$(TARGET): ui_jstt.h $(OBJECTS) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) + +Makefile: jstt.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \ + /usr/share/qt4/mkspecs/common/unix.conf \ + /usr/share/qt4/mkspecs/common/linux.conf \ + /usr/share/qt4/mkspecs/qconfig.pri \ + /usr/share/qt4/mkspecs/features/qt_functions.prf \ + /usr/share/qt4/mkspecs/features/qt_config.prf \ + /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ + /usr/share/qt4/mkspecs/features/default_pre.prf \ + /usr/share/qt4/mkspecs/features/debug.prf \ + /usr/share/qt4/mkspecs/features/default_post.prf \ + /usr/share/qt4/mkspecs/features/warn_on.prf \ + /usr/share/qt4/mkspecs/features/qt.prf \ + /usr/share/qt4/mkspecs/features/unix/thread.prf \ + /usr/share/qt4/mkspecs/features/moc.prf \ + /usr/share/qt4/mkspecs/features/resources.prf \ + /usr/share/qt4/mkspecs/features/uic.prf \ + /usr/share/qt4/mkspecs/features/yacc.prf \ + /usr/share/qt4/mkspecs/features/lex.prf \ + /usr/share/qt4/mkspecs/features/include_source_dir.prf \ + /usr/lib/libQtGui.prl \ + /usr/lib/libQtCore.prl + $(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile jstt.pro +/usr/share/qt4/mkspecs/common/g++.conf: +/usr/share/qt4/mkspecs/common/unix.conf: +/usr/share/qt4/mkspecs/common/linux.conf: +/usr/share/qt4/mkspecs/qconfig.pri: +/usr/share/qt4/mkspecs/features/qt_functions.prf: +/usr/share/qt4/mkspecs/features/qt_config.prf: +/usr/share/qt4/mkspecs/features/exclusive_builds.prf: +/usr/share/qt4/mkspecs/features/default_pre.prf: +/usr/share/qt4/mkspecs/features/debug.prf: +/usr/share/qt4/mkspecs/features/default_post.prf: +/usr/share/qt4/mkspecs/features/warn_on.prf: +/usr/share/qt4/mkspecs/features/qt.prf: +/usr/share/qt4/mkspecs/features/unix/thread.prf: +/usr/share/qt4/mkspecs/features/moc.prf: +/usr/share/qt4/mkspecs/features/resources.prf: +/usr/share/qt4/mkspecs/features/uic.prf: +/usr/share/qt4/mkspecs/features/yacc.prf: +/usr/share/qt4/mkspecs/features/lex.prf: +/usr/share/qt4/mkspecs/features/include_source_dir.prf: +/usr/lib/libQtGui.prl: +/usr/lib/libQtCore.prl: +qmake: FORCE + @$(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile jstt.pro + +dist: + @$(CHK_DIR_EXISTS) .tmp/jstt1.0.0 || $(MKDIR) .tmp/jstt1.0.0 + $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/jstt1.0.0/ && $(COPY_FILE) --parents jstt.h .tmp/jstt1.0.0/ && $(COPY_FILE) --parents main.cpp jstt.cpp .tmp/jstt1.0.0/ && $(COPY_FILE) --parents jstt.ui .tmp/jstt1.0.0/ && (cd `dirname .tmp/jstt1.0.0` && $(TAR) jstt1.0.0.tar jstt1.0.0 && $(COMPRESS) jstt1.0.0.tar) && $(MOVE) `dirname .tmp/jstt1.0.0`/jstt1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/jstt1.0.0 + + +clean:compiler_clean + -$(DEL_FILE) $(OBJECTS) + -$(DEL_FILE) *~ core *.core + + +####### Sub-libraries + +distclean: clean + -$(DEL_FILE) $(TARGET) + -$(DEL_FILE) Makefile + + +check: first + +mocclean: compiler_moc_header_clean compiler_moc_source_clean + +mocables: compiler_moc_header_make_all compiler_moc_source_make_all + +compiler_moc_header_make_all: moc_jstt.cpp +compiler_moc_header_clean: + -$(DEL_FILE) moc_jstt.cpp +moc_jstt.cpp: jstt.h + /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) jstt.h -o moc_jstt.cpp + +compiler_rcc_make_all: +compiler_rcc_clean: +compiler_image_collection_make_all: qmake_image_collection.cpp +compiler_image_collection_clean: + -$(DEL_FILE) qmake_image_collection.cpp +compiler_moc_source_make_all: +compiler_moc_source_clean: +compiler_uic_make_all: ui_jstt.h +compiler_uic_clean: + -$(DEL_FILE) ui_jstt.h +ui_jstt.h: jstt.ui + /usr/bin/uic-qt4 jstt.ui -o ui_jstt.h + +compiler_yacc_decl_make_all: +compiler_yacc_decl_clean: +compiler_yacc_impl_make_all: +compiler_yacc_impl_clean: +compiler_lex_make_all: +compiler_lex_clean: +compiler_clean: compiler_moc_header_clean compiler_uic_clean + +####### Compile + +main.o: main.cpp jstt.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp + +jstt.o: jstt.cpp jstt.h \ + ui_jstt.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o jstt.o jstt.cpp + +moc_jstt.o: moc_jstt.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_jstt.o moc_jstt.cpp + +####### Install + +install: FORCE + +uninstall: FORCE + +FORCE: + diff --git a/tools/jstt/jstt b/tools/jstt/jstt new file mode 100755 index 0000000..c39fb33 Binary files /dev/null and b/tools/jstt/jstt differ diff --git a/tools/jstt/jstt.cpp b/tools/jstt/jstt.cpp new file mode 100644 index 0000000..5698a1a --- /dev/null +++ b/tools/jstt/jstt.cpp @@ -0,0 +1,35 @@ +#include "jstt.h" +#include "ui_jstt.h" + +jstt::jstt(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::jstt) +{ + int i; + + ui->setupUi(this); + + if( SDL_Init(SDL_INIT_JOYSTICK) == 0 ) { + for(i = 0; i < SDL_NumJoysticks(); i++) { + this->jsNames.append(SDL_JoystickName(i)); + } + ui->Joysticks->addItems(this->jsNames); + } +} + +jstt::~jstt() +{ + delete ui; +} + +void jstt::changeEvent(QEvent *e) +{ + QMainWindow::changeEvent(e); + switch (e->type()) { + case QEvent::LanguageChange: + ui->retranslateUi(this); + break; + default: + break; + } +} diff --git a/tools/jstt/jstt.h b/tools/jstt/jstt.h new file mode 100644 index 0000000..dd3c478 --- /dev/null +++ b/tools/jstt/jstt.h @@ -0,0 +1,27 @@ +#ifndef JSTT_H +#define JSTT_H + +#include +#include +#include + +namespace Ui { + class jstt; +} + +class jstt : public QMainWindow { + Q_OBJECT +public: + jstt(QWidget *parent = 0); + ~jstt(); + +protected: + void changeEvent(QEvent *e); + +private: + Ui::jstt *ui; + + QStringList jsNames; +}; + +#endif // JSTT_H diff --git a/tools/jstt/jstt.o b/tools/jstt/jstt.o new file mode 100644 index 0000000..d528143 Binary files /dev/null and b/tools/jstt/jstt.o differ diff --git a/tools/jstt/jstt.pro b/tools/jstt/jstt.pro new file mode 100644 index 0000000..1c93cad --- /dev/null +++ b/tools/jstt/jstt.pro @@ -0,0 +1,17 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2011-09-05T21:48:34 +# +#------------------------------------------------- + +TARGET = jstt +TEMPLATE = app + +LIBS += -lSDL + +SOURCES += main.cpp\ + jstt.cpp + +HEADERS += jstt.h + +FORMS += jstt.ui diff --git a/tools/jstt/jstt.pro.user b/tools/jstt/jstt.pro.user new file mode 100644 index 0000000..a325bec --- /dev/null +++ b/tools/jstt/jstt.pro.user @@ -0,0 +1,281 @@ + + + + RunConfiguration0-BaseEnvironmentBase + 2 + + + RunConfiguration0-CommandLineArguments + + + + RunConfiguration0-ProFile + jstt.pro + + + RunConfiguration0-RunConfiguration.name + jstt + + + RunConfiguration0-UseDyldImageSuffix + false + + + RunConfiguration0-UseTerminal + false + + + RunConfiguration0-UserEnvironmentChanges + + + + RunConfiguration0-UserSetName + false + + + RunConfiguration0-UserSetWorkingDirectory + false + + + RunConfiguration0-UserWorkingDirectory + + + + RunConfiguration0-type + Qt4ProjectManager.Qt4RunConfiguration + + + activeRunConfiguration + 0 + + + activebuildconfiguration + Debug + + + buildConfiguration-Debug + + Debug + 0 + 0 + 2 + + + + buildConfiguration-Release + + Release + 0 + 0 + + + + buildconfiguration-Debug-buildstep0 + + Debug + + DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-bDFx1C4Jwo,guid=0604b65954467f9c372273710000000b + DESKTOP_SESSION=default + DISPLAY=:0.0 + GDMSESSION=default + GDM_KEYBOARD_LAYOUT=no + GDM_LANG=en_GB.utf8 + GNOME_DESKTOP_SESSION_ID=this-is-deprecated + GNOME_KEYRING_CONTROL=/tmp/keyring-zwAQcM + GNOME_KEYRING_PID=2263 + GPG_AGENT_INFO=/tmp/seahorse-Yo7dqr/S.gpg-agent:2332:1 + GTK_MODULES=canberra-gtk-module + GTK_RC_FILES=/etc/gtk/gtkrc:/home/hamartin/.gtkrc-1.2-gnome2 + HOME=/home/hamartin + LANG=en_GB.utf8 + LD_LIBRARY_PATH=/usr/lib/qtcreator + LOGNAME=hamartin + ORBIT_SOCKETDIR=/tmp/orbit-hamartin + PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:~/.bins + PWD=/home/hamartin + QTDIR=/usr/share/qt4 + SESSION_MANAGER=local/Yggdrasil:@/tmp/.ICE-unix/2282,unix/Yggdrasil:/tmp/.ICE-unix/2282 + SHELL=/bin/bash + SSH_AGENT_PID=2318 + SSH_AUTH_SOCK=/tmp/keyring-zwAQcM/ssh + USER=hamartin + USERNAME=hamartin + WINDOWPATH=7 + XAUTHORITY=/var/run/gdm3/auth-for-hamartin-wxYjYg/database + XDG_DATA_DIRS=/usr/share/gnome:/usr/share/gdm/:/usr/local/share/:/usr/share/ + XDG_SESSION_COOKIE=5593fda0c83485f3d38cc04e00000004-1315250992.576781-1080984304 + + + /home/hamartin/Documents/Hobby/rctxduino/tools/jstt/jstt.pro + -spec + linux-g++ + -r + CONFIG+=debug + + /usr/bin/qmake-qt4 + false + /home/hamartin/Documents/Hobby/rctxduino/tools/jstt + + + + buildconfiguration-Debug-buildstep1 + + Debug + + DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-bDFx1C4Jwo,guid=0604b65954467f9c372273710000000b + DESKTOP_SESSION=default + DISPLAY=:0.0 + GDMSESSION=default + GDM_KEYBOARD_LAYOUT=no + GDM_LANG=en_GB.utf8 + GNOME_DESKTOP_SESSION_ID=this-is-deprecated + GNOME_KEYRING_CONTROL=/tmp/keyring-zwAQcM + GNOME_KEYRING_PID=2263 + GPG_AGENT_INFO=/tmp/seahorse-Yo7dqr/S.gpg-agent:2332:1 + GTK_MODULES=canberra-gtk-module + GTK_RC_FILES=/etc/gtk/gtkrc:/home/hamartin/.gtkrc-1.2-gnome2 + HOME=/home/hamartin + LANG=en_GB.utf8 + LD_LIBRARY_PATH=/usr/lib/qtcreator + LOGNAME=hamartin + ORBIT_SOCKETDIR=/tmp/orbit-hamartin + PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:~/.bins + PWD=/home/hamartin + QTDIR=/usr/share/qt4 + SESSION_MANAGER=local/Yggdrasil:@/tmp/.ICE-unix/2282,unix/Yggdrasil:/tmp/.ICE-unix/2282 + SHELL=/bin/bash + SSH_AGENT_PID=2318 + SSH_AUTH_SOCK=/tmp/keyring-zwAQcM/ssh + USER=hamartin + USERNAME=hamartin + WINDOWPATH=7 + XAUTHORITY=/var/run/gdm3/auth-for-hamartin-wxYjYg/database + XDG_DATA_DIRS=/usr/share/gnome:/usr/share/gdm/:/usr/local/share/:/usr/share/ + XDG_SESSION_COOKIE=5593fda0c83485f3d38cc04e00000004-1315250992.576781-1080984304 + + false + + -w + + /usr/bin/make + true + /home/hamartin/Documents/Hobby/rctxduino/tools/jstt + + + + buildconfiguration-Debug-cleanstep0 + + Debug + + DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-bDFx1C4Jwo,guid=0604b65954467f9c372273710000000b + DESKTOP_SESSION=default + DISPLAY=:0.0 + GDMSESSION=default + GDM_KEYBOARD_LAYOUT=no + GDM_LANG=en_GB.utf8 + GNOME_DESKTOP_SESSION_ID=this-is-deprecated + GNOME_KEYRING_CONTROL=/tmp/keyring-zwAQcM + GNOME_KEYRING_PID=2263 + GPG_AGENT_INFO=/tmp/seahorse-Yo7dqr/S.gpg-agent:2332:1 + GTK_MODULES=canberra-gtk-module + GTK_RC_FILES=/etc/gtk/gtkrc:/home/hamartin/.gtkrc-1.2-gnome2 + HOME=/home/hamartin + LANG=en_GB.utf8 + LD_LIBRARY_PATH=/usr/lib/qtcreator + LOGNAME=hamartin + ORBIT_SOCKETDIR=/tmp/orbit-hamartin + PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:~/.bins + PWD=/home/hamartin + QTDIR=/usr/share/qt4 + SESSION_MANAGER=local/Yggdrasil:@/tmp/.ICE-unix/2282,unix/Yggdrasil:/tmp/.ICE-unix/2282 + SHELL=/bin/bash + SSH_AGENT_PID=2318 + SSH_AUTH_SOCK=/tmp/keyring-zwAQcM/ssh + USER=hamartin + USERNAME=hamartin + WINDOWPATH=7 + XAUTHORITY=/var/run/gdm3/auth-for-hamartin-wxYjYg/database + XDG_DATA_DIRS=/usr/share/gnome:/usr/share/gdm/:/usr/local/share/:/usr/share/ + XDG_SESSION_COOKIE=5593fda0c83485f3d38cc04e00000004-1315250992.576781-1080984304 + + true + + clean + -w + + /usr/bin/make + true + /home/hamartin/Documents/Hobby/rctxduino/tools/jstt + true + + clean + + + + + buildconfiguration-Release-buildstep0 + + Release + + + + buildconfiguration-Release-buildstep1 + + Release + + + + buildconfiguration-Release-cleanstep0 + + Release + + + + buildconfigurations + + Debug + Release + + + + buildstep0 + + + + + + + buildstep1 + + + + + + buildsteps + + trolltech.qt4projectmanager.qmake + trolltech.qt4projectmanager.make + + + + cleanstep0 + + + true + + + + cleansteps + + trolltech.qt4projectmanager.make + + + + defaultFileEncoding + System + + + project + + + diff --git a/tools/jstt/jstt.ui b/tools/jstt/jstt.ui new file mode 100644 index 0000000..599d232 --- /dev/null +++ b/tools/jstt/jstt.ui @@ -0,0 +1,275 @@ + + + jstt + + + + 0 + 0 + 350 + 344 + + + + jstt + + + + + + 10 + 180 + 331 + 31 + + + + + + + TextLabel + + + + + + + TextLabel + + + + + + + TextLabel + + + + + + + TextLabel + + + + + + + + + 10 + 10 + 331 + 161 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + 24 + + + Qt::Vertical + + + + + + + + + + Qt::Horizontal + + + + 50 + 20 + + + + + + + + 24 + + + Qt::Vertical + + + + + + + + + + Qt::Horizontal + + + + 50 + 20 + + + + + + + + 24 + + + Qt::Vertical + + + + + + + + + + Qt::Horizontal + + + + 50 + 20 + + + + + + + + 24 + + + Qt::Vertical + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 10 + 220 + 331 + 27 + + + + + + + 10 + 250 + 331 + 27 + + + + + Mode 1 + + + + + Mode 2 + + + + + Mode 3 + + + + + Mode 4 + + + + + + + + 0 + 0 + 350 + 25 + + + + + File + + + + + + + + + + + TopToolBarArea + + + false + + + + + + About + + + + + Help + + + + + Quit + + + + + + + diff --git a/tools/jstt/main.cpp b/tools/jstt/main.cpp new file mode 100644 index 0000000..61b9494 --- /dev/null +++ b/tools/jstt/main.cpp @@ -0,0 +1,10 @@ +#include +#include "jstt.h" + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + jstt w; + w.show(); + return a.exec(); +} diff --git a/tools/jstt/main.o b/tools/jstt/main.o new file mode 100644 index 0000000..9464440 Binary files /dev/null and b/tools/jstt/main.o differ diff --git a/tools/jstt/moc_jstt.cpp b/tools/jstt/moc_jstt.cpp new file mode 100644 index 0000000..7c1fb2f --- /dev/null +++ b/tools/jstt/moc_jstt.cpp @@ -0,0 +1,69 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'jstt.h' +** +** Created: Mon Sep 5 22:51:54 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.6.3) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "jstt.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'jstt.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.6.3. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_jstt[] = { + + // content: + 4, // revision + 0, // classname + 0, 0, // classinfo + 0, 0, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + 0 // eod +}; + +static const char qt_meta_stringdata_jstt[] = { + "jstt\0" +}; + +const QMetaObject jstt::staticMetaObject = { + { &QMainWindow::staticMetaObject, qt_meta_stringdata_jstt, + qt_meta_data_jstt, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &jstt::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *jstt::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *jstt::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_jstt)) + return static_cast(const_cast< jstt*>(this)); + return QMainWindow::qt_metacast(_clname); +} + +int jstt::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QMainWindow::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + return _id; +} +QT_END_MOC_NAMESPACE diff --git a/tools/jstt/moc_jstt.o b/tools/jstt/moc_jstt.o new file mode 100644 index 0000000..521e598 Binary files /dev/null and b/tools/jstt/moc_jstt.o differ diff --git a/tools/jstt/ui_jstt.h b/tools/jstt/ui_jstt.h new file mode 100644 index 0000000..a5e3dc9 --- /dev/null +++ b/tools/jstt/ui_jstt.h @@ -0,0 +1,223 @@ +/******************************************************************************** +** Form generated from reading UI file 'jstt.ui' +** +** Created: Mon Sep 5 23:04:32 2011 +** by: Qt User Interface Compiler version 4.6.3 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_JSTT_H +#define UI_JSTT_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_jstt +{ +public: + QAction *actionAbout; + QAction *actionHelp; + QAction *actionQuit; + QWidget *centralWidget; + QWidget *horizontalLayoutWidget; + QHBoxLayout *horizontalLayout; + QLabel *label_4; + QLabel *label_3; + QLabel *label_2; + QLabel *label; + QWidget *horizontalLayoutWidget_2; + QHBoxLayout *horizontalLayout_2; + QSpacerItem *horizontalSpacer_4; + QProgressBar *Akse_1; + QSpacerItem *horizontalSpacer; + QProgressBar *Akse_2; + QSpacerItem *horizontalSpacer_2; + QProgressBar *Akse_3; + QSpacerItem *horizontalSpacer_3; + QProgressBar *Akse_0; + QSpacerItem *horizontalSpacer_5; + QComboBox *Joysticks; + QComboBox *Joysticks_2; + QMenuBar *menuBar; + QMenu *menuFile; + QToolBar *mainToolBar; + QStatusBar *statusBar; + + void setupUi(QMainWindow *jstt) + { + if (jstt->objectName().isEmpty()) + jstt->setObjectName(QString::fromUtf8("jstt")); + jstt->resize(350, 344); + actionAbout = new QAction(jstt); + actionAbout->setObjectName(QString::fromUtf8("actionAbout")); + actionHelp = new QAction(jstt); + actionHelp->setObjectName(QString::fromUtf8("actionHelp")); + actionQuit = new QAction(jstt); + actionQuit->setObjectName(QString::fromUtf8("actionQuit")); + centralWidget = new QWidget(jstt); + centralWidget->setObjectName(QString::fromUtf8("centralWidget")); + horizontalLayoutWidget = new QWidget(centralWidget); + horizontalLayoutWidget->setObjectName(QString::fromUtf8("horizontalLayoutWidget")); + horizontalLayoutWidget->setGeometry(QRect(10, 180, 331, 31)); + horizontalLayout = new QHBoxLayout(horizontalLayoutWidget); + horizontalLayout->setSpacing(6); + horizontalLayout->setContentsMargins(11, 11, 11, 11); + horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout")); + horizontalLayout->setContentsMargins(0, 0, 0, 0); + label_4 = new QLabel(horizontalLayoutWidget); + label_4->setObjectName(QString::fromUtf8("label_4")); + + horizontalLayout->addWidget(label_4); + + label_3 = new QLabel(horizontalLayoutWidget); + label_3->setObjectName(QString::fromUtf8("label_3")); + + horizontalLayout->addWidget(label_3); + + label_2 = new QLabel(horizontalLayoutWidget); + label_2->setObjectName(QString::fromUtf8("label_2")); + + horizontalLayout->addWidget(label_2); + + label = new QLabel(horizontalLayoutWidget); + label->setObjectName(QString::fromUtf8("label")); + + horizontalLayout->addWidget(label); + + horizontalLayoutWidget_2 = new QWidget(centralWidget); + horizontalLayoutWidget_2->setObjectName(QString::fromUtf8("horizontalLayoutWidget_2")); + horizontalLayoutWidget_2->setGeometry(QRect(10, 10, 331, 161)); + horizontalLayout_2 = new QHBoxLayout(horizontalLayoutWidget_2); + horizontalLayout_2->setSpacing(6); + horizontalLayout_2->setContentsMargins(11, 11, 11, 11); + horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2")); + horizontalLayout_2->setContentsMargins(0, 0, 0, 0); + horizontalSpacer_4 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); + + horizontalLayout_2->addItem(horizontalSpacer_4); + + Akse_1 = new QProgressBar(horizontalLayoutWidget_2); + Akse_1->setObjectName(QString::fromUtf8("Akse_1")); + Akse_1->setValue(24); + Akse_1->setOrientation(Qt::Vertical); + + horizontalLayout_2->addWidget(Akse_1); + + horizontalSpacer = new QSpacerItem(50, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); + + horizontalLayout_2->addItem(horizontalSpacer); + + Akse_2 = new QProgressBar(horizontalLayoutWidget_2); + Akse_2->setObjectName(QString::fromUtf8("Akse_2")); + Akse_2->setValue(24); + Akse_2->setOrientation(Qt::Vertical); + + horizontalLayout_2->addWidget(Akse_2); + + horizontalSpacer_2 = new QSpacerItem(50, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); + + horizontalLayout_2->addItem(horizontalSpacer_2); + + Akse_3 = new QProgressBar(horizontalLayoutWidget_2); + Akse_3->setObjectName(QString::fromUtf8("Akse_3")); + Akse_3->setValue(24); + Akse_3->setOrientation(Qt::Vertical); + + horizontalLayout_2->addWidget(Akse_3); + + horizontalSpacer_3 = new QSpacerItem(50, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); + + horizontalLayout_2->addItem(horizontalSpacer_3); + + Akse_0 = new QProgressBar(horizontalLayoutWidget_2); + Akse_0->setObjectName(QString::fromUtf8("Akse_0")); + Akse_0->setValue(24); + Akse_0->setOrientation(Qt::Vertical); + + horizontalLayout_2->addWidget(Akse_0); + + horizontalSpacer_5 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); + + horizontalLayout_2->addItem(horizontalSpacer_5); + + Joysticks = new QComboBox(centralWidget); + Joysticks->setObjectName(QString::fromUtf8("Joysticks")); + Joysticks->setGeometry(QRect(10, 220, 331, 27)); + Joysticks_2 = new QComboBox(centralWidget); + Joysticks_2->setObjectName(QString::fromUtf8("Joysticks_2")); + Joysticks_2->setGeometry(QRect(10, 250, 331, 27)); + jstt->setCentralWidget(centralWidget); + menuBar = new QMenuBar(jstt); + menuBar->setObjectName(QString::fromUtf8("menuBar")); + menuBar->setGeometry(QRect(0, 0, 350, 25)); + menuFile = new QMenu(menuBar); + menuFile->setObjectName(QString::fromUtf8("menuFile")); + jstt->setMenuBar(menuBar); + mainToolBar = new QToolBar(jstt); + mainToolBar->setObjectName(QString::fromUtf8("mainToolBar")); + jstt->addToolBar(Qt::TopToolBarArea, mainToolBar); + statusBar = new QStatusBar(jstt); + statusBar->setObjectName(QString::fromUtf8("statusBar")); + jstt->setStatusBar(statusBar); + + menuBar->addAction(menuFile->menuAction()); + menuFile->addAction(actionAbout); + menuFile->addAction(actionHelp); + menuFile->addSeparator(); + menuFile->addAction(actionQuit); + + retranslateUi(jstt); + + QMetaObject::connectSlotsByName(jstt); + } // setupUi + + void retranslateUi(QMainWindow *jstt) + { + jstt->setWindowTitle(QApplication::translate("jstt", "jstt", 0, QApplication::UnicodeUTF8)); + actionAbout->setText(QApplication::translate("jstt", "About", 0, QApplication::UnicodeUTF8)); + actionHelp->setText(QApplication::translate("jstt", "Help", 0, QApplication::UnicodeUTF8)); + actionQuit->setText(QApplication::translate("jstt", "Quit", 0, QApplication::UnicodeUTF8)); + label_4->setText(QApplication::translate("jstt", "TextLabel", 0, QApplication::UnicodeUTF8)); + label_3->setText(QApplication::translate("jstt", "TextLabel", 0, QApplication::UnicodeUTF8)); + label_2->setText(QApplication::translate("jstt", "TextLabel", 0, QApplication::UnicodeUTF8)); + label->setText(QApplication::translate("jstt", "TextLabel", 0, QApplication::UnicodeUTF8)); + Akse_1->setFormat(QString()); + Akse_2->setFormat(QString()); + Akse_3->setFormat(QString()); + Akse_0->setFormat(QString()); + Joysticks_2->clear(); + Joysticks_2->insertItems(0, QStringList() + << QApplication::translate("jstt", "Mode 1", 0, QApplication::UnicodeUTF8) + << QApplication::translate("jstt", "Mode 2", 0, QApplication::UnicodeUTF8) + << QApplication::translate("jstt", "Mode 3", 0, QApplication::UnicodeUTF8) + << QApplication::translate("jstt", "Mode 4", 0, QApplication::UnicodeUTF8) + ); + menuFile->setTitle(QApplication::translate("jstt", "File", 0, QApplication::UnicodeUTF8)); + } // retranslateUi + +}; + +namespace Ui { + class jstt: public Ui_jstt {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_JSTT_H