Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DasherSettingsInterface.h

Go to the documentation of this file.
00001 // DasherSettingsInterface.h
00002 //
00004 //
00005 // Copyright (c) 2002 Iain Murray
00006 //
00008 
00009 
00010 #ifndef __DasherSettingsInterface_h__
00011 #define __DasherSettingsInterface_h__
00012 
00013 #include "DasherTypes.h"
00014 #include "SettingsStore.h"
00015 
00016 namespace Dasher {class CDasherSettingsInterface;}
00017 class Dasher::CDasherSettingsInterface
00018 {
00019 public:
00020         void SettingsDefaults(CSettingsStore* Store);
00021         
00022         // These actually affect the way Dasher works
00024         virtual void ChangeAlphabet(const std::string& ) {};
00025 
00027         virtual void ChangeMaxBitRate(double ) {};
00028 
00030         virtual void ChangeLanguageModel(unsigned int ) {};
00031 
00033         virtual void ChangeView(unsigned int ) {};
00034 
00036         virtual void ChangeOrientation(Opts::ScreenOrientations ) {};
00037 
00039         virtual void SetFileEncoding(Opts::FileEncodingFormats ) {};
00040 
00042         virtual void SetScreenSize(long , long ) {};
00043         
00045         virtual void SetDasherFontSize(Dasher::Opts::FontSize ) {};
00046 
00048         virtual void SetDasherDimensions(bool ) {};
00049 
00050         // These are recommended options for the Dasher GUI. {{{ They don't actually
00051         // change the way Dasher works. They are part of the Dasher interface
00052         // anyway so that it can handle option saving for you, and to make it
00053         // easy for the Dasher engine to control the GUI later on. }}}
00054 
00056         virtual void ShowToolbar(bool ) {};
00057 
00059         virtual void ShowToolbarText(bool ) {};
00060 
00062         virtual void ShowToolbarLargeIcons(bool ) {};
00063 
00065         virtual void ShowSpeedSlider(bool ) {};
00066 
00068         virtual void FixLayout(bool ) {};
00069 
00071         virtual void TimeStampNewFiles(bool ) {};
00072 
00074         virtual void CopyAllOnStop(bool ) {};
00075 
00077         virtual void DrawMouse(bool ) {};
00078 
00080         virtual void SetEditFont(std::string , long ) {};
00081 
00083         virtual void SetDasherFont(std::string ) {};
00084 
00086         virtual void SetEditHeight(long ) {};
00087         
00089         virtual void StartOnSpace(bool ) {};
00090 
00092         virtual void StartOnLeft(bool ) {};
00093         
00095         virtual void KeyControl(bool ) {};
00096         
00098         virtual void WindowPause(bool ) {};
00099 };
00100 
00101 
00102 #include <string>
00103 
00104 namespace Dasher
00105 {
00106 namespace Keys
00107 {
00108         // Standard Option strings. You are encouraged to use these constants.
00109         // -------------------------------------------------------------------
00110         
00111         // bool options
00112         extern const std::string TIME_STAMP;
00113         extern const std::string SHOW_TOOLBAR;
00114         extern const std::string SHOW_TOOLBAR_TEXT;
00115         extern const std::string SHOW_LARGE_ICONS;
00116         extern const std::string FIX_LAYOUT;
00117         extern const std::string SHOW_SLIDER;
00118         extern const std::string COPY_ALL_ON_STOP;
00119         extern const std::string DRAW_MOUSE;
00120         extern const std::string START_SPACE;
00121         extern const std::string START_MOUSE;
00122         extern const std::string KEY_CONTROL;
00123         extern const std::string WINDOW_PAUSE;
00124         // long options
00125         extern const std::string FILE_ENCODING;
00126         extern const std::string MAX_BITRATE_TIMES100;
00127         extern const std::string SCREEN_ORIENTATION;
00128         extern const std::string VIEW_ID;
00129         extern const std::string LANGUAGE_MODEL_ID;
00130         extern const std::string EDIT_FONT_SIZE;
00131         extern const std::string EDIT_HEIGHT;
00132         extern const std::string SCREEN_WIDTH;
00133         extern const std::string SCREEN_HEIGHT;
00134         extern const std::string DASHER_FONTSIZE;
00135         extern const std::string DASHER_DIMENSIONS;
00136         
00137         // string options
00138         extern const std::string ALPHABET_ID;
00139         extern const std::string DASHER_FONT;
00140         extern const std::string EDIT_FONT;
00141 }
00142 } // namespace Dasher
00143 
00144 
00145 #endif /* #ifndef __DasherSettingsInterface_h__ */
00146 
00147 
00148 
00149 

Generated on Sat Nov 5 16:16:00 2005 for OPIE by  doxygen 1.4.2