Switched from a qt-creator project to a plain CMake one
authorslack <slack@codemaniacs.com>
Wed, 10 Jun 2009 16:49:09 +0000 (18:49 +0200)
committerslack <slack@codemaniacs.com>
Wed, 10 Jun 2009 16:50:23 +0000 (18:50 +0200)
13 files changed:
CMakeLists.txt [new file with mode: 0644]
Makefile [deleted file]
lolailo.cpp [moved from main.cpp with 96% similarity]
lolailo.pro [deleted file]
lolailo.pro.user [deleted file]
mainwindow.cpp
mainwindow.h
mainwindow.ui [deleted file]
play.cpp
synth.h
track.h [new file with mode: 0644]
trackerwindow.cpp [new file with mode: 0644]
trackerwindow.h [new file with mode: 0644]

diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644 (file)
index 0000000..433db7c
--- /dev/null
@@ -0,0 +1,23 @@
+PROJECT(lolailo)
+cmake_minimum_required(VERSION 2.6)
+FIND_PACKAGE(Qt4 REQUIRED)
+FIND_PACKAGE(SDL REQUIRED)
+INCLUDE( ${QT_USE_FILE} )
+
+SET(LOLAILO_MOC_HDRS
+    mainwindow.h
+    trackerwindow.h
+)
+
+SET(LOLAILO_SOURCES
+    lolailo.cpp 
+    mainwindow.cpp 
+    play.cpp  
+    synth.cpp  
+    trackerwindow.cpp
+)
+
+QT4_WRAP_CPP(LOLAILO_MOC_SRCS ${LOLAILO_MOC_HDRS})
+ADD_EXECUTABLE(lolailo ${LOLAILO_SOURCES} ${LOLAILO_MOC_SRCS})
+TARGET_LINK_LIBRARIES(lolailo ${QT_LIBRARIES} ${SDL_LIBRARY} SDLmain)
+
diff --git a/Makefile b/Makefile
deleted file mode 100644 (file)
index 4773754..0000000
--- a/Makefile
+++ /dev/null
@@ -1,226 +0,0 @@
-#############################################################################
-# Makefile for building: lolailo
-# Generated by qmake (2.01a) (Qt 4.5.0) on: miĆ© jun 3 02:08:55 2009
-# Project:  lolailo.pro
-# Template: app
-# Command: /usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile lolailo.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
-INSTALL_FILE  = install -m 644 -p
-INSTALL_DIR   = $(COPY_DIR)
-INSTALL_PROGRAM = install -m 755 -p
-DEL_FILE      = rm -f
-SYMLINK       = ln -sf
-DEL_DIR       = rmdir
-MOVE          = mv -f
-CHK_DIR_EXISTS= test -d
-MKDIR         = mkdir -p
-
-####### Output directory
-
-OBJECTS_DIR   = ./
-
-####### Files
-
-SOURCES       = main.cpp \
-               mainwindow.cpp \
-               synth.cpp \
-               play.cpp moc_mainwindow.cpp
-OBJECTS       = main.o \
-               mainwindow.o \
-               synth.o \
-               play.o \
-               moc_mainwindow.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/link_pkgconfig.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 \
-               lolailo.pro
-QMAKE_TARGET  = lolailo
-DESTDIR       = 
-TARGET        = lolailo
-
-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_mainwindow.h $(OBJECTS)  
-       $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
-
-Makefile: lolailo.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/link_pkgconfig.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/lib/libQtGui.prl \
-               /usr/lib/libQtCore.prl
-       $(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile lolailo.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/link_pkgconfig.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/lib/libQtGui.prl:
-/usr/lib/libQtCore.prl:
-qmake:  FORCE
-       @$(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile lolailo.pro
-
-dist: 
-       @$(CHK_DIR_EXISTS) .tmp/lolailo1.0.0 || $(MKDIR) .tmp/lolailo1.0.0 
-       $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/lolailo1.0.0/ && $(COPY_FILE) --parents mainwindow.h synth.h play.h .tmp/lolailo1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp synth.cpp play.cpp .tmp/lolailo1.0.0/ && $(COPY_FILE) --parents mainwindow.ui .tmp/lolailo1.0.0/ && (cd `dirname .tmp/lolailo1.0.0` && $(TAR) lolailo1.0.0.tar lolailo1.0.0 && $(COMPRESS) lolailo1.0.0.tar) && $(MOVE) `dirname .tmp/lolailo1.0.0`/lolailo1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/lolailo1.0.0
-
-
-clean:compiler_clean 
-       -$(DEL_FILE) $(OBJECTS)
-       -$(DEL_FILE) *~ core *.core
-
-
-####### Sub-libraries
-
-distclean: clean
-       -$(DEL_FILE) $(TARGET) 
-       -$(DEL_FILE) Makefile
-
-
-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_mainwindow.cpp
-compiler_moc_header_clean:
-       -$(DEL_FILE) moc_mainwindow.cpp
-moc_mainwindow.cpp: mainwindow.h
-       /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.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_mainwindow.h
-compiler_uic_clean:
-       -$(DEL_FILE) ui_mainwindow.h
-ui_mainwindow.h: mainwindow.ui
-       /usr/bin/uic-qt4 mainwindow.ui -o ui_mainwindow.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 mainwindow.h \
-               synth.h \
-               play.h
-       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
-
-mainwindow.o: mainwindow.cpp mainwindow.h \
-               ui_mainwindow.h
-       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
-
-synth.o: synth.cpp synth.h
-       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o synth.o synth.cpp
-
-play.o: play.cpp play.h
-       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o play.o play.cpp
-
-moc_mainwindow.o: moc_mainwindow.cpp 
-       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
-
-####### Install
-
-install:   FORCE
-
-uninstall:   FORCE
-
-FORCE:
-
similarity index 96%
rename from main.cpp
rename to lolailo.cpp
index b2f5e4a7ad670e46ed1347e25ce4c9a2d69b7717..473fba1abdd512de788b23554f27ab5ded02b3fb 100644 (file)
--- a/main.cpp
@@ -23,7 +23,7 @@ int main(int argc, char *argv[])
     SDL_PauseAudio(0);
 
     QApplication a(argc, argv);
-    MainWindow w;
+    MainWindow w(NULL);
     w.show();
     int error = a.exec();
     SDL_Quit();
diff --git a/lolailo.pro b/lolailo.pro
deleted file mode 100644 (file)
index ff3476c..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-# -------------------------------------------------
-# Project created by QtCreator 2009-06-03T01:10:35
-# -------------------------------------------------
-TARGET = lolailo
-TEMPLATE = app
-SOURCES += main.cpp \
-    mainwindow.cpp \
-    synth.cpp \
-    play.cpp
-HEADERS += mainwindow.h \
-    synth.h \
-    play.h
-FORMS += mainwindow.ui
-CONFIG += link_pkgconfig
-LIBS += -lSDL
-PKG_CONFIG += sdl
diff --git a/lolailo.pro.user b/lolailo.pro.user
deleted file mode 100644 (file)
index c551d7a..0000000
+++ /dev/null
@@ -1,331 +0,0 @@
-<!DOCTYPE QtCreatorProject>
-<qtcreator>
- <data>
-  <variable>RunConfiguration0-BaseEnvironmentBase</variable>
-  <value type="int" >2</value>
- </data>
- <data>
-  <variable>RunConfiguration0-CommandLineArguments</variable>
-  <valuelist type="QVariantList" />
- </data>
- <data>
-  <variable>RunConfiguration0-ProFile</variable>
-  <value type="QString" >lolailo.pro</value>
- </data>
- <data>
-  <variable>RunConfiguration0-RunConfiguration.name</variable>
-  <value type="QString" >lolailo</value>
- </data>
- <data>
-  <variable>RunConfiguration0-UseDyldImageSuffix</variable>
-  <value type="bool" >false</value>
- </data>
- <data>
-  <variable>RunConfiguration0-UseTerminal</variable>
-  <value type="bool" >false</value>
- </data>
- <data>
-  <variable>RunConfiguration0-UserEnvironmentChanges</variable>
-  <valuelist type="QVariantList" />
- </data>
- <data>
-  <variable>RunConfiguration0-UserSetName</variable>
-  <value type="bool" >false</value>
- </data>
- <data>
-  <variable>RunConfiguration0-type</variable>
-  <value type="QString" >Qt4ProjectManager.Qt4RunConfiguration</value>
- </data>
- <data>
-  <variable>activeRunConfiguration</variable>
-  <value type="int" >0</value>
- </data>
- <data>
-  <variable>activebuildconfiguration</variable>
-  <value type="QString" >Debug</value>
- </data>
- <data>
-  <variable>buildConfiguration-Debug</variable>
-  <valuemap type="QVariantMap" >
-   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Debug</value>
-   <value key="QtVersionId" type="int" >0</value>
-   <value key="addQDumper" type="" ></value>
-  </valuemap>
- </data>
- <data>
-  <variable>buildConfiguration-Release</variable>
-  <valuemap type="QVariantMap" >
-   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Release</value>
-   <value key="QtVersionId" type="int" >0</value>
-   <value key="addQDumper" type="" ></value>
-  </valuemap>
- </data>
- <data>
-  <variable>buildconfiguration-Debug-buildstep0</variable>
-  <valuemap type="QVariantMap" >
-   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Debug</value>
-   <valuelist key="abstractProcess.Environment" type="QVariantList" >
-    <value type="QString" >COLORTERM=gnome-terminal</value>
-    <value type="QString" >DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-e9WQoxtZb2,guid=326f2445091ad0a27309de634a25ac3c</value>
-    <value type="QString" >DESKTOP_SESSION=default</value>
-    <value type="QString" >DESKTOP_STARTUP_ID=</value>
-    <value type="QString" >DEVKITARM=/home/slack/devkitPro/devkitARM</value>
-    <value type="QString" >DEVKITPPC=/home/slack/devkitPro/devkitPPC</value>
-    <value type="QString" >DEVKITPRO=/home/slack/devkitPro</value>
-    <value type="QString" >DISPLAY=:0.0</value>
-    <value type="QString" >EDITOR=/usr/bin/vim</value>
-    <value type="QString" >GDMSESSION=default</value>
-    <value type="QString" >GDM_LANG=es_ES.UTF-8</value>
-    <value type="QString" >GDM_XSERVER_LOCATION=local</value>
-    <value type="QString" >GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
-    <value type="QString" >GNOME_KEYRING_PID=22024</value>
-    <value type="QString" >GNOME_KEYRING_SOCKET=/tmp/keyring-oI8emD/socket</value>
-    <value type="QString" >GPG_AGENT_INFO=/tmp/seahorse-7JJz7C/S.gpg-agent:22210:1</value>
-    <value type="QString" >GTK_MODULES=canberra-gtk-module</value>
-    <value type="QString" >GTK_RC_FILES=/etc/gtk/gtkrc:/home/slack/.gtkrc-1.2-gnome2</value>
-    <value type="QString" >HISTCONTROL=ignoredups</value>
-    <value type="QString" >HOME=/home/slack</value>
-    <value type="QString" >LANG=es_ES.UTF-8</value>
-    <value type="QString" >LD_LIBRARY_PATH=/home/slack/soft/qt-creator/build/lib/qtcreator::/home/slack/local/lib:/home/slack/local/usr/lib:/home/slack/local/lib64:/home/slack/local/lib32</value>
-    <value type="QString" >LESSCLOSE=/usr/bin/lesspipe %s %s</value>
-    <value type="QString" >LESSOPEN=| /usr/bin/lesspipe %s</value>
-    <value type="QString" >LIBNDS=/home/slack/devkitPro/libnds</value>
-    <value type="QString" >LIBNDS_INCLUDE=/home/slack/devkitPro/libnds/include</value>
-    <value type="QString" >LIBNDS_LIB=/home/slack/devkitPro/libnds/lib</value>
-    <value type="QString" >LOGNAME=slack</value>
-    <value type="QString" >LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:</value>
-    <value type="QString" >OLDPWD=/home/slack/soft/qt-creator</value>
-    <value type="QString" >ORBIT_SOCKETDIR=/tmp/orbit-slack</value>
-    <value type="QString" >PAPATH=/home/slack/NDS/devkitPro/PAlib</value>
-    <value type="QString" >PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/home/slack/local/sbin:/home/slack/local/bin:/home/slack/local/usr/bin:/home/slack/devkitPro/devkitARM/bin:/home/slack/devkitPro/devkitPPC/bin:/home/slack/psp/bin:/home/slack/psp/pspsdk/bin</value>
-    <value type="QString" >PSPDEV=/home/slack/psp</value>
-    <value type="QString" >PSPSDK=/home/slack/psp/pspsdk</value>
-    <value type="QString" >PWD=/home/slack/soft/qt-creator/build</value>
-    <value type="QString" >QTDIR=/usr</value>
-    <value type="QString" >SESSION_MANAGER=local/ommadawn:/tmp/.ICE-unix/22036</value>
-    <value type="QString" >SHELL=/bin/bash</value>
-    <value type="QString" >SHLVL=1</value>
-    <value type="QString" >SSH_AGENT_PID=22150</value>
-    <value type="QString" >SSH_AUTH_SOCK=/tmp/keyring-oI8emD/socket.ssh</value>
-    <value type="QString" >TERM=xterm</value>
-    <value type="QString" >USER=slack</value>
-    <value type="QString" >USERNAME=slack</value>
-    <value type="QString" >WINDOWID=60861899</value>
-    <value type="QString" >WINDOWPATH=7:10</value>
-    <value type="QString" >XAUTHORITY=/home/slack/.Xauthority</value>
-    <value type="QString" >XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/</value>
-    <value type="QString" >XDG_SESSION_COOKIE=b95e9de5c0255c87d4458400462bf263-1243982908.518998-392587063</value>
-    <value type="QString" >_=bin/qtcreator</value>
-   </valuelist>
-   <valuelist key="abstractProcess.arguments" type="QVariantList" >
-    <value type="QString" >/home/slack/soft/lolailo/lolailo.pro</value>
-    <value type="QString" >-spec</value>
-    <value type="QString" >/usr/share/qt4/mkspecs/linux-g++</value>
-    <value type="QString" >-r</value>
-    <value type="QString" >CONFIG+=debug</value>
-   </valuelist>
-   <value key="abstractProcess.command" type="QString" >/usr/bin/qmake-qt4</value>
-   <value key="abstractProcess.enabled" type="bool" >false</value>
-   <value key="abstractProcess.workingDirectory" type="QString" >/home/slack/soft/lolailo</value>
-   <value key="buildConfiguration" type="int" >2</value>
-  </valuemap>
- </data>
- <data>
-  <variable>buildconfiguration-Debug-buildstep1</variable>
-  <valuemap type="QVariantMap" >
-   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Debug</value>
-   <valuelist key="abstractProcess.Environment" type="QVariantList" >
-    <value type="QString" >COLORTERM=gnome-terminal</value>
-    <value type="QString" >DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-e9WQoxtZb2,guid=326f2445091ad0a27309de634a25ac3c</value>
-    <value type="QString" >DESKTOP_SESSION=default</value>
-    <value type="QString" >DESKTOP_STARTUP_ID=</value>
-    <value type="QString" >DEVKITARM=/home/slack/devkitPro/devkitARM</value>
-    <value type="QString" >DEVKITPPC=/home/slack/devkitPro/devkitPPC</value>
-    <value type="QString" >DEVKITPRO=/home/slack/devkitPro</value>
-    <value type="QString" >DISPLAY=:0.0</value>
-    <value type="QString" >EDITOR=/usr/bin/vim</value>
-    <value type="QString" >GDMSESSION=default</value>
-    <value type="QString" >GDM_LANG=es_ES.UTF-8</value>
-    <value type="QString" >GDM_XSERVER_LOCATION=local</value>
-    <value type="QString" >GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
-    <value type="QString" >GNOME_KEYRING_PID=22024</value>
-    <value type="QString" >GNOME_KEYRING_SOCKET=/tmp/keyring-oI8emD/socket</value>
-    <value type="QString" >GPG_AGENT_INFO=/tmp/seahorse-7JJz7C/S.gpg-agent:22210:1</value>
-    <value type="QString" >GTK_MODULES=canberra-gtk-module</value>
-    <value type="QString" >GTK_RC_FILES=/etc/gtk/gtkrc:/home/slack/.gtkrc-1.2-gnome2</value>
-    <value type="QString" >HISTCONTROL=ignoredups</value>
-    <value type="QString" >HOME=/home/slack</value>
-    <value type="QString" >LANG=es_ES.UTF-8</value>
-    <value type="QString" >LD_LIBRARY_PATH=/home/slack/soft/qt-creator/build/lib/qtcreator::/home/slack/local/lib:/home/slack/local/usr/lib:/home/slack/local/lib64:/home/slack/local/lib32</value>
-    <value type="QString" >LESSCLOSE=/usr/bin/lesspipe %s %s</value>
-    <value type="QString" >LESSOPEN=| /usr/bin/lesspipe %s</value>
-    <value type="QString" >LIBNDS=/home/slack/devkitPro/libnds</value>
-    <value type="QString" >LIBNDS_INCLUDE=/home/slack/devkitPro/libnds/include</value>
-    <value type="QString" >LIBNDS_LIB=/home/slack/devkitPro/libnds/lib</value>
-    <value type="QString" >LOGNAME=slack</value>
-    <value type="QString" >LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:</value>
-    <value type="QString" >OLDPWD=/home/slack/soft/qt-creator</value>
-    <value type="QString" >ORBIT_SOCKETDIR=/tmp/orbit-slack</value>
-    <value type="QString" >PAPATH=/home/slack/NDS/devkitPro/PAlib</value>
-    <value type="QString" >PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/home/slack/local/sbin:/home/slack/local/bin:/home/slack/local/usr/bin:/home/slack/devkitPro/devkitARM/bin:/home/slack/devkitPro/devkitPPC/bin:/home/slack/psp/bin:/home/slack/psp/pspsdk/bin</value>
-    <value type="QString" >PSPDEV=/home/slack/psp</value>
-    <value type="QString" >PSPSDK=/home/slack/psp/pspsdk</value>
-    <value type="QString" >PWD=/home/slack/soft/qt-creator/build</value>
-    <value type="QString" >QTDIR=/usr</value>
-    <value type="QString" >SESSION_MANAGER=local/ommadawn:/tmp/.ICE-unix/22036</value>
-    <value type="QString" >SHELL=/bin/bash</value>
-    <value type="QString" >SHLVL=1</value>
-    <value type="QString" >SSH_AGENT_PID=22150</value>
-    <value type="QString" >SSH_AUTH_SOCK=/tmp/keyring-oI8emD/socket.ssh</value>
-    <value type="QString" >TERM=xterm</value>
-    <value type="QString" >USER=slack</value>
-    <value type="QString" >USERNAME=slack</value>
-    <value type="QString" >WINDOWID=60861899</value>
-    <value type="QString" >WINDOWPATH=7:10</value>
-    <value type="QString" >XAUTHORITY=/home/slack/.Xauthority</value>
-    <value type="QString" >XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/</value>
-    <value type="QString" >XDG_SESSION_COOKIE=b95e9de5c0255c87d4458400462bf263-1243982908.518998-392587063</value>
-    <value type="QString" >_=bin/qtcreator</value>
-   </valuelist>
-   <valuelist key="abstractProcess.arguments" type="QVariantList" >
-    <value type="QString" >-w</value>
-   </valuelist>
-   <value key="abstractProcess.command" type="QString" >/usr/bin/make</value>
-   <value key="abstractProcess.enabled" type="bool" >true</value>
-   <value key="abstractProcess.workingDirectory" type="QString" >/home/slack/soft/lolailo</value>
-  </valuemap>
- </data>
- <data>
-  <variable>buildconfiguration-Debug-cleanstep0</variable>
-  <valuemap type="QVariantMap" >
-   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Debug</value>
-   <valuelist key="abstractProcess.Environment" type="QVariantList" >
-    <value type="QString" >COLORTERM=gnome-terminal</value>
-    <value type="QString" >DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-e9WQoxtZb2,guid=326f2445091ad0a27309de634a25ac3c</value>
-    <value type="QString" >DESKTOP_SESSION=default</value>
-    <value type="QString" >DESKTOP_STARTUP_ID=</value>
-    <value type="QString" >DEVKITARM=/home/slack/devkitPro/devkitARM</value>
-    <value type="QString" >DEVKITPPC=/home/slack/devkitPro/devkitPPC</value>
-    <value type="QString" >DEVKITPRO=/home/slack/devkitPro</value>
-    <value type="QString" >DISPLAY=:0.0</value>
-    <value type="QString" >EDITOR=/usr/bin/vim</value>
-    <value type="QString" >GDMSESSION=default</value>
-    <value type="QString" >GDM_LANG=es_ES.UTF-8</value>
-    <value type="QString" >GDM_XSERVER_LOCATION=local</value>
-    <value type="QString" >GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
-    <value type="QString" >GNOME_KEYRING_PID=22024</value>
-    <value type="QString" >GNOME_KEYRING_SOCKET=/tmp/keyring-oI8emD/socket</value>
-    <value type="QString" >GPG_AGENT_INFO=/tmp/seahorse-7JJz7C/S.gpg-agent:22210:1</value>
-    <value type="QString" >GTK_MODULES=canberra-gtk-module</value>
-    <value type="QString" >GTK_RC_FILES=/etc/gtk/gtkrc:/home/slack/.gtkrc-1.2-gnome2</value>
-    <value type="QString" >HISTCONTROL=ignoredups</value>
-    <value type="QString" >HOME=/home/slack</value>
-    <value type="QString" >LANG=es_ES.UTF-8</value>
-    <value type="QString" >LD_LIBRARY_PATH=/home/slack/soft/qt-creator/build/lib/qtcreator::/home/slack/local/lib:/home/slack/local/usr/lib:/home/slack/local/lib64:/home/slack/local/lib32</value>
-    <value type="QString" >LESSCLOSE=/usr/bin/lesspipe %s %s</value>
-    <value type="QString" >LESSOPEN=| /usr/bin/lesspipe %s</value>
-    <value type="QString" >LIBNDS=/home/slack/devkitPro/libnds</value>
-    <value type="QString" >LIBNDS_INCLUDE=/home/slack/devkitPro/libnds/include</value>
-    <value type="QString" >LIBNDS_LIB=/home/slack/devkitPro/libnds/lib</value>
-    <value type="QString" >LOGNAME=slack</value>
-    <value type="QString" >LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:</value>
-    <value type="QString" >OLDPWD=/home/slack/soft/qt-creator</value>
-    <value type="QString" >ORBIT_SOCKETDIR=/tmp/orbit-slack</value>
-    <value type="QString" >PAPATH=/home/slack/NDS/devkitPro/PAlib</value>
-    <value type="QString" >PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/home/slack/local/sbin:/home/slack/local/bin:/home/slack/local/usr/bin:/home/slack/devkitPro/devkitARM/bin:/home/slack/devkitPro/devkitPPC/bin:/home/slack/psp/bin:/home/slack/psp/pspsdk/bin</value>
-    <value type="QString" >PSPDEV=/home/slack/psp</value>
-    <value type="QString" >PSPSDK=/home/slack/psp/pspsdk</value>
-    <value type="QString" >PWD=/home/slack/soft/qt-creator/build</value>
-    <value type="QString" >QTDIR=/usr</value>
-    <value type="QString" >SESSION_MANAGER=local/ommadawn:/tmp/.ICE-unix/22036</value>
-    <value type="QString" >SHELL=/bin/bash</value>
-    <value type="QString" >SHLVL=1</value>
-    <value type="QString" >SSH_AGENT_PID=22150</value>
-    <value type="QString" >SSH_AUTH_SOCK=/tmp/keyring-oI8emD/socket.ssh</value>
-    <value type="QString" >TERM=xterm</value>
-    <value type="QString" >USER=slack</value>
-    <value type="QString" >USERNAME=slack</value>
-    <value type="QString" >WINDOWID=60861899</value>
-    <value type="QString" >WINDOWPATH=7:10</value>
-    <value type="QString" >XAUTHORITY=/home/slack/.Xauthority</value>
-    <value type="QString" >XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/</value>
-    <value type="QString" >XDG_SESSION_COOKIE=b95e9de5c0255c87d4458400462bf263-1243982908.518998-392587063</value>
-    <value type="QString" >_=bin/qtcreator</value>
-   </valuelist>
-   <valuelist key="abstractProcess.arguments" type="QVariantList" >
-    <value type="QString" >clean</value>
-    <value type="QString" >-w</value>
-   </valuelist>
-   <value key="abstractProcess.command" type="QString" >/usr/bin/make</value>
-   <value key="abstractProcess.enabled" type="bool" >true</value>
-   <value key="abstractProcess.workingDirectory" type="QString" >/home/slack/soft/lolailo</value>
-  </valuemap>
- </data>
- <data>
-  <variable>buildconfiguration-Release-buildstep0</variable>
-  <valuemap type="QVariantMap" >
-   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Release</value>
-   <value key="buildConfiguration" type="int" >0</value>
-  </valuemap>
- </data>
- <data>
-  <variable>buildconfiguration-Release-buildstep1</variable>
-  <valuemap type="QVariantMap" >
-   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Release</value>
-  </valuemap>
- </data>
- <data>
-  <variable>buildconfiguration-Release-cleanstep0</variable>
-  <valuemap type="QVariantMap" >
-   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Release</value>
-  </valuemap>
- </data>
- <data>
-  <variable>buildconfigurations</variable>
-  <valuelist type="QVariantList" >
-   <value type="QString" >Debug</value>
-   <value type="QString" >Release</value>
-  </valuelist>
- </data>
- <data>
-  <variable>buildstep0</variable>
-  <valuemap type="QVariantMap" >
-   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" ></value>
-   <value key="mkspec" type="QString" ></value>
-  </valuemap>
- </data>
- <data>
-  <variable>buildstep1</variable>
-  <valuemap type="QVariantMap" >
-   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" ></value>
-  </valuemap>
- </data>
- <data>
-  <variable>buildsteps</variable>
-  <valuelist type="QVariantList" >
-   <value type="QString" >trolltech.qt4projectmanager.qmake</value>
-   <value type="QString" >trolltech.qt4projectmanager.make</value>
-  </valuelist>
- </data>
- <data>
-  <variable>cleanstep0</variable>
-  <valuemap type="QVariantMap" >
-   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" ></value>
-   <value key="clean" type="bool" >true</value>
-  </valuemap>
- </data>
- <data>
-  <variable>cleansteps</variable>
-  <valuelist type="QVariantList" >
-   <value type="QString" >trolltech.qt4projectmanager.make</value>
-  </valuelist>
- </data>
- <data>
-  <variable>defaultFileEncoding</variable>
-  <value type="QByteArray" >System</value>
- </data>
- <data>
-  <variable>project</variable>
-  <valuemap type="QVariantMap" />
- </data>
-</qtcreator>
index d5841f4b635593461a2f7e01d8ac6d9e7634a2ea..0e168c109a129acdee9a03387dce47996d9ecdf0 100644 (file)
@@ -1,13 +1,20 @@
 #include "mainwindow.h"
-#include "ui_mainwindow.h"
 
-MainWindow::MainWindow(QWidget *parent)
-    : QMainWindow(parent), ui(new Ui::MainWindow)
+MainWindow::MainWindow(QWidget *parent):QMainWindow(parent)
 {
-    ui->setupUi(this);
+    topLayout = new QVBoxLayout;
+    
+    centralWindow = new QWidget(this);
+    setCentralWidget(centralWindow);
+    centralWindow->setLayout(topLayout);
+    
+    tracker = new TrackerWindow(centralWindow);
+    topLayout->addWidget(tracker);
+        
 }
 
 MainWindow::~MainWindow()
 {
-    delete ui;
 }
+
+
index c86b51a2261a40ff8461a42606813c080c9d1af6..1ce14e56f14282963552eb58004b765aa14ca1c2 100644 (file)
@@ -1,23 +1,25 @@
 #ifndef MAINWINDOW_H
 #define MAINWINDOW_H
 
-#include <QtGui/QMainWindow>
+#include <QWidget>
+#include <QMainWindow>
+#include <QVBoxLayout>
+#include <QHBoxLayout>
+#include "trackerwindow.h"
 
-namespace Ui
-{
-    class MainWindow;
-}
-
-class MainWindow : public QMainWindow
+class MainWindow: public QMainWindow
 {
     Q_OBJECT
 
-public:
-    MainWindow(QWidget *parent = 0);
-    ~MainWindow();
+    public:
+        MainWindow(QWidget *parent);
+        ~MainWindow();
 
-private:
-    Ui::MainWindow *ui;
+    private:
+        QWidget       *centralWindow;
+        TrackerWindow *tracker;
+        QVBoxLayout   *topLayout;
 };
 
-#endif // MAINWINDOW_H
+#endif
+
diff --git a/mainwindow.ui b/mainwindow.ui
deleted file mode 100644 (file)
index b1aab85..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>MainWindow</class>
- <widget class="QMainWindow" name="MainWindow">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>662</width>
-    <height>491</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>MainWindow</string>
-  </property>
-  <widget class="QWidget" name="centralWidget">
-   <layout class="QHBoxLayout" name="horizontalLayout_2">
-    <item>
-     <layout class="QHBoxLayout" name="horizontalLayout"/>
-    </item>
-   </layout>
-  </widget>
-  <widget class="QMenuBar" name="menuBar">
-   <property name="geometry">
-    <rect>
-     <x>0</x>
-     <y>0</y>
-     <width>662</width>
-     <height>25</height>
-    </rect>
-   </property>
-  </widget>
-  <widget class="QToolBar" name="mainToolBar">
-   <attribute name="toolBarArea">
-    <enum>TopToolBarArea</enum>
-   </attribute>
-   <attribute name="toolBarBreak">
-    <bool>false</bool>
-   </attribute>
-  </widget>
-  <widget class="QStatusBar" name="statusBar"/>
- </widget>
- <layoutdefault spacing="6" margin="11"/>
- <resources/>
- <connections/>
-</ui>
index 3e1a0db47432cce71e996bdff31809cf961492f4..0bfae3244a4a5bac01ccd9af6fac83e2d1b3458a 100644 (file)
--- a/play.cpp
+++ b/play.cpp
@@ -5,6 +5,6 @@
 void play(void *songdata, Uint8* stream, int len)
 {
     memset(stream, 0, len);
-    printf("Sound callback\n");
+    //printf("Sound callback\n");
 }
 
diff --git a/synth.h b/synth.h
index ad1b96372689bef3ca75aeb7a3496831b1a80a30..1c27c975bb2ff610f4ad0194d7e75a73e34dc3ec 100644 (file)
--- a/synth.h
+++ b/synth.h
@@ -4,10 +4,11 @@
 #include <SDL/SDL.h>
 
 #define BUFFER_SIZE 1024
+#define MAX_OPS 30
 
 /*
-    An instrument is defined by the concatenation of several operations, possibly with parameters
-    For example:
+    An instrument is defined a FORTH-like stack of several operations between waveforms,
+    possibly with parameters. For example:
 
     square_osc(wet=100%, pulse_width=50%) -> LP_filter(cutoff=4000 Hz, Q=0.1) -> Delay (5ms)
 
@@ -29,6 +30,9 @@ struct Voice
         // 50 bytes should be enough for everyone. Anyway, voices will be created
         // at bss, so they don't count for the file size :)
         Uint8 status[50];
+
+        // buffers generated by wave operations
+        float waves[MAX_OPS][BUFFER_SIZE];
 };
 
 
diff --git a/track.h b/track.h
new file mode 100644 (file)
index 0000000..6a44678
--- /dev/null
+++ b/track.h
@@ -0,0 +1,10 @@
+#ifndef TRACK_H
+#define TRACK_H
+
+class Track
+{
+public:
+    Track();
+};
+
+#endif // TRACK_H
diff --git a/trackerwindow.cpp b/trackerwindow.cpp
new file mode 100644 (file)
index 0000000..f5ee211
--- /dev/null
@@ -0,0 +1,13 @@
+#include "trackerwindow.h"
+#include <QPainter>
+
+TrackerWindow::TrackerWindow(QWidget *parent):QWidget(parent)
+{
+}
+
+void TrackerWindow::paintEvent(QPaintEvent *event)
+{
+    QPainter painter(this);
+    painter.drawText(200, 200,tr("LOL WUT"));
+
+}
diff --git a/trackerwindow.h b/trackerwindow.h
new file mode 100644 (file)
index 0000000..a8538af
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef TRACKERWINDOW_H
+#define TRACKERWINDOW_H
+
+#include <QWidget>
+#include <QPaintEvent>
+
+class TrackerWindow : public QWidget
+{
+    Q_OBJECT
+
+    public:
+    TrackerWindow(QWidget *parent);
+
+    private:
+    void paintEvent(QPaintEvent *);
+};
+
+#endif // TRACKERWINDOW_H