2
This file is part of RoboJournal.
3
Copyright (c) 2012 by Will Kraft <pwizard@gmail.com>.
6
RoboJournal is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
11
RoboJournal is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with RoboJournal. If not, see <http://www.gnu.org/licenses/>.
22
#include "ui_firstrun.h"
24
#include "journalcreator.h"
25
#include "ui_journalcreator.h"
27
#include "ui_config.h"
28
#include "configmanager.h"
32
FirstRun::FirstRun(QWidget *parent) :
39
int width=this->width();
40
int height=this->height();
41
this->setMaximumSize(width,height);
42
this->setMinimumSize(width,height);
44
cout << "OUTPUT: Configuration not set. (or manual reconfiguration requested) Starting first-run tool..." << endl;
46
// make the new journal option default
47
ui->NewJournal->setChecked(true);
49
// hide question mark button in title bar when running on Windows
50
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
62
void FirstRun::Launcher(){
66
if(ui->NewJournal->isChecked()){
71
// Get rid of first run flag
72
Buffer::firstrun=false;
74
// create a basic config, doesn't matter what it says right now. We just need to have a config file present
78
// and let the user change the database information
85
void FirstRun::on_buttonBox_accepted()
90
void FirstRun::on_buttonBox_rejected()