Lines Matching defs:SwatchesPanel

74 static std::map<SwatchesPanel*, SPDocument*> docPerPanel;
77 class SwatchesPanelHook : public SwatchesPanel
104 static SwatchesPanel* bouncePanel = 0;
169 SwatchesPanel* swp = bouncePanel;
189 SwatchesPanel* swp = bouncePanel;
213 SwatchesPanel* swp = bouncePanel;
219 static SwatchesPanel* findContainingPanel( GtkWidget *widget )
221 SwatchesPanel *swp = 0;
223 std::map<GtkWidget*, SwatchesPanel*> rawObjects;
224 for (std::map<SwatchesPanel*, SPDocument*>::iterator it = docPerPanel.begin(); it != docPerPanel.end(); ++it) {
250 SwatchesPanel* swp = findContainingPanel( widget );
579 SwatchesPanel& SwatchesPanel::getInstance()
581 return *new SwatchesPanel();
588 SwatchesPanel::SwatchesPanel(gchar const* prefsPath) :
683 SwatchesPanel::~SwatchesPanel()
701 void SwatchesPanel::setOrientation(SPAnchorType how)
712 void SwatchesPanel::setDesktop( SPDesktop* desktop )
724 sigc::hide(sigc::mem_fun(*this, &SwatchesPanel::_updateFromSelection)));
727 sigc::hide(sigc::hide(sigc::mem_fun(*this, &SwatchesPanel::_updateFromSelection))));
730 sigc::hide(sigc::mem_fun(*this, &SwatchesPanel::_updateFromSelection)));
732 sigc::bound_mem_functor1<void, Inkscape::UI::Dialogs::SwatchesPanel, SPDocument*> first = sigc::mem_fun(*this, &SwatchesPanel::_setDocument);
831 SwatchesPanel::handleDefsModified(track->doc);
861 void SwatchesPanel::_trackDocument( SwatchesPanel *panel, SPDocument *document )
874 for (std::map<SwatchesPanel*, SPDocument*>::iterator it = docPerPanel.begin(); (it != docPerPanel.end()) && !found; ++it) {
890 for (std::map<SwatchesPanel*, SPDocument*>::iterator it = docPerPanel.begin(); (it != docPerPanel.end()) && !found; ++it) {
895 sigc::connection conn1 = document->connectResourcesChanged( "gradient", sigc::bind(sigc::ptr_fun(&SwatchesPanel::handleGradientsChange), document) );
896 sigc::connection conn2 = document->getDefs()->connectRelease( sigc::hide(sigc::bind(sigc::ptr_fun(&SwatchesPanel::handleDefsModified), document)) );
897 sigc::connection conn3 = document->getDefs()->connectModified( sigc::hide(sigc::hide(sigc::bind(sigc::ptr_fun(&SwatchesPanel::handleDefsModified), document))) );
912 void SwatchesPanel::_setDocument( SPDocument *document )
970 void SwatchesPanel::handleGradientsChange(SPDocument *document)
990 // Figure out which SwatchesPanel instances are affected and update them.
992 for (std::map<SwatchesPanel*, SPDocument*>::iterator it = docPerPanel.begin(); it != docPerPanel.end(); ++it) {
994 SwatchesPanel* swp = it->first;
1005 void SwatchesPanel::handleDefsModified(SPDocument *document)
1043 std::vector<SwatchPage*> SwatchesPanel::_getSwatchSets() const
1056 void SwatchesPanel::_updateFromSelection()
1138 void SwatchesPanel::_handleAction( int setId, int itemId )
1159 void SwatchesPanel::_rebuild()