Remove base/override.h (use override keyword directly)

This commit is contained in:
David Capello 2014-08-14 23:07:47 -03:00
parent ff93400c4e
commit 6824570c4b
226 changed files with 828 additions and 939 deletions

View File

@ -32,7 +32,7 @@ using namespace ui;
class AboutCommand : public Command { class AboutCommand : public Command {
public: public:
AboutCommand(); AboutCommand();
Command* clone() const OVERRIDE { return new AboutCommand(*this); } Command* clone() const override { return new AboutCommand(*this); }
protected: protected:
void onExecute(Context* context); void onExecute(Context* context);

View File

@ -38,7 +38,7 @@ using namespace ui;
class AdvancedModeCommand : public Command { class AdvancedModeCommand : public Command {
public: public:
AdvancedModeCommand(); AdvancedModeCommand();
Command* clone() const OVERRIDE { return new AdvancedModeCommand(*this); } Command* clone() const override { return new AdvancedModeCommand(*this); }
protected: protected:
void onExecute(Context* context); void onExecute(Context* context);

View File

@ -37,7 +37,7 @@ namespace app {
class BackgroundFromLayerCommand : public Command { class BackgroundFromLayerCommand : public Command {
public: public:
BackgroundFromLayerCommand(); BackgroundFromLayerCommand();
Command* clone() const OVERRIDE { return new BackgroundFromLayerCommand(*this); } Command* clone() const override { return new BackgroundFromLayerCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -25,7 +25,6 @@
#include "app/commands/commands.h" #include "app/commands/commands.h"
#include "app/commands/params.h" #include "app/commands/params.h"
#include "app/context.h" #include "app/context.h"
#include "base/override.h"
namespace app { namespace app {
@ -37,7 +36,7 @@ public:
}; };
CancelCommand(); CancelCommand();
Command* clone() const OVERRIDE { return new CancelCommand(*this); } Command* clone() const override { return new CancelCommand(*this); }
protected: protected:
void onLoadParams(Params* params); void onLoadParams(Params* params);

View File

@ -99,7 +99,7 @@ public:
protected: protected:
// SelectBoxDelegate impleentation // SelectBoxDelegate impleentation
virtual void onChangeRectangle(const gfx::Rect& rect) OVERRIDE virtual void onChangeRectangle(const gfx::Rect& rect) override
{ {
m_rect = rect; m_rect = rect;
@ -124,7 +124,7 @@ protected:
m_editor->invalidate(); m_editor->invalidate();
} }
virtual void onBroadcastMouseMessage(WidgetsList& targets) OVERRIDE virtual void onBroadcastMouseMessage(WidgetsList& targets) override
{ {
Window::onBroadcastMouseMessage(targets); Window::onBroadcastMouseMessage(targets);
@ -149,7 +149,7 @@ class CanvasSizeCommand : public Command {
public: public:
CanvasSizeCommand(); CanvasSizeCommand();
Command* clone() const OVERRIDE { return new CanvasSizeCommand(*this); } Command* clone() const override { return new CanvasSizeCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -45,7 +45,7 @@ using namespace ui;
class CelPropertiesCommand : public Command { class CelPropertiesCommand : public Command {
public: public:
CelPropertiesCommand(); CelPropertiesCommand();
Command* clone() const OVERRIDE { return new CelPropertiesCommand(*this); } Command* clone() const override { return new CelPropertiesCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -41,7 +41,7 @@ class ChangePixelFormatCommand : public Command {
DitheringMethod m_dithering; DitheringMethod m_dithering;
public: public:
ChangePixelFormatCommand(); ChangePixelFormatCommand();
Command* clone() const OVERRIDE { return new ChangePixelFormatCommand(*this); } Command* clone() const override { return new ChangePixelFormatCommand(*this); }
protected: protected:
void onLoadParams(Params* params); void onLoadParams(Params* params);

View File

@ -40,7 +40,7 @@ namespace app {
class ClearCommand : public Command { class ClearCommand : public Command {
public: public:
ClearCommand(); ClearCommand();
Command* clone() const OVERRIDE { return new ClearCommand(*this); } Command* clone() const override { return new ClearCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -51,7 +51,7 @@ public:
{ {
} }
Command* clone() const OVERRIDE { return new CloseFileCommand(*this); } Command* clone() const override { return new CloseFileCommand(*this); }
protected: protected:
@ -98,7 +98,7 @@ public:
{ {
} }
Command* clone() const OVERRIDE { return new CloseAllFilesCommand(*this); } Command* clone() const override { return new CloseAllFilesCommand(*this); }
protected: protected:

View File

@ -60,7 +60,7 @@ static void on_exit_delete_this_widget()
class ConfigureTools : public Command { class ConfigureTools : public Command {
public: public:
ConfigureTools(); ConfigureTools();
Command* clone() const OVERRIDE { return new ConfigureTools(*this); } Command* clone() const override { return new ConfigureTools(*this); }
protected: protected:
void onExecute(Context* context); void onExecute(Context* context);

View File

@ -37,7 +37,7 @@ namespace app {
class CopyCommand : public Command { class CopyCommand : public Command {
public: public:
CopyCommand(); CopyCommand();
Command* clone() const OVERRIDE { return new CopyCommand(*this); } Command* clone() const override { return new CopyCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -32,7 +32,7 @@ namespace app {
class CopyCelCommand : public Command { class CopyCelCommand : public Command {
public: public:
CopyCelCommand(); CopyCelCommand();
Command* clone() const OVERRIDE { return new CopyCelCommand(*this); } Command* clone() const override { return new CopyCelCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -40,7 +40,7 @@ namespace app {
class CropSpriteCommand : public Command { class CropSpriteCommand : public Command {
public: public:
CropSpriteCommand(); CropSpriteCommand();
Command* clone() const OVERRIDE { return new CropSpriteCommand(*this); } Command* clone() const override { return new CropSpriteCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);
@ -81,7 +81,7 @@ void CropSpriteCommand::onExecute(Context* context)
class AutocropSpriteCommand : public Command { class AutocropSpriteCommand : public Command {
public: public:
AutocropSpriteCommand(); AutocropSpriteCommand();
Command* clone() const OVERRIDE { return new AutocropSpriteCommand(*this); } Command* clone() const override { return new AutocropSpriteCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -34,7 +34,7 @@ namespace app {
class CutCommand : public Command { class CutCommand : public Command {
public: public:
CutCommand(); CutCommand();
Command* clone() const OVERRIDE { return new CutCommand(*this); } Command* clone() const override { return new CutCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -33,7 +33,7 @@ namespace app {
class DeselectMaskCommand : public Command { class DeselectMaskCommand : public Command {
public: public:
DeselectMaskCommand(); DeselectMaskCommand();
Command* clone() const OVERRIDE { return new DeselectMaskCommand(*this); } Command* clone() const override { return new DeselectMaskCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -41,7 +41,7 @@ namespace app {
class DuplicateLayerCommand : public Command { class DuplicateLayerCommand : public Command {
public: public:
DuplicateLayerCommand(); DuplicateLayerCommand();
Command* clone() const OVERRIDE { return new DuplicateLayerCommand(*this); } Command* clone() const override { return new DuplicateLayerCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -43,7 +43,7 @@ using namespace ui;
class DuplicateSpriteCommand : public Command { class DuplicateSpriteCommand : public Command {
public: public:
DuplicateSpriteCommand(); DuplicateSpriteCommand();
Command* clone() const OVERRIDE { return new DuplicateSpriteCommand(*this); } Command* clone() const override { return new DuplicateSpriteCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -32,7 +32,7 @@ namespace app {
class ExitCommand : public Command { class ExitCommand : public Command {
public: public:
ExitCommand(); ExitCommand();
Command* clone() const OVERRIDE { return new ExitCommand(*this); } Command* clone() const override { return new ExitCommand(*this); }
protected: protected:
void onExecute(Context* context); void onExecute(Context* context);

View File

@ -21,7 +21,6 @@
#pragma once #pragma once
#include "app/commands/command.h" #include "app/commands/command.h"
#include "base/override.h"
#include "doc/export_data.h" #include "doc/export_data.h"
#include <string> #include <string>
@ -34,7 +33,7 @@ namespace app {
enum ExportAction { SaveCopyAs, SaveAs, Save, DoNotSave }; enum ExportAction { SaveCopyAs, SaveAs, Save, DoNotSave };
ExportSpriteSheetCommand(); ExportSpriteSheetCommand();
Command* clone() const OVERRIDE { return new ExportSpriteSheetCommand(*this); } Command* clone() const override { return new ExportSpriteSheetCommand(*this); }
SpriteSheetType type() const { return m_type; } SpriteSheetType type() const { return m_type; }
ExportAction action() const { return m_action; } ExportAction action() const { return m_action; }
@ -44,8 +43,8 @@ namespace app {
void setAction(ExportAction action) { m_action = action; } void setAction(ExportAction action) { m_action = action; }
protected: protected:
virtual bool onEnabled(Context* context) OVERRIDE; virtual bool onEnabled(Context* context) override;
virtual void onExecute(Context* context) OVERRIDE; virtual void onExecute(Context* context) override;
private: private:
bool m_useUI; bool m_useUI;

View File

@ -50,7 +50,7 @@ class EyedropperCommand : public Command {
public: public:
EyedropperCommand(); EyedropperCommand();
Command* clone() const OVERRIDE { return new EyedropperCommand(*this); } Command* clone() const override { return new EyedropperCommand(*this); }
protected: protected:
void onLoadParams(Params* params); void onLoadParams(Params* params);

View File

@ -35,7 +35,7 @@ namespace app {
class FlattenLayersCommand : public Command { class FlattenLayersCommand : public Command {
public: public:
FlattenLayersCommand(); FlattenLayersCommand();
Command* clone() const OVERRIDE { return new FlattenLayersCommand(*this); } Command* clone() const override { return new FlattenLayersCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -21,7 +21,6 @@
#pragma once #pragma once
#include "app/commands/command.h" #include "app/commands/command.h"
#include "base/override.h"
#include "raster/algorithm/flip_type.h" #include "raster/algorithm/flip_type.h"
namespace app { namespace app {
@ -29,7 +28,7 @@ namespace app {
class FlipCommand : public Command { class FlipCommand : public Command {
public: public:
FlipCommand(); FlipCommand();
Command* clone() const OVERRIDE { return new FlipCommand(*this); } Command* clone() const override { return new FlipCommand(*this); }
raster::algorithm::FlipType getFlipType() const { return m_flipType; } raster::algorithm::FlipType getFlipType() const { return m_flipType; }

View File

@ -41,7 +41,7 @@ using namespace ui;
class FramePropertiesCommand : public Command { class FramePropertiesCommand : public Command {
public: public:
FramePropertiesCommand(); FramePropertiesCommand();
Command* clone() const OVERRIDE { return new FramePropertiesCommand(*this); } Command* clone() const override { return new FramePropertiesCommand(*this); }
protected: protected:
void onLoadParams(Params* params); void onLoadParams(Params* params);

View File

@ -41,11 +41,11 @@ protected:
GotoCommand(const char* short_name, const char* friendly_name) GotoCommand(const char* short_name, const char* friendly_name)
: Command(short_name, friendly_name, CmdRecordableFlag) { } : Command(short_name, friendly_name, CmdRecordableFlag) { }
bool onEnabled(Context* context) OVERRIDE { bool onEnabled(Context* context) override {
return (current_editor != NULL); return (current_editor != NULL);
} }
void onExecute(Context* context) OVERRIDE { void onExecute(Context* context) override {
ASSERT(current_editor != NULL); ASSERT(current_editor != NULL);
current_editor->setFrame(onGetFrame(current_editor)); current_editor->setFrame(onGetFrame(current_editor));
@ -59,10 +59,10 @@ public:
GotoFirstFrameCommand() GotoFirstFrameCommand()
: GotoCommand("GotoFirstFrame", : GotoCommand("GotoFirstFrame",
"Goto First Frame") { } "Goto First Frame") { }
Command* clone() const OVERRIDE { return new GotoFirstFrameCommand(*this); } Command* clone() const override { return new GotoFirstFrameCommand(*this); }
protected: protected:
FrameNumber onGetFrame(Editor* editor) OVERRIDE { FrameNumber onGetFrame(Editor* editor) override {
return FrameNumber(0); return FrameNumber(0);
} }
}; };
@ -72,10 +72,10 @@ public:
GotoPreviousFrameCommand() GotoPreviousFrameCommand()
: GotoCommand("GotoPreviousFrame", : GotoCommand("GotoPreviousFrame",
"Goto Previous Frame") { } "Goto Previous Frame") { }
Command* clone() const OVERRIDE { return new GotoPreviousFrameCommand(*this); } Command* clone() const override { return new GotoPreviousFrameCommand(*this); }
protected: protected:
FrameNumber onGetFrame(Editor* editor) OVERRIDE { FrameNumber onGetFrame(Editor* editor) override {
FrameNumber frame = editor->frame(); FrameNumber frame = editor->frame();
if (frame > FrameNumber(0)) if (frame > FrameNumber(0))
@ -89,10 +89,10 @@ class GotoNextFrameCommand : public GotoCommand {
public: public:
GotoNextFrameCommand() : GotoCommand("GotoNextFrame", GotoNextFrameCommand() : GotoCommand("GotoNextFrame",
"Goto Next Frame") { } "Goto Next Frame") { }
Command* clone() const OVERRIDE { return new GotoNextFrameCommand(*this); } Command* clone() const override { return new GotoNextFrameCommand(*this); }
protected: protected:
FrameNumber onGetFrame(Editor* editor) OVERRIDE { FrameNumber onGetFrame(Editor* editor) override {
FrameNumber frame = editor->frame(); FrameNumber frame = editor->frame();
if (frame < editor->sprite()->lastFrame()) if (frame < editor->sprite()->lastFrame())
return frame.next(); return frame.next();
@ -105,10 +105,10 @@ class GotoLastFrameCommand : public GotoCommand {
public: public:
GotoLastFrameCommand() : GotoCommand("GotoLastFrame", GotoLastFrameCommand() : GotoCommand("GotoLastFrame",
"Goto Last Frame") { } "Goto Last Frame") { }
Command* clone() const OVERRIDE { return new GotoLastFrameCommand(*this); } Command* clone() const override { return new GotoLastFrameCommand(*this); }
protected: protected:
FrameNumber onGetFrame(Editor* editor) OVERRIDE { FrameNumber onGetFrame(Editor* editor) override {
return editor->sprite()->lastFrame(); return editor->sprite()->lastFrame();
} }
}; };
@ -118,17 +118,17 @@ public:
GotoFrameCommand() : GotoCommand("GotoFrame", GotoFrameCommand() : GotoCommand("GotoFrame",
"Goto Frame") "Goto Frame")
, m_frame(0) { } , m_frame(0) { }
Command* clone() const OVERRIDE { return new GotoFrameCommand(*this); } Command* clone() const override { return new GotoFrameCommand(*this); }
protected: protected:
void onLoadParams(Params* params) OVERRIDE void onLoadParams(Params* params) override
{ {
std::string frame = params->get("frame"); std::string frame = params->get("frame");
if (!frame.empty()) m_frame = ustrtol(frame.c_str(), NULL, 10); if (!frame.empty()) m_frame = ustrtol(frame.c_str(), NULL, 10);
else m_frame = 0; else m_frame = 0;
} }
FrameNumber onGetFrame(Editor* editor) OVERRIDE { FrameNumber onGetFrame(Editor* editor) override {
if (m_frame == 0) { if (m_frame == 0) {
base::UniquePtr<Window> window(app::load_widget<Window>("goto_frame.xml", "goto_frame")); base::UniquePtr<Window> window(app::load_widget<Window>("goto_frame.xml", "goto_frame"));
Widget* frame = app::find_widget<Widget>(window, "frame"); Widget* frame = app::find_widget<Widget>(window, "frame");

View File

@ -50,7 +50,7 @@ protected:
class GotoPreviousLayerCommand : public GotoCommand { class GotoPreviousLayerCommand : public GotoCommand {
public: public:
GotoPreviousLayerCommand(); GotoPreviousLayerCommand();
Command* clone() const OVERRIDE { return new GotoPreviousLayerCommand(*this); } Command* clone() const override { return new GotoPreviousLayerCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);
@ -92,7 +92,7 @@ void GotoPreviousLayerCommand::onExecute(Context* context)
class GotoNextLayerCommand : public GotoCommand { class GotoNextLayerCommand : public GotoCommand {
public: public:
GotoNextLayerCommand(); GotoNextLayerCommand();
Command* clone() const OVERRIDE { return new GotoNextLayerCommand(*this); } Command* clone() const override { return new GotoNextLayerCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -31,7 +31,7 @@ namespace app {
class GotoNextTabCommand : public Command { class GotoNextTabCommand : public Command {
public: public:
GotoNextTabCommand(); GotoNextTabCommand();
Command* clone() const OVERRIDE { return new GotoNextTabCommand(*this); } Command* clone() const override { return new GotoNextTabCommand(*this); }
protected: protected:
void onExecute(Context* context); void onExecute(Context* context);
@ -52,7 +52,7 @@ void GotoNextTabCommand::onExecute(Context* context)
class GotoPreviousTabCommand : public Command { class GotoPreviousTabCommand : public Command {
public: public:
GotoPreviousTabCommand(); GotoPreviousTabCommand();
Command* clone() const OVERRIDE { return new GotoPreviousTabCommand(*this); } Command* clone() const override { return new GotoPreviousTabCommand(*this); }
protected: protected:
void onExecute(Context* context); void onExecute(Context* context);

View File

@ -48,7 +48,7 @@ public:
{ {
} }
Command* clone() const OVERRIDE { return new ShowGridCommand(*this); } Command* clone() const override { return new ShowGridCommand(*this); }
protected: protected:
bool onChecked(Context* context) bool onChecked(Context* context)
@ -75,7 +75,7 @@ public:
{ {
} }
Command* clone() const OVERRIDE { return new SnapToGridCommand(*this); } Command* clone() const override { return new SnapToGridCommand(*this); }
protected: protected:
bool onChecked(Context* context) bool onChecked(Context* context)
@ -102,7 +102,7 @@ protected:
class GridSettingsCommand : public Command { class GridSettingsCommand : public Command {
public: public:
GridSettingsCommand(); GridSettingsCommand();
Command* clone() const OVERRIDE { return new GridSettingsCommand(*this); } Command* clone() const override { return new GridSettingsCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -273,7 +273,7 @@ protected:
} }
} }
bool onProcessMessage(ui::Message* msg) OVERRIDE bool onProcessMessage(ui::Message* msg) override
{ {
switch (msg->type()) { switch (msg->type()) {
case kCloseMessage: case kCloseMessage:
@ -283,7 +283,7 @@ protected:
return Window::onProcessMessage(msg); return Window::onProcessMessage(msg);
} }
virtual void onBroadcastMouseMessage(WidgetsList& targets) OVERRIDE virtual void onBroadcastMouseMessage(WidgetsList& targets) override
{ {
Window::onBroadcastMouseMessage(targets); Window::onBroadcastMouseMessage(targets);
@ -293,7 +293,7 @@ protected:
} }
// SelectBoxDelegate impleentation // SelectBoxDelegate impleentation
virtual void onChangeRectangle(const gfx::Rect& rect) OVERRIDE virtual void onChangeRectangle(const gfx::Rect& rect) override
{ {
m_rect = rect; m_rect = rect;
@ -362,10 +362,10 @@ private:
class ImportSpriteSheetCommand : public Command { class ImportSpriteSheetCommand : public Command {
public: public:
ImportSpriteSheetCommand(); ImportSpriteSheetCommand();
Command* clone() const OVERRIDE { return new ImportSpriteSheetCommand(*this); } Command* clone() const override { return new ImportSpriteSheetCommand(*this); }
protected: protected:
virtual void onExecute(Context* context) OVERRIDE; virtual void onExecute(Context* context) override;
}; };
ImportSpriteSheetCommand::ImportSpriteSheetCommand() ImportSpriteSheetCommand::ImportSpriteSheetCommand()

View File

@ -37,7 +37,7 @@ namespace app {
class InvertMaskCommand : public Command { class InvertMaskCommand : public Command {
public: public:
InvertMaskCommand(); InvertMaskCommand();
Command* clone() const OVERRIDE { return new InvertMaskCommand(*this); } Command* clone() const override { return new InvertMaskCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -24,7 +24,6 @@
#include "app/commands/params.h" #include "app/commands/params.h"
#include "app/launcher.h" #include "app/launcher.h"
#include "app/resource_finder.h" #include "app/resource_finder.h"
#include "base/override.h"
#include "base/fs.h" #include "base/fs.h"
namespace app { namespace app {
@ -32,11 +31,11 @@ namespace app {
class LaunchCommand : public Command { class LaunchCommand : public Command {
public: public:
LaunchCommand(); LaunchCommand();
Command* clone() const OVERRIDE { return new LaunchCommand(*this); } Command* clone() const override { return new LaunchCommand(*this); }
protected: protected:
void onLoadParams(Params* params) OVERRIDE; void onLoadParams(Params* params) override;
void onExecute(Context* context) OVERRIDE; void onExecute(Context* context) override;
private: private:
enum Type { Url, FileInDocs }; enum Type { Url, FileInDocs };

View File

@ -34,7 +34,7 @@ namespace app {
class LayerFromBackgroundCommand : public Command { class LayerFromBackgroundCommand : public Command {
public: public:
LayerFromBackgroundCommand(); LayerFromBackgroundCommand();
Command* clone() const OVERRIDE { return new LayerFromBackgroundCommand(*this); } Command* clone() const override { return new LayerFromBackgroundCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -39,7 +39,7 @@ using namespace ui;
class LayerPropertiesCommand : public Command { class LayerPropertiesCommand : public Command {
public: public:
LayerPropertiesCommand(); LayerPropertiesCommand();
Command* clone() const OVERRIDE { return new LayerPropertiesCommand(*this); } Command* clone() const override { return new LayerPropertiesCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -39,7 +39,7 @@ class LoadMaskCommand : public Command {
public: public:
LoadMaskCommand(); LoadMaskCommand();
Command* clone() const OVERRIDE { return new LoadMaskCommand(*this); } Command* clone() const override { return new LoadMaskCommand(*this); }
protected: protected:
void onLoadParams(Params* params); void onLoadParams(Params* params);

View File

@ -25,7 +25,6 @@
#include "app/commands/commands.h" #include "app/commands/commands.h"
#include "app/context.h" #include "app/context.h"
#include "app/file_selector.h" #include "app/file_selector.h"
#include "base/override.h"
#include "base/unique_ptr.h" #include "base/unique_ptr.h"
#include "raster/palette.h" #include "raster/palette.h"
#include "ui/alert.h" #include "ui/alert.h"
@ -37,10 +36,10 @@ using namespace ui;
class LoadPaletteCommand : public Command { class LoadPaletteCommand : public Command {
public: public:
LoadPaletteCommand(); LoadPaletteCommand();
Command* clone() const OVERRIDE { return new LoadPaletteCommand(*this); } Command* clone() const override { return new LoadPaletteCommand(*this); }
protected: protected:
void onExecute(Context* context) OVERRIDE; void onExecute(Context* context) override;
}; };
LoadPaletteCommand::LoadPaletteCommand() LoadPaletteCommand::LoadPaletteCommand()

View File

@ -33,7 +33,7 @@ namespace app {
class MaskAllCommand : public Command { class MaskAllCommand : public Command {
public: public:
MaskAllCommand(); MaskAllCommand();
Command* clone() const OVERRIDE { return new MaskAllCommand(*this); } Command* clone() const override { return new MaskAllCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -54,7 +54,7 @@ using namespace ui;
class MaskByColorCommand : public Command { class MaskByColorCommand : public Command {
public: public:
MaskByColorCommand(); MaskByColorCommand();
Command* clone() const OVERRIDE { return new MaskByColorCommand(*this); } Command* clone() const override { return new MaskByColorCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -46,7 +46,7 @@ namespace app {
class MergeDownLayerCommand : public Command { class MergeDownLayerCommand : public Command {
public: public:
MergeDownLayerCommand(); MergeDownLayerCommand();
Command* clone() const OVERRIDE { return new MergeDownLayerCommand(*this); } Command* clone() const override { return new MergeDownLayerCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -32,7 +32,7 @@ namespace app {
class MoveCelCommand : public Command { class MoveCelCommand : public Command {
public: public:
MoveCelCommand(); MoveCelCommand();
Command* clone() const OVERRIDE { return new MoveCelCommand(*this); } Command* clone() const override { return new MoveCelCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -21,7 +21,6 @@
#pragma once #pragma once
#include "app/commands/command.h" #include "app/commands/command.h"
#include "base/override.h"
namespace app { namespace app {
@ -41,7 +40,7 @@ namespace app {
}; };
MoveMaskCommand(); MoveMaskCommand();
Command* clone() const OVERRIDE { return new MoveMaskCommand(*this); } Command* clone() const override { return new MoveMaskCommand(*this); }
Target getTarget() const { return m_target; } Target getTarget() const { return m_target; }

View File

@ -57,7 +57,7 @@ namespace app {
class NewFileCommand : public Command { class NewFileCommand : public Command {
public: public:
NewFileCommand(); NewFileCommand();
Command* clone() const OVERRIDE { return new NewFileCommand(*this); } Command* clone() const override { return new NewFileCommand(*this); }
protected: protected:
void onExecute(Context* context); void onExecute(Context* context);

View File

@ -43,7 +43,7 @@ namespace app {
class NewFrameCommand : public Command { class NewFrameCommand : public Command {
public: public:
NewFrameCommand(); NewFrameCommand();
Command* clone() const OVERRIDE { return new NewFrameCommand(*this); } Command* clone() const override { return new NewFrameCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -44,7 +44,7 @@ using namespace ui;
class NewLayerCommand : public Command { class NewLayerCommand : public Command {
public: public:
NewLayerCommand(); NewLayerCommand();
Command* clone() const OVERRIDE { return new NewLayerCommand(*this); } Command* clone() const override { return new NewLayerCommand(*this); }
protected: protected:
void onLoadParams(Params* params); void onLoadParams(Params* params);

View File

@ -41,7 +41,7 @@ using namespace ui;
class NewLayerSetCommand : public Command { class NewLayerSetCommand : public Command {
public: public:
NewLayerSetCommand(); NewLayerSetCommand();
Command* clone() const OVERRIDE { return new NewLayerSetCommand(*this); } Command* clone() const override { return new NewLayerSetCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -25,7 +25,6 @@
#include "app/context.h" #include "app/context.h"
#include "app/settings/document_settings.h" #include "app/settings/document_settings.h"
#include "app/settings/settings.h" #include "app/settings/settings.h"
#include "base/override.h"
namespace app { namespace app {
@ -41,7 +40,7 @@ public:
{ {
} }
Command* clone() const OVERRIDE { return new ShowOnionSkinCommand(*this); } Command* clone() const override { return new ShowOnionSkinCommand(*this); }
protected: protected:
bool onChecked(Context* context) bool onChecked(Context* context)

View File

@ -48,11 +48,11 @@ namespace app {
class OpenFileCommand : public Command { class OpenFileCommand : public Command {
public: public:
OpenFileCommand(); OpenFileCommand();
Command* clone() const OVERRIDE { return new OpenFileCommand(*this); } Command* clone() const override { return new OpenFileCommand(*this); }
protected: protected:
void onLoadParams(Params* params) OVERRIDE; void onLoadParams(Params* params) override;
void onExecute(Context* context) OVERRIDE; void onExecute(Context* context) override;
private: private:
std::string m_filename; std::string m_filename;
@ -78,7 +78,7 @@ public:
private: private:
// Thread to do the hard work: load the file from the disk. // Thread to do the hard work: load the file from the disk.
virtual void onJob() OVERRIDE { virtual void onJob() override {
try { try {
fop_operate(m_fop, this); fop_operate(m_fop, this);
} }
@ -94,7 +94,7 @@ private:
fop_done(m_fop); fop_done(m_fop);
} }
virtual void ackFileOpProgress(double progress) OVERRIDE { virtual void ackFileOpProgress(double progress) override {
jobProgress(progress); jobProgress(progress);
} }

View File

@ -25,18 +25,17 @@
#include "app/context_access.h" #include "app/context_access.h"
#include "app/document.h" #include "app/document.h"
#include "app/launcher.h" #include "app/launcher.h"
#include "base/override.h"
namespace app { namespace app {
class OpenInFolderCommand : public Command { class OpenInFolderCommand : public Command {
public: public:
OpenInFolderCommand(); OpenInFolderCommand();
Command* clone() const OVERRIDE { return new OpenInFolderCommand(*this); } Command* clone() const override { return new OpenInFolderCommand(*this); }
protected: protected:
bool onEnabled(Context* context) OVERRIDE; bool onEnabled(Context* context) override;
void onExecute(Context* context) OVERRIDE; void onExecute(Context* context) override;
}; };
OpenInFolderCommand::OpenInFolderCommand() OpenInFolderCommand::OpenInFolderCommand()

View File

@ -25,18 +25,17 @@
#include "app/context_access.h" #include "app/context_access.h"
#include "app/document.h" #include "app/document.h"
#include "app/launcher.h" #include "app/launcher.h"
#include "base/override.h"
namespace app { namespace app {
class OpenWithAppCommand : public Command { class OpenWithAppCommand : public Command {
public: public:
OpenWithAppCommand(); OpenWithAppCommand();
Command* clone() const OVERRIDE { return new OpenWithAppCommand(*this); } Command* clone() const override { return new OpenWithAppCommand(*this); }
protected: protected:
bool onEnabled(Context* context) OVERRIDE; bool onEnabled(Context* context) override;
void onExecute(Context* context) OVERRIDE; void onExecute(Context* context) override;
}; };
OpenWithAppCommand::OpenWithAppCommand() OpenWithAppCommand::OpenWithAppCommand()

View File

@ -197,7 +197,7 @@ private:
class OptionsCommand : public Command { class OptionsCommand : public Command {
public: public:
OptionsCommand(); OptionsCommand();
Command* clone() const OVERRIDE { return new OptionsCommand(*this); } Command* clone() const override { return new OptionsCommand(*this); }
protected: protected:
void onExecute(Context* context); void onExecute(Context* context);

View File

@ -47,7 +47,6 @@
#include "app/undo_transaction.h" #include "app/undo_transaction.h"
#include "app/undoers/set_palette_colors.h" #include "app/undoers/set_palette_colors.h"
#include "base/bind.h" #include "base/bind.h"
#include "base/override.h"
#include "base/fs.h" #include "base/fs.h"
#include "base/path.h" #include "base/path.h"
#include "gfx/hsv.h" #include "gfx/hsv.h"
@ -77,7 +76,7 @@ public:
void setColor(const app::Color& color); void setColor(const app::Color& color);
protected: protected:
bool onProcessMessage(Message* msg) OVERRIDE; bool onProcessMessage(Message* msg) override;
void onExit(); void onExit();
void onCloseWindow(); void onCloseWindow();
@ -145,11 +144,11 @@ static PaletteEntryEditor* g_window = NULL;
class PaletteEditorCommand : public Command { class PaletteEditorCommand : public Command {
public: public:
PaletteEditorCommand(); PaletteEditorCommand();
Command* clone() const OVERRIDE { return new PaletteEditorCommand(*this); } Command* clone() const override { return new PaletteEditorCommand(*this); }
protected: protected:
void onLoadParams(Params* params) OVERRIDE; void onLoadParams(Params* params) override;
void onExecute(Context* context) OVERRIDE; void onExecute(Context* context) override;
private: private:
bool m_open; bool m_open;

View File

@ -23,7 +23,6 @@
#include "app/commands/command.h" #include "app/commands/command.h"
#include "app/context.h" #include "app/context.h"
#include "app/util/clipboard.h" #include "app/util/clipboard.h"
#include "base/override.h"
#include "raster/layer.h" #include "raster/layer.h"
#include "raster/sprite.h" #include "raster/sprite.h"
@ -32,7 +31,7 @@ namespace app {
class PasteCommand : public Command { class PasteCommand : public Command {
public: public:
PasteCommand(); PasteCommand();
Command* clone() const OVERRIDE { return new PasteCommand(*this); } Command* clone() const override { return new PasteCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -97,7 +97,7 @@ protected:
} }
} }
virtual bool onProcessMessage(Message* msg) OVERRIDE { virtual bool onProcessMessage(Message* msg) override {
switch (msg->type()) { switch (msg->type()) {
case kOpenMessage: case kOpenMessage:
@ -134,7 +134,7 @@ protected:
return Window::onProcessMessage(msg); return Window::onProcessMessage(msg);
} }
virtual void onPaint(PaintEvent& ev) OVERRIDE { virtual void onPaint(PaintEvent& ev) override {
Graphics* g = ev.getGraphics(); Graphics* g = ev.getGraphics();
g->fillRect(gfx::rgba(0, 0, 0), getClientBounds()); g->fillRect(gfx::rgba(0, 0, 0), getClientBounds());
@ -165,7 +165,7 @@ private:
class PlayAnimationCommand : public Command { class PlayAnimationCommand : public Command {
public: public:
PlayAnimationCommand(); PlayAnimationCommand();
Command* clone() const OVERRIDE { return new PlayAnimationCommand(*this); } Command* clone() const override { return new PlayAnimationCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -94,7 +94,7 @@ public:
} }
protected: protected:
virtual bool onProcessMessage(Message* msg) OVERRIDE { virtual bool onProcessMessage(Message* msg) override {
switch (msg->type()) { switch (msg->type()) {
case kCloseMessage: case kCloseMessage:
@ -185,7 +185,7 @@ protected:
return Window::onProcessMessage(msg); return Window::onProcessMessage(msg);
} }
virtual void onPaint(PaintEvent& ev) OVERRIDE { virtual void onPaint(PaintEvent& ev) override {
Graphics* g = ev.getGraphics(); Graphics* g = ev.getGraphics();
// Render sprite and leave the result in 'render' variable // Render sprite and leave the result in 'render' variable
@ -260,7 +260,7 @@ private:
class PreviewCommand : public Command { class PreviewCommand : public Command {
public: public:
PreviewCommand(); PreviewCommand();
Command* clone() const OVERRIDE { return new PreviewCommand(*this); } Command* clone() const override { return new PreviewCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -40,7 +40,7 @@ namespace app {
class RefreshCommand : public Command { class RefreshCommand : public Command {
public: public:
RefreshCommand(); RefreshCommand();
Command* clone() const OVERRIDE { return new RefreshCommand(*this); } Command* clone() const override { return new RefreshCommand(*this); }
protected: protected:
void onExecute(Context* context); void onExecute(Context* context);

View File

@ -37,7 +37,7 @@ namespace app {
class RemoveCelCommand : public Command { class RemoveCelCommand : public Command {
public: public:
RemoveCelCommand(); RemoveCelCommand();
Command* clone() const OVERRIDE { return new RemoveCelCommand(*this); } Command* clone() const override { return new RemoveCelCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -36,7 +36,7 @@ namespace app {
class RemoveFrameCommand : public Command { class RemoveFrameCommand : public Command {
public: public:
RemoveFrameCommand(); RemoveFrameCommand();
Command* clone() const OVERRIDE { return new RemoveFrameCommand(*this); } Command* clone() const override { return new RemoveFrameCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -39,7 +39,7 @@ namespace app {
class RemoveLayerCommand : public Command { class RemoveLayerCommand : public Command {
public: public:
RemoveLayerCommand(); RemoveLayerCommand();
Command* clone() const OVERRIDE { return new RemoveLayerCommand(*this); } Command* clone() const override { return new RemoveLayerCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -26,18 +26,17 @@
#include "app/commands/params.h" #include "app/commands/params.h"
#include "app/context.h" #include "app/context.h"
#include "app/context_access.h" #include "app/context_access.h"
#include "base/override.h"
namespace app { namespace app {
class RepeatLastExportCommand : public Command { class RepeatLastExportCommand : public Command {
public: public:
RepeatLastExportCommand(); RepeatLastExportCommand();
Command* clone() const OVERRIDE { return new RepeatLastExportCommand(*this); } Command* clone() const override { return new RepeatLastExportCommand(*this); }
protected: protected:
virtual bool onEnabled(Context* context) OVERRIDE; virtual bool onEnabled(Context* context) override;
virtual void onExecute(Context* context) OVERRIDE; virtual void onExecute(Context* context) override;
}; };
RepeatLastExportCommand::RepeatLastExportCommand() RepeatLastExportCommand::RepeatLastExportCommand()

View File

@ -33,7 +33,7 @@ namespace app {
class ReselectMaskCommand : public Command { class ReselectMaskCommand : public Command {
public: public:
ReselectMaskCommand(); ReselectMaskCommand();
Command* clone() const OVERRIDE { return new ReselectMaskCommand(*this); } Command* clone() const override { return new ReselectMaskCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -45,7 +45,7 @@ class RotateCanvasCommand : public Command {
public: public:
RotateCanvasCommand(); RotateCanvasCommand();
Command* clone() const OVERRIDE { return new RotateCanvasCommand(*this); } Command* clone() const override { return new RotateCanvasCommand(*this); }
protected: protected:
void onLoadParams(Params* params); void onLoadParams(Params* params);

View File

@ -64,7 +64,7 @@ public:
private: private:
// Thread to do the hard work: save the file to the disk. // Thread to do the hard work: save the file to the disk.
virtual void onJob() OVERRIDE { virtual void onJob() override {
try { try {
fop_operate(m_fop, this); fop_operate(m_fop, this);
} }
@ -74,7 +74,7 @@ private:
fop_done(m_fop); fop_done(m_fop);
} }
virtual void ackFileOpProgress(double progress) OVERRIDE { virtual void ackFileOpProgress(double progress) override {
jobProgress(progress); jobProgress(progress);
} }
@ -122,13 +122,13 @@ public:
} }
protected: protected:
void onLoadParams(Params* params) OVERRIDE { void onLoadParams(Params* params) override {
m_filename = params->get("filename"); m_filename = params->get("filename");
} }
// Returns true if there is a current sprite to save. // Returns true if there is a current sprite to save.
// [main thread] // [main thread]
bool onEnabled(Context* context) OVERRIDE { bool onEnabled(Context* context) override {
return context->checkFlags(ContextFlags::ActiveDocumentIsWritable); return context->checkFlags(ContextFlags::ActiveDocumentIsWritable);
} }
@ -224,7 +224,7 @@ protected:
class SaveFileCommand : public SaveFileBaseCommand { class SaveFileCommand : public SaveFileBaseCommand {
public: public:
SaveFileCommand(); SaveFileCommand();
Command* clone() const OVERRIDE { return new SaveFileCommand(*this); } Command* clone() const override { return new SaveFileCommand(*this); }
protected: protected:
void onExecute(Context* context); void onExecute(Context* context);
@ -265,7 +265,7 @@ void SaveFileCommand::onExecute(Context* context)
class SaveFileAsCommand : public SaveFileBaseCommand { class SaveFileAsCommand : public SaveFileBaseCommand {
public: public:
SaveFileAsCommand(); SaveFileAsCommand();
Command* clone() const OVERRIDE { return new SaveFileAsCommand(*this); } Command* clone() const override { return new SaveFileAsCommand(*this); }
protected: protected:
void onExecute(Context* context); void onExecute(Context* context);
@ -285,7 +285,7 @@ void SaveFileAsCommand::onExecute(Context* context)
class SaveFileCopyAsCommand : public SaveFileBaseCommand { class SaveFileCopyAsCommand : public SaveFileBaseCommand {
public: public:
SaveFileCopyAsCommand(); SaveFileCopyAsCommand();
Command* clone() const OVERRIDE { return new SaveFileCopyAsCommand(*this); } Command* clone() const override { return new SaveFileCopyAsCommand(*this); }
protected: protected:
void onExecute(Context* context); void onExecute(Context* context);

View File

@ -21,7 +21,6 @@
#pragma once #pragma once
#include "app/commands/command.h" #include "app/commands/command.h"
#include "base/override.h"
#include <string> #include <string>
@ -37,8 +36,8 @@ namespace app {
} }
protected: protected:
void onLoadParams(Params* params) OVERRIDE; void onLoadParams(Params* params) override;
bool onEnabled(Context* context) OVERRIDE; bool onEnabled(Context* context) override;
void saveAsDialog(const ContextReader& reader, const char* dlgTitle, bool markAsSaved); void saveAsDialog(const ContextReader& reader, const char* dlgTitle, bool markAsSaved);

View File

@ -35,7 +35,7 @@ namespace app {
class SaveMaskCommand : public Command { class SaveMaskCommand : public Command {
public: public:
SaveMaskCommand(); SaveMaskCommand();
Command* clone() const OVERRIDE { return new SaveMaskCommand(*this); } Command* clone() const override { return new SaveMaskCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -23,7 +23,6 @@
#include "app/commands/command.h" #include "app/commands/command.h"
#include "app/file_selector.h" #include "app/file_selector.h"
#include "app/modules/palettes.h" #include "app/modules/palettes.h"
#include "base/override.h"
#include "base/fs.h" #include "base/fs.h"
#include "base/path.h" #include "base/path.h"
#include "raster/palette.h" #include "raster/palette.h"
@ -36,10 +35,10 @@ using namespace ui;
class SavePaletteCommand : public Command { class SavePaletteCommand : public Command {
public: public:
SavePaletteCommand(); SavePaletteCommand();
Command* clone() const OVERRIDE { return new SavePaletteCommand(*this); } Command* clone() const override { return new SavePaletteCommand(*this); }
protected: protected:
void onExecute(Context* context) OVERRIDE; void onExecute(Context* context) override;
}; };
SavePaletteCommand::SavePaletteCommand() SavePaletteCommand::SavePaletteCommand()

View File

@ -46,7 +46,7 @@ public:
}; };
ScrollCommand(); ScrollCommand();
Command* clone() const OVERRIDE { return new ScrollCommand(*this); } Command* clone() const override { return new ScrollCommand(*this); }
protected: protected:
void onLoadParams(Params* params); void onLoadParams(Params* params);

View File

@ -27,7 +27,6 @@
#include "app/ini_file.h" #include "app/ini_file.h"
#include "app/modules/palettes.h" #include "app/modules/palettes.h"
#include "app/undo_transaction.h" #include "app/undo_transaction.h"
#include "base/override.h"
#include "base/unique_ptr.h" #include "base/unique_ptr.h"
#include "raster/palette.h" #include "raster/palette.h"
#include "ui/alert.h" #include "ui/alert.h"

View File

@ -21,7 +21,6 @@
#pragma once #pragma once
#include "app/commands/command.h" #include "app/commands/command.h"
#include "base/override.h"
namespace raster { namespace raster {
class Palette; class Palette;
@ -32,12 +31,12 @@ namespace app {
class SetPaletteCommand : public Command { class SetPaletteCommand : public Command {
public: public:
SetPaletteCommand(); SetPaletteCommand();
Command* clone() const OVERRIDE { return new SetPaletteCommand(*this); } Command* clone() const override { return new SetPaletteCommand(*this); }
void setPalette(raster::Palette* palette) { m_palette = palette; } void setPalette(raster::Palette* palette) { m_palette = palette; }
protected: protected:
virtual void onExecute(Context* context) OVERRIDE; virtual void onExecute(Context* context) override;
private: private:
raster::Palette* m_palette; raster::Palette* m_palette;

View File

@ -31,7 +31,7 @@ namespace app {
class MakeUniqueEditorCommand : public Command { class MakeUniqueEditorCommand : public Command {
public: public:
MakeUniqueEditorCommand(); MakeUniqueEditorCommand();
Command* clone() const OVERRIDE { return new MakeUniqueEditorCommand(*this); } Command* clone() const override { return new MakeUniqueEditorCommand(*this); }
protected: protected:
void onExecute(Context* context); void onExecute(Context* context);
@ -54,7 +54,7 @@ void MakeUniqueEditorCommand::onExecute(Context* context)
class SplitEditorHorizontallyCommand : public Command { class SplitEditorHorizontallyCommand : public Command {
public: public:
SplitEditorHorizontallyCommand(); SplitEditorHorizontallyCommand();
Command* clone() const OVERRIDE { return new SplitEditorHorizontallyCommand(*this); } Command* clone() const override { return new SplitEditorHorizontallyCommand(*this); }
protected: protected:
void onExecute(Context* context); void onExecute(Context* context);
@ -77,7 +77,7 @@ void SplitEditorHorizontallyCommand::onExecute(Context* context)
class SplitEditorVerticallyCommand : public Command { class SplitEditorVerticallyCommand : public Command {
public: public:
SplitEditorVerticallyCommand(); SplitEditorVerticallyCommand();
Command* clone() const OVERRIDE { return new SplitEditorVerticallyCommand(*this); } Command* clone() const override { return new SplitEditorVerticallyCommand(*this); }
protected: protected:
void onExecute(Context* context); void onExecute(Context* context);

View File

@ -46,7 +46,7 @@ using namespace ui;
class SpritePropertiesCommand : public Command { class SpritePropertiesCommand : public Command {
public: public:
SpritePropertiesCommand(); SpritePropertiesCommand();
Command* clone() const OVERRIDE { return new SpritePropertiesCommand(*this); } Command* clone() const override { return new SpritePropertiesCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -162,7 +162,7 @@ protected:
class SpriteSizeCommand : public Command { class SpriteSizeCommand : public Command {
public: public:
SpriteSizeCommand(); SpriteSizeCommand();
Command* clone() const OVERRIDE { return new SpriteSizeCommand(*this); } Command* clone() const override { return new SpriteSizeCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -34,11 +34,11 @@ namespace app {
class TimelineCommand : public Command { class TimelineCommand : public Command {
public: public:
TimelineCommand(); TimelineCommand();
Command* clone() const OVERRIDE { return new TimelineCommand(*this); } Command* clone() const override { return new TimelineCommand(*this); }
protected: protected:
void onLoadParams(Params* params) OVERRIDE; void onLoadParams(Params* params) override;
void onExecute(Context* context) OVERRIDE; void onExecute(Context* context) override;
bool m_open; bool m_open;
bool m_close; bool m_close;

View File

@ -42,7 +42,7 @@ public:
enum Type { Undo, Redo }; enum Type { Undo, Redo };
UndoCommand(Type type); UndoCommand(Type type);
Command* clone() const OVERRIDE { return new UndoCommand(*this); } Command* clone() const override { return new UndoCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -32,7 +32,7 @@ public:
enum Action { In, Out, Set }; enum Action { In, Out, Set };
ZoomCommand(); ZoomCommand();
Command* clone() const OVERRIDE { return new ZoomCommand(*this); } Command* clone() const override { return new ZoomCommand(*this); }
protected: protected:
void onLoadParams(Params* params); void onLoadParams(Params* params);

View File

@ -89,7 +89,7 @@ private:
class ColorCurveCommand : public Command { class ColorCurveCommand : public Command {
public: public:
ColorCurveCommand(); ColorCurveCommand();
Command* clone() const OVERRIDE { return new ColorCurveCommand(*this); } Command* clone() const override { return new ColorCurveCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -156,7 +156,7 @@ private:
class ConvolutionMatrixCommand : public Command { class ConvolutionMatrixCommand : public Command {
public: public:
ConvolutionMatrixCommand(); ConvolutionMatrixCommand();
Command* clone() const OVERRIDE { return new ConvolutionMatrixCommand(*this); } Command* clone() const override { return new ConvolutionMatrixCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -94,7 +94,7 @@ class DespeckleCommand : public Command
{ {
public: public:
DespeckleCommand(); DespeckleCommand();
Command* clone() const OVERRIDE { return new DespeckleCommand(*this); } Command* clone() const override { return new DespeckleCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -60,7 +60,7 @@ private:
class InvertColorCommand : public Command { class InvertColorCommand : public Command {
public: public:
InvertColorCommand(); InvertColorCommand();
Command* clone() const OVERRIDE { return new InvertColorCommand(*this); } Command* clone() const override { return new InvertColorCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -123,7 +123,7 @@ private:
class ReplaceColorCommand : public Command { class ReplaceColorCommand : public Command {
public: public:
ReplaceColorCommand(); ReplaceColorCommand();
Command* clone() const OVERRIDE { return new ReplaceColorCommand(*this); } Command* clone() const override { return new ReplaceColorCommand(*this); }
protected: protected:
bool onEnabled(Context* context); bool onEnabled(Context* context);

View File

@ -20,7 +20,6 @@
#define APP_COMMANDS_FILTERS_COLOR_CURVE_EDITOR_H_INCLUDED #define APP_COMMANDS_FILTERS_COLOR_CURVE_EDITOR_H_INCLUDED
#pragma once #pragma once
#include "base/override.h"
#include "base/signal.h" #include "base/signal.h"
#include "gfx/point.h" #include "gfx/point.h"
#include "ui/widget.h" #include "ui/widget.h"
@ -41,8 +40,8 @@ namespace app {
Signal0<void> CurveEditorChange; Signal0<void> CurveEditorChange;
protected: protected:
bool onProcessMessage(ui::Message* msg) OVERRIDE; bool onProcessMessage(ui::Message* msg) override;
void onPreferredSize(ui::PreferredSizeEvent& ev) OVERRIDE; void onPreferredSize(ui::PreferredSizeEvent& ev) override;
private: private:
gfx::Point* getClosestPoint(int x, int y, int** edit_x, int** edit_y); gfx::Point* getClosestPoint(int x, int y, int** edit_x, int** edit_y);

View File

@ -20,7 +20,6 @@
#define APP_COMMANDS_FILTERS_FILTER_PREVIEW_H_INCLUDED #define APP_COMMANDS_FILTERS_FILTER_PREVIEW_H_INCLUDED
#pragma once #pragma once
#include "base/override.h"
#include "ui/timer.h" #include "ui/timer.h"
#include "ui/widget.h" #include "ui/widget.h"
@ -39,7 +38,7 @@ namespace app {
FilterManagerImpl* getFilterManager() const; FilterManagerImpl* getFilterManager() const;
protected: protected:
bool onProcessMessage(ui::Message* msg) OVERRIDE; bool onProcessMessage(ui::Message* msg) override;
private: private:
FilterManagerImpl* m_filterMgr; FilterManagerImpl* m_filterMgr;

View File

@ -69,7 +69,7 @@ namespace app {
Signal1<void, Command*> AfterCommandExecution; Signal1<void, Command*> AfterCommandExecution;
protected: protected:
virtual void onCreateDocument(doc::CreateDocumentArgs* args) OVERRIDE; virtual void onCreateDocument(doc::CreateDocumentArgs* args) override;
virtual void onGetActiveLocation(DocumentLocation* location) const; virtual void onGetActiveLocation(DocumentLocation* location) const;
private: private:

View File

@ -20,7 +20,6 @@
#define APP_DATA_RECOVERY_H_INCLUDED #define APP_DATA_RECOVERY_H_INCLUDED
#pragma once #pragma once
#include "base/override.h"
#include "base/disable_copying.h" #include "base/disable_copying.h"
#include "base/slot.h" #include "base/slot.h"
#include "doc/context_observer.h" #include "doc/context_observer.h"
@ -51,8 +50,8 @@ namespace app {
Backup* getBackup() { return m_backup; } Backup* getBackup() { return m_backup; }
private: private:
virtual void onAddDocument(doc::Document* document) OVERRIDE; virtual void onAddDocument(doc::Document* document) override;
virtual void onRemoveDocument(doc::Document* document) OVERRIDE; virtual void onRemoveDocument(doc::Document* document) override;
base::TempDir* m_tempDir; base::TempDir* m_tempDir;
Backup* m_backup; Backup* m_backup;

View File

@ -20,7 +20,6 @@
#define APP_DOCUMENT_H_INCLUDED #define APP_DOCUMENT_H_INCLUDED
#pragma once #pragma once
#include "base/override.h"
#include "base/disable_copying.h" #include "base/disable_copying.h"
#include "base/observable.h" #include "base/observable.h"
#include "base/shared_ptr.h" #include "base/shared_ptr.h"
@ -183,7 +182,7 @@ namespace app {
void unlock(); void unlock();
protected: protected:
virtual void onContextChanged() OVERRIDE; virtual void onContextChanged() override;
private: private:
// Undo and redo information about the document. // Undo and redo information about the document.

View File

@ -26,7 +26,6 @@
#include "app/document_api.h" #include "app/document_api.h"
#include "app/file/file.h" #include "app/file/file.h"
#include "app/ui_context.h" #include "app/ui_context.h"
#include "base/override.h"
#include "base/path.h" #include "base/path.h"
#include "base/unique_ptr.h" #include "base/unique_ptr.h"
#include "gfx/size.h" #include "gfx/size.h"
@ -113,7 +112,7 @@ public:
class DocumentExporter::SimpleLayoutSamples : class DocumentExporter::SimpleLayoutSamples :
public DocumentExporter::LayoutSamples { public DocumentExporter::LayoutSamples {
public: public:
void layoutSamples(Samples& samples) OVERRIDE { void layoutSamples(Samples& samples) override {
const Sprite* oldSprite = NULL; const Sprite* oldSprite = NULL;
gfx::Point framePt(0, 0); gfx::Point framePt(0, 0);

View File

@ -20,7 +20,6 @@
#define APP_DOCUMENT_UNDO_H_INCLUDED #define APP_DOCUMENT_UNDO_H_INCLUDED
#pragma once #pragma once
#include "base/override.h"
#include "base/disable_copying.h" #include "base/disable_copying.h"
#include "base/unique_ptr.h" #include "base/unique_ptr.h"
#include "raster/sprite_position.h" #include "raster/sprite_position.h"
@ -64,8 +63,8 @@ namespace app {
void impossibleToBackToSavedState(); void impossibleToBackToSavedState();
// UndoHistoryDelegate implementation. // UndoHistoryDelegate implementation.
undo::ObjectsContainer* getObjects() const OVERRIDE { return m_objects; } undo::ObjectsContainer* getObjects() const override { return m_objects; }
size_t getUndoSizeLimit() const OVERRIDE; size_t getUndoSizeLimit() const override;
void pushUndoer(undo::Undoer* undoer); void pushUndoer(undo::Undoer* undoer);

View File

@ -142,9 +142,9 @@ class AseFormat : public FileFormat {
FILE_SUPPORT_PALETTES; FILE_SUPPORT_PALETTES;
} }
bool onLoad(FileOp* fop) OVERRIDE; bool onLoad(FileOp* fop) override;
#ifdef ENABLE_SAVE #ifdef ENABLE_SAVE
bool onSave(FileOp* fop) OVERRIDE; bool onSave(FileOp* fop) override;
#endif #endif
}; };

View File

@ -69,9 +69,9 @@ class BmpFormat : public FileFormat {
FILE_SUPPORT_SEQUENCES; FILE_SUPPORT_SEQUENCES;
} }
bool onLoad(FileOp* fop) OVERRIDE; bool onLoad(FileOp* fop) override;
#ifdef ENABLE_SAVE #ifdef ENABLE_SAVE
bool onSave(FileOp* fop) OVERRIDE; bool onSave(FileOp* fop) override;
#endif #endif
}; };

View File

@ -50,9 +50,9 @@ class FliFormat : public FileFormat {
FILE_SUPPORT_PALETTES; FILE_SUPPORT_PALETTES;
} }
bool onLoad(FileOp* fop) OVERRIDE; bool onLoad(FileOp* fop) override;
#ifdef ENABLE_SAVE #ifdef ENABLE_SAVE
bool onSave(FileOp* fop) OVERRIDE; bool onSave(FileOp* fop) override;
#endif #endif
}; };

View File

@ -97,12 +97,12 @@ class GifFormat : public FileFormat {
} }
bool onLoad(FileOp* fop); bool onLoad(FileOp* fop);
bool onPostLoad(FileOp* fop) OVERRIDE; bool onPostLoad(FileOp* fop) override;
void onDestroyData(FileOp* fop) OVERRIDE; void onDestroyData(FileOp* fop) override;
#ifdef ENABLE_SAVE #ifdef ENABLE_SAVE
bool onSave(FileOp* fop) OVERRIDE; bool onSave(FileOp* fop) override;
#endif #endif
SharedPtr<FormatOptions> onGetFormatOptions(FileOp* fop) OVERRIDE; SharedPtr<FormatOptions> onGetFormatOptions(FileOp* fop) override;
}; };
FileFormat* CreateGifFormat() FileFormat* CreateGifFormat()

View File

@ -48,9 +48,9 @@ class IcoFormat : public FileFormat {
FILE_SUPPORT_INDEXED; FILE_SUPPORT_INDEXED;
} }
bool onLoad(FileOp* fop) OVERRIDE; bool onLoad(FileOp* fop) override;
#ifdef ENABLE_SAVE #ifdef ENABLE_SAVE
bool onSave(FileOp* fop) OVERRIDE; bool onSave(FileOp* fop) override;
#endif #endif
}; };

View File

@ -30,7 +30,6 @@
#include "app/find_widget.h" #include "app/find_widget.h"
#include "app/ini_file.h" #include "app/ini_file.h"
#include "app/load_widget.h" #include "app/load_widget.h"
#include "base/override.h"
#include "base/file_handle.h" #include "base/file_handle.h"
#include "base/memory.h" #include "base/memory.h"
#include "raster/raster.h" #include "raster/raster.h"
@ -65,12 +64,12 @@ class JpegFormat : public FileFormat {
FILE_SUPPORT_GET_FORMAT_OPTIONS; FILE_SUPPORT_GET_FORMAT_OPTIONS;
} }
bool onLoad(FileOp* fop) OVERRIDE; bool onLoad(FileOp* fop) override;
#ifdef ENABLE_SAVE #ifdef ENABLE_SAVE
bool onSave(FileOp* fop) OVERRIDE; bool onSave(FileOp* fop) override;
#endif #endif
SharedPtr<FormatOptions> onGetFormatOptions(FileOp* fop) OVERRIDE; SharedPtr<FormatOptions> onGetFormatOptions(FileOp* fop) override;
}; };
FileFormat* CreateJpegFormat() FileFormat* CreateJpegFormat()

View File

@ -48,9 +48,9 @@ class PcxFormat : public FileFormat {
FILE_SUPPORT_SEQUENCES; FILE_SUPPORT_SEQUENCES;
} }
bool onLoad(FileOp* fop) OVERRIDE; bool onLoad(FileOp* fop) override;
#ifdef ENABLE_SAVE #ifdef ENABLE_SAVE
bool onSave(FileOp* fop) OVERRIDE; bool onSave(FileOp* fop) override;
#endif #endif
}; };

View File

@ -53,9 +53,9 @@ class PngFormat : public FileFormat {
FILE_SUPPORT_SEQUENCES; FILE_SUPPORT_SEQUENCES;
} }
bool onLoad(FileOp* fop) OVERRIDE; bool onLoad(FileOp* fop) override;
#ifdef ENABLE_SAVE #ifdef ENABLE_SAVE
bool onSave(FileOp* fop) OVERRIDE; bool onSave(FileOp* fop) override;
#endif #endif
}; };

View File

@ -50,9 +50,9 @@ class TgaFormat : public FileFormat {
FILE_SUPPORT_SEQUENCES; FILE_SUPPORT_SEQUENCES;
} }
bool onLoad(FileOp* fop) OVERRIDE; bool onLoad(FileOp* fop) override;
#ifdef ENABLE_SAVE #ifdef ENABLE_SAVE
bool onSave(FileOp* fop) OVERRIDE; bool onSave(FileOp* fop) override;
#endif #endif
}; };

View File

@ -128,12 +128,12 @@ class CustomizedGuiManager : public Manager
, public LayoutIO , public LayoutIO
{ {
protected: protected:
bool onProcessMessage(Message* msg) OVERRIDE; bool onProcessMessage(Message* msg) override;
LayoutIO* onGetLayoutIO() OVERRIDE { return this; } LayoutIO* onGetLayoutIO() override { return this; }
// LayoutIO implementation // LayoutIO implementation
std::string loadLayout(Widget* widget) OVERRIDE; std::string loadLayout(Widget* widget) override;
void saveLayout(Widget* widget, const std::string& str) OVERRIDE; void saveLayout(Widget* widget, const std::string& str) override;
}; };
static she::Display* main_display = NULL; static she::Display* main_display = NULL;

View File

@ -36,7 +36,7 @@ namespace app {
} }
virtual ~PaletteResource() { } virtual ~PaletteResource() { }
virtual raster::Palette* palette() { return m_palette; } virtual raster::Palette* palette() { return m_palette; }
virtual const std::string& name() const OVERRIDE { return m_name; } virtual const std::string& name() const override { return m_name; }
private: private:
raster::Palette* m_palette; raster::Palette* m_palette;

View File

@ -21,15 +21,14 @@
#pragma once #pragma once
#include "app/res/resources_loader_delegate.h" #include "app/res/resources_loader_delegate.h"
#include "base/override.h"
namespace app { namespace app {
class PalettesLoaderDelegate : public ResourcesLoaderDelegate { class PalettesLoaderDelegate : public ResourcesLoaderDelegate {
public: public:
// ResourcesLoaderDelegate impl // ResourcesLoaderDelegate impl
virtual std::string resourcesLocation() const OVERRIDE; virtual std::string resourcesLocation() const override;
virtual Resource* loadResource(const std::string& filename) OVERRIDE; virtual Resource* loadResource(const std::string& filename) override;
}; };
} // namespace app } // namespace app

View File

@ -98,60 +98,60 @@ public:
// Tiled mode // Tiled mode
virtual TiledMode getTiledMode() OVERRIDE; virtual TiledMode getTiledMode() override;
virtual void setTiledMode(TiledMode mode) OVERRIDE; virtual void setTiledMode(TiledMode mode) override;
// Grid settings // Grid settings
virtual bool getSnapToGrid() OVERRIDE; virtual bool getSnapToGrid() override;
virtual bool getGridVisible() OVERRIDE; virtual bool getGridVisible() override;
virtual gfx::Rect getGridBounds() OVERRIDE; virtual gfx::Rect getGridBounds() override;
virtual app::Color getGridColor() OVERRIDE; virtual app::Color getGridColor() override;
virtual void setSnapToGrid(bool state) OVERRIDE; virtual void setSnapToGrid(bool state) override;
virtual void setGridVisible(bool state) OVERRIDE; virtual void setGridVisible(bool state) override;
virtual void setGridBounds(const gfx::Rect& rect) OVERRIDE; virtual void setGridBounds(const gfx::Rect& rect) override;
virtual void setGridColor(const app::Color& color) OVERRIDE; virtual void setGridColor(const app::Color& color) override;
virtual void snapToGrid(gfx::Point& point) const OVERRIDE; virtual void snapToGrid(gfx::Point& point) const override;
// Pixel grid // Pixel grid
virtual bool getPixelGridVisible() OVERRIDE; virtual bool getPixelGridVisible() override;
virtual app::Color getPixelGridColor() OVERRIDE; virtual app::Color getPixelGridColor() override;
virtual void setPixelGridVisible(bool state) OVERRIDE; virtual void setPixelGridVisible(bool state) override;
virtual void setPixelGridColor(const app::Color& color) OVERRIDE; virtual void setPixelGridColor(const app::Color& color) override;
// Onionskin settings // Onionskin settings
virtual bool getUseOnionskin() OVERRIDE; virtual bool getUseOnionskin() override;
virtual int getOnionskinPrevFrames() OVERRIDE; virtual int getOnionskinPrevFrames() override;
virtual int getOnionskinNextFrames() OVERRIDE; virtual int getOnionskinNextFrames() override;
virtual int getOnionskinOpacityBase() OVERRIDE; virtual int getOnionskinOpacityBase() override;
virtual int getOnionskinOpacityStep() OVERRIDE; virtual int getOnionskinOpacityStep() override;
virtual OnionskinType getOnionskinType() OVERRIDE; virtual OnionskinType getOnionskinType() override;
virtual void setUseOnionskin(bool state) OVERRIDE; virtual void setUseOnionskin(bool state) override;
virtual void setOnionskinPrevFrames(int frames) OVERRIDE; virtual void setOnionskinPrevFrames(int frames) override;
virtual void setOnionskinNextFrames(int frames) OVERRIDE; virtual void setOnionskinNextFrames(int frames) override;
virtual void setOnionskinOpacityBase(int base) OVERRIDE; virtual void setOnionskinOpacityBase(int base) override;
virtual void setOnionskinOpacityStep(int step) OVERRIDE; virtual void setOnionskinOpacityStep(int step) override;
virtual void setOnionskinType(OnionskinType type) OVERRIDE; virtual void setOnionskinType(OnionskinType type) override;
virtual void setDefaultOnionskinSettings() OVERRIDE; virtual void setDefaultOnionskinSettings() override;
// Animation // Animation
virtual bool getLoopAnimation() OVERRIDE; virtual bool getLoopAnimation() override;
virtual void getLoopRange(raster::FrameNumber* begin, raster::FrameNumber* end) OVERRIDE; virtual void getLoopRange(raster::FrameNumber* begin, raster::FrameNumber* end) override;
virtual AniDir getAnimationDirection() OVERRIDE; virtual AniDir getAnimationDirection() override;
virtual void setLoopAnimation(bool state) OVERRIDE; virtual void setLoopAnimation(bool state) override;
virtual void setLoopRange(raster::FrameNumber begin, raster::FrameNumber end) OVERRIDE; virtual void setLoopRange(raster::FrameNumber begin, raster::FrameNumber end) override;
virtual void setAnimationDirection(AniDir dir) OVERRIDE; virtual void setAnimationDirection(AniDir dir) override;
virtual void addObserver(DocumentSettingsObserver* observer) OVERRIDE; virtual void addObserver(DocumentSettingsObserver* observer) override;
virtual void removeObserver(DocumentSettingsObserver* observer) OVERRIDE; virtual void removeObserver(DocumentSettingsObserver* observer) override;
private: private:
void redrawDocumentViews() { void redrawDocumentViews() {
@ -695,11 +695,11 @@ public:
m_fireSignals = state; m_fireSignals = state;
} }
void addObserver(BrushSettingsObserver* observer) OVERRIDE{ void addObserver(BrushSettingsObserver* observer) override{
base::Observable<BrushSettingsObserver>::addObserver(observer); base::Observable<BrushSettingsObserver>::addObserver(observer);
} }
void removeObserver(BrushSettingsObserver* observer) OVERRIDE{ void removeObserver(BrushSettingsObserver* observer) override{
base::Observable<BrushSettingsObserver>::removeObserver(observer); base::Observable<BrushSettingsObserver>::removeObserver(observer);
} }
}; };
@ -791,25 +791,25 @@ public:
IBrushSettings* getBrush() { return &m_brush; } IBrushSettings* getBrush() { return &m_brush; }
int getOpacity() OVERRIDE { return m_opacity; } int getOpacity() override { return m_opacity; }
int getTolerance() OVERRIDE { return m_tolerance; } int getTolerance() override { return m_tolerance; }
bool getContiguous() OVERRIDE { return m_contiguous; } bool getContiguous() override { return m_contiguous; }
bool getFilled() OVERRIDE { return m_filled; } bool getFilled() override { return m_filled; }
bool getPreviewFilled() OVERRIDE { return m_previewFilled; } bool getPreviewFilled() override { return m_previewFilled; }
int getSprayWidth() OVERRIDE { return m_spray_width; } int getSprayWidth() override { return m_spray_width; }
int getSpraySpeed() OVERRIDE { return m_spray_speed; } int getSpraySpeed() override { return m_spray_speed; }
InkType getInkType() OVERRIDE { return m_inkType; } InkType getInkType() override { return m_inkType; }
FreehandAlgorithm getFreehandAlgorithm() OVERRIDE { return m_freehandAlgorithm; } FreehandAlgorithm getFreehandAlgorithm() override { return m_freehandAlgorithm; }
void setOpacity(int opacity) OVERRIDE { m_opacity = opacity; } void setOpacity(int opacity) override { m_opacity = opacity; }
void setTolerance(int tolerance) OVERRIDE { m_tolerance = tolerance; } void setTolerance(int tolerance) override { m_tolerance = tolerance; }
void setContiguous(bool state) OVERRIDE { m_contiguous = state; } void setContiguous(bool state) override { m_contiguous = state; }
void setFilled(bool state) OVERRIDE { m_filled = state; } void setFilled(bool state) override { m_filled = state; }
void setPreviewFilled(bool state) OVERRIDE { m_previewFilled = state; } void setPreviewFilled(bool state) override { m_previewFilled = state; }
void setSprayWidth(int width) OVERRIDE { m_spray_width = width; } void setSprayWidth(int width) override { m_spray_width = width; }
void setSpraySpeed(int speed) OVERRIDE { m_spray_speed = speed; } void setSpraySpeed(int speed) override { m_spray_speed = speed; }
void setInkType(InkType inkType) OVERRIDE { m_inkType = inkType; } void setInkType(InkType inkType) override { m_inkType = inkType; }
void setFreehandAlgorithm(FreehandAlgorithm algorithm) OVERRIDE { void setFreehandAlgorithm(FreehandAlgorithm algorithm) override {
m_freehandAlgorithm = algorithm; m_freehandAlgorithm = algorithm;
tools::ToolBox* toolBox = App::instance()->getToolBox(); tools::ToolBox* toolBox = App::instance()->getToolBox();
@ -831,11 +831,11 @@ public:
} }
} }
void addObserver(ToolSettingsObserver* observer) OVERRIDE { void addObserver(ToolSettingsObserver* observer) override {
base::Observable<ToolSettingsObserver>::addObserver(observer); base::Observable<ToolSettingsObserver>::addObserver(observer);
} }
void removeObserver(ToolSettingsObserver* observer) OVERRIDE{ void removeObserver(ToolSettingsObserver* observer) override{
base::Observable<ToolSettingsObserver>::removeObserver(observer); base::Observable<ToolSettingsObserver>::removeObserver(observer);
} }

View File

@ -26,7 +26,6 @@
#include "app/settings/settings.h" #include "app/settings/settings.h"
#include "app/settings/settings_observers.h" #include "app/settings/settings_observers.h"
#include "base/override.h"
#include "base/observable.h" #include "base/observable.h"
#include "base/unique_ptr.h" #include "base/unique_ptr.h"
@ -42,47 +41,47 @@ namespace app {
~UISettingsImpl(); ~UISettingsImpl();
// Undo settings // Undo settings
size_t undoSizeLimit() const OVERRIDE; size_t undoSizeLimit() const override;
bool undoGotoModified() const OVERRIDE; bool undoGotoModified() const override;
void setUndoSizeLimit(size_t size) OVERRIDE; void setUndoSizeLimit(size_t size) override;
void setUndoGotoModified(bool state) OVERRIDE; void setUndoGotoModified(bool state) override;
// ISettings implementation // ISettings implementation
bool getZoomWithScrollWheel() OVERRIDE; bool getZoomWithScrollWheel() override;
bool getShowSpriteEditorScrollbars() OVERRIDE; bool getShowSpriteEditorScrollbars() override;
bool getGrabAlpha() OVERRIDE; bool getGrabAlpha() override;
app::Color getFgColor() OVERRIDE; app::Color getFgColor() override;
app::Color getBgColor() OVERRIDE; app::Color getBgColor() override;
tools::Tool* getCurrentTool() OVERRIDE; tools::Tool* getCurrentTool() override;
app::ColorSwatches* getColorSwatches() OVERRIDE; app::ColorSwatches* getColorSwatches() override;
void setZoomWithScrollWheel(bool state) OVERRIDE; void setZoomWithScrollWheel(bool state) override;
void setShowSpriteEditorScrollbars(bool state) OVERRIDE; void setShowSpriteEditorScrollbars(bool state) override;
void setGrabAlpha(bool state) OVERRIDE; void setGrabAlpha(bool state) override;
void setFgColor(const app::Color& color) OVERRIDE; void setFgColor(const app::Color& color) override;
void setBgColor(const app::Color& color) OVERRIDE; void setBgColor(const app::Color& color) override;
void setCurrentTool(tools::Tool* tool) OVERRIDE; void setCurrentTool(tools::Tool* tool) override;
void setColorSwatches(app::ColorSwatches* colorSwatches) OVERRIDE; void setColorSwatches(app::ColorSwatches* colorSwatches) override;
IDocumentSettings* getDocumentSettings(const Document* document) OVERRIDE; IDocumentSettings* getDocumentSettings(const Document* document) override;
IToolSettings* getToolSettings(tools::Tool* tool) OVERRIDE; IToolSettings* getToolSettings(tools::Tool* tool) override;
IColorSwatchesStore* getColorSwatchesStore() OVERRIDE; IColorSwatchesStore* getColorSwatchesStore() override;
ISelectionSettings* selection() OVERRIDE; ISelectionSettings* selection() override;
IExperimentalSettings* experimental() OVERRIDE; IExperimentalSettings* experimental() override;
// IExperimentalSettings implementation // IExperimentalSettings implementation
bool useNativeCursor() const OVERRIDE; bool useNativeCursor() const override;
void setUseNativeCursor(bool state) OVERRIDE; void setUseNativeCursor(bool state) override;
// IColorSwatchesStore implementation // IColorSwatchesStore implementation
void addColorSwatches(app::ColorSwatches* colorSwatches) OVERRIDE; void addColorSwatches(app::ColorSwatches* colorSwatches) override;
void removeColorSwatches(app::ColorSwatches* colorSwatches) OVERRIDE; void removeColorSwatches(app::ColorSwatches* colorSwatches) override;
void addObserver(GlobalSettingsObserver* observer) OVERRIDE; void addObserver(GlobalSettingsObserver* observer) override;
void removeObserver(GlobalSettingsObserver* observer) OVERRIDE; void removeObserver(GlobalSettingsObserver* observer) override;
private: private:
tools::Tool* m_currentTool; tools::Tool* m_currentTool;

View File

@ -40,7 +40,7 @@ namespace app {
} }
protected: protected:
void onGetActiveLocation(DocumentLocation* location) const OVERRIDE { void onGetActiveLocation(DocumentLocation* location) const override {
Document* doc = activeDocument(); Document* doc = activeDocument();
if (!doc) if (!doc)
return; return;

View File

@ -240,11 +240,11 @@ class IntertwineAsPixelPerfect : public Intertwine {
Points m_pts; Points m_pts;
public: public:
void prepareIntertwine() OVERRIDE { void prepareIntertwine() override {
m_pts.clear(); m_pts.clear();
} }
void joinPoints(ToolLoop* loop, const Points& points) OVERRIDE { void joinPoints(ToolLoop* loop, const Points& points) override {
if (points.size() == 0) if (points.size() == 0)
return; return;
else if (m_pts.empty() && points.size() == 1) { else if (m_pts.empty() && points.size() == 1) {

Some files were not shown because too many files have changed in this diff Show More