mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
3b9338a3a8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13565 a592a061-630c-0410-9148-cb99ea01b6c8
68 lines
1.2 KiB
C++
68 lines
1.2 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file QDocumentDialog.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 Q3ListViewItem;
|
|
|
|
class BufferParams;
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
|
|
class QBranches: public QWidget, public Ui::BranchesUi
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
QBranches(QWidget * parent=0, Qt::WFlags f=0);
|
|
~QBranches();
|
|
|
|
void update(BufferParams const & params);
|
|
void apply(BufferParams & params) const;
|
|
|
|
signals:
|
|
void changed();
|
|
|
|
protected:
|
|
void toggleBranch(Q3ListViewItem * selItem);
|
|
void update();
|
|
|
|
protected slots:
|
|
void on_addBranchPB_pressed();
|
|
void on_removePB_pressed();
|
|
void on_activatePB_pressed();
|
|
void on_branchesLV_doubleClicked(Q3ListViewItem *);
|
|
void on_colorPB_clicked();
|
|
|
|
private:
|
|
|
|
/// Contains all legal branches for this doc
|
|
BranchList branchlist_;
|
|
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // DOCUMENTDIALOG_H
|