/** \file
* Desktop widget implementation.
*/
/* Authors:
* Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 2010 Jon A. Cruz
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "widgets/desktop-widget.h"
#include <algorithm>
#include "uxmanager.h"
#include "desktop.h"
#include "util/ege-tags.h"
#include "preferences.h"
#ifdef GDK_WINDOWING_X11
#endif // GDK_WINDOWING_X11
class TrackItem
{
public:
TrackItem() :
destroyConn(),
boxes()
{}
};
namespace {
{
{
}
}
// TODO unify this later:
{
prefPath = "/focus/";
prefPath = "/fullscreen/";
} else {
prefPath = "/window/";
}
return prefPath;
}
}
namespace Inkscape {
namespace UI {
{
public:
virtual ~UXManagerImpl();
virtual bool isFloatWindowProblem() const;
virtual bool isWidescreen() const;
private:
bool _floatwindowIssues;
bool _widescreen;
};
{
if (!instance) {
instance = new UXManagerImpl();
}
return instance;
}
{
}
{
}
_floatwindowIssues(false),
_widescreen(false)
{
#if defined(GDK_WINDOWING_X11)
//g_message("Window manager is [%s]", wmName);
//if (g_ascii_strcasecmp( wmName, UNKOWN_WINDOW_MANAGER_NAME ) == 0) {
_floatwindowIssues = true;
}
#elif defined(GDK_WINDOWING_WIN32)
_floatwindowIssues = true;
#endif // GDK_WINDOWING_WIN32
if (defaultScreen) {
if (aspect > 1.65) {
_widescreen = true;
}
}
}
{
}
{
return _floatwindowIssues;
}
{
return _widescreen;
}
{
return taskNum;
}
{
gboolean notDone = Inkscape::Preferences::get()->getBool("/options/workarounds/dynamicnotdone", false);
switch (val) {
default:
case 0:
if (notDone) {
}
break;
case 1:
if (notDone) {
}
break;
case 2:
if (notDone) {
}
}
}
}
}
{
}
}
{
}
}
{
if (!desktop)
{
return;
}
}
}
}
// note: this will change once more options are in the task set support:
}
} // namespace UI
} // namespace Inkscape
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :