2006-03-05 17:24:44 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
|
* \file GuiGraphics.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 John Levon
|
|
|
|
|
* \author Herbert Vo<EFBFBD>
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
#ifndef GUIGRAPHICS_H
|
|
|
|
|
#define GUIGRAPHICS_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
|
#include "GuiDialog.h"
|
2007-08-31 22:16:11 +00:00
|
|
|
|
#include "ControlGraphics.h"
|
2007-09-05 20:33:29 +00:00
|
|
|
|
#include "ui_GraphicsUi.h"
|
2007-02-13 18:27:46 +00:00
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
|
#include <vector>
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
class QString;
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
namespace frontend {
|
|
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
|
class GuiGraphicsDialog : public GuiDialog, public Ui::GraphicsUi
|
2007-08-31 22:16:11 +00:00
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2007-09-05 20:33:29 +00:00
|
|
|
|
GuiGraphicsDialog(LyXView & lv);
|
|
|
|
|
void setAutoText();
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
|
void change_adaptor();
|
|
|
|
|
void change_bb();
|
|
|
|
|
void on_browsePB_clicked();
|
|
|
|
|
void on_getPB_clicked();
|
|
|
|
|
void on_editPB_clicked();
|
|
|
|
|
void on_filename_textChanged(const QString &);
|
|
|
|
|
void on_scaleCB_toggled(bool);
|
|
|
|
|
void on_WidthCB_toggled(bool);
|
|
|
|
|
void on_HeightCB_toggled(bool);
|
|
|
|
|
void on_angle_textChanged(const QString &);
|
2007-08-31 22:16:11 +00:00
|
|
|
|
private:
|
2007-09-05 20:33:29 +00:00
|
|
|
|
void closeEvent(QCloseEvent * e);
|
2007-08-31 22:16:11 +00:00
|
|
|
|
/// parent controller
|
2007-09-11 18:33:42 +00:00
|
|
|
|
ControlGraphics & controller();
|
2007-09-05 20:33:29 +00:00
|
|
|
|
bool isValid();
|
2006-03-05 17:24:44 +00:00
|
|
|
|
/// Apply changes
|
2007-09-05 20:33:29 +00:00
|
|
|
|
void applyView();
|
2006-03-05 17:24:44 +00:00
|
|
|
|
/// update
|
2007-09-11 18:33:42 +00:00
|
|
|
|
void updateContents();
|
2006-03-05 17:24:44 +00:00
|
|
|
|
/// get bounding box from file
|
|
|
|
|
void getBB();
|
|
|
|
|
|
|
|
|
|
/// Store the LaTeX names for the rotation origins.
|
|
|
|
|
std::vector<std::string> origin_ltx;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
#endif // GUIGRAPHICS_H
|