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 "GuiDocument.h"
16 #include "ui_BranchesUi.h"
17 #include "BranchList.h"
25 class QTreeWidgetItem;
33 class GuiBranches : public QWidget, public Ui::BranchesUi
37 GuiBranches(QWidget * parent=0, Qt::WFlags f=0);
39 void update(BufferParams const & params);
40 void apply(BufferParams & params) const;
46 void toggleBranch(QTreeWidgetItem *);
47 void toggleColor(QTreeWidgetItem *);
51 void on_addBranchPB_pressed();
52 void on_removePB_pressed();
53 void on_activatePB_pressed();
54 void on_branchesTW_itemDoubleClicked(QTreeWidgetItem *, int);
55 void on_colorPB_clicked();
58 /// Contains all legal branches for this doc
59 BranchList branchlist_;
62 } // namespace frontend