2000-06-12 11:55:12 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1995-2000 The LyX Team.
|
|
|
|
*
|
|
|
|
* This file copyright 1999-2000
|
|
|
|
* Allan Rae
|
|
|
|
*======================================================*/
|
|
|
|
/* FormPreferences.h
|
|
|
|
* FormPreferences Interface Class
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMPREFERENCES_H
|
|
|
|
#define FORMPREFERENCES_H
|
|
|
|
|
2000-10-02 00:10:25 +00:00
|
|
|
#include "FormBase.h"
|
2000-07-27 10:26:38 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG_
|
|
|
|
#pragma interface
|
2000-06-12 11:55:12 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
class LyXView;
|
|
|
|
class Dialogs;
|
2000-08-14 05:24:35 +00:00
|
|
|
|
2000-07-19 15:54:35 +00:00
|
|
|
struct FD_form_preferences;
|
|
|
|
struct FD_form_bind;
|
|
|
|
struct FD_form_misc;
|
|
|
|
struct FD_form_screen_fonts;
|
|
|
|
struct FD_form_interface_fonts;
|
|
|
|
struct FD_form_printer;
|
|
|
|
struct FD_form_paths;
|
2000-06-12 11:55:12 +00:00
|
|
|
|
|
|
|
/** This class provides an XForms implementation of the FormPreferences Dialog.
|
|
|
|
The preferences dialog allows users to set/save their preferences.
|
|
|
|
*/
|
2000-10-02 00:10:25 +00:00
|
|
|
class FormPreferences : public FormBase {
|
2000-06-12 11:55:12 +00:00
|
|
|
public:
|
|
|
|
/// #FormPreferences x(LyXFunc ..., Dialogs ...);#
|
|
|
|
FormPreferences(LyXView *, Dialogs *);
|
|
|
|
///
|
|
|
|
~FormPreferences();
|
|
|
|
private:
|
2000-10-02 00:10:25 +00:00
|
|
|
///
|
|
|
|
virtual void connect();
|
2000-06-12 11:55:12 +00:00
|
|
|
/// Update the dialog.
|
2000-10-02 00:10:25 +00:00
|
|
|
virtual void update();
|
|
|
|
/// OK from dialog
|
|
|
|
virtual void ok();
|
2000-06-12 11:55:12 +00:00
|
|
|
/// Apply from dialog
|
2000-10-02 00:10:25 +00:00
|
|
|
virtual void apply();
|
2000-08-14 05:24:35 +00:00
|
|
|
/// Filter the inputs -- return true if entries are valid
|
2000-10-02 00:10:25 +00:00
|
|
|
virtual bool input(long);
|
2000-06-12 11:55:12 +00:00
|
|
|
/// Build the dialog
|
2000-10-02 00:10:25 +00:00
|
|
|
virtual void build();
|
|
|
|
///
|
|
|
|
virtual FL_FORM * const form() const;
|
2000-06-12 11:55:12 +00:00
|
|
|
///
|
|
|
|
FD_form_preferences * build_preferences();
|
|
|
|
///
|
|
|
|
FD_form_bind * build_bind();
|
|
|
|
///
|
|
|
|
FD_form_misc * build_misc();
|
|
|
|
///
|
|
|
|
FD_form_screen_fonts * build_screen_fonts();
|
|
|
|
///
|
|
|
|
FD_form_interface_fonts * build_interface_fonts();
|
|
|
|
///
|
|
|
|
FD_form_printer * build_printer();
|
|
|
|
///
|
|
|
|
FD_form_paths * build_paths();
|
|
|
|
|
|
|
|
/// Real GUI implementation.
|
|
|
|
FD_form_preferences * dialog_;
|
|
|
|
///
|
|
|
|
FD_form_bind * bind_;
|
|
|
|
///
|
|
|
|
FD_form_misc * misc_;
|
|
|
|
///
|
|
|
|
FD_form_screen_fonts * screen_fonts_;
|
|
|
|
///
|
|
|
|
FD_form_interface_fonts * interface_fonts_;
|
|
|
|
///
|
|
|
|
FD_form_printer * printer_;
|
|
|
|
///
|
|
|
|
FD_form_paths * paths_;
|
2000-08-14 05:24:35 +00:00
|
|
|
/// Overcome a dumb xforms sizing bug
|
2000-08-14 15:31:16 +00:00
|
|
|
int minw_;
|
|
|
|
///
|
|
|
|
int minh_;
|
2000-06-12 11:55:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|