annotate startupdialog.h @ 109:1721c580c10e

* Add a queueing mechanism for Hg actions, instead of refusing to start an action if something else is already happening. This is essential now that actions can be prompted by asynchronous events (e.g. filesystem watcher). * Make Revert behave sensibly
author Chris Cannam
date Fri, 26 Nov 2010 12:48:29 +0000
parents 794db9353c7f
children 8fd71f570884
rev   line source
Chris@64 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@64 2
Chris@64 3 /*
Chris@64 4 EasyMercurial
Chris@64 5
Chris@64 6 Based on HgExplorer by Jari Korhonen
Chris@64 7 Copyright (c) 2010 Jari Korhonen
Chris@64 8 Copyright (c) 2010 Chris Cannam
Chris@64 9 Copyright (c) 2010 Queen Mary, University of London
Chris@64 10
Chris@64 11 This program is free software; you can redistribute it and/or
Chris@64 12 modify it under the terms of the GNU General Public License as
Chris@64 13 published by the Free Software Foundation; either version 2 of the
Chris@64 14 License, or (at your option) any later version. See the file
Chris@64 15 COPYING included with this distribution for more information.
Chris@64 16 */
Chris@64 17
Chris@64 18 #ifndef STARTUP_DIALOG_H
Chris@64 19 #define STARTUP_DIALOG_H
Chris@64 20
Chris@64 21 #include <QDialog>
Chris@64 22 #include <QLineEdit>
Chris@64 23 #include <QLabel>
Chris@64 24 #include <QPushButton>
Chris@64 25
Chris@64 26 class StartupDialog : public QDialog
Chris@64 27 {
Chris@64 28 Q_OBJECT
Chris@64 29
Chris@64 30 public:
Chris@64 31 StartupDialog(QWidget *parent = 0);
Chris@64 32
Chris@64 33 private slots:
Chris@64 34 void realNameChanged(const QString &);
Chris@64 35 void emailChanged(const QString &);
Chris@64 36 void accept();
Chris@64 37
Chris@64 38 private:
Chris@64 39 QLineEdit *m_nameEdit;
Chris@64 40 QLineEdit *m_emailEdit;
Chris@64 41 QLabel *m_example;
Chris@64 42 QPushButton *m_ok;
Chris@64 43
Chris@64 44 QString m_name;
Chris@64 45 QString m_email;
Chris@64 46
Chris@64 47 void updateExample();
Chris@64 48 };
Chris@64 49
Chris@64 50 #endif