2001-08-27 02:54:27 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QThesaurus.h
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QTHESAURUS_H
|
|
|
|
#define QTHESAURUS_H
|
|
|
|
|
2001-08-27 20:41:45 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-08-27 02:54:27 +00:00
|
|
|
#include "Qt2Base.h"
|
|
|
|
|
|
|
|
class ControlThesaurus;
|
|
|
|
class QThesaurusDialog;
|
|
|
|
|
2001-08-27 20:41:45 +00:00
|
|
|
///
|
|
|
|
class QThesaurus
|
2002-03-21 21:21:28 +00:00
|
|
|
: public Qt2CB<ControlThesaurus, Qt2DB<QThesaurusDialog> >
|
2001-08-27 02:54:27 +00:00
|
|
|
{
|
2001-08-27 20:41:45 +00:00
|
|
|
public:
|
|
|
|
///
|
2001-08-27 02:54:27 +00:00
|
|
|
friend class QThesaurusDialog;
|
2001-08-27 20:41:45 +00:00
|
|
|
///
|
2002-07-11 01:01:38 +00:00
|
|
|
QThesaurus(ControlThesaurus &, Dialogs &);
|
2001-08-27 02:54:27 +00:00
|
|
|
private:
|
|
|
|
/// Apply changes
|
2002-01-16 23:56:25 +00:00
|
|
|
virtual void apply() { };
|
2001-08-27 02:54:27 +00:00
|
|
|
/// update
|
|
|
|
virtual void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
|
|
|
/// replace the word
|
2002-03-21 21:21:28 +00:00
|
|
|
void replace();
|
2001-08-27 02:54:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QTHESAURUS_H
|