mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
63a78abdb9
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1881 a592a061-630c-0410-9148-cb99ea01b6c8
58 lines
1002 B
C++
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
|