2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2008-02-14 18:06:47 +00:00
|
|
|
* \file GuiLabel.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 Kalle Dalheimer
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2008-02-14 18:06:47 +00:00
|
|
|
#ifndef GUILABEL_H
|
|
|
|
#define GUILABEL_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2008-04-20 09:24:14 +00:00
|
|
|
#include "GuiDialog.h"
|
2008-02-14 18:06:47 +00:00
|
|
|
#include "ui_LabelUi.h"
|
2007-04-25 08:42:22 +00:00
|
|
|
|
2008-04-20 09:24:14 +00:00
|
|
|
#include "insets/InsetCommandParams.h"
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2008-04-20 09:24:14 +00:00
|
|
|
class GuiLabel : public GuiDialog, public Ui::LabelUi
|
2007-09-05 20:33:29 +00:00
|
|
|
{
|
2007-04-25 08:42:22 +00:00
|
|
|
Q_OBJECT
|
2007-09-05 20:33:29 +00:00
|
|
|
|
2007-04-25 08:42:22 +00:00
|
|
|
public:
|
2008-02-14 18:06:47 +00:00
|
|
|
GuiLabel(GuiView & lv);
|
2007-09-05 20:33:29 +00:00
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void change_adaptor();
|
|
|
|
void reject();
|
2007-04-25 08:42:22 +00:00
|
|
|
|
|
|
|
private:
|
2007-09-05 20:33:29 +00:00
|
|
|
///
|
|
|
|
bool isValid();
|
|
|
|
/// Apply changes
|
|
|
|
void applyView();
|
|
|
|
/// update
|
2007-09-11 18:33:42 +00:00
|
|
|
void updateContents();
|
2008-04-20 09:24:14 +00:00
|
|
|
///
|
|
|
|
bool initialiseParams(std::string const & data);
|
|
|
|
/// clean-up on hide.
|
|
|
|
void clearParams() { params_.clear(); }
|
|
|
|
/// clean-up on hide.
|
|
|
|
void dispatchParams();
|
|
|
|
///
|
|
|
|
bool isBufferDependent() const { return true; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
///
|
|
|
|
InsetCommandParams params_;
|
2006-03-05 17:24:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2008-04-20 08:19:26 +00:00
|
|
|
#endif // GUILABEL_H
|