# HG changeset patch # User Chris Cannam # Date 1290029836 0 # Node ID be627aeceaedfa4ed6de7748cbaeea10ee72dd42 # Parent 5616a814c58b4ef6c75953a5baf42f5fdb9fc2ff * Some dialog stubs diff -r 5616a814c58b -r be627aeceaed easyhg.pro --- a/easyhg.pro Wed Nov 17 20:21:18 2010 +0000 +++ b/easyhg.pro Wed Nov 17 21:37:16 2010 +0000 @@ -24,7 +24,9 @@ colourset.h \ debug.h \ recentfiles.h \ - startupdialog.h + startupdialog.h \ + repositorydialog.h \ + multichoicedialog.h SOURCES = main.cpp \ mainwindow.cpp \ hgexpwidget.cpp \ @@ -43,7 +45,9 @@ colourset.cpp \ debug.cpp \ recentfiles.cpp \ - startupdialog.cpp + startupdialog.cpp \ + repositorydialog.cpp \ + multichoicedialog.cpp macx-* { SOURCES += common_osx.mm diff -r 5616a814c58b -r be627aeceaed multichoicedialog.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/multichoicedialog.cpp Wed Nov 17 21:37:16 2010 +0000 @@ -0,0 +1,23 @@ +/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ + +/* + EasyMercurial + + Based on HgExplorer by Jari Korhonen + Copyright (c) 2010 Jari Korhonen + Copyright (c) 2010 Chris Cannam + Copyright (c) 2010 Queen Mary, University of London + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. See the file + COPYING included with this distribution for more information. +*/ + +#include "multichoicedialog.h" + +MultiChoiceDialog::MultiChoiceDialog(QWidget *parent) : + QDialog(parent) +{ +} diff -r 5616a814c58b -r be627aeceaed multichoicedialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/multichoicedialog.h Wed Nov 17 21:37:16 2010 +0000 @@ -0,0 +1,49 @@ +/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ + +/* + EasyMercurial + + Based on HgExplorer by Jari Korhonen + Copyright (c) 2010 Jari Korhonen + Copyright (c) 2010 Chris Cannam + Copyright (c) 2010 Queen Mary, University of London + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. See the file + COPYING included with this distribution for more information. +*/ + +#ifndef MULTICHOICEDIALOG_H +#define MULTICHOICEDIALOG_H + +#include +#include + +class MultiChoiceDialog : public QDialog +{ + Q_OBJECT +public: + explicit MultiChoiceDialog(QWidget *parent = 0); + + enum ArgType { + NoArg, + FileArg, + UrlArg, + FileOrUrlArg + }; + + void addChoice(QString identifier, QString text, + QString description, ArgType arg); + + QString getSelectedIdentifier(); + QString getArgument(); + +signals: + +public slots: + +}; + +#endif // MULTICHOICEDIALOG_H diff -r 5616a814c58b -r be627aeceaed repositorydialog.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/repositorydialog.cpp Wed Nov 17 21:37:16 2010 +0000 @@ -0,0 +1,29 @@ +/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ + +/* + EasyMercurial + + Based on HgExplorer by Jari Korhonen + Copyright (c) 2010 Jari Korhonen + Copyright (c) 2010 Chris Cannam + Copyright (c) 2010 Queen Mary, University of London + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. See the file + COPYING included with this distribution for more information. +*/ + +#include "repositorydialog.h" + +RepositoryDialog::RepositoryDialog(QWidget *parent) : + QDialog(parent) +{ + setModal(true); + setWindowTitle(tr("Open Repository")); + + + + +} diff -r 5616a814c58b -r be627aeceaed repositorydialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/repositorydialog.h Wed Nov 17 21:37:16 2010 +0000 @@ -0,0 +1,34 @@ +/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ + +/* + EasyMercurial + + Based on HgExplorer by Jari Korhonen + Copyright (c) 2010 Jari Korhonen + Copyright (c) 2010 Chris Cannam + Copyright (c) 2010 Queen Mary, University of London + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. See the file + COPYING included with this distribution for more information. +*/ + +#ifndef REPOSITORYDIALOG_H +#define REPOSITORYDIALOG_H + +#include + +class RepositoryDialog : public QDialog +{ + Q_OBJECT + +public: + RepositoryDialog(QWidget *parent = 0); + + + +}; + +#endif // REPOSITORYDIALOG_H