~ubuntu-branches/ubuntu/utopic/robojournal/utopic

« back to all changes in this revision

Viewing changes to journalcreator.h

  • Committer: Package Import Robot
  • Author(s): Ritesh Raj Sarraf
  • Date: 2013-10-22 11:50:46 UTC
  • mfrom: (1.2.1) (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20131022115046-gl6s110no2x4buoc
Tags: 0.4.2-1
* [b62d8ee] Imported Upstream version 0.4.2
* [344ee28] Update patches
* [3366262] Fix Vcs Links
* Upload to unstable 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    This file is part of RoboJournal.
3
 
    Copyright (c) 2012 by Will Kraft <pwizard@gmail.com>.
4
 
 
5
 
 
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.
10
 
 
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.
15
 
 
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/>.
18
 
  */
19
 
 
20
 
#ifndef JOURNALCREATOR_H
21
 
#define JOURNALCREATOR_H
22
 
 
23
 
#include <QDialog>
24
 
 
25
 
namespace Ui {
26
 
    class JournalCreator;
27
 
}
28
 
 
29
 
class JournalCreator : public QDialog
30
 
{
31
 
    Q_OBJECT
32
 
 
33
 
public:
34
 
    explicit JournalCreator(QWidget *parent = 0);
35
 
    ~JournalCreator();
36
 
 
37
 
private slots:
38
 
    void on_DBType_currentIndexChanged(int index);
39
 
 
40
 
    void on_Password2_textChanged();
41
 
 
42
 
    void on_Password_textChanged();
43
 
 
44
 
    void on_tabWidget_currentChanged();
45
 
 
46
 
    void on_buttonBox_accepted();
47
 
 
48
 
    void on_buttonBox_rejected();
49
 
 
50
 
private:
51
 
    Ui::JournalCreator *ui;
52
 
    void ShowDescription(int index);
53
 
    void PasswordMatch();
54
 
    bool Validate();
55
 
    void FillIn();
56
 
    void Clear();
57
 
    void CreateJournal();
58
 
    void PrimaryConfig();
59
 
};
60
 
 
61
 
#endif // JOURNALCREATOR_H