~ubuntu-branches/ubuntu/hoary/psi/hoary

« back to all changes in this revision

Viewing changes to src/profiledlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2002-04-19 02:28:44 UTC
  • Revision ID: james.westby@ubuntu.com-20020419022844-za7xgai5qyfd9xv6
Tags: upstream-0.8.5
ImportĀ upstreamĀ versionĀ 0.8.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
** profiledlg.h - dialogs for manipulating profiles
 
3
** Copyright (C) 2001, 2002  Justin Karneges
 
4
**
 
5
** This program is free software; you can redistribute it and/or
 
6
** modify it under the terms of the GNU General Public License
 
7
** as published by the Free Software Foundation; either version 2
 
8
** of the License, or (at your option) any later version.
 
9
**
 
10
** This program is distributed in the hope that it will be useful,
 
11
** but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
** GNU General Public License for more details.
 
14
**
 
15
** You should have received a copy of the GNU General Public License
 
16
** along with this program; if not, write to the Free Software
 
17
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
 
18
**
 
19
****************************************************************************/
 
20
 
 
21
#ifndef PROFILEDLG_H
 
22
#define PROFILEDLG_H
 
23
 
 
24
#include<qdialog.h>
 
25
#include<qstringlist.h>
 
26
#include"ui_profileopen.h"
 
27
#include"ui_profilemanage.h"
 
28
#include"ui_profilenew.h"
 
29
#include"varlist.h"
 
30
 
 
31
 
 
32
class ProfileOpenDlg : public ProfileOpenUI
 
33
{
 
34
        Q_OBJECT
 
35
public:
 
36
        ProfileOpenDlg(const QString &, const VarList &, const QString &, QWidget *parent=0, const char *name=0);
 
37
 
 
38
        QString newLang;
 
39
 
 
40
private slots:
 
41
        void manageProfiles();
 
42
        void langChange(int);
 
43
 
 
44
private:
 
45
        void reload(const QString &);
 
46
 
 
47
        VarList langs;
 
48
};
 
49
 
 
50
class ProfileManageDlg : public ProfileManageUI
 
51
{
 
52
        Q_OBJECT
 
53
public:
 
54
        ProfileManageDlg(const QString &, QWidget *parent=0, const char *name=0);
 
55
 
 
56
private slots:
 
57
        void slotProfileNew();
 
58
        void slotProfileRename();
 
59
        void slotProfileDelete();
 
60
        void updateSelection();
 
61
};
 
62
 
 
63
class ProfileNewDlg : public ProfileNewUI
 
64
{
 
65
        Q_OBJECT
 
66
public:
 
67
        ProfileNewDlg(QWidget *parent=0, const char *name=0);
 
68
 
 
69
        QString name;
 
70
 
 
71
private slots:
 
72
        void slotCreate();
 
73
        void nameModified();
 
74
};
 
75
 
 
76
#endif