objects.h revision 97d9c2adba8955858ce4a2572c8ee9c72d15692c
/*
* A simple dialog for objects UI.
*
* Authors:
* Theodore Janeczko
*
* Copyright (C) Theodore Janeczko 2012 <flutterguy317@gmail.com>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef SEEN_OBJECTS_PANEL_H
#define SEEN_OBJECTS_PANEL_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <boost/scoped_ptr.hpp>
#include <gtkmm/treeview.h>
#include <gtkmm/treestore.h>
#include <gtkmm/scrolledwindow.h>
#include "ui/widget/spinbutton.h"
#include "ui/widget/object-composite-settings.h"
#include "desktop-tracker.h"
#include "ui/widget/style-subject.h"
#include "selection.h"
#include "ui/widget/filter-effect-chooser.h"
struct SPColorSelector;
/**
* A panel that displays objects.
*/
{
ObjectsPanel();
virtual ~ObjectsPanel();
static ObjectsPanel& getInstance();
//Internal Classes:
//Connections, Watchers, Trackers:
//Document root watcher
//All object watchers
//Connection for when the desktop changes
//Connection for when the document changes
//Connection for when the active selection in the document changes
//Connection for when the selection in the dialog changes
//Desktop tracker for grabbing the desktop changed connection
//Members:
//The current desktop
//The current document
//Tree data model
//Prevents the composite controls from updating
bool _blockCompositeUpdate;
//
//Whether the drag & drop was dragged into an item
//List of drag & drop source items
//Drag & drop target item
//List of items to change the highlight on
//GUI Members:
#if WITH_GTKMM_3_0
#else
#endif
/* Composite Settings */
#if WITH_GTKMM_3_0
#else
#endif
//Methods:
void _fireAction( unsigned int code );
Gtk::MenuItem& _addPopupItem( SPDesktop *desktop, unsigned int code, char const* iconName, char const* fallback, int id );
void _handleEditingCancelled();
void _doTreeMove();
void _pushTreeSelectionToCurrent();
void _checkTreeSelection();
void _takeAction( int val );
bool _executeAction();
void _setExpanded( const Gtk::TreeModel::iterator& iter, const Gtk::TreeModel::Path& path, bool isexpanded );
bool _noSelection( Glib::RefPtr<Gtk::TreeModel> const & model, Gtk::TreeModel::Path const & path, bool b );
bool _rowSelectFunction( Glib::RefPtr<Gtk::TreeModel> const & model, Gtk::TreeModel::Path const & path, bool b );
void _updateComposite();
bool _checkForSelected(const Gtk::TreePath& path, const Gtk::TreeIter& iter, SPItem* item, bool scrollto);
void _opacityValueChanged();
void _blendValueChanged();
void _blurValueChanged();
void _highlightPickerColorMod();
};
} //namespace Dialogs
} //namespace UI
} //namespace Inkscape
#endif // SEEN_OBJECTS_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:fileencoding=utf-8:textwidth=99 :