本文整理汇总了C++中QC_ApplicationWindow::slotFileNew方法的典型用法代码示例。如果您正苦于以下问题:C++ QC_ApplicationWindow::slotFileNew方法的具体用法?C++ QC_ApplicationWindow::slotFileNew怎么用?C++ QC_ApplicationWindow::slotFileNew使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QC_ApplicationWindow
的用法示例。
在下文中一共展示了QC_ApplicationWindow::slotFileNew方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: requestEditBlockWindow
/**
* Provides a new window for editing the active block.
*/
void QC_DialogFactory::requestEditBlockWindow(RS_BlockList* blockList) {
RS_DEBUG->print("QC_DialogFactory::requestEditBlockWindow()");
QC_ApplicationWindow* appWindow = QC_ApplicationWindow::getAppWindow();
QC_MDIWindow* parent = appWindow->getMDIWindow();
if (parent!=NULL) {
//RS_BlockList* blist = blockWidget->getBlockList();
if (blockList!=NULL) {
RS_Block* blk = blockList->getActive();
if (blk!=NULL) {
QC_MDIWindow* w = appWindow->slotFileNew(blk);
// the parent needs a pointer to the block window and
// vice versa
parent->addChildWindow(w);
w->getGraphicView()->zoomAuto(false);
}
}
}
}
示例2: requestEditBlockWindow
/**
* Provides a new window for editing the active block.
*/
void QC_DialogFactory::requestEditBlockWindow(RS_BlockList* /*blockList*/) {
RS_DEBUG->print("QC_DialogFactory::requestEditBlockWindow()");
QC_ApplicationWindow* appWindow = QC_ApplicationWindow::getAppWindow();
QC_MDIWindow* parent = appWindow->getMDIWindow();
if (parent!=NULL) {
//get blocklist from block widget, bug#3497154
RS_BlockList* blist = appWindow->getBlockWidget() -> getBlockList();
if (blist !=NULL) {
RS_Block* blk = blist->getActive();
// std::cout<<"QC_DialogFactory::requestEditBlockWindow(): size()="<<((blk==NULL)?0:blk->count() )<<std::endl;
if (blk!=NULL) {
QC_MDIWindow* w = appWindow->slotFileNew(blk);
// the parent needs a pointer to the block window and
// vice versa
parent->addChildWindow(w);
w->getGraphicView()->zoomAuto(false);
//update grid settings, bug#3443293
w->getGraphicView()->getGrid()->updatePointArray();
}
}
}
}