### Copyright (C) 1995, 1996, 1997 Jeppe Buk (buk@imada.sdu.dk)
### This program is free software; you can redistribute it and/or modify
### it under the terms of the GNU General Public License as published by
### the Free Software Foundation; either version 2 of the License, or
### (at your option) any later version.
###
### This program is distributed in the hope that it will be useful,
### but WITHOUT ANY WARRANTY; without even the implied warranty of
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
### GNU General Public License for more details.
###
### You should have received a copy of the GNU General Public License
### along with this program; if not, write to the Free Software
### Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

proc FvwmBanner {} {
  # Modules / FvwmBanner
  Desc "Configuration of the FvwmBanner module"
  ShortDesc "FvwmBanner"

  Header h -text "FvwmBanner" -frame:relief flat \
      -help "On this page you configure the FvwmBanner module. This"\
      "module is used for displaying the Fvwm logo (or another pixmap)"\
      "for a number of seconds - typically during startup of Fvwm2."
  Line l
  CheckBox spawn -text "Spawn this module when Fvwm2 starts" \
      -help "If you check this option the module will be spawned from"\
      "the two functions 'InitFunction' and 'RestartFunction'. You will"\
      "not have to insert them yourself then."

  Entry pixmap -text "Specify another pixmap" -help "If you're using"\
      "the FvwmBanner module for something other than showing the Fvwm2"\
      "logo, you can enter an alternate pixmap file here."
  Int delay -text "Specify the timeout in seconds" -help "If you're not"\
      "satisfied with the default three seconds the pixmap is displayed"\
      "you can enter another delay in seconds here."

  Save {
    if {$pixmap != "" && $pixmap != "/"} {print "*FvwmBannerPixmap\t$pixmap"}
    if {$delay  != ""} {print "*FvwmBannerTimeout\t$delay"}
    if {$spawn == 1} {
      print "AddToFunc InitFunction \"I\" Module FvwmBanner"
      print "AddToFunc RestartFunction \"I\" Module FvwmBanner"
    }
  }
}
