⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qg_blockdialog.ui.h

📁 qcad2.05可用于windows和linux的源码
💻 H
字号:
/****************************************************************************** ui.h extension file, included from the uic-generated form implementation.**** If you wish to add, delete or rename slots use Qt Designer which will** update this file, preserving your code. Create an init() slot in place of** a constructor, and a destroy() slot in place of a destructor.*****************************************************************************/void QG_BlockDialog::setBlockList(RS_BlockList* l) {	RS_DEBUG->print("QG_BlockDialog::setBlockList");	    blockList = l;    if (blockList!=NULL) {        RS_Block* block = blockList->getActive();        if (block!=NULL) {            leName->setText(block->getName());        } else {            RS_DEBUG->print(RS_Debug::D_ERROR, 				"QG_BlockDialog::setBlockList: No block active.");        }    }}RS_BlockData QG_BlockDialog::getBlockData() {    /*if (blockList!=NULL) {      RS_Block* block = blockList->getActive();        if (block!=NULL) {           return blockList->rename(block, leName->text().latin1());        }}    return false;*/    return RS_BlockData(leName->text(), RS_Vector(0.0,0.0), false);}void QG_BlockDialog::validate() {    QString name = leName->text();    if (!name.isEmpty()) {        if (blockList!=NULL && blockList->find(name)==NULL) {            accept();        } else {            QMessageBox::warning( this, tr("Renaming Block"),                                  tr("Could not name block. A block named \"%1\" "                                     "already exists.").arg(leName->text()),                                  QMessageBox::Ok,                                  QMessageBox::NoButton);        }    }    //else {    //reject();    //}}void QG_BlockDialog::cancel() {    leName->setText("");    reject();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -