2002-11-13 02:22:48 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file ControlPrefs.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2002-11-13 02:22:48 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLPREFS_H
|
|
|
|
#define CONTROLPREFS_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "ControlDialog_impl.h"
|
|
|
|
#include "lyxrc.h"
|
|
|
|
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-11-15 02:41:54 +00:00
|
|
|
class Converters;
|
2003-09-18 11:48:11 +00:00
|
|
|
class LColor_color;
|
2002-11-15 02:41:54 +00:00
|
|
|
class Formats;
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-11-13 02:22:48 +00:00
|
|
|
class ControlPrefs : public ControlDialogBI {
|
|
|
|
public:
|
|
|
|
ControlPrefs(LyXView &, Dialogs &);
|
|
|
|
|
|
|
|
// FIXME: we should probably devolve the individual
|
|
|
|
// settings to methods here. But for now, this will
|
|
|
|
// do
|
2002-12-01 22:59:25 +00:00
|
|
|
|
|
|
|
LyXRC & rc() { return rc_; }
|
2002-11-13 02:22:48 +00:00
|
|
|
|
|
|
|
LyXRC const & rc() const { return rc_; }
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-11-15 02:41:54 +00:00
|
|
|
/// various file pickers
|
2003-10-06 15:43:21 +00:00
|
|
|
std::string const browsebind(std::string const & file);
|
|
|
|
std::string const browseUI(std::string const & file);
|
|
|
|
std::string const browsekbmap(std::string const & file);
|
|
|
|
std::string const browsedict(std::string const & file);
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-11-15 02:41:54 +00:00
|
|
|
/// general browse
|
2003-10-06 15:43:21 +00:00
|
|
|
std::string const browse(std::string const & file, std::string const & title);
|
2003-02-21 15:36:29 +00:00
|
|
|
|
2003-01-14 21:51:34 +00:00
|
|
|
/// browse directory
|
2003-10-06 15:43:21 +00:00
|
|
|
std::string const browsedir(std::string const & path, std::string const & title);
|
2002-11-15 02:41:54 +00:00
|
|
|
|
|
|
|
/// redraw widgets (for xforms color change)
|
|
|
|
void redrawGUI();
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-11-15 02:41:54 +00:00
|
|
|
/// set a color
|
2003-10-06 15:43:21 +00:00
|
|
|
void setColor(LColor_color col, std::string const & hex);
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-11-15 02:41:54 +00:00
|
|
|
/// update the screen fonts after change
|
|
|
|
void updateScreenFonts();
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-11-15 02:41:54 +00:00
|
|
|
/// set global converters
|
|
|
|
void setConverters(Converters const & conv);
|
|
|
|
|
|
|
|
/// set global formats
|
|
|
|
void setFormats(Formats const & form);
|
|
|
|
|
2002-11-13 02:22:48 +00:00
|
|
|
private:
|
2002-11-15 02:41:54 +00:00
|
|
|
/// get current lyxrc
|
2002-11-15 02:53:47 +00:00
|
|
|
virtual void setParams();
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-11-13 02:22:48 +00:00
|
|
|
/// apply current lyxrc
|
|
|
|
virtual void apply();
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-11-13 02:22:48 +00:00
|
|
|
/// temporary lyxrc
|
|
|
|
LyXRC rc_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLPREFS_H
|