refs #304, reflect changes in components for GUI, GUI utility class to set main window position correctly

This commit is contained in:
Klaus Basan
2014-07-27 15:10:52 +02:00
parent e55bdd0857
commit 18fe626db7
8 changed files with 349 additions and 796 deletions

48
src/blackgui/guiutility.h Normal file
View File

@@ -0,0 +1,48 @@
/* Copyright (C) 2014
* swift Project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of Swift Project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
//! \file
#ifndef BLACKGUI_GUIUTILITY_H
#define BLACKGUI_GUIUTILITY_H
#include <QWidgetList>
#include <QMainWindow>
namespace BlackGui
{
//! GUI utilities
class CGuiUtility
{
public:
//! Main application window
static QMainWindow *mainWindow();
//! Top level widgets with names
static QWidgetList topLevelApplicationWidgetsWithName();
//! Position of main window
static QPoint mainWindowPosition();
//! Position of intro window
static QPoint introWindowPosition();
//! During initialization, when main window position might not be set set
static QPoint assumedMainWindowPosition();
private:
//! Constructor, use static methods only
CGuiUtility() {}
};
}
#endif // guard