2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2002-03-11 17:00:41 +00:00
|
|
|
/**
|
2003-02-27 16:29:28 +00:00
|
|
|
* \file FormText.h
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-11 17:00:41 +00:00
|
|
|
*
|
2002-12-01 22:59:25 +00:00
|
|
|
* \author Angus Leeming
|
2002-09-05 14:10:50 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2000-08-03 12:56:25 +00:00
|
|
|
*/
|
|
|
|
|
2003-02-27 16:29:28 +00:00
|
|
|
#ifndef FORMTEXT_H
|
|
|
|
#define FORMTEXT_H
|
2000-08-03 12:56:25 +00:00
|
|
|
|
|
|
|
|
2003-02-25 14:51:38 +00:00
|
|
|
#include "FormDialogView.h"
|
2001-03-16 12:08:14 +00:00
|
|
|
|
2003-02-27 16:29:28 +00:00
|
|
|
class ControlCommand;
|
|
|
|
struct FD_text;
|
2000-08-03 12:56:25 +00:00
|
|
|
|
2003-02-27 16:29:28 +00:00
|
|
|
|
|
|
|
class FormText : public FormController<ControlCommand, FormView<FD_text> > {
|
2000-08-03 12:56:25 +00:00
|
|
|
public:
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
FormText(Dialog &, std::string const & title, std::string const & label);
|
2000-08-03 12:56:25 +00:00
|
|
|
private:
|
2001-03-28 13:11:08 +00:00
|
|
|
/// Set the Params variable for the Controller.
|
|
|
|
virtual void apply();
|
|
|
|
/// Build the dialog.
|
2000-08-03 12:56:25 +00:00
|
|
|
virtual void build();
|
2001-03-28 13:11:08 +00:00
|
|
|
/// Update dialog before/whilst showing it.
|
2000-10-24 13:13:59 +00:00
|
|
|
virtual void update();
|
2003-03-04 13:54:05 +00:00
|
|
|
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
std::string const label_;
|
2000-08-03 12:56:25 +00:00
|
|
|
};
|
|
|
|
|
2003-02-27 16:29:28 +00:00
|
|
|
#endif // FORMTEXT_H
|