Example #1
0
// Initialize and load preference.
static void initFirst() {
  time_t timer;
  time(&timer);
  srand(timer);

  loadPreference();
  initBarragemanager();
  initAttractManager();
  if ( !noSound ) initSound();
  initGameStateFirst();
}
Example #2
0
void KNPluginManager::loadPlugins()
{
    //Initial the infrastructure;
    loadHeader(new KNMainWindowHeader);
    loadPreference(new KNPreference);
#ifdef Q_OS_WIN
    loadPlatformExtras(new KNWindowsExtras);
#endif
#ifdef Q_OS_MACX
    loadPlatformExtras(new KNMacExtras);
#endif

    //Load the category plugin.
    loadMusicPlugin(new KNMusicPlugin);
}
Example #3
0
MainWindow::MainWindow(QWidget *parent) :
  QMainWindow(parent), logoWidget(0), classificaWidget(0), toolBar(0), newWizard(0),
  tabs(0), editor(0), squadre(new SquadreModel(this)), arbitri(new ArbitriModel(this)),
  fileOpen(""), confFile("preference.conf"), xml(squadre, arbitri), modificato(false)
{
    createLogoWidget();
    createActions();
    createMenus();
    createToolBar();

    setCentralWidget(logoWidget);

    setWindowTitle("HandBall Stats by Beatrice Guerra");
    setMinimumSize(sizeHint());

    if(loadPreference() && !fileOpen.isEmpty()){
        open(false);
    }
}
Example #4
0
// Initialize and load preference.
static void initFirst() {
  loadPreference();
  srand(SDL_GetTicks());
  initBarragemanager();
  initAttractManager();
}