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

Class Index

killustrator'InsertPixmapCmd (./koffice/killustrator/share/InsertPixmapCmd.h:32)

class InsertPixmapCmd : public Command {
public:
  InsertPixmapCmd (GDocument* doc, const char* fname);
  ~InsertPixmapCmd ();

  void execute ();
  void unexecute ();

private:
  QString filename;
  GDocument* document;
  GObject* pixmap;
};

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

InsertPixmapCmd::InsertPixmapCmd (GDocument* doc, const char* fname) :
 Command(i18n("Insert Pixmap"))
{
  document = doc;
  filename = fname;
  pixmap = 0L;
}


killustrator'InsertPixmapCmd::~InsertPixmapCmd() (./koffice/killustrator/share/InsertPixmapCmd.cc:39)

InsertPixmapCmd::~InsertPixmapCmd () {
  if (pixmap)
    pixmap->unref ();
}


killustrator'InsertPixmapCmd::execute() (./koffice/killustrator/share/InsertPixmapCmd.cc:44)

void InsertPixmapCmd::execute () {
  if (pixmap)
    pixmap->unref ();

  pixmap = new GPixmap (filename);
  document->insertObject (pixmap);
}


killustrator'InsertPixmapCmd::unexecute() (./koffice/killustrator/share/InsertPixmapCmd.cc:52)

void InsertPixmapCmd::unexecute () {
  if (pixmap)
    document->deleteObject (pixmap);
}