From 3c005b46f5a33d7dcd17d843fda4d297fcf0477e Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Wed, 8 Aug 2012 22:13:11 +0200 Subject: copyright message rewritten object properties dialog (bzr r11599) --- src/ui/dialog/object-properties.cpp | 42 +++++++++++++++++-------------------- src/ui/dialog/object-properties.h | 34 +++++++++++++++++++----------- 2 files changed, 41 insertions(+), 35 deletions(-) (limited to 'src') diff --git a/src/ui/dialog/object-properties.cpp b/src/ui/dialog/object-properties.cpp index 23c0f72ee..0aeb3816f 100644 --- a/src/ui/dialog/object-properties.cpp +++ b/src/ui/dialog/object-properties.cpp @@ -1,17 +1,29 @@ /** * @file Object properties dialog. */ -/* Authors: +/* + * Inkscape, an Open Source vector graphics editor + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * Copyright (C) 2012 Kris De Gussem + * c++ version based on former C-version (GPL v2) with authors: * Lauris Kaplinski * bulia byak * Johan Engelen * Abhishek Sharma - * Kris De Gussem - * - * Copyright (C) 1999-2012 Authors - * Copyright (C) 2001 Ximian, Inc. - * - * Released under GNU GPL, read the file 'COPYING' for more information */ #ifdef HAVE_CONFIG_H @@ -55,7 +67,6 @@ ObjectProperties::ObjectProperties (void) : deskTrack(), selectChangedConn(), subselChangedConn() - // selectModifiedConn() { //initialize labels for the table at the bottom of the dialog int_labels.push_back("onclick"); @@ -77,7 +88,6 @@ ObjectProperties::ObjectProperties (void) : ObjectProperties::~ObjectProperties (void) { - // selectModifiedConn.disconnect(); subselChangedConn.disconnect(); selectChangedConn.disconnect(); desktopChangeConn.disconnect(); @@ -394,7 +404,6 @@ void ObjectProperties::setTargetDesktop(SPDesktop *desktop) { if (this->desktop != desktop) { if (this->desktop) { - // selectModifiedConn.disconnect(); subselChangedConn.disconnect(); selectChangedConn.disconnect(); } @@ -402,23 +411,10 @@ void ObjectProperties::setTargetDesktop(SPDesktop *desktop) if (desktop && desktop->selection) { selectChangedConn = desktop->selection->connectChanged(sigc::hide(sigc::mem_fun(*this, &ObjectProperties::widget_setup))); subselChangedConn = desktop->connectToolSubselectionChanged(sigc::hide(sigc::mem_fun(*this, &ObjectProperties::widget_setup))); - - //// Must check flags, so can't call widget_setup() directly. - // selectModifiedConn = desktop->selection->connectModified(sigc::hide<0>(sigc::mem_fun(*this, &ObjectProperties::selectionModifiedCB))); } widget_setup(); } } - -// void ObjectProperties::selectionModifiedCB( guint flags ) -// { - // if (flags & ( SP_OBJECT_MODIFIED_FLAG | - // SP_OBJECT_PARENT_MODIFIED_FLAG | - // SP_OBJECT_STYLE_MODIFIED_FLAG) ) { - // widget_setup(); - // } -// } - } } } diff --git a/src/ui/dialog/object-properties.h b/src/ui/dialog/object-properties.h index d9d1a3fdd..0bf622ce4 100644 --- a/src/ui/dialog/object-properties.h +++ b/src/ui/dialog/object-properties.h @@ -1,13 +1,29 @@ /** * @file Object properties dialog. */ -/* Author: - * Lauris Kaplinski - * Kris De Gussem +/* + * Inkscape, an Open Source vector graphics editor + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * Copyright (C) 2001 Ximian, Inc. - * Copyright (C) 2012 Authors - * Released under GNU GPL, read the file 'COPYING' for more information + * Copyright (C) 2012 Kris De Gussem + * c++version based on former C-version (GPL v2) with authors: + * Lauris Kaplinski + * bulia byak + * Johan Engelen + * Abhishek Sharma */ #ifndef SEEN_DIALOGS_ITEM_PROPERTIES_H @@ -102,11 +118,6 @@ private: */ void hidden_toggled(void); - /* - * On signal modified, invokes an update. - */ - //void selectionModifiedCB( guint flags ); - /** * Can be invoked for setting the desktop. Currently not used. */ @@ -116,7 +127,6 @@ private: * Is invoked by the desktop tracker when the desktop changes. */ void setTargetDesktop(SPDesktop *desktop); - }; } -- cgit v1.2.3