summaryrefslogtreecommitdiff
path: root/src/libs/utils/submiteditorwidget.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-08-19 10:04:21 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-08-19 10:04:21 +0200
commit817d4370d5b9f9647cac30991b8a23318dc40b93 (patch)
treee704c607de3e988ff2eef3ed27709f30c18e3eac /src/libs/utils/submiteditorwidget.h
parente3f7a4024b7f808f580f4d37ced17727a2e6751e (diff)
downloadqt-creator-817d4370d5b9f9647cac30991b8a23318dc40b93.tar.gz
VCS: Add 'Check/Uncheck' all context menu to submit file list.
Update 'Commit' button to show number of files to be committed. Task-number: QTCREATORBUG-2090
Diffstat (limited to 'src/libs/utils/submiteditorwidget.h')
-rw-r--r--src/libs/utils/submiteditorwidget.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libs/utils/submiteditorwidget.h b/src/libs/utils/submiteditorwidget.h
index 03f98ace98..e31fb8cd3c 100644
--- a/src/libs/utils/submiteditorwidget.h
+++ b/src/libs/utils/submiteditorwidget.h
@@ -80,6 +80,9 @@ public:
explicit SubmitEditorWidget(QWidget *parent = 0);
virtual ~SubmitEditorWidget();
+ // Register/Unregister actions that are managed by ActionManager with this widget.
+ // The submit action should have Core::Command::CA_UpdateText set as its text will
+ // be updated.
void registerActions(QAction *editorUndoAction, QAction *editorRedoAction,
QAction *submitAction = 0, QAction *diffAction = 0);
void unregisterActions(QAction *editorUndoAction, QAction *editorRedoAction,
@@ -121,6 +124,11 @@ signals:
void diffSelected(const QStringList &);
void fileSelectionChanged(bool someFileSelected);
void fileCheckStateChanged(bool someFileChecked);
+ void submitActionTextChanged(const QString &);
+
+public slots:
+ void checkAll();
+ void uncheckAll();
protected:
virtual void changeEvent(QEvent *e);
@@ -134,10 +142,11 @@ private slots:
void updateSubmitAction();
void updateDiffAction();
void editorCustomContextMenuRequested(const QPoint &);
+ void fileListCustomContextMenuRequested(const QPoint & pos);
private:
bool hasSelection() const;
- bool hasCheckedFiles() const;
+ unsigned checkedFilesCount() const;
SubmitEditorWidgetPrivate *m_d;
};