Exemple #1
0
void Contexts::displayPortion(OovStringRef className)
    {
    if(std::string(className).length() > 0)
        {
        updateOperationList(mProject.getModelData(), className);
        mJournal.displayPortion(className);
        updateJournalList();
        }
    }
Exemple #2
0
void Contexts::displayClass(OovStringRef const className)
    {
    // While the graph is initialized or destructed, there is no name.
    if(std::string(className).length() > 0)
        {
        mClassList.setSelected(className);
        updateOperationList(mProject.getModelData(), className);
        mJournal.displayClass(className);
        updateJournalList();
        }
    }
void OperationListWidget::removeOperations(void)
{
	Messagebox msg_box;

	msg_box.show(trUtf8("Operation history exclusion"),
									trUtf8("Delete the executed operations history is an irreversible action, do you want to continue?"),
									Messagebox::CONFIRM_ICON,
									Messagebox::YES_NO_BUTTONS);

	if(msg_box.result()==QDialog::Accepted)
	{
		model_wgt->op_list->removeOperations();
		updateOperationList();
		rem_operations_tb->setEnabled(false);
	}
}
void OperationListWidget::notifyUpdateOnModel(void)
{
	updateOperationList();
	emit s_operationExecuted();
}
void OperationListWidget::setModel(ModelWidget *model)
{
	operations_tw->clear();
	this->model_wgt=model;
	updateOperationList();
}