Go to the documentation of this file.
34 #ifndef TTA_OPERATION_PROPERTY_DIALOG_HH
35 #define TTA_OPERATION_PROPERTY_DIALOG_HH
38 #include <wx/listctrl.h>
39 #include <wx/choice.h>
57 const std::string& path);
68 wxSizer*
createContents(wxWindow* parent,
bool call_fit,
bool set_sizer);
91 void onOpen(wxCommandEvent& event);
97 void onNewDAG(wxCommandEvent& event);
102 void moveUp(std::vector<Operand*>& ops,
int id, wxListCtrl* list);
103 void moveDown(std::vector<Operand*>& ops,
int id, wxListCtrl* list);
106 void onOk(wxCommandEvent& event);
226 DECLARE_EVENT_TABLE()
bool readMemory_
Does operation read memory?
wxString name_
Name of the operation.
void onModifyOutputOperand(wxCommandEvent &event)
void onDeleteOutputOperand(wxCommandEvent &event)
void onMoveInputUp(wxCommandEvent &event)
Operation * operation_
Operation to be created or to be modified.
void onDAGChange(wxCommandEvent &event)
Operation * operation() const
void onAddOutputOperand(wxCommandEvent &event)
void onDeleteAffects(wxCommandEvent &event)
void onSelection(wxListEvent &event)
wxComboBox * affectsChoice_
Choice box for new affects operations.
OperationPropertyDialog & operator=(const OperationPropertyDialog &)
Assignment not allowed.
wxCheckBox * readMemoryCB_
Read memory check box.
bool isBranch_
Operation is branch.
@ ID_OPERATION_AFFECTED_BY
void onModifyInputOperand(wxCommandEvent &event)
void onDeleteDAG(wxCommandEvent &event)
@ ID_OUTPUT_DELETE_BUTTON
void onOk(wxCommandEvent &event)
bool controlFlow_
Can operation can change program flow.
wxStaticBoxSizer * affectedBySizer_
Affected by sizer.
wxTextCtrl * editDescription_
virtual ~OperationPropertyDialog()
void updateOperation(bool newOpDag)
bool isCall_
Operation performs function call.
void onMoveInputDown(wxCommandEvent &event)
bool canTrap_
Can operation trap?
void moveUp(std::vector< Operand * > &ops, int id, wxListCtrl *list)
void onOpen(wxCommandEvent &event)
wxCheckBox * canTrapCB_
Can trap check box.
void onMoveOutputDown(wxCommandEvent &event)
wxCheckBox * clockedCB_
Clocked check box.
void updateSwapLists(std::vector< std::string > deletedOperands)
wxListCtrl * affectedByList_
List of affected by operations.
void onComboBoxChange(wxCommandEvent &event)
void onMoveOutputUp(wxCommandEvent &event)
wxStaticBoxSizer * affectsSizer_
Affects sizer.
wxCheckBox * writeMemoryCB_
Write memory check box.
wxComboBox * affectedByChoice_
Choice box for new affected by operations.
void onDeleteInputOperand(wxCommandEvent &event)
wxListCtrl * inputOperandList_
List of input operands.
@ ID_OUTPUT_MODIFY_BUTTON
std::string path_
Path in which module belongs to.
wxStaticBoxSizer * inputSizer_
Input operand sizer.
std::vector< std::string > getSelectedItems(wxListCtrl *listCtrl)
bool clocked_
Is operation clocked?
wxBitmap createBitmaps(size_t index)
wxCheckBox * sideEffectsCB_
Has side effects check box.
void onOpenDAG(wxCommandEvent &event)
void onUndoDAG(wxCommandEvent &event)
std::vector< std::string > affects_
Operations that affects this operation.
wxStaticBoxSizer * outputSizer_
Output operand sizer.
void onAddInputOperand(wxCommandEvent &event)
void launchEditor(const std::string &cmd)
virtual bool TransferDataToWindow()
@ ID_AFFECTED_DELETE_BUTTON
std::vector< std::string > affectedBy_
Operations that are affected by this operation.
wxListCtrl * affectsList_
List of affects operations.
@ ID_AFFECTS_DELETE_BUTTON
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
bool operationWasCreatedHere_
OperationPropertyDialog(wxWindow *parent, Operation *op, OperationModule &module, const std::string &path)
OperationModule & module_
Module in which operation belongs to.
void onAddAffects(wxCommandEvent &event)
std::vector< Operand * > outputOperands_
Output operands.
void onSaveDAG(wxCommandEvent &event)
std::vector< Operand * > inputOperands_
Input operands.
bool hasSideEffects_
Does operation has side effects?
wxListCtrl * outputOperandList_
List of output operands.
void onDeleteAffectedBy(wxCommandEvent &event)
void onAddAffectedBy(wxCommandEvent &event)
bool writeMemory_
Does operation write memory?
void moveDown(std::vector< Operand * > &ops, int id, wxListCtrl *list)
ObjectState * saveOperation()
void onNewDAG(wxCommandEvent &event)
ObjectState * orig_
Original operation's ObjectState tree.