2006-03-05 17:24:44 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
|
* \file GuiBranch.h
|
2006-03-05 17:24:44 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author J<EFBFBD>rgen Spitzm<EFBFBD>ller
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef QBRANCH_H
|
|
|
|
|
#define QBRANCH_H
|
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
|
#include "GuiDialogView.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
|
#include "ui_BranchUi.h"
|
2007-04-25 08:42:22 +00:00
|
|
|
|
|
|
|
|
|
#include <QCloseEvent>
|
|
|
|
|
#include <QDialog>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
namespace frontend {
|
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
|
class GuiBranch;
|
2007-04-25 08:42:22 +00:00
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
|
class GuiBranchDialog : public QDialog, public Ui::BranchUi {
|
2007-04-25 08:42:22 +00:00
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2007-08-31 05:53:55 +00:00
|
|
|
|
GuiBranchDialog(GuiBranch * form);
|
2007-04-25 08:42:22 +00:00
|
|
|
|
protected Q_SLOTS:
|
|
|
|
|
virtual void change_adaptor();
|
|
|
|
|
protected:
|
|
|
|
|
virtual void closeEvent(QCloseEvent * e);
|
|
|
|
|
private:
|
2007-08-31 05:53:55 +00:00
|
|
|
|
GuiBranch * form_;
|
2007-04-25 08:42:22 +00:00
|
|
|
|
};
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
|
class ControlBranch;
|
|
|
|
|
|
|
|
|
|
/** This class provides a QT implementation of the Branch Dialog.
|
|
|
|
|
*/
|
2007-08-31 05:53:55 +00:00
|
|
|
|
class GuiBranch : public QController<ControlBranch, GuiView<GuiBranchDialog> >
|
2006-03-05 17:24:44 +00:00
|
|
|
|
{
|
|
|
|
|
public:
|
2007-08-31 05:53:55 +00:00
|
|
|
|
friend class GuiBranchDialog;
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
|
|
/// Constructor
|
2007-08-31 05:53:55 +00:00
|
|
|
|
GuiBranch(Dialog &);
|
2006-03-05 17:24:44 +00:00
|
|
|
|
private:
|
|
|
|
|
/// Apply changes
|
|
|
|
|
virtual void apply();
|
|
|
|
|
/// Build the dialog
|
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
/// Update dialog before showing it
|
|
|
|
|
virtual void update_contents();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
|
|
#endif // QBRANCH_H
|