2001-03-05 12:04:43 +00:00
|
|
|
// -*- C++ -*-
|
2001-03-16 17:20:06 +00:00
|
|
|
/**
|
2001-08-19 13:25:15 +00:00
|
|
|
* \file QCharacter.h
|
2001-03-05 12:04:43 +00:00
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
* See the file COPYING.
|
2001-03-16 17:20:06 +00:00
|
|
|
*
|
2001-03-05 12:04:43 +00:00
|
|
|
* \author Edwin Leuven
|
|
|
|
*/
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#ifndef QCHARACTER_H
|
|
|
|
#define QCHARACTER_H
|
2001-03-05 12:04:43 +00:00
|
|
|
|
|
|
|
#include "DialogBase.h"
|
|
|
|
|
|
|
|
class LyXView;
|
|
|
|
class Dialogs;
|
2001-08-19 13:25:15 +00:00
|
|
|
class QCharacterDialog;
|
2001-03-05 12:04:43 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
class QCharacter : public DialogBase {
|
2001-03-05 12:04:43 +00:00
|
|
|
public:
|
2001-06-05 17:05:51 +00:00
|
|
|
///
|
2001-08-19 13:25:15 +00:00
|
|
|
QCharacter(LyXView *, Dialogs *);
|
2001-06-05 17:05:51 +00:00
|
|
|
///
|
2001-08-19 13:25:15 +00:00
|
|
|
~QCharacter();
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-06-05 17:05:51 +00:00
|
|
|
/// Apply changes.
|
|
|
|
void apply();
|
|
|
|
/// Close connections.
|
|
|
|
void close();
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-03-05 12:04:43 +00:00
|
|
|
private:
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-06-05 17:05:51 +00:00
|
|
|
/// Show the dialog.
|
|
|
|
void show();
|
|
|
|
/// Hide the dialog.
|
|
|
|
void hide();
|
|
|
|
/// Update the dialog.
|
|
|
|
void update(bool switched = false);
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-06-05 17:05:51 +00:00
|
|
|
/// Real GUI implementation.
|
2001-08-19 13:25:15 +00:00
|
|
|
QCharacterDialog * dialog_;
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-06-05 17:05:51 +00:00
|
|
|
/// the LyXView we belong to.
|
|
|
|
LyXView * lv_;
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-06-05 17:05:51 +00:00
|
|
|
/** Which Dialogs do we belong to?
|
|
|
|
* Used so we can get at the signals we have to connect to.
|
|
|
|
*/
|
|
|
|
Dialogs * d_;
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-06-05 17:05:51 +00:00
|
|
|
/// is the buffer readonly?
|
|
|
|
bool readonly;
|
2001-03-05 12:04:43 +00:00
|
|
|
|
2001-06-05 17:05:51 +00:00
|
|
|
/// Hide connection.
|
|
|
|
SigC::Connection h_;
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-06-05 17:05:51 +00:00
|
|
|
/// Update connection.
|
|
|
|
SigC::Connection u_;
|
2001-03-05 12:04:43 +00:00
|
|
|
};
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#endif // QCHARACTER_H
|