struct FD_form_spellchecker;
struct FD_form_language;
struct FD_form_colours;
+class Combox;
/** This class provides an XForms implementation of the FormPreferences Dialog.
The preferences dialog allows users to set/save their preferences.
FormPreferences(LyXView *, Dialogs *);
///
~FormPreferences();
+ ///
+ static void ComboLanguageCB(int, void *, Combox *);
+ ///
+ static void FeedbackCB(FL_OBJECT *, long);
+ ///
+ static int FeedbackPost(FL_OBJECT *ob, int, FL_Coord, FL_Coord,
+ int, void *);
+
private:
///
enum State {
///
SCREENFONTS,
///
- SPELLCHECKER,
- ///
- TABS
+ SPELLCHECKER
};
+
/// Update the dialog.
virtual void update();
///
virtual bool input(FL_OBJECT *, long);
/// Build the dialog
virtual void build();
+ /// control which feedback message is output
+ void feedback( FL_OBJECT * ob );
///
virtual FL_FORM * form() const;
///
///
void buildLanguage();
///
+ void addLanguages( Combox & );
+ ///
void buildLnFmisc();
///
void buildOutputsMisc();
bool ReadableDir( string const & ) const;
///
bool WriteableFile( string const &, string const & = string() ) const;
+ ///
+ void setPostHandler( FL_OBJECT * ) const;
///
FD_form_preferences * build_preferences();
FD_form_screen_fonts * screen_fonts_;
///
FD_form_spellchecker * spellchecker_;
+ ///
+ Combox * combo_default_lang;
+ ///
+ Combox * combo_kbmap_1;
+ ///
+ Combox * combo_kbmap_2;
};
#endif