]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBranches.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiBranches.h
index bde09cd1a2f7fe0a3083594511592aad08a0fac3..0417e84b64368ccd491e2f55c1e150efc7dad33f 100644 (file)
@@ -12,7 +12,9 @@
 #ifndef GUIBRANCHES_H
 #define GUIBRANCHES_H
 
+#include "Buffer.h"
 #include "GuiDocument.h"
+#include "ui_BranchesUnknownUi.h"
 #include "ui_BranchesUi.h"
 #include "BranchList.h"
 
@@ -26,6 +28,16 @@ class BufferParams;
 
 namespace frontend {
 
+class BranchesUnknownDialog : public QDialog, public Ui::BranchesUnknownUi
+{
+public:
+       BranchesUnknownDialog(QWidget * parent) : QDialog(parent)
+       {
+               Ui::BranchesUnknownUi::setupUi(this);
+               QDialog::setModal(true);
+       }
+};
+
 class GuiBranches : public QWidget, public Ui::BranchesUi
 {
        Q_OBJECT
@@ -34,25 +46,41 @@ public:
 
        void update(BufferParams const & params);
        void apply(BufferParams & params) const;
+       void setUnknownBranches(QStringList const & b) { unknown_branches_ = b; }
 
 Q_SIGNALS:
        void changed();
+       void renameBranches(docstring const &, docstring const &);
 
 protected:
        void toggleBranch(QTreeWidgetItem *);
        void toggleColor(QTreeWidgetItem *);
+       void toggleSuffix(QTreeWidgetItem *);
        void updateView();
 
 protected Q_SLOTS:
        void on_addBranchPB_pressed();
        void on_removePB_pressed();
+       void on_renamePB_pressed();
        void on_activatePB_pressed();
        void on_branchesTW_itemDoubleClicked(QTreeWidgetItem *, int);
+       void on_branchesTW_itemSelectionChanged();
        void on_colorPB_clicked();
+       void on_suffixPB_pressed();
+       void on_unknownPB_pressed();
+       void addUnknown();
+       void addAllUnknown();
+       void unknownBranchSelChanged();
 
 private:
        /// Contains all legal branches for this doc
        BranchList branchlist_;
+       ///
+       BranchesUnknownDialog * undef_;
+       ///
+       ButtonController undef_bc_;
+       ///
+       QStringList unknown_branches_;
 };
 
 } // namespace frontend