dock.cpp revision 1648a193c23a5e42acab91e8918322047fdd7a14
/**
* \brief A desktop dock pane to dock dialogs.
*
* Author:
* Gustav Broberg <broberg@kth.se>
*
* Copyright (C) 2007 Authors
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#include "inkscape.h"
#include "prefs-utils.h"
#include "desktop.h"
#include "dock.h"
#include <gtkmm/adjustment.h>
namespace Inkscape {
namespace UI {
namespace Widget {
namespace {
{
}
{
}
}
const int Dock::_default_empty_width = 0;
{
switch (orientation) {
case Gtk::ORIENTATION_VERTICAL:
break;
case Gtk::ORIENTATION_HORIZONTAL:
}
GDL_SWITCHER_STYLE_BOTH, 0, 4));
"switcher-style", gdl_switcher_style,
NULL);
GDL_DOCK_BAR_BOTH, 0, 3));
signal_layout_changed().connect(sigc::mem_fun(*this, &Inkscape::UI::Widget::Dock::_onLayoutChanged));
}
{
}
void
{
// FIXME: This is a hack to prevent the dock from expanding the main window, this can't be done
// initially as the paned doesn't exist.
}
{
return *_scrolled_window;
}
{
}
{
return _paned;
}
bool
{
i = _dock_items.begin(),
e = _dock_items.end();
for (; i != e; ++i)
return false;
return true;
}
bool
Dock::hasIconifiedItems() const
{
i = _dock_items.begin(),
e = _dock_items.end();
for (; i != e; ++i)
if ((*i)->isIconified())
return true;
return false;
}
void
{
}
void
{
}
void
{
static int prev_horizontal_position, prev_vertical_position;
} else {
}
}
void
{
if (item_y < 0)
}
{
}
void
{
if (isEmpty()) {
if (hasIconifiedItems())
else
} else {
}
}
const Glib::SignalProxyInfo
{
"layout-changed",
};
} // namespace Widget
} // 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:encoding=utf-8:textwidth=99