#ifndef MAIN_H
#define MAIN_H

#include <qglobal.h>

#define PUZZLE_DIR (kapp->kde_datadir() + "/" + kapp->appName() + "/")
#define DATAFILE(a) (PUZZLE_DIR + "data/" + a)

#define TOPWIDGET ((KPuzzle*) (kapp->topWidget()))
#define MAINWIDGET (TOPWIDGET->view())

#define MOVE_TIMER_INTERVAL 100
#define VISIBLE_PIXMAP_SIZE 450

#define min(a,b) ((a) < (b) ? (a) : (b))
#define max(a,b) ((a) > (b) ? (a) : (b))

#endif // MAIN_H
