Version: 8.3.0
FormUndoRedo Class Reference

#include <FormUndoRedo.hxx>

Inheritance diagram for FormUndoRedo:
Collaboration diagram for FormUndoRedo:

Public Member Functions

 FormUndoRedo (QWidget *parent=0)
 
virtual ~FormUndoRedo ()
 

Detailed Description

Definition at line 25 of file FormUndoRedo.hxx.

Constructor & Destructor Documentation

FormUndoRedo::FormUndoRedo ( QWidget parent = 0)

Definition at line 37 of file FormUndoRedo.cxx.

References YACS::HMI::Invocator::getDone(), and YACS::HMI::Invocator::getUndone().

38 {
39  setupUi(this);
40 
41  Invocator *procInvoc = GuiContext::getCurrent()->getInvoc();
42  list<string> commandsDone = procInvoc->getDone();
43  list<string> commandsUndone = procInvoc->getUndone();
44 
45  QList<QTreeWidgetItem *> itemsDone;
46  list<string>::iterator it;
47  for(it = commandsDone.begin(); it != commandsDone.end(); ++it)
48  {
49  (*it).erase((*it).rfind("\n"));
50  QTreeWidgetItem *commItem = new QTreeWidgetItem((QTreeWidget*)0, QStringList(QString((*it).c_str())));
51  itemsDone.append(commItem);
52  }
53  treeWdUndo->insertTopLevelItems(0, itemsDone);
54 
55  QList<QTreeWidgetItem *> itemsUndone;
56  for(it = commandsUndone.begin(); it != commandsUndone.end(); ++it)
57  {
58  (*it).erase((*it).rfind("\n"));
59  QTreeWidgetItem *commItem = new QTreeWidgetItem((QTreeWidget*)0, QStringList(QString((*it).c_str())));
60  itemsUndone.append(commItem);
61  }
62  treeWdRedo->insertTopLevelItems(0, itemsUndone);
63 }
FormUndoRedo::~FormUndoRedo ( )
virtual

Definition at line 65 of file FormUndoRedo.cxx.

66 {
67 }

The documentation for this class was generated from the following files: