| 1 |
# User feedback for FVWM-Crystal |
| 2 |
# |
| 3 |
# Version: 1.0.0 |
| 4 |
# License: GPL 3+ |
| 5 |
# |
| 6 |
# Author: Dominique Michel <[email protected]> |
| 7 |
# |
| 8 |
# Created: <07/15/2013> |
| 9 |
# Changed: <07/15/2013> |
| 10 |
# |
| 11 |
# Description: Launch a form with information on how to send feedback or receive support. |
| 12 |
# It will also look for $BROWSER and set it if needed |
| 13 |
# |
| 14 |
# syntax: Module FvwmForm UserFeedback-Dialog |
| 15 |
|
| 16 |
# User feedback form {{{1 |
| 17 |
All (UserFeedback-Dialog) Close |
| 18 |
DestroyModuleConfig UserFeedback-Dialog: * |
| 19 |
*UserFeedback-Dialog: Title "$[gt.User feedback]" |
| 20 |
*UserFeedback-Dialog: Text "$[gt.You are welcomed to send feedback to the developer:]" |
| 21 |
*UserFeedback-Dialog: Line center |
| 22 |
*UserFeedback-Dialog: Text "$[gt.bug reports, suggestions, patches, ideas,]" |
| 23 |
*UserFeedback-Dialog: Line center |
| 24 |
*UserFeedback-Dialog: Text "$[gt.congratulations or complaints.]" |
| 25 |
*UserFeedback-Dialog: Line center |
| 26 |
*UserFeedback-Dialog: Text "$[gt.This will help him make this software better.]" |
| 27 |
*UserFeedback-Dialog: Line center |
| 28 |
*UserFeedback-Dialog: Button quit " $[gt.Send feedback (for support keep reading)] " ^M |
| 29 |
*UserFeedback-Dialog: Command MailDev |
| 30 |
*UserFeedback-Dialog: Line center |
| 31 |
*UserFeedback-Dialog: Line center |
| 32 |
*UserFeedback-Dialog: Text "$[gt.To get support, the best places are the]" |
| 33 |
*UserFeedback-Dialog: Line center |
| 34 |
*UserFeedback-Dialog: Text "$[gt.FVWM-Crystal users email list, or the]" |
| 35 |
*UserFeedback-Dialog: Line center |
| 36 |
*UserFeedback-Dialog: Text "$[gt.fvwm-crystal IRC channel on FreeNode:]" |
| 37 |
*UserFeedback-Dialog: Line center |
| 38 |
*UserFeedback-Dialog: Button quit " $[gt.Go to the FVWM-Crystal users email list] " ^N |
| 39 |
*UserFeedback-Dialog: Command BrowseEmailList |
| 40 |
*UserFeedback-Dialog: Line center |
| 41 |
*UserFeedback-Dialog: Button quit " $[gt.Go to the fvwm-crystal IRC channel] " ^O |
| 42 |
*UserFeedback-Dialog: Command CrystalIRC |
| 43 |
*UserFeedback-Dialog: Line center |
| 44 |
*UserFeedback-Dialog: Line center |
| 45 |
*UserFeedback-Dialog: Button quit " $[gt.Not now] " ^[ |
| 46 |
*UserFeedback-Dialog: Command Nop |
| 47 |
*UserFeedback-Dialog: Line center |
| 48 |
|
| 49 |
DestroyFunc MailDev |
| 50 |
AddToFunc MailDev |
| 51 |
+ I X $[BROWSER] mailto:[email protected] |
| 52 |
|
| 53 |
DestroyFunc BrowseEmailList |
| 54 |
AddToFunc BrowseEmailList |
| 55 |
+ I X $[BROWSER] https://mail.gna.org/listinfo/fvwm-crystal-users |
| 56 |
|
| 57 |
DestroyFunc CrystalIRC |
| 58 |
AddToFunc CrystalIRC |
| 59 |
+ I X $[BROWSER] irc://irc.freenode.net:6667/fvwm-crystal |
| 60 |
|
| 61 |
DestroyFunc SetBrowser |
| 62 |
AddToFunc SetBrowser |
| 63 |
+ I SavePreferences BROWSER "SetEnv BROWSER $0" |
| 64 |
+ I SetEnv BROWSER "$0" |
| 65 |
|
| 66 |
# Set browser form {{{1 |
| 67 |
All (SetBrowser-Dialog) Close |
| 68 |
DestroyModuleConfig SetBrowser-Dialog: * |
| 69 |
*SetBrowser-Dialog: Title "$[gt.Default browser]" |
| 70 |
*SetBrowser-Dialog: Text "$[gt.Enter the default browser]" |
| 71 |
*SetBrowser-Dialog: Line center |
| 72 |
*SetBrowser-Dialog: Input browser 40 "/usr/bin/firefox" |
| 73 |
*SetBrowser-Dialog: Line center |
| 74 |
*SetBrowser-Dialog: Line center |
| 75 |
*SetBrowser-Dialog: Button quit " $[gt.Save] " ^M |
| 76 |
*SetBrowser-Dialog: Command SetBrowser "$(browser)" |
| 77 |
*SetBrowser-Dialog: Line center |
| 78 |
|
| 79 |
# Check if $BROWSER exist, if not chek preference, if not set it.{{{1 |
| 80 |
LoadPreferences BROWSER |