refs #473, own launcher subproject

* command line args for swift GUI
* removed _ from swiftgui_standard
* removed _ from swift_resources
This commit is contained in:
Klaus Basan
2015-11-05 02:50:51 +01:00
committed by Mathew Sutcliffe
parent 8e57914e67
commit 6dd66284ca
26 changed files with 346 additions and 115 deletions

View File

@@ -41,6 +41,28 @@ namespace BlackGui
setMode(frameless ? WindowFrameless : WindowTool);
}
CEnableForFramelessWindow::WindowMode CEnableForFramelessWindow::stringToWindowMode(const QString &s)
{
QString ws(s.trimmed().toLower());
if (ws.isEmpty()) { return WindowNormal; }
if (ws.contains("frameless") || ws.startsWith("f")) { return WindowFrameless; }
if (ws.contains("tool") || ws.startsWith("t")) { return WindowTool; }
return WindowNormal;
}
QString CEnableForFramelessWindow::windowModeToString(CEnableForFramelessWindow::WindowMode m)
{
switch (m)
{
case WindowFrameless: return "frameless";
case WindowNormal: return "normal";
case WindowTool: return "tool";
default:
break;
}
return "normal";
}
void CEnableForFramelessWindow::setWindowAttributes(CEnableForFramelessWindow::WindowMode mode)
{
Q_ASSERT_X(this->m_widget, "CEnableForFramelessWindow::setWindowAttributes", "Missing widget representing window");