mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-22 13:15:39 +08:00
Ref T166, adjusted core to use changed connect lep_CommandLineInput
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#le_CommandLineInput {
|
#lep_CommandLineInput {
|
||||||
background-image: url(:/textures/icons/textures/texture-inner.jpg);
|
background-image: url(:/textures/icons/textures/texture-inner.jpg);
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
|
|||||||
@@ -57,6 +57,10 @@ CSwiftCore::CSwiftCore(QWidget *parent) :
|
|||||||
initDBusMode();
|
initDBusMode();
|
||||||
initMenus();
|
initMenus();
|
||||||
|
|
||||||
|
// command line
|
||||||
|
ui->lep_CommandLineInput->setIdentifier(this->identifier());
|
||||||
|
connect(ui->lep_CommandLineInput, &CCommandInput::commandEntered, sGui->getCoreFacade(), &CCoreFacade::parseCommandLine);
|
||||||
|
|
||||||
if (sGui->isParserOptionSet("start")) { startCore(sGui->getCmdDBusAddressValue()); }
|
if (sGui->isParserOptionSet("start")) { startCore(sGui->getCmdDBusAddressValue()); }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -173,9 +177,6 @@ void CSwiftCore::startCore(const QString &dBusAdress)
|
|||||||
ui->pb_StopCore->setEnabled(true);
|
ui->pb_StopCore->setEnabled(true);
|
||||||
ui->gb_DBusMode->setDisabled(true);
|
ui->gb_DBusMode->setDisabled(true);
|
||||||
sGui->processEventsToRefreshGui();
|
sGui->processEventsToRefreshGui();
|
||||||
|
|
||||||
// context
|
|
||||||
connect(ui->le_CommandLineInput, &CCommandInput::commandEntered, sGui->getCoreFacade(), &CCoreFacade::parseCommandLine);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSwiftCore::stopCore()
|
void CSwiftCore::stopCore()
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ QTextEdit {
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0" colspan="3">
|
<item row="4" column="0" colspan="3">
|
||||||
<widget class="BlackGui::Components::CCommandInput" name="le_CommandLineInput"/>
|
<widget class="BlackGui::Components::CCommandInput" name="lep_CommandLineInput"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0" colspan="3">
|
<item row="3" column="0" colspan="3">
|
||||||
<widget class="BlackGui::Components::CCoreInfoAreaComponent" name="comp_InfoArea" native="true"/>
|
<widget class="BlackGui::Components::CCoreInfoAreaComponent" name="comp_InfoArea" native="true"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user