http://ftp.aanet.ru/pub/Linux/X11/apps/xscreensaver-2.31.tar.gz
[xscreensaver] / driver / dialogs-Xaw.c
index 1555544bb10a44d9b3ad201d165cd6572762beae..2487754da3739723bd71eb4027fdae923363b5c5 100644 (file)
@@ -1,5 +1,5 @@
 /* dialogs-Xaw.c --- Athena widgets for demo, options, and password dialogs.
- * xscreensaver, Copyright (c) 1997 Jamie Zawinski <jwz@netscape.com>
+ * xscreensaver, Copyright (c) 1997, 1998 Jamie Zawinski <jwz@jwz.org>
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -73,6 +73,14 @@ Widget done;
 Widget restart;
 /*Widget spacer;*/
 
+Widget splash_dialog;
+Widget splash_form;
+Widget splash_roger_label;
+Widget splash_label1;
+Widget splash_label3;
+Widget splash_demo;
+Widget splash_prefs;
+Widget splash_help;
 
 static Widget buttonbox, textbox, okbox;
 
@@ -322,3 +330,63 @@ create_demo_dialog(Widget parent, Visual *visual, Colormap colormap)
   restart = XtVaCreateManagedWidget("restart", commandWidgetClass, box, NULL);
   done = XtVaCreateManagedWidget("done", commandWidgetClass, box, NULL);
 }
+
+
+void
+create_splash_dialog(Widget parent, Visual *visual, Colormap colormap)
+{
+  Widget box, splash_label2;
+  int depth = visual_depth(XtScreen(parent), visual);
+
+  splash_dialog = 
+    XtVaCreatePopupShell("splash_dialog", transientShellWidgetClass, parent,
+                        XtNtitle, NULL,
+                        XtNoverrideRedirect, TRUE,
+                        XtNvisual, visual,
+                        XtNcolormap, colormap,
+                        XtNdepth, depth,
+                        NULL);
+
+  box = XtVaCreateManagedWidget("box", formWidgetClass, splash_dialog,
+                               XtNleft, XtChainLeft,
+                               XtNright, XtChainRight,
+                               XtNtop, XtChainTop,
+                               XtNbottom, XtChainBottom,
+                               XtNvisual, visual,
+                               XtNcolormap, colormap,
+                               XtNdepth, depth,
+                               NULL);
+
+  splash_roger_label = XtVaCreateManagedWidget("roger", labelWidgetClass, box,
+                                              XtNlabel, "",
+                                              XtNleft, XtChainLeft,
+                                              XtNright, XtChainRight,
+                                              XtNtop, XtChainTop,
+                                              NULL);
+
+  splash_label1 = XtVaCreateManagedWidget("splashLabel1", labelWidgetClass,
+                                         box,
+                                         XtNfromHoriz, splash_roger_label,
+                                         XtNright, XtChainRight,
+                                         XtNtop, XtChainTop,
+                                         NULL);
+  splash_label2 = XtVaCreateManagedWidget("splashLabel2", labelWidgetClass,
+                                         box,
+                                         XtNfromHoriz, splash_roger_label,
+                                         XtNright, XtChainRight,
+                                         XtNfromVert, splash_label1,
+                                         NULL);
+  splash_label3 = XtVaCreateManagedWidget("splashLabel3", labelWidgetClass,
+                                         box,
+                                         XtNfromHoriz, splash_roger_label,
+                                         XtNright, XtChainRight,
+                                         XtNfromVert, splash_label2,
+                                         NULL);
+  
+  splash_form =
+    XtVaCreateManagedWidget("splash_form", dialogWidgetClass, box,
+                           XtNfromHoriz, splash_roger_label,
+                           XtNright, XtChainRight,
+                           XtNfromVert, splash_label3,
+                           NULL);
+}