分析工具菜单添加数据导出和可视视图
This commit is contained in:
parent
0c43cb88e3
commit
5bccdc8808
|
|
@ -228,6 +228,8 @@ void MainWindow::initTitleBar()
|
||||||
m_dataMenu->addAction(QIcon( ::GetImagePath() + "wellog.png"), tr("&数据导入"), this, SLOT(s_ImportSingleWellLogData()));
|
m_dataMenu->addAction(QIcon( ::GetImagePath() + "wellog.png"), tr("&数据导入"), this, SLOT(s_ImportSingleWellLogData()));
|
||||||
//
|
//
|
||||||
QMenu* m_analyzeToolMenu = this->menuBar()->addMenu(tr("分析工具(&W)"));
|
QMenu* m_analyzeToolMenu = this->menuBar()->addMenu(tr("分析工具(&W)"));
|
||||||
|
m_analyzeToolMenu->addAction(QIcon( ::GetImagePath() + "outcurves.png"), tr("&数据导出"), this, SLOT(s_OutWellLogRound()));
|
||||||
|
m_analyzeToolMenu->addAction(QIcon( ::GetImagePath() + "wellsectionwindow.png"), tr("&可视解释"), this, SLOT(s_showView()));
|
||||||
//
|
//
|
||||||
QMenu* m_resultMenu = this->menuBar()->addMenu(tr("成果输出(&R)"));
|
QMenu* m_resultMenu = this->menuBar()->addMenu(tr("成果输出(&R)"));
|
||||||
m_resultMenu->addAction(QIcon( ::GetImagePath() + "icon/SaveAsPicture.png"), tr("&导出长图"), this, SLOT(s_SaveAsPicture()));
|
m_resultMenu->addAction(QIcon( ::GetImagePath() + "icon/SaveAsPicture.png"), tr("&导出长图"), this, SLOT(s_SaveAsPicture()));
|
||||||
|
|
|
||||||
|
|
@ -1980,7 +1980,8 @@ void QtProjectWidgets::onOutWellLogRound()
|
||||||
{
|
{
|
||||||
QStringList namelist;//=GetSelWellRound();
|
QStringList namelist;//=GetSelWellRound();
|
||||||
QTreeWidgetItem *wellItem = *ui->treeWidget->selectedItems().begin();
|
QTreeWidgetItem *wellItem = *ui->treeWidget->selectedItems().begin();
|
||||||
if (wellItem)
|
int nSelSize = ui->treeWidget->selectedItems().size();// 防止没有选中时崩溃
|
||||||
|
if (wellItem && nSelSize>0)
|
||||||
{
|
{
|
||||||
QString strTreeTag = wellItem->data(0, Qt::UserRole).toString();
|
QString strTreeTag = wellItem->data(0, Qt::UserRole).toString();
|
||||||
if (strTreeTag == "wellname") //井名
|
if (strTreeTag == "wellname") //井名
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user