#ifndef FORMPREFERENCES_H
#define FORMPREFERENCES_H
-#ifdef __GNUG__
-#pragma interface
-#endif
#include "FormBase.h"
#include "Color.h" // NamedColor
class ControlPrefs;
-class Combox;
class Dialogs;
class LyXView;
class RGBColor;
struct FD_preferences_interface;
struct FD_preferences_language;
struct FD_preferences_lnf_misc;
+struct FD_preferences_identity;
struct FD_preferences_inner_tab;
struct FD_preferences_outputs_misc;
struct FD_preferences_paths;
/** This class provides an XForms implementation of the FormPreferences Dialog.
- The preferences dialog allows users to set/save their preferences.
+ * The preferences dialog allows users to set/save their preferences.
*/
class FormPreferences : public FormCB<ControlPrefs, FormDB<FD_preferences> > {
public:
void Modify();
///
void SwitchColorSpace() const;
- ///
- string const X11hexname(RGBColor const &) const;
///
FormPreferences & parent_;
bool input(FL_OBJECT const * const);
///
void update(LyXRC const & rc);
- ///
- static void ComboCB(int, void *, Combox *);
private:
///
///
boost::scoped_ptr<FD_preferences_language> dialog_;
///
- boost::scoped_ptr<Combox> combo_default_lang;
- ///
std::vector<string> lang_;
};
///
///
friend class LnFmisc;
+ class Identity {
+ public:
+ ///
+ Identity(FormPreferences & p);
+ ///
+ FD_preferences_identity const * dialog();
+ ///
+ void apply(LyXRC & rc) const;
+ ///
+ void build();
+ ///
+ string const feedback(FL_OBJECT const * const) const;
+ ///
+ void update(LyXRC const & rc);
+
+ private:
+ ///
+ FormPreferences & parent_;
+ ///
+ boost::scoped_ptr<FD_preferences_identity> dialog_;
+ };
+ friend class Identity;
+
///
class OutputsMisc {
public:
///
LnFmisc lnf_misc_;
///
+ Identity identity_;
+ ///
OutputsMisc outputs_misc_;
///
Paths paths_;