mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-01 05:25:55 +00:00
470aba2a0e
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20217 a592a061-630c-0410-9148-cb99ea01b6c8
64 lines
1.3 KiB
C++
64 lines
1.3 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file GuiGraphics.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author John Levon
|
|
* \author Herbert Voß
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef GUIGRAPHICS_H
|
|
#define GUIGRAPHICS_H
|
|
|
|
#include "GuiDialog.h"
|
|
#include "ControlGraphics.h"
|
|
#include "ui_GraphicsUi.h"
|
|
|
|
#include <vector>
|
|
|
|
class QString;
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class GuiGraphicsDialog : public GuiDialog, public Ui::GraphicsUi
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
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 &);
|
|
private:
|
|
void closeEvent(QCloseEvent * e);
|
|
/// parent controller
|
|
ControlGraphics & controller();
|
|
bool isValid();
|
|
/// Apply changes
|
|
void applyView();
|
|
/// update
|
|
void updateContents();
|
|
/// 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
|
|
|
|
#endif // GUIGRAPHICS_H
|