summaryrefslogtreecommitdiff
path: root/CIAO/examples/Display/NavDisplayGUI_exec/AddNavUnitCmd.cpp
blob: 52cce23d000edf5b13b787c335b3b796cdc10aae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// $Id$

#include "AddNavUnitCmd.h"
#include "RootPanel.h"
#include "NavUnit.h"


AddNavUnitCmd::AddNavUnitCmd()
{
}


AddNavUnitCmd *
AddNavUnitCmd::create(RootPanel *form, NavUnit *unit)
{
  AddNavUnitCmd *cmd = new AddNavUnitCmd();
  cmd->form_ = form;
  cmd->unit_ = unit;
  return cmd;
}


int
AddNavUnitCmd::execute(void * /* context */)
{
  this->form_->addUnit (this->unit_);
  return 0;
}