#include "appl.h"
#include "button.h"
#include "filesele.h"
#include "window.h"
#include "menu.h"
#include "frame.h"
#include "messageb.h"
#include "drawarea.h"

void main ( unsigned int argc, char **argv )
{
  id app, mainwindow, popup, drawarea, button1, button2, button3;

  app=[[WDCApplication alloc] initWithName:"Application", argc, argv];
  mainwindow=[[WDCWindow alloc] initWithName : "MainWindow" managedBy : app];
  [mainwindow setArg:"width" to:(void*)300];
  [mainwindow setArg:"height" to:(void*)400];
  drawarea=[[WDCDrawArea alloc] initWithName : "Draw" managedBy: mainwindow];
  [drawarea setArg:"width" to:(void*)800];
  [drawarea setArg:"height" to:(void*)600];
  popup=[[WDCMenu alloc] initWithName : "PopUp" managedBy : drawarea];
  [[WDCPushButton alloc] initWithName : "General 1" managedBy : popup];
  [[WDCPushButton alloc] initWithName : "General 2" managedBy : popup];
  [[WDCPushButton alloc] initWithName : "General 3" managedBy : popup];
  [app run];
}
