#pragma interface
#endif
-class LyXView;
+class Combox;
+class Command;
class Dialogs;
+class Format;
+class LyXView;
struct FD_form_colours;
struct FD_form_converters;
struct FD_form_formats;
struct FD_form_printer;
struct FD_form_screen_fonts;
struct FD_form_spellchecker;
-class Combox;
-class Format;
/** This class provides an XForms implementation of the FormPreferences Dialog.
The preferences dialog allows users to set/save their preferences.
///
static void ComboLanguageCB(int, void *, Combox *);
///
- static void FeedbackCB(FL_OBJECT *, long);
- ///
- void feedbackPost(FL_OBJECT *, int);
+ static int FeedbackCB(FL_OBJECT *, int,
+ FL_Coord, FL_Coord, int, void *);
private:
/// helper struct for Colours
virtual void build();
/// control which feedback message is output
void feedback( FL_OBJECT * );
+ /// The handler for the preemptive feedback
+ void Feedback(FL_OBJECT *, int);
///
virtual FL_FORM * form() const;
///
bool inputColours(FL_OBJECT const * const);
///
+ bool inputConverters( FL_OBJECT const * const );
+ ///
bool inputFormats( FL_OBJECT const * const );
///
bool inputLanguage(FL_OBJECT const * const);
void ColoursUpdateBrowser( int );
///
void ColoursUpdateRGB();
+
+ ///
+ bool ConvertersAdd();
+ ///
+ bool ConvertersBrowser();
///
- bool FormatsInputAdd();
+ void ConvertersClear() const;
///
- bool FormatsInputBrowser();
+ bool ConvertersContainFormat( Format const &) const;
///
- bool FormatsInputDelete();
+ bool ConvertersDelete();
///
- bool FormatsInputInput();
+ bool ConvertersInput();
+ ///
+ bool ConvertersSetCommand( Command & ) const;
+ ///
+ void ConvertersUpdateChoices();
+
+ bool FormatsAdd();
+ ///
+ bool FormatsBrowser();
+ ///
+ void FormatsClear() const;
+ ///
+ bool FormatsDelete();
+ ///
+ bool FormatsInput();
///
- bool WriteableDir( string const & ) const;
+ bool WriteableDir( string const & );
///
- bool ReadableDir( string const & ) const;
+ bool ReadableDir( string const & );
///
- bool WriteableFile( string const &, string const & = string() ) const;
+ bool WriteableFile( string const &, string const & = string() );
- /// The timer post handler.
- void setPostHandler( FL_OBJECT * ) const;
+ ///
+ void setPreHandler( FL_OBJECT * ) const;
+ ///
+ void printWarning( string const & );
/// Type definitions from the fdesign produced header file.
FD_form_preferences * build_preferences();
Combox * combo_kbmap_1;
///
Combox * combo_kbmap_2;
- ///
- FL_OBJECT * feedbackObj;
/// A vector of Formats, to be manipulated in the Format browser.
std::vector<Format> formats_vec;
+ /// A vector of Commands, to be manipulated in the Converter browser.
+ std::vector<Command> commands_vec;
/// A vector of RGB colours and associated name.
static std::vector<X11Colour> colourDB;
/** A collection of kmap files.
Eg, system_lyxdir/kbd/american2.kmap, american2
*/
static std::pair<std::vector<string>, std::vector<string> > dirlist;
+ ///
+ bool warningPosted;
};
inline