panel.cpp revision 04a422d8b69bcea70596ee1546de06b764029f5c
/**
* \brief Panel widget
*
* Authors:
* Bryce Harrington <bryce@bryceharrington.org>
* Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 2004 Bryce Harrington
* Copyright (C) 2005 Jon A. Cruz
*
* Released under GNU GPL. Read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "panel.h"
#include "../../prefs-utils.h"
namespace Inkscape {
namespace UI {
namespace Widget {
/**
* Construct a Panel
*
* \param label Label.
*/
menu(0),
_fillable(0)
{
init();
}
menu(0),
_fillable(0)
{
init();
}
menu(0),
_fillable(0)
{
init();
}
{
delete menu;
}
{
if (menu) {
}
}
}
{
guint panel_size = 0;
if (_prefs_path) {
}
guint panel_mode = 0;
if (_prefs_path) {
}
{
const char *things[] = {
N_("small"),
N_("medium"),
N_("large"),
N_("huge")
};
for ( unsigned int i = 0; i < G_N_ELEMENTS(things); i++ ) {
if ( i == panel_size ) {
single->set_active(true);
}
single->signal_activate().connect( sigc::bind<int, int>( sigc::mem_fun(*this, &Panel::bounceCall), 0, i) );
}
}
if (panel_mode == 0) {
one->set_active(true);
} else if (panel_mode == 1) {
two->set_active(true);
}
one->signal_activate().connect( sigc::bind<int, int>( sigc::mem_fun(*this, &Panel::bounceCall), 1, 0) );
two->signal_activate().connect( sigc::bind<int, int>( sigc::mem_fun(*this, &Panel::bounceCall), 1, 1) );
//closeButton.set_label("X");
//topBar.pack_end(closeButton, false, false);
pack_start( topBar, false, false );
pack_start( *boxy, true, true );
bounceCall (0, panel_size);
}
{
}
{
{
switch ( _anchor )
{
case Gtk::ANCHOR_NORTH:
case Gtk::ANCHOR_SOUTH:
{
}
break;
default:
; // nothing for now
}
}
}
{
item->signal_activate().connect( sigc::bind<int, int>( sigc::mem_fun(*this, &Panel::bounceCall), group + 2, id) );
}
void Panel::restorePanelPrefs()
{
guint panel_size = 0;
if (_prefs_path) {
}
guint panel_mode = 0;
if (_prefs_path) {
}
bounceCall (0, panel_size);
}
void Panel::bounceCall(int i, int j)
{
menu->set_active(0);
switch ( i ) {
case 0:
if ( _fillable ) {
switch ( j ) {
case 0:
{
}
break;
case 1:
{
}
break;
case 2:
{
}
break;
case 3:
{
}
break;
default:
;
}
}
break;
case 1:
if ( _fillable ) {
switch ( j ) {
case 0:
{
}
break;
case 1:
{
}
break;
default:
break;
}
}
break;
default:
_handleAction( i - 2, j );
}
}
{
return label;
}
{
}
{
// for subclasses to override
}
} // 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 :