2001-08-28 03:35:17 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
|
|
|
|
* \file QGraphics.h
|
2002-09-24 13:57:09 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-08-28 03:35:17 +00:00
|
|
|
|
*
|
2002-09-24 13:57:09 +00:00
|
|
|
|
* \author John Levon
|
2003-09-07 01:45:40 +00:00
|
|
|
|
* \author Herbert Vo<EFBFBD>
|
2002-09-24 13:57:09 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-08-28 03:35:17 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef QGRAPHICS_H
|
|
|
|
|
#define QGRAPHICS_H
|
|
|
|
|
|
|
|
|
|
|
2003-03-07 18:44:57 +00:00
|
|
|
|
#include "QDialogView.h"
|
2003-09-05 15:06:13 +00:00
|
|
|
|
#include <vector>
|
2003-03-07 18:44:57 +00:00
|
|
|
|
|
2001-08-28 03:35:17 +00:00
|
|
|
|
|
|
|
|
|
class ControlGraphics;
|
|
|
|
|
class QGraphicsDialog;
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
class QGraphics
|
2003-03-07 18:44:57 +00:00
|
|
|
|
: public QController<ControlGraphics, QView<QGraphicsDialog> >
|
2001-08-28 03:35:17 +00:00
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
friend class QGraphicsDialog;
|
|
|
|
|
///
|
2003-03-07 18:44:57 +00:00
|
|
|
|
QGraphics(Dialog &);
|
2001-08-28 03:35:17 +00:00
|
|
|
|
protected:
|
|
|
|
|
virtual bool isValid();
|
|
|
|
|
private:
|
|
|
|
|
/// Apply changes
|
|
|
|
|
virtual void apply();
|
|
|
|
|
/// update
|
|
|
|
|
virtual void update_contents();
|
|
|
|
|
/// build the dialog
|
|
|
|
|
virtual void build_dialog();
|
2002-01-31 13:15:33 +00:00
|
|
|
|
/// get bounding box from file
|
2002-11-07 00:21:28 +00:00
|
|
|
|
void getBB();
|
|
|
|
|
|
|
|
|
|
/// Store the LaTeX names for the rotation origins.
|
|
|
|
|
std::vector<string> origin_ltx;
|
|
|
|
|
|
2001-08-28 03:35:17 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // QGRAPHICS_H
|