mod/maxgui.mod/fltkmaxgui.mod/src/Fl.cxx
bool Fl::option(Fl_Option o)
{
  if (!options_read_) {
    int tmp;
    { // first, read the system wide preferences
      Fl_Preferences prefs(Fl_Preferences::SYSTEM, "fltk.org", "fltk");
      Fl_Preferences opt(prefs, "options");
      prefs.get("ArrowFocus", tmp, 0); options_[OPTION_ARROW_FOCUS] = tmp;
      prefs.get("NativeFilechooser", tmp, 0); options_[OPTION_NATIVE_FILECHOOSER] = tmp;
    }
    { // next, check the user preferences
      Fl_Preferences prefs(Fl_Preferences::USER, "fltk.org", "fltk");
      Fl_Preferences opt(prefs, "options");
      prefs.get("ArrowFocus", tmp, 0); options_[OPTION_ARROW_FOCUS] = tmp;
      prefs.get("NativeFilechooser", tmp, 0); options_[OPTION_NATIVE_FILECHOOSER] = tmp;
    }
    { // now, if the developer has registered this app, we could as for per-application preferences
    }
    options_read_ = 1;
  }
  if (o<0 || o>=OPTION_LAST) 
    return false;
  return (bool)options_[o];
}
/**
 \brief User interface options management.
 
 This function needs to be documented in more detail. It can be used for more
 optional settings, such as using a native file chooser instead of the FLTK one
 wherever possible, disabeling tooltips, disabeling visible focus, disabeling 
 FLTK file chooser preview, etc. .
 
 There should be a command line option interface.
 
 There should be an application that manages options system wide, per user, and
 per application.
 */
\brief User interface options management.
This function needs to be documented in more detail. It can be used for more
optional settings, such as using a native file chooser instead of the FLTK one
wherever possible, disabeling tooltips, disabeling visible focus, disabeling
FLTK file chooser preview, etc.

There should be a command line option interface.

There should be an application that manages options system wide, per user, and
per application.
\ brief User interface options management . This function needs to be documented in more detail . It can be used for more optional settings such as using a native file chooser instead of the FLTK one wherever possible disabeling tooltips disabeling visible focus disabeling FLTK file chooser preview etc . There should be a command line option interface . There should be an application that manages options system wide per user and per application .
bool Fl::option(Fl_Option o)
{
  if (!options_read_) {
    int tmp;
    { 
      Fl_Preferences prefs(Fl_Preferences::SYSTEM, "fltk.org", "fltk");
      Fl_Preferences opt(prefs, "options");
      prefs.get("ArrowFocus", tmp, 0); options_[OPTION_ARROW_FOCUS] = tmp;
      prefs.get("NativeFilechooser", tmp, 0); options_[OPTION_NATIVE_FILECHOOSER] = tmp;
    }
    { 
      Fl_Preferences prefs(Fl_Preferences::USER, "fltk.org", "fltk");
      Fl_Preferences opt(prefs, "options");
      prefs.get("ArrowFocus", tmp, 0); options_[OPTION_ARROW_FOCUS] = tmp;
      prefs.get("NativeFilechooser", tmp, 0); options_[OPTION_NATIVE_FILECHOOSER] = tmp;
    }
    { 
    }
    options_read_ = 1;
  }
  if (o<0 || o>=OPTION_LAST) 
    return false;
  return (bool)options_[o];
}
bool Fl :: option ( Fl_Option o ) { if ( ! options_read_ ) { int tmp ; { Fl_Preferences prefs ( Fl_Preferences :: SYSTEM , " " , " " ) ; Fl_Preferences opt ( prefs , " " ) ; prefs . get ( " " , tmp , 0 ) ; options_ [ OPTION_ARROW_FOCUS ] = tmp ; prefs . get ( " " , tmp , 0 ) ; options_ [ OPTION_NATIVE_FILECHOOSER ] = tmp ; } { Fl_Preferences prefs ( Fl_Preferences :: USER , " " , " " ) ; Fl_Preferences opt ( prefs , " " ) ; prefs . get ( " " , tmp , 0 ) ; options_ [ OPTION_ARROW_FOCUS ] = tmp ; prefs . get ( " " , tmp , 0 ) ; options_ [ OPTION_NATIVE_FILECHOOSER ] = tmp ; } { } options_read_ = 1 ; } if ( o < 0 || o >= OPTION_LAST ) return false ; return ( bool ) options_ [ o ] ; }
\brief User interface options management.
\ brief User interface options management .
// first, read the system wide preferences // next, check the user preferences // now, if the developer has registered this app, we could as for per-application preferences