2001-07-13 11:50:39 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file FormSpellchecker.h
|
|
|
|
* See the file COPYING.
|
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author Edwin Leuven
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2001-07-13 11:50:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMSPELLCHECKER_H
|
|
|
|
#define FORMSPELLCHECKER_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "FormBase.h"
|
|
|
|
|
|
|
|
class ControlSpellchecker;
|
2002-06-13 13:43:51 +00:00
|
|
|
struct FD_spellchecker;
|
2001-07-13 11:50:39 +00:00
|
|
|
|
|
|
|
/** This class provides an XForms implementation of the FormSpellchecker Dialog.
|
|
|
|
*/
|
2002-06-13 13:43:51 +00:00
|
|
|
class FormSpellchecker : public FormCB<ControlSpellchecker, FormDB<FD_spellchecker> > {
|
2001-07-13 11:50:39 +00:00
|
|
|
public:
|
|
|
|
///
|
2002-08-12 14:28:43 +00:00
|
|
|
FormSpellchecker();
|
2001-07-13 11:50:39 +00:00
|
|
|
private:
|
|
|
|
/// not needed.
|
2001-07-17 09:00:17 +00:00
|
|
|
void apply() {}
|
2001-07-13 11:50:39 +00:00
|
|
|
/// Build the dialog
|
2001-07-17 09:00:17 +00:00
|
|
|
void build();
|
2002-03-21 21:21:28 +00:00
|
|
|
///
|
2001-07-17 09:00:17 +00:00
|
|
|
void update();
|
|
|
|
|
|
|
|
/// enable/disable widgets when start/stop
|
|
|
|
void stop(bool);
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-07-17 09:00:17 +00:00
|
|
|
/// update progress bar, set suggestions, exit message
|
2001-07-13 11:50:39 +00:00
|
|
|
void partialUpdate(int);
|
|
|
|
|
|
|
|
/// show an error message
|
|
|
|
void showMessage(const char * msg);
|
|
|
|
|
|
|
|
/// Filter the inputs
|
|
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // FORMSPELLCHECKER_H
|