cd ./src && qmake-qt4 -project"TARGET=vite""OBJECTS_DIR=../bin""DESTDIR=../bin""CONFIG+=uitools""QT+=opengl"&& qmake-qt4 -makefile-o Makefile src.pro && make all
cd ./src && qmake-qt4 -project"RESOURCES= vite.qrc""OBJECTS_DIR=../bin""DESTDIR=../bin""CONFIG+=uitools""QT+=opengl"&& qmake-qt4 -makefile-o Makefile src.pro && make all
@echo" "
@echo"Rebuilt and compiled! (release)"
@echo" "
...
...
@@ -41,7 +41,7 @@ plugins:
debugs:
cd ./src && qmake-qt4 -project&& qmake-qt4 -makefile-o Makefile "OBJECTS_DIR=../debug""CONFIG+=uitools debug console""QT+=opengl""DESTDIR = ../debug" src.pro && make all
cd ./src && qmake-qt4 -project&& qmake-qt4 -makefile-o Makefile "RESOURCES= vite.qrc""OBJECTS_DIR=../debug""CONFIG+=uitools debug console""QT+=opengl""DESTDIR = ../debug" src.pro && make all
mv src/*.o bin/
@echo" "
@echo"Compilation completed! (debug)"
...
...
@@ -49,7 +49,7 @@ debugs:
tests:rebuild
cd ./tests && qmake-qt4 -project&& qmake-qt4 -makefile-o Makefile "OBJECTS_DIR=../bin""CONFIG+=uitools""QT+= opengl""DESTDIR = ../bin" tests.pro && make all
cd ./tests && qmake-qt4 -project&& qmake-qt4 -makefile-o Makefile "RESOURCES= vite.qrc""OBJECTS_DIR=../bin""CONFIG+=uitools""QT+= opengl""DESTDIR = ../bin" tests.pro && make all
mv tests/*.o bin/
@echo" "
@echo"Compilation completed! (test)"
...
...
@@ -64,7 +64,7 @@ clean:
# Must be called with option -i, otherwise an error occured in the first instructions, the followings won't be executed.
wash:
cd ./src &&rm*~ *.o *pro Makefile
cd ./tests &&rm*~ *.o *pro Makefile
cd ./src &&rm*~ *.o *pro Makefile qrc_vite.cpp core
Special function of Qt which allows methods declared as slots and which name are 'on_[widget]_[action]()' to be called when the 'widget' triggered the signal corresponding to 'action'.
*/
QMetaObject::connectSlotsByName(this);
_ui_main_window->show();/* Display the main window */
_ui_info_window->show();/* Display the info window */
/* Display both the main and informative windows */
#define UI_MAIN_WINDOW_NAME "main_window.ui"/* name of the main window ui file. This file must be included in the same folder than the compiled program. */
#define UI_INFO_WINDOW_NAME "info_window.ui"/* name of the info window ui file. This file must be included in the same folder than the compiled program. */
/* These paths corresponding to the path in the resource file ('vite.qrc' in the 'bin' folder) */
#define UI_MAIN_WINDOW_NAME ":/window/main_window.ui"/* The main window ui file. */
#define UI_INFO_WINDOW_NAME ":/window/info_window.ui"/* The info window ui file. */