// -*- C++ -*-
/**
* \file FormPreferences.h
- * Copyright 1999-2001 Allan Rae
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Allan Rae
* \author Angus Leeming
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#ifndef FORMPREFERENCES_H
#define FORMPREFERENCES_H
-#ifdef __GNUG__
-#pragma interface
-#endif
-
#include "FormBase.h"
-#include "Color.h" // NamedColor
#include "xforms_helpers.h" // XformColor
-#include <boost/scoped_ptr.hpp>
+#include "lyx_forms.h"
-#include FORMS_H_LOCATION
-#include <utility> // pair
+#include <boost/scoped_ptr.hpp>
class ControlPrefs;
-class Combox;
class Dialogs;
+class LyXRC;
class LyXView;
+class NamedColor;
class RGBColor;
+class FormColorpicker;
+
struct FD_preferences;
struct FD_preferences_colors;
struct FD_preferences_converters;
/** 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:
/// Build the dialog
virtual void build();
/// control which feedback message is output
- string const getFeedback(FL_OBJECT *);
+ std::string const getFeedback(FL_OBJECT *);
/// Converters tabfolder
boost::scoped_ptr<FD_preferences_inner_tab> converters_tab_;
public:
///
enum GuiColors {
- GUI_COLOR_CHOICE = FL_FREE_COL14,
- GUI_COLOR_HUE_DIAL = FL_FREE_COL15,
+ GUI_COLOR_CHOICE = FL_FREE_COL15,
GUI_COLOR_CURSOR = FL_FREE_COL16
};
///
///
void build();
///
- string const feedback(FL_OBJECT const * const) const;
+ std::string const feedback(FL_OBJECT const * const) const;
///
void input(FL_OBJECT const * const);
///
///
void InputBrowserLyX() const;
///
- void InputHSV();
- ///
- void InputRGB();
- ///
void LoadBrowserLyX();
///
void Modify();
- ///
- void SwitchColorSpace() const;
- ///
- string const X11hexname(RGBColor const &) const;
///
FormPreferences & parent_;
///
boost::scoped_ptr<FD_preferences_colors> dialog_;
+ ///
+ boost::scoped_ptr<FormColorpicker> picker_;
/// A vector of LyX LColor GUI name and associated RGB color.
std::vector<NamedColor> lyxColorDB;
///
void build();
///
- string const feedback(FL_OBJECT const * const) const;
+ std::string const feedback(FL_OBJECT const * const) const;
///
bool input(FL_OBJECT const * const);
///
///
bool Input();
///
- string const GetFrom() const;
+ std::string const GetFrom() const;
///
- string const GetTo() const;
+ std::string const GetTo() const;
///
FormPreferences & parent_;
///
void build();
///
- string const feedback(FL_OBJECT const * const) const;
+ std::string const feedback(FL_OBJECT const * const) const;
///
bool input(FL_OBJECT const * const);
///
///
void build();
///
- string const feedback(FL_OBJECT const * const) const;
+ std::string const feedback(FL_OBJECT const * const) const;
///
void update(LyXRC const & rc);
///
void build();
///
- string const feedback(FL_OBJECT const * const) const;
+ std::string const feedback(FL_OBJECT const * const) const;
///
bool input(FL_OBJECT const * const);
///
///
void build();
///
- string const feedback(FL_OBJECT const * const) const;
+ std::string const feedback(FL_OBJECT const * const) const;
///
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_;
+ std::vector<std::string> lang_;
};
///
friend class Language;
///
void build();
///
- string const feedback(FL_OBJECT const * const) const;
+ std::string const feedback(FL_OBJECT const * const) const;
///
void update(LyXRC const & rc);
///
void build();
///
- string const feedback(FL_OBJECT const * const) const;
+ std::string const feedback(FL_OBJECT const * const) const;
///
void update(LyXRC const & rc);
boost::scoped_ptr<FD_preferences_identity> dialog_;
};
friend class Identity;
-
+
///
class OutputsMisc {
public:
///
void build();
///
- string const feedback(FL_OBJECT const * const) const;
+ std::string const feedback(FL_OBJECT const * const) const;
///
void update(LyXRC const & rc);
///
void build();
///
- string const feedback(FL_OBJECT const * const) const;
+ std::string const feedback(FL_OBJECT const * const) const;
///
bool input(FL_OBJECT const * const);
///
///
void build();
///
- string const feedback(FL_OBJECT const * const) const;
+ std::string const feedback(FL_OBJECT const * const) const;
///
void update(LyXRC const & rc);
///
void build();
///
- string const feedback(FL_OBJECT const * const) const;
+ std::string const feedback(FL_OBJECT const * const) const;
///
bool input();
///
///
void build();
///
- string const feedback(FL_OBJECT const * const) const;
+ std::string const feedback(FL_OBJECT const * const) const;
///
bool input(FL_OBJECT const * const);
///