#include "dialogsh.h"
#include <Xm/DialogS.h>
#include <Xm/Form.h>
#include <Xm/SelectioB.h>

@implementation WDCDialogShell

- initWithName:(char*)aName managedBy:anObject
{
  [self setWidget:XmCreateDialogShell([anObject getWidget],
				      aName,
				      [self getArgList],
				      [self getNumArgs])];
  [self setParentObject: anObject];
  return self;
}

- (WidgetClass)getWidgetClass
{
  return xmDialogShellWidgetClass;
}

- setAction
{
  return self;
}

@end



@implementation WDCPromptDialog


- initWithName:(char*)aName managedBy:anObject
{

  [self setWidget:XmCreatePromptDialog([anObject getWidget],
				       aName,
				       [self getArgList],
				       [self getNumArgs])];
  [self setParentObject: anObject];
  return self;
}

- setAction
{
  return self;
}


@implementation WDCFormDialog

- initWithName:(char*)aName managedBy:anObject
{
  [self setWidget:XmCreateFormDialog([anObject getWidget],
				    aName,
				    [self getArgList],
				    [self getNumArgs])];
  [self setParentObject: anObject];
  return self;
}


@end

@implementation WDCSelectionDialog

- initWithName:(char*)aName managedBy:anObject
{
  [self setWidget:XmCreateSelectionDialog([anObject getWidget],
				      aName,
				      [self getArgList],
				      [self getNumArgs])];
  [self setParentObject: anObject];
  return self;
}

- (WidgetClass)getWidgetClass
{
  return xmSelectionBoxWidgetClass;
}


@end


