Core: Gui: DAGView: Basic Functionality

This commit is contained in:
blobfish
2015-06-17 20:39:49 -04:00
committed by Stefan Tröger
parent cdd55ff801
commit 5a39e5d3bf
3 changed files with 525 additions and 97 deletions

View File

@@ -50,6 +50,8 @@ DAG::DockWindow::DockWindow(Gui::Document* gDocumentIn, QWidget* parent): Gui::D
View::View(QWidget* parentIn): QGraphicsView(parentIn)
{
this->setRenderHint(QPainter::Antialiasing, true);
this->setRenderHint(QPainter::TextAntialiasing, true);
Application::Instance->signalActiveDocument.connect(boost::bind(&View::slotActiveDocument, this, _1));
Application::Instance->signalDeleteDocument.connect(boost::bind(&View::slotDeleteDocument, this, _1));
@@ -106,9 +108,11 @@ void View::onSelectionChanged(const SelectionChanges& msg)
}
//why am I getting a spontanous event with an empty name?
std::ostringstream stream;
stream << std::endl << "couldn't find document of name: " << std::string(msg.pDocName) << std::endl << std::endl;
Base::Console().Warning(stream.str().c_str());
//also getting events after document has been removed from modelMap.
//just ignore for now.
// std::ostringstream stream;
// stream << std::endl << "couldn't find document of name: " << std::string(msg.pDocName) << std::endl << std::endl;
// Base::Console().Warning(stream.str().c_str());
// assert(0); //no document of name.
}