mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 19:25:49 +08:00
Ref T554, auto publishing dialog in swift pilot client UI
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
#include "blackgui/components/maininfoareacomponent.h"
|
||||
#include "blackgui/components/settingscomponent.h"
|
||||
#include "blackgui/components/autopublishdialog.h"
|
||||
#include "blackgui/guiactionbind.h"
|
||||
#include "blackgui/guiapplication.h"
|
||||
#include "blackgui/foreignwindows.h"
|
||||
@@ -31,6 +32,7 @@
|
||||
|
||||
using namespace BlackConfig;
|
||||
using namespace BlackGui;
|
||||
using namespace BlackGui::Components;
|
||||
using namespace BlackCore;
|
||||
using namespace BlackMisc;
|
||||
using namespace BlackMisc::PhysicalQuantities;
|
||||
@@ -80,6 +82,10 @@ void SwiftGuiStd::onMenuClicked()
|
||||
{
|
||||
ui->sw_MainMiddle->setCurrentIndex(MainPageInternals);
|
||||
}
|
||||
else if (sender == ui->menu_AutoPublish)
|
||||
{
|
||||
this->autoPublishDialog();
|
||||
}
|
||||
else if (sender == ui->menu_MovingMap && sGui && !sGui->getGlobalSetup().getSwiftMapUrls().isEmpty())
|
||||
{
|
||||
const CUrlList urls = sGui->getGlobalSetup().getSwiftMapUrls();
|
||||
@@ -174,3 +180,12 @@ void SwiftGuiStd::copyXSwiftBusDialog(bool checkFileTimestamp)
|
||||
const int c = CCopyXSwiftBusDialog::displayDialogAndCopyBuildFiles(xPlaneRootDir, checkFileTimestamp, this);
|
||||
if (c > 0) { CLogMessage(this).info(u"Copied %1 files from build directory") << c; }
|
||||
}
|
||||
|
||||
void SwiftGuiStd::autoPublishDialog()
|
||||
{
|
||||
if (!m_autoPublishDialog)
|
||||
{
|
||||
m_autoPublishDialog.reset(new CAutoPublishDialog(this));
|
||||
}
|
||||
m_autoPublishDialog->show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user