FL_Coord, FL_Coord, int, void *);
private:
+ /// Connect signals etc. Set form's max size.
+ virtual void connect();
+ /// Disconnect signals. Also perform any necessary housekeeping.
+ virtual void disconnect();
/** Redraw the form (on receipt of a Signal indicating, for example,
that the xform colours have been re-mapped). */
virtual void redraw();
/// Outputs tabfolder
FD_form_outer_tab * outputs_tab_;
/// Spellchecker, language stuff, etc
- FD_form_outer_tab * usage_tab_;
+ FD_form_outer_tab * lang_opts_tab_;
/** Flag whether a warning has been posted to the text window.
If so, don't redraw the window when the mouse leaves an object. */
class Colors {
public:
+ ///
+ enum GuiColors {
+ GUI_COLOR_CHOICE = FL_FREE_COL1,
+ GUI_COLOR_HUE_DIAL = FL_FREE_COL2,
+ GUI_COLOR_CURSOR = FL_FREE_COL3
+ };
///
Colors( FormPreferences & p ) : parent_(p), dialog_(0) {}
///
///
string const feedback(FL_OBJECT const * const) const;
///
- bool input(FL_OBJECT const * const);
+ void input(FL_OBJECT const * const);
///
void update() { LoadBrowserLyX(); }
///
void AdjustVal( int, int, double ) const;
///
- bool InputBrowserLyX() const;
- ///
- bool InputBrowserX11() const;
+ void InputBrowserLyX() const;
///
void InputHSV();
///
- void LoadBrowserLyX();
+ void InputRGB();
///
- bool LoadBrowserX11(string const &);
- ///
- bool LoadDatabase();
- ///
- bool Modify() const;
+ void LoadBrowserLyX();
///
- int SearchEntry(RGBColor const &) const;
+ void Modify();
///
- void Sort();
+ void SwitchColorSpace() const;
///
- void SortType();
+ string const X11hexname(RGBColor const &) const;
///
FormPreferences & parent_;
///
FD_form_colors * dialog_;
- /// The usual location of the X11 name database.
- static string const colorFile;
- /** A vector of RGB colors and associated name.
- Each RGB color is unique. */
- static std::vector<NamedColor> colorDB;
/// A vector of LyX LColor GUI name and associated RGB color.
std::vector<NamedColor> lyxColorDB;