lyx_mirror/src/frontends/gnome/FormError.h
Baruch Even 63a78abdb9 Gnomified FormError.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1881 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-03 21:00:26 +00:00

58 lines
1002 B
C++

// -*- 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