mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 06:20:05 +00:00
Remove File > Open for Placefiles
This commit is contained in:
parent
4f16d92ba3
commit
47c1bce993
5 changed files with 0 additions and 90 deletions
|
|
@ -401,28 +401,6 @@ void MainWindow::on_actionOpenNexrad_triggered()
|
|||
dialog->open();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionOpenPlacefile_triggered()
|
||||
{
|
||||
static const std::string placefileFilter = "Placefiles (*)";
|
||||
|
||||
QFileDialog* dialog = new QFileDialog(this);
|
||||
|
||||
dialog->setFileMode(QFileDialog::ExistingFile);
|
||||
dialog->setNameFilter(tr(placefileFilter.c_str()));
|
||||
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
connect(dialog,
|
||||
&QFileDialog::fileSelected,
|
||||
this,
|
||||
[this](const QString& file)
|
||||
{
|
||||
logger_->info("Selected: {}", file.toStdString());
|
||||
p->placefileManager_->LoadFile(file.toStdString());
|
||||
});
|
||||
|
||||
dialog->open();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionOpenTextEvent_triggered()
|
||||
{
|
||||
static const std::string textFilter = "Text Event Products (*.txt)";
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ signals:
|
|||
|
||||
private slots:
|
||||
void on_actionOpenNexrad_triggered();
|
||||
void on_actionOpenPlacefile_triggered();
|
||||
void on_actionOpenTextEvent_triggered();
|
||||
void on_actionSettings_triggered();
|
||||
void on_actionExit_triggered();
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@
|
|||
<string>&Open</string>
|
||||
</property>
|
||||
<addaction name="actionOpenNexrad"/>
|
||||
<addaction name="actionOpenPlacefile"/>
|
||||
<addaction name="actionOpenTextEvent"/>
|
||||
</widget>
|
||||
<addaction name="menu_Open"/>
|
||||
|
|
@ -416,11 +415,6 @@
|
|||
<string>&Check for Updates</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionOpenPlacefile">
|
||||
<property name="text">
|
||||
<string>&Placefile...</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../../../../scwx-qt.qrc"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue