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
|
2002-11-07 00:21:28 +00:00
|
|
|
* \author Herbert Voss
|
2002-09-24 13:57:09 +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
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
#include "insets/insetgraphics.h"
|
2002-06-19 03:38:44 +00:00
|
|
|
#include "Qt2Base.h"
|
2001-08-28 03:35:17 +00:00
|
|
|
|
|
|
|
class ControlGraphics;
|
|
|
|
class QGraphicsDialog;
|
|
|
|
|
|
|
|
///
|
|
|
|
class QGraphics
|
2002-03-21 21:21:28 +00:00
|
|
|
: public Qt2CB<ControlGraphics, Qt2DB<QGraphicsDialog> >
|
2001-08-28 03:35:17 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
friend class QGraphicsDialog;
|
|
|
|
///
|
2002-08-12 14:28:43 +00:00
|
|
|
QGraphics();
|
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
|