2006-03-05 17:24:44 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
|
* \file GuiNote.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 J<EFBFBD>rgen Spitzm<EFBFBD>ller
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
#ifndef GUINOTE_H
|
|
|
|
|
#define GUINOTE_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
|
#include "GuiDialog.h"
|
2007-10-05 20:43:26 +00:00
|
|
|
|
#include "insets/InsetNote.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
|
#include "ui_NoteUi.h"
|
2007-04-25 10:57:54 +00:00
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
namespace frontend {
|
|
|
|
|
|
2007-10-09 19:34:27 +00:00
|
|
|
|
class GuiNote : public GuiDialog, public Ui::NoteUi
|
2007-09-05 20:33:29 +00:00
|
|
|
|
{
|
2007-04-25 10:57:54 +00:00
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2007-10-05 20:43:26 +00:00
|
|
|
|
GuiNote(LyXView & lv);
|
2007-09-05 20:33:29 +00:00
|
|
|
|
private Q_SLOTS:
|
|
|
|
|
void change_adaptor();
|
2007-04-25 10:57:54 +00:00
|
|
|
|
private:
|
2007-09-05 20:33:29 +00:00
|
|
|
|
void closeEvent(QCloseEvent * e);
|
|
|
|
|
/// Apply changes
|
|
|
|
|
void applyView();
|
2006-03-05 17:24:44 +00:00
|
|
|
|
/// Update dialog before showing it
|
2007-09-11 18:33:42 +00:00
|
|
|
|
void updateContents();
|
2007-10-05 20:43:26 +00:00
|
|
|
|
///
|
|
|
|
|
bool initialiseParams(std::string const & data);
|
|
|
|
|
///
|
|
|
|
|
void clearParams();
|
|
|
|
|
///
|
|
|
|
|
void dispatchParams();
|
|
|
|
|
///
|
|
|
|
|
bool isBufferDependent() const { return true; }
|
|
|
|
|
private:
|
|
|
|
|
///
|
|
|
|
|
InsetNoteParams params_;
|
2006-03-05 17:24:44 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
|
#endif // GUINOTE_H
|