Generalized the commit dialog to support stashes Parameters are now quoted in the log if necessary Fixed another issue with the folderview show/hide logic Various minor ui tweaks FossilOrigin-Name: ce70efe67a1fe0087cc6d3aa79757a5011c57db2
33 lines
904 B
C++
33 lines
904 B
C++
#ifndef COMMITDIALOG_H
|
|
#define COMMITDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QStandardItemModel>
|
|
|
|
namespace Ui {
|
|
class CommitDialog;
|
|
}
|
|
|
|
class CommitDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CommitDialog(QWidget *parent, QString title, QStringList &files, const QStringList *history=0, bool singleLineEntry=false, const QString *checkBoxText=0, bool *checkBoxValue=0);
|
|
~CommitDialog();
|
|
|
|
static bool run(QWidget *parent, QString title, QStringList &files, QString &commitMsg, const QStringList *history=0, bool singleLineEntry=false, const QString *checkBoxText=0, bool *checkBoxValue=0);
|
|
|
|
private slots:
|
|
void on_comboBox_activated(int index);
|
|
void on_listView_doubleClicked(const QModelIndex &index);
|
|
void on_listView_clicked(const QModelIndex &index);
|
|
|
|
private:
|
|
Ui::CommitDialog *ui;
|
|
QStandardItemModel itemModel;
|
|
QStringList commitMessages;
|
|
};
|
|
|
|
#endif // COMMITDIALOG_H
|