Chris@102: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@102: Chris@102: /* Chris@102: EasyMercurial Chris@102: Chris@102: Based on hgExplorer by Jari Korhonen Chris@102: Copyright (c) 2010 Jari Korhonen Chris@102: Copyright (c) 2010 Chris Cannam Chris@102: Copyright (c) 2010 Queen Mary, University of London Chris@102: Chris@102: This program is free software; you can redistribute it and/or Chris@102: modify it under the terms of the GNU General Public License as Chris@102: published by the Free Software Foundation; either version 2 of the Chris@102: License, or (at your option) any later version. See the file Chris@102: COPYING included with this distribution for more information. Chris@102: */ Chris@102: Chris@102: #ifndef CONFIRMCOMMENTDIALOG_H Chris@102: #define CONFIRMCOMMENTDIALOG_H Chris@102: Chris@105: #include Chris@102: #include Chris@102: #include Chris@102: #include Chris@105: #include Chris@105: #include Chris@102: Chris@105: class ConfirmCommentDialog : public QDialog Chris@102: { Chris@105: Q_OBJECT Chris@105: Chris@102: public: Chris@102: static bool confirmFilesAction(QWidget *parent, Chris@102: QString title, Chris@102: QString introText, Chris@102: QString introTextWithCount, Chris@102: QStringList files); Chris@102: Chris@102: static bool confirmAndComment(QWidget *parent, Chris@102: QString title, Chris@102: QString introText, Chris@102: QString introTextWithCount, Chris@102: QStringList files, Chris@104: QString &comment, Chris@104: bool longComment); Chris@102: Chris@102: static bool confirmAndComment(QWidget *parent, Chris@102: QString title, Chris@102: QString introText, Chris@104: QString &comment, Chris@104: bool longComment); Chris@102: Chris@105: private slots: Chris@105: void commentChanged(); Chris@105: Chris@105: private: Chris@105: ConfirmCommentDialog(QWidget *parent, Chris@105: QString title, Chris@105: QString introText, Chris@105: QString initialComment); Chris@105: Chris@105: QString getComment() const; Chris@105: Chris@105: QTextEdit *m_textEdit; Chris@105: QPushButton *m_ok; Chris@102: }; Chris@102: Chris@102: #endif // CONFIRMCOMMENTDIALOG_H