annotate multichoicedialog.h @ 67:be627aeceaed

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