2000-10-12 15:17:42 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-25 14:26:13 +00:00
|
|
|
/**
|
|
|
|
* \file GError.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2000-10-12 15:17:42 +00:00
|
|
|
*
|
2002-03-31 23:17:11 +00:00
|
|
|
* \author Michael Koziarski
|
2001-04-03 21:00:26 +00:00
|
|
|
* \author Baruch Even
|
2002-09-25 14:26:13 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
*/
|
2000-10-12 15:17:42 +00:00
|
|
|
|
2002-03-31 23:17:11 +00:00
|
|
|
#ifndef GERROR_H
|
|
|
|
#define GERROR_H
|
2000-10-12 15:17:42 +00:00
|
|
|
|
|
|
|
#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;
|
2002-06-02 04:15:33 +00:00
|
|
|
class TextView;
|
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
|
|
|
*/
|
2002-09-26 08:57:43 +00:00
|
|
|
class GErrorDialog : public GnomeCB<ControlError> {
|
2000-10-12 15:17:42 +00:00
|
|
|
public:
|
2001-04-03 21:00:26 +00:00
|
|
|
///
|
2002-06-02 04:15:33 +00:00
|
|
|
GErrorDialog(ControlError & c);
|
2001-04-03 21:00:26 +00:00
|
|
|
///
|
2002-06-02 04:15:33 +00:00
|
|
|
~GErrorDialog() {}
|
2002-03-11 22:47:41 +00:00
|
|
|
///
|
|
|
|
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
|
2002-06-02 04:15:33 +00:00
|
|
|
Gtk::TextView * textarea() const;
|
2000-10-12 15:17:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|