Added missing "--buttondistinction" command-line option.

Documented "no button distinction" feature in --usage and man page.
This commit is contained in:
William Kendrick 2005-11-23 21:48:16 +00:00
parent 41bf5d6ce4
commit ed85a6c8f1
2 changed files with 20 additions and 4 deletions

View file

@ -1,5 +1,5 @@
.\" tuxpaint.1 - 2005.11.20 .\" tuxpaint.1 - 2005.11.23
.TH TUXPAINT 1 "20 Nov 2005" "0.9.15" "Tux Paint" .TH TUXPAINT 1 "23 Nov 2005" "0.9.15" "Tux Paint"
.SH NAME .SH NAME
tuxpaint -- A drawing program for young children. tuxpaint -- A drawing program for young children.
@ -21,6 +21,7 @@ tuxpaint -- A drawing program for young children.
[\-\-grab] [\-\-grab]
[\-\-noshortcuts] [\-\-noshortcuts]
[\-\-nowheelmouse] [\-\-nowheelmouse]
[\-\-nobuttondistinction]
[\-\-nofancycursors] [\-\-nofancycursors]
[\-\-nooutlines] [\-\-nooutlines]
[\-\-nostamps] [\-\-nostamps]
@ -47,6 +48,7 @@ tuxpaint -- A drawing program for young children.
[\-\-dontgrab] [\-\-dontgrab]
[\-\-shortcuts] [\-\-shortcuts]
[\-\-wheelmouse] [\-\-wheelmouse]
[\-\-buttondistinction]
[\-\-fancycursors] [\-\-fancycursors]
[\-\-outlines] [\-\-outlines]
[\-\-stamps] [\-\-stamps]
@ -169,6 +171,15 @@ wheel completely ignored, with the \fI\-\-nowheelmouse\fP option.
This is useful for children who aren't yet comfortable with the mouse. This is useful for children who aren't yet comfortable with the mouse.
Default is to support the wheel. Default is to support the wheel.
.TP 8
.B \-\-nobuttondistinction \-\-buttondistinction
By default, only mouse button #1 (typically the leftmost mouse button
on mice with more than one button) can be used for interacting with
\fITux Paint\fP. With the \fI\-\-nobuttondistinction\fP option,
mouse buttons #2 (middle) and #3 (right) can be used, as well.
This is useful for children who aren't yet comfortable with the mouse.
Default is to only recognize button #1.
.TP 8 .TP 8
.B \-\-nofancycursors \-\-fancycursors .B \-\-nofancycursors \-\-fancycursors
Disable or enable (default) the 'fancy' mouse pointer shapes in \fITux Paint\fP. Disable or enable (default) the 'fancy' mouse pointer shapes in \fITux Paint\fP.

View file

@ -22,7 +22,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt) (See COPYING.txt)
June 14, 2002 - November 20, 2005 June 14, 2002 - November 23, 2005
*/ */
@ -6436,6 +6436,7 @@ static void show_usage(FILE * f, char * prg)
" %s [--mixedcase | --uppercase] [--fancycursors | --nofancycursors]\n" " %s [--mixedcase | --uppercase] [--fancycursors | --nofancycursors]\n"
" %s [--mouse | --keyboard] [--dontgrab | --grab]\n" " %s [--mouse | --keyboard] [--dontgrab | --grab]\n"
" %s [--noshortcuts | --shortcuts] [--wheelmouse | --nowheelmouse]\n" " %s [--noshortcuts | --shortcuts] [--wheelmouse | --nowheelmouse]\n"
" %s [--nobuttondistinction | --buttondistinction ]\n"
" %s [--outlines | --nooutlines] [--stamps | --nostamps]\n" " %s [--outlines | --nooutlines] [--stamps | --nostamps]\n"
" %s [--sysfonts | --nosysfonts]\n" " %s [--sysfonts | --nosysfonts]\n"
" %s [--nostampcontrols | --stampcontrols]\n" " %s [--nostampcontrols | --stampcontrols]\n"
@ -6462,7 +6463,7 @@ static void show_usage(FILE * f, char * prg)
blank, blank,
#endif #endif
blank, blank, blank, blank, blank, blank,
blank); blank, blank);
free(blank); free(blank);
} }
@ -7986,6 +7987,10 @@ static void setup(int argc, char * argv[])
{ {
no_button_distinction = 1; no_button_distinction = 1;
} }
else if (strcmp(argv[i], "--buttondistinction") == 0)
{
no_button_distinction = 0;
}
else if (strcmp(argv[i], "--sysfonts") == 0) else if (strcmp(argv[i], "--sysfonts") == 0)
{ {
no_system_fonts = 0; no_system_fonts = 0;