mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-14 06:15:50 +00:00
add org.netctlgui.netctlgui /netctlgui
This commit is contained in:
@ -36,6 +36,23 @@ NetctlGuiAdaptor::~NetctlGuiAdaptor()
|
||||
}
|
||||
|
||||
|
||||
bool NetctlGuiAdaptor::Close()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[Close]";
|
||||
|
||||
mainWindow->closeMainWindow();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
QString NetctlGuiAdaptor::Information()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[Information]";
|
||||
|
||||
return mainWindow->getInformation();
|
||||
}
|
||||
|
||||
|
||||
bool NetctlGuiAdaptor::RestoreWindow()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[RestoreWindow]";
|
||||
@ -43,3 +60,47 @@ bool NetctlGuiAdaptor::RestoreWindow()
|
||||
mainWindow->show();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
QStringList NetctlGuiAdaptor::Settings()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[Settings]";
|
||||
|
||||
return mainWindow->getSettings();
|
||||
}
|
||||
|
||||
|
||||
bool NetctlGuiAdaptor::ShowAbout()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[ShowAbout]";
|
||||
|
||||
mainWindow->showAboutWindow();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool NetctlGuiAdaptor::ShowMain()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[ShowMain]";
|
||||
|
||||
mainWindow->showMainWindow();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool NetctlGuiAdaptor::ShowNetctlAuto()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[ShowNetctlAuto]";
|
||||
|
||||
mainWindow->showNetctlAutoWindow();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool NetctlGuiAdaptor::ShowSettings()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[ShowSettings]";
|
||||
|
||||
mainWindow->showSettingsWindow();
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user