2001-08-28 03:35:17 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QGraphics.h
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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();
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-28 03:35:17 +00:00
|
|
|
private:
|
|
|
|
/// Apply changes
|
|
|
|
virtual void apply();
|
|
|
|
/// update
|
|
|
|
virtual void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
|
|
|
/// browse for a file
|
2002-03-21 21:21:28 +00:00
|
|
|
void browse();
|
2002-01-31 13:15:33 +00:00
|
|
|
/// get bounding box from file
|
2002-03-21 21:21:28 +00:00
|
|
|
void get();
|
2001-08-28 03:35:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QGRAPHICS_H
|