lyx_mirror/src/frontends/gnome/FormError.h

58 lines
1002 B
C
Raw Normal View History

// -*- C++ -*-
/* This file is part of
* =================================================
*
* LyX, The Document Processor
* Copyright 1995 Matthias Ettrich.
* Copyright 1995-2000 The LyX Team.
*
* =================================================
*
* \author Baruch Even
* */
#ifndef FORMERROR_H
#define FORMERROR_H
#ifdef __GNUG__
#pragma interface
#endif
#include "ControlError.h"
#include "GnomeBase.h"
namespace Gtk {
class Button;
class Text;
}
/**
* This class implements the dialog to show error messages.
*/
class FormError : public FormCB<ControlError> {
public:
///
FormError(ControlError & c);
///
~FormError() {};
void apply() {};
void update();
private:
/// Build the dialog
void build();
/// Returns true if the dialog input is in a valid state.
bool validate() const {return true;};
void CloseClicked() { CancelButton(); }
/// The close button
Gtk::Button * close_btn() const;
Gtk::Text * textarea() const;
};
#endif