2 * draggers - show/hide draggers from CLI
3 * (c) 2004, François Revol - revol@free.fr
8 #include <Application.h>
12 int main(int argc
, char **argv
)
15 BApplication
app("application/x-vnd.Haiku-draggers");
17 printf("%s\n", BDragger::AreDraggersDrawn()?"shown":"hidden");
20 for (i
= 1; i
< argc
; i
++) {
21 if (!strncmp(argv
[i
], "-h", 2)) {
22 printf("draggers [show|hide]\n");
23 printf("Shows/sets draggers state\n");
26 if (!strcmp(argv
[i
], "1")
27 || !strncmp(argv
[i
], "en", 2)
28 || !strncmp(argv
[i
], "sh", 2))
29 BDragger::ShowAllDraggers();
30 else if (!strcmp(argv
[i
], "0")
31 || !strncmp(argv
[i
], "di", 2)
32 || !strncmp(argv
[i
], "hi", 2))
33 BDragger::HideAllDraggers();