2009-01-25 23:50:54 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file GuiNote.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Jürgen Spitzmüller
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GUINOTE_H
|
|
|
|
#define GUINOTE_H
|
|
|
|
|
|
|
|
#include "GuiDialog.h"
|
|
|
|
#include "insets/InsetNote.h"
|
|
|
|
#include "ui_NoteUi.h"
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
|
|
|
class GuiNote : public GuiDialog, public Ui::NoteUi
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
GuiNote(GuiView & lv);
|
|
|
|
private Q_SLOTS:
|
|
|
|
void change_adaptor();
|
|
|
|
private:
|
|
|
|
/// Apply changes
|
2020-10-01 07:42:11 +00:00
|
|
|
void applyView() override;
|
2009-01-25 23:50:54 +00:00
|
|
|
/// Update dialog before showing it
|
2020-10-01 07:42:11 +00:00
|
|
|
void updateContents() override;
|
2009-01-25 23:50:54 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
bool initialiseParams(std::string const & data) override;
|
2009-01-25 23:50:54 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void clearParams() override;
|
2009-01-25 23:50:54 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void dispatchParams() override;
|
2009-01-25 23:50:54 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
bool isBufferDependent() const override { return true; }
|
2009-01-25 23:50:54 +00:00
|
|
|
private:
|
|
|
|
///
|
|
|
|
InsetNoteParams params_;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // GUINOTE_H
|