lyx_mirror/src/frontends/qt4/QBranches.h
Jürgen Spitzmüller fd5b78d42b * src/frontends/qt4/QBranches.C:
- fix item selection after update
	- improve gui
* src/frontends/qt4/QBranches.[Ch]: add alterColor method (alter color on double click)
* src/frontends/qt4/QocumentDialog.C: add comment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15737 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-04 15:08:53 +00:00

69 lines
1.2 KiB
C++

// -*- C++ -*-
/**
* \file QBranches.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Edwin Leuven
*
* Full author contact details are available in file CREDITS.
*/
#ifndef QBRANCHES_H
#define QBRANCHES_H
#include "ui/BranchesUi.h"
#include "QDocument.h"
#include "BranchList.h"
#include <QWidget>
#include <vector>
#include <string>
class QTreeWidgetItem;
namespace lyx {
class BufferParams;
namespace frontend {
class QBranches: public QWidget, public Ui::BranchesUi
{
Q_OBJECT
public:
QBranches(QWidget * parent=0, Qt::WFlags f=0);
void update(BufferParams const & params);
void apply(BufferParams & params) const;
Q_SIGNALS:
void changed();
protected:
void toggleBranch(QTreeWidgetItem *);
void toggleColor(QTreeWidgetItem *);
void update();
protected Q_SLOTS:
void on_addBranchPB_pressed();
void on_removePB_pressed();
void on_activatePB_pressed();
void on_branchesTW_itemDoubleClicked(QTreeWidgetItem *, int);
void on_colorPB_clicked();
private:
/// Contains all legal branches for this doc
BranchList branchlist_;
};
} // namespace frontend
} // namespace lyx
#endif // DOCUMENTDIALOG_H