Source Code (Use browser search to find items of interest.)

Class Index

killustrator'RemovePointCmd (./koffice/killustrator/share/RemovePointCmd.h:34)

class RemovePointCmd : public Command {
public:
  RemovePointCmd (GDocument* doc, GPolyline* o, int idx);

  ~RemovePointCmd ();

  void execute ();
  void unexecute ();

private:
  GDocument* document;
  GPolyline* obj;
  int index;
  Coord point;
  GPolygon::Kind kind;
};

killustrator'RemovePointCmd::RemovePointCmd() (./koffice/killustrator/share/RemovePointCmd.cc:31)

RemovePointCmd::RemovePointCmd (GDocument* doc, GPolyline* o, int idx) 
  : Command(i18n("Remove Point"))
{
  document = doc;
  obj = o;
  obj->ref ();
  index = idx;
  point = obj->getPoint (idx);
  if (obj->isA ("GPolygon")) {
    GPolygon *poly = (GPolygon *) obj;
    kind = poly->getKind ();
  }
}


killustrator'RemovePointCmd::~RemovePointCmd() (./koffice/killustrator/share/RemovePointCmd.cc:45)

RemovePointCmd::~RemovePointCmd () {
  obj->unref ();
}


killustrator'RemovePointCmd::execute() (./koffice/killustrator/share/RemovePointCmd.cc:49)

void RemovePointCmd::execute () {
  obj->removePoint (index);
}


killustrator'RemovePointCmd::unexecute() (./koffice/killustrator/share/RemovePointCmd.cc:53)

void RemovePointCmd::unexecute () {
  obj->insertPoint (index, point, true);
  if (obj->isA ("GPolygon")) {
    GPolygon *poly = (GPolygon *) obj;
    poly->setKind (kind);
  }
}