4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "BranchList.h"
16 #include "ButtonController.h"
18 #include "ui_BranchesUnknownUi.h"
19 #include "ui_BranchesUi.h"
24 class QTreeWidgetItem;
32 class BranchesUnknownDialog : public QDialog, public Ui::BranchesUnknownUi
35 BranchesUnknownDialog(QWidget * parent) : QDialog(parent)
37 Ui::BranchesUnknownUi::setupUi(this);
38 QDialog::setModal(true);
42 class GuiBranches : public QWidget, public Ui::BranchesUi
46 GuiBranches(QWidget * parent = 0);
48 void update(BufferParams const & params);
49 void apply(BufferParams & params) const;
50 void setUnknownBranches(QStringList const & b) { unknown_branches_ = b; }
52 bool eventFilter(QObject * obj, QEvent * event);
56 void renameBranches(docstring const &, docstring const &);
60 void toggleBranch(QTreeWidgetItem *);
61 void toggleColor(QTreeWidgetItem *);
62 void toggleSuffix(QTreeWidgetItem *);
66 void on_newBranchLE_textChanged(QString);
67 void on_addBranchPB_pressed();
68 void on_removePB_pressed();
69 void on_renamePB_pressed();
70 void on_activatePB_pressed();
71 void on_branchesTW_itemDoubleClicked(QTreeWidgetItem *, int);
72 void on_branchesTW_itemSelectionChanged();
73 void on_colorPB_clicked();
74 void on_suffixPB_pressed();
75 void on_unknownPB_pressed();
78 void unknownBranchSelChanged();
81 /// Contains all legal branches for this doc
82 BranchList branchlist_;
84 BranchesUnknownDialog * undef_;
86 ButtonController undef_bc_;
88 QStringList unknown_branches_;
91 } // namespace frontend
94 #endif // GUIBRANCHES_H