2000-10-12 15:17:42 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
2001-04-03 21:00:26 +00:00
|
|
|
* =================================================
|
2002-03-27 10:07:57 +00:00
|
|
|
*
|
2001-04-03 21:00:26 +00:00
|
|
|
* LyX, The Document Processor
|
|
|
|
* Copyright 1995 Matthias Ettrich.
|
|
|
|
* Copyright 1995-2000 The LyX Team.
|
2000-10-12 15:17:42 +00:00
|
|
|
*
|
2002-03-27 10:07:57 +00:00
|
|
|
* =================================================
|
2000-10-12 15:17:42 +00:00
|
|
|
*
|
2001-04-03 21:00:26 +00:00
|
|
|
* \author Baruch Even
|
|
|
|
* */
|
2000-10-12 15:17:42 +00:00
|
|
|
|
|
|
|
#ifndef FORMERROR_H
|
|
|
|
#define FORMERROR_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-04-03 21:00:26 +00:00
|
|
|
#include "ControlError.h"
|
|
|
|
#include "GnomeBase.h"
|
2000-10-12 15:17:42 +00:00
|
|
|
|
2001-04-03 21:00:26 +00:00
|
|
|
namespace Gtk {
|
2002-03-11 22:47:41 +00:00
|
|
|
|
2001-04-03 21:00:26 +00:00
|
|
|
class Button;
|
|
|
|
class Text;
|
2002-03-11 22:47:41 +00:00
|
|
|
|
2001-04-03 21:00:26 +00:00
|
|
|
}
|
2000-10-12 15:17:42 +00:00
|
|
|
|
2001-04-03 21:00:26 +00:00
|
|
|
/**
|
|
|
|
* This class implements the dialog to show error messages.
|
2000-10-12 15:17:42 +00:00
|
|
|
*/
|
2001-04-03 21:00:26 +00:00
|
|
|
class FormError : public FormCB<ControlError> {
|
2000-10-12 15:17:42 +00:00
|
|
|
public:
|
2001-04-03 21:00:26 +00:00
|
|
|
///
|
|
|
|
FormError(ControlError & c);
|
|
|
|
///
|
2002-03-11 22:47:41 +00:00
|
|
|
~FormError() {}
|
|
|
|
///
|
|
|
|
void apply() {}
|
|
|
|
///
|
2001-04-03 21:00:26 +00:00
|
|
|
void update();
|
2002-03-27 10:07:57 +00:00
|
|
|
|
2000-10-12 15:17:42 +00:00
|
|
|
private:
|
2001-04-03 21:00:26 +00:00
|
|
|
/// Build the dialog
|
|
|
|
void build();
|
|
|
|
|
|
|
|
/// Returns true if the dialog input is in a valid state.
|
2002-03-11 22:47:41 +00:00
|
|
|
bool validate() const { return true; }
|
2000-10-12 15:17:42 +00:00
|
|
|
|
2002-03-11 22:47:41 +00:00
|
|
|
///
|
2001-04-03 21:00:26 +00:00
|
|
|
void CloseClicked() { CancelButton(); }
|
2002-03-27 10:07:57 +00:00
|
|
|
|
2002-01-16 12:30:17 +00:00
|
|
|
/// generated by accessors.py
|
|
|
|
Gtk::Button * button_close() const;
|
|
|
|
/// generated by accessors.py
|
2001-04-03 21:00:26 +00:00
|
|
|
Gtk::Text * textarea() const;
|
2000-10-12 15:17:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|