home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / tests / PaneTestOne.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.9 KB  |  102 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /*-----------------------------------------*/
  19. /*                                                                        */
  20. /* Name:        PaneTestOne.c                                            */
  21. /* Description:    Test for XfePane widget.                                */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #include <Xfe/XfeTest.h>
  28.  
  29. /*----------------------------------------------------------------------*/
  30. int
  31. main(int argc,char *argv[])
  32. {
  33.     Widget        frame;
  34.     Widget        main_form;
  35.     Widget        main_pane;
  36.  
  37.     Widget        e_pane;
  38.     Widget        w_pane;
  39.  
  40.     Widget        ne_pane;
  41.     Widget        nw_pane;
  42.     Widget        se_pane;
  43.     Widget        sw_pane;
  44.  
  45.     XfeAppCreateSimple("PaneTestOne",&argc,argv,"Frame",&frame,&main_form);
  46.     
  47.     main_pane = XtVaCreateManagedWidget("MainPane",
  48.                                         xfePaneWidgetClass,
  49.                                         main_form,
  50.                                         NULL);
  51.  
  52.     e_pane = XtVaCreateManagedWidget("EPane",
  53.                                      xfePaneWidgetClass,
  54.                                         main_pane,
  55.                                      NULL);
  56.     
  57.     w_pane = XtVaCreateManagedWidget("WPane",
  58.                                      xfePaneWidgetClass,
  59.                                      main_pane,
  60.                                      NULL);
  61.  
  62.     ne_pane = XtVaCreateManagedWidget("NEPane",
  63.                                       xfePaneWidgetClass,
  64.                                       e_pane,
  65.                                       NULL);
  66.  
  67.     se_pane = XtVaCreateManagedWidget("NEPane",
  68.                                       xfePaneWidgetClass,
  69.                                       e_pane,
  70.                                       NULL);
  71.  
  72.     nw_pane = XtVaCreateManagedWidget("NWPane",
  73.                                       xfePaneWidgetClass,
  74.                                       w_pane,
  75.                                       NULL);
  76.  
  77.     sw_pane = XtVaCreateManagedWidget("SWPane",
  78.                                       xfePaneWidgetClass,
  79.                                       w_pane,
  80.                                       NULL);
  81.  
  82.      XfeCreateFormAndButton(se_pane,"Form","SE1",5,True,NULL,0);
  83.      XfeCreateFormAndButton(se_pane,"Form","SE2",5,True,NULL,0);
  84.  
  85.      XfeCreateFormAndButton(sw_pane,"Form","SW1",5,True,NULL,0);
  86.      XfeCreateFormAndButton(sw_pane,"Form","SW2",5,True,NULL,0);
  87.  
  88.      XfeCreateFormAndButton(ne_pane,"Form","NE1",5,True,NULL,0);
  89.      XfeCreateFormAndButton(ne_pane,"Form","NE2",5,True,NULL,0);
  90.  
  91.      XfeCreateFormAndButton(nw_pane,"Form","NW1",5,True,NULL,0);
  92.      XfeCreateFormAndButton(nw_pane,"Form","NW2",5,True,NULL,0);
  93.  
  94.  
  95.     XtPopup(frame,XtGrabNone);
  96.  
  97.     XfeAppMainLoop();
  98.  
  99.     return 0;
  100. }
  101. /*----------------------------------------------------------------------*/
  102.