2006-03-05 17:24:44 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
|
|
|
|
* \file QNote.h
|
|
|
|
|
* 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.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef QNOTE_H
|
|
|
|
|
#define QNOTE_H
|
|
|
|
|
|
|
|
|
|
#include "QDialogView.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
|
#include "ui_NoteUi.h"
|
2007-04-25 10:57:54 +00:00
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
class QCloseEvent;
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
namespace frontend {
|
|
|
|
|
|
2007-04-25 10:57:54 +00:00
|
|
|
|
class QNote;
|
|
|
|
|
|
|
|
|
|
class QNoteDialog : public QDialog, public Ui::QNoteUi {
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
QNoteDialog(QNote * form);
|
|
|
|
|
protected Q_SLOTS:
|
|
|
|
|
virtual void change_adaptor();
|
|
|
|
|
protected:
|
|
|
|
|
virtual void closeEvent(QCloseEvent * e);
|
|
|
|
|
private:
|
|
|
|
|
QNote * form_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
|
class ControlNote;
|
|
|
|
|
|
|
|
|
|
/** This class provides a QT implementation of the Note Dialog.
|
|
|
|
|
*/
|
|
|
|
|
class QNote : public QController<ControlNote, QView<QNoteDialog> >
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
friend class QNoteDialog;
|
|
|
|
|
|
|
|
|
|
/// Constructor
|
|
|
|
|
QNote(Dialog &);
|
|
|
|
|
private:
|
|
|
|
|
/// Apply changes
|
|
|
|
|
virtual void apply();
|
|
|
|
|
/// Build the dialog
|
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
/// Update dialog before showing it
|
|
|
|
|
virtual void update_contents();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
|
|
#endif // QNOTE_H
|