diff --git a/libs/ui/KisChangePaletteCommand.cpp b/libs/ui/KisChangePaletteCommand.cpp index 28b4c755e4..fa00c886b8 100644 --- a/libs/ui/KisChangePaletteCommand.cpp +++ b/libs/ui/KisChangePaletteCommand.cpp @@ -1,20 +1,38 @@ +/* + * Copyright (c) 2018 Michael Zhou + * + * 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. + */ + #include #include #include "KisChangePaletteCommand.h" const char KisChangePaletteCommand::MagicString[] = "Edit palette"; KisChangePaletteCommand::KisChangePaletteCommand() : KUndo2Command(kundo2_i18n(MagicString)) { } KisChangePaletteCommand::~KisChangePaletteCommand() { } int KisChangePaletteCommand::id() const { return KisCommandUtils::ChangePaletteId; } diff --git a/libs/ui/KisChangePaletteCommand.h b/libs/ui/KisChangePaletteCommand.h index b87ac39cf3..b55d5d4f9e 100644 --- a/libs/ui/KisChangePaletteCommand.h +++ b/libs/ui/KisChangePaletteCommand.h @@ -1,27 +1,45 @@ +/* + * Copyright (c) 2018 Michael Zhou + * + * 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. + */ + #ifndef KISCHANGEPALETTECOMMAND_H #define KISCHANGEPALETTECOMMAND_H #include #include #include class KisChangePaletteCommand : public KUndo2Command { public: static const char MagicString[]; public: KisChangePaletteCommand(); ~KisChangePaletteCommand() override; void undo() override { // palette modification shouldn't be undone; } void redo() override { // palette modification shouldn't be undone; } int id() const override; }; #endif // KISCHANGEPALETTECOMMAND_H