lyx_mirror/src/frontends/qt4/GuiLabel.h
Vincent van Ravesteijn 0a7705a673 Update the GuiLabel view when the document is read-only. Also disable the text field.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32696 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 16:47:36 +00:00

64 lines
1.1 KiB
C++

// -*- C++ -*-
/**
* \file GuiLabel.h
* 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.
*/
#ifndef GUILABEL_H
#define GUILABEL_H
#include "GuiDialog.h"
#include "ui_LabelUi.h"
#include "insets/InsetCommandParams.h"
namespace lyx {
namespace frontend {
class GuiLabel : public GuiDialog, public Ui::LabelUi
{
Q_OBJECT
public:
GuiLabel(GuiView & lv);
private Q_SLOTS:
void change_adaptor();
void reject();
private:
///
bool isValid();
/// Apply changes
void applyView();
/// update
void updateContents();
///
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; }
///
void enableView(bool enable);
///
bool canApply() const { return true; }
private:
///
InsetCommandParams params_;
};
} // namespace frontend
} // namespace lyx
#endif // GUILABEL_H