comparison multichoicedialog.h @ 67:be627aeceaed

* Some dialog stubs
author Chris Cannam
date Wed, 17 Nov 2010 21:37:16 +0000
parents
children b918e57c7bea
comparison
equal deleted inserted replaced
66:5616a814c58b 67:be627aeceaed
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 EasyMercurial
5
6 Based on HgExplorer by Jari Korhonen
7 Copyright (c) 2010 Jari Korhonen
8 Copyright (c) 2010 Chris Cannam
9 Copyright (c) 2010 Queen Mary, University of London
10
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License as
13 published by the Free Software Foundation; either version 2 of the
14 License, or (at your option) any later version. See the file
15 COPYING included with this distribution for more information.
16 */
17
18 #ifndef MULTICHOICEDIALOG_H
19 #define MULTICHOICEDIALOG_H
20
21 #include <QDialog>
22 #include <QString>
23
24 class MultiChoiceDialog : public QDialog
25 {
26 Q_OBJECT
27 public:
28 explicit MultiChoiceDialog(QWidget *parent = 0);
29
30 enum ArgType {
31 NoArg,
32 FileArg,
33 UrlArg,
34 FileOrUrlArg
35 };
36
37 void addChoice(QString identifier, QString text,
38 QString description, ArgType arg);
39
40 QString getSelectedIdentifier();
41 QString getArgument();
42
43 signals:
44
45 public slots:
46
47 };
48
49 #endif // MULTICHOICEDIALOG_H