layers-panel.h revision 17eb9e57e1550f744916bf486947162aa523bdda
#ifndef SEEN_LAYERS_PANEL_H
#define SEEN_LAYERS_PANEL_H
/*
* A simple dialog for layer UI.
*
* Authors:
* Jon A. Cruz
*
* Copyright (C) 2006 Jon A. Cruz
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <gtkmm/treeview.h>
#include <gtkmm/treestore.h>
#include <gtkmm/tooltips.h>
#include <gtkmm/scrolledwindow.h>
#include <gtkmm/buttonbox.h>
#include <gtkmm/spinbutton.h>
//#include "ui/previewholder.h"
#include "ui/widget/object-composite-settings.h"
/**
* A panel that displays layers.
*/
{
LayersPanel();
virtual ~LayersPanel();
//virtual void setOrientation( Gtk::AnchorType how );
static LayersPanel& getInstance();
//virtual void _handleAction( int setId, int itemId );
void _styleButton( Gtk::Button& btn, SPDesktop *desktop, unsigned int code, char const* iconName, char const* fallback );
void _fireAction( unsigned int code );
Gtk::MenuItem& _addPopupItem( SPDesktop *desktop, unsigned int code, char const* iconName, char const* fallback, int id );
void _pushTreeSelectionToCurrent();
void _checkTreeSelection();
void _takeAction( int val );
bool _executeAction();
bool _rowSelectFunction( Glib::RefPtr<Gtk::TreeModel> const & model, Gtk::TreeModel::Path const & path, bool b );
void _layersChanged();
void _addLayer( SPDocument* doc, SPObject* layer, Gtk::TreeModel::Row* parentRow, SPObject* target, int level );
// Hooked to the layer manager:
// Internal
int _maxNestDepth;
};
} //namespace Dialogs
} //namespace UI
} //namespace Inkscape
#endif // SEEN_LAYERS_PANEL_H
/*
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 :