OpenToonz - An open-source full-featured 2D animation creation software
C
REFACTORING: Add `final` specifiers (#537)
Shinya Kitaokad1f6c4e95b65
diff --git a/toonz/sources/colorfx/rasterstyles.h b/toonz/sources/colorfx/rasterstyles.hindex 6bb749039..797fd35d4 100644--- a/toonz/sources/colorfx/rasterstyles.h+++ b/toonz/sources/colorfx/rasterstyles.h@@ -110,7 +110,7 @@ protected://=============================================================================-class TBlendRasterStyle : public TAirbrushRasterStyle {+class TBlendRasterStyle final : public TAirbrushRasterStyle {public:TBlendRasterStyle(const TPixel32 &color, double blur): TAirbrushRasterStyle(color, blur) {}@@ -132,7 +132,7 @@ private://=============================================================================-class TNoColorRasterStyle : public TColorStyle, TRasterStyleFx {+class TNoColorRasterStyle final : public TColorStyle, TRasterStyleFx {public:TNoColorRasterStyle() {}TColorStyle *clone() const override { return new TNoColorRasterStyle(*this); }diff --git a/toonz/sources/colorfx/regionstyles.h b/toonz/sources/colorfx/regionstyles.hindex 1f1f81db8..e20d5697c 100644--- a/toonz/sources/colorfx/regionstyles.h+++ b/toonz/sources/colorfx/regionstyles.h@@ -29,7 +29,7 @@ class TRandom;//============================================================-class MovingModifier : public TOutlineStyle::RegionOutlineModifier {+class MovingModifier final : public TOutlineStyle::RegionOutlineModifier {TPointD m_move;public:@@ -51,7 +51,7 @@ public://============================================================-class MovingSolidColor : public TSolidColorStyle {+class MovingSolidColor final : public TSolidColorStyle {public:MovingSolidColor(const TPixel32 &color, const TPointD &move);@@ -84,7 +84,7 @@ protected://============================================================-class DVAPI ShadowStyle : public TSolidColorStyle {+class DVAPI ShadowStyle final : public TSolidColorStyle {TPointD m_shadowDirection;TPixel32 m_shadowColor;double m_density;@@ -140,7 +140,7 @@ private://============================================================-class DVAPI ShadowStyle2 : public TSolidColorStyle {+class DVAPI ShadowStyle2 final : public TSolidColorStyle {TPointD m_shadowDirection;TPixel32 m_shadowColor;double m_shadowLength;@@ -193,7 +193,7 @@ private://============================================================-class RubberModifier : public TOutlineStyle::RegionOutlineModifier {+class RubberModifier final : public TOutlineStyle::RegionOutlineModifier {double m_deform;public:@@ -212,7 +212,7 @@ public://============================================================-class DVAPI TRubberFillStyle : public TSolidColorStyle {+class DVAPI TRubberFillStyle final : public TSolidColorStyle {typedef std::vector<TQuadratic> QuadraticVector;typedef std::vector<TQuadratic *> QuadraticPVector;@@ -253,7 +253,7 @@ private://============================================================-class DVAPI TPointShadowFillStyle : public TSolidColorStyle {+class DVAPI TPointShadowFillStyle final : public TSolidColorStyle {TPointD m_shadowDirection;TPixel32 m_shadowColor;double m_shadowSize;@@ -317,7 +317,7 @@ private://============================================================-class DVAPI TDottedFillStyle : public TSolidColorStyle {+class DVAPI TDottedFillStyle final : public TSolidColorStyle {TPixel32 m_pointColor;double m_dotSize;double m_dotDist;@@ -372,7 +372,7 @@ private://============================================================-class DVAPI TCheckedFillStyle : public TSolidColorStyle {+class DVAPI TCheckedFillStyle final : public TSolidColorStyle {TPixel32 m_pointColor;double m_HDist, m_HAngle;double m_VDist, m_VAngle, m_Thickness;@@ -429,7 +429,7 @@ protected://============================================================-class ArtisticModifier : public TOutlineStyle::RegionOutlineModifier {+class ArtisticModifier final : public TOutlineStyle::RegionOutlineModifier {TPointD m_move;double m_period;@@ -454,7 +454,7 @@ public://============================================================-class ArtisticSolidColor : public TSolidColorStyle {+class ArtisticSolidColor final : public TSolidColorStyle {public:ArtisticSolidColor(const TPixel32 &color, const TPointD &move, double period);@@ -487,7 +487,7 @@ protected://============================================================-class DVAPI TChalkFillStyle : public TSolidColorStyle {+class DVAPI TChalkFillStyle final : public TSolidColorStyle {TPixel32 m_color0;double m_density, m_size;@@ -538,7 +538,7 @@ protected://============================================================-class DVAPI TChessFillStyle : public TSolidColorStyle {+class DVAPI TChessFillStyle final : public TSolidColorStyle {TPixel32 m_pointColor;double m_HDist, m_VDist, m_Angle;@@ -589,7 +589,7 @@ private://============================================================-class DVAPI TStripeFillStyle : public TSolidColorStyle {+class DVAPI TStripeFillStyle final : public TSolidColorStyle {TPixel32 m_pointColor;double m_Dist, m_Angle, m_Thickness;@@ -644,7 +644,7 @@ private://============================================================-class DVAPI TLinGradFillStyle : public TSolidColorStyle {+class DVAPI TLinGradFillStyle final : public TSolidColorStyle {TPixel32 m_pointColor;double m_Angle;double m_XPos, m_YPos, m_Size;@@ -699,7 +699,7 @@ private://============================================================-class DVAPI TRadGradFillStyle : public TSolidColorStyle {+class DVAPI TRadGradFillStyle final : public TSolidColorStyle {TPixel32 m_pointColor;double m_Radius;double m_XPos, m_YPos;@@ -747,7 +747,7 @@ protected://============================================================-class DVAPI TCircleStripeFillStyle : public TSolidColorStyle {+class DVAPI TCircleStripeFillStyle final : public TSolidColorStyle {TPixel32 m_pointColor;double m_XPos, m_YPos;double m_Dist, m_Thickness;@@ -802,7 +802,7 @@ private://============================================================-class DVAPI TMosaicFillStyle : public TSolidColorStyle {+class DVAPI TMosaicFillStyle final : public TSolidColorStyle {TPixel32 m_pointColor[4];double m_size;double m_deform;@@ -859,7 +859,7 @@ private://============================================================-class DVAPI TPatchFillStyle : public TSolidColorStyle {+class DVAPI TPatchFillStyle final : public TSolidColorStyle {TPixel32 m_pointColor[6];double m_size;double m_deform;diff --git a/toonz/sources/colorfx/strokestyles.cpp b/toonz/sources/colorfx/strokestyles.cppindex 09755e69a..bbf77903c 100644--- a/toonz/sources/colorfx/strokestyles.cpp+++ b/toonz/sources/colorfx/strokestyles.cpp@@ -28,7 +28,7 @@ using namespace std;namespace {template <class T>-class TOptimizedStrokePropT : public TStrokeProp {+class TOptimizedStrokePropT final : public TStrokeProp {protected:double m_pixelSize;diff --git a/toonz/sources/colorfx/strokestyles.h b/toonz/sources/colorfx/strokestyles.hindex 446e957a8..c60436969 100644--- a/toonz/sources/colorfx/strokestyles.h+++ b/toonz/sources/colorfx/strokestyles.h@@ -71,7 +71,7 @@ public://--------------------------------------------------------------------class TFurStrokeStyle : public TOptimizedStrokeStyleT<Points> {+class TFurStrokeStyle final : public TOptimizedStrokeStyleT<Points> {double m_cs, m_sn, m_angle, m_length;TPixel32 m_color;@@ -119,7 +119,7 @@ public://--------------------------------------------------------------------class TChainStrokeStyle : public TOptimizedStrokeStyleT<Points> {+class TChainStrokeStyle final : public TOptimizedStrokeStyleT<Points> {TPixel32 m_color;public:@@ -151,7 +151,7 @@ public://--------------------------------------------------------------------class TSprayStrokeStyle : public TSimpleStrokeStyle {+class TSprayStrokeStyle final : public TSimpleStrokeStyle {TPixel32 m_color;double m_blend, m_intensity, m_radius;@@ -193,7 +193,7 @@ public://--------------------------------------------------------------------class TGraphicPenStrokeStyle+class TGraphicPenStrokeStyle final: public TOptimizedStrokeStyleT<DrawmodePointsMatrix> {TPixel32 m_color;double m_intensity;@@ -238,7 +238,7 @@ public://--------------------------------------------------------------------class TDottedLineStrokeStyle : public TOptimizedStrokeStyleT<Points> {+class TDottedLineStrokeStyle final : public TOptimizedStrokeStyleT<Points> {TPixel32 m_color;double m_in, m_line, m_out, m_blank;@@ -284,7 +284,7 @@ public://--------------------------------------------------------------------class TRopeStrokeStyle : public TOptimizedStrokeStyleT<Points> {+class TRopeStrokeStyle final : public TOptimizedStrokeStyleT<Points> {TPixel32 m_color;double m_bend;@@ -328,7 +328,7 @@ public://--------------------------------------------------------------------class TCrystallizeStrokeStyle : public TOptimizedStrokeStyleT<Points> {+class TCrystallizeStrokeStyle final : public TOptimizedStrokeStyleT<Points> {TPixel32 m_color;double m_period, m_opacity;@@ -374,7 +374,7 @@ public://--------------------------------------------------------------------class TBraidStrokeStyle : public TSimpleStrokeStyle {+class TBraidStrokeStyle final : public TSimpleStrokeStyle {TPixel32 m_colors[3];double m_period;@@ -426,7 +426,7 @@ public://--------------------------------------------------------------------class TSketchStrokeStyle : public TSimpleStrokeStyle {+class TSketchStrokeStyle final : public TSimpleStrokeStyle {TPixel32 m_color;double m_density;@@ -470,7 +470,7 @@ public://--------------------------------------------------------------------class TBubbleStrokeStyle : public TSimpleStrokeStyle {+class TBubbleStrokeStyle final : public TSimpleStrokeStyle {TPixel32 m_color0, m_color1;public:@@ -520,7 +520,7 @@ public://--------------------------------------------------------------------class TTissueStrokeStyle : public TOptimizedStrokeStyleT<PointMatrix> {+class TTissueStrokeStyle final : public TOptimizedStrokeStyleT<PointMatrix> {TPixel32 m_color;double m_density, m_border;@@ -565,7 +565,7 @@ public://--------------------------------------------------------------------class TBiColorStrokeStyle : public TOutlineStyle {+class TBiColorStrokeStyle final : public TOutlineStyle {TPixel32 m_color0, m_color1;double m_parameter;@@ -618,7 +618,7 @@ public://--------------------------------------------------------------------class TNormal2StrokeStyle : public TOutlineStyle {+class TNormal2StrokeStyle final : public TOutlineStyle {TPixel32 m_color;double m_lightx, m_lighty, m_shininess, m_metal, m_bend;@@ -670,7 +670,7 @@ public://--------------------------------------------------------------------class TChalkStrokeStyle2 : public TOptimizedStrokeStyleT<Doubles> {+class TChalkStrokeStyle2 final : public TOptimizedStrokeStyleT<Doubles> {TPixel32 m_color;double m_blend, m_intensity, m_in, m_out, m_noise;@@ -717,7 +717,8 @@ public://--------------------------------------------------------------------class TBlendStrokeStyle2 : public TOptimizedStrokeStyleT<PointsAndDoubles> {+class TBlendStrokeStyle2 final+ : public TOptimizedStrokeStyleT<PointsAndDoubles> {TPixel32 m_color;double m_blend, m_in, m_out;@@ -767,7 +768,7 @@ public://--------------------------------------------------------------------class TTwirlStrokeStyle : public TOptimizedStrokeStyleT<Doubles> {+class TTwirlStrokeStyle final : public TOptimizedStrokeStyleT<Doubles> {TPixel32 m_color;double m_period, m_blend;@@ -814,7 +815,7 @@ public://--------------------------------------------------------------------class TSawToothStrokeStyle : public TOutlineStyle {+class TSawToothStrokeStyle final : public TOutlineStyle {TPixel32 m_color;double m_parameter;@@ -865,7 +866,8 @@ public://--------------------------------------------------------------------class TMultiLineStrokeStyle2 : public TOptimizedStrokeStyleT<BlendAndPoints> {+class TMultiLineStrokeStyle2 final+ : public TOptimizedStrokeStyleT<BlendAndPoints> {TPixel32 m_color0, m_color1;double m_intensity, m_length, m_thick, m_noise;@@ -928,7 +930,7 @@ public://--------------------------------------------------------------------class TZigzagStrokeStyle : public TOptimizedStrokeStyleT<Points> {+class TZigzagStrokeStyle final : public TOptimizedStrokeStyleT<Points> {TPixel32 m_color;double m_minDist, m_maxDist;double m_minAngle, m_maxAngle;@@ -985,7 +987,7 @@ public://--------------------------------------------------------------------class TSinStrokeStyle : public TOptimizedStrokeStyleT<Points> {+class TSinStrokeStyle final : public TOptimizedStrokeStyleT<Points> {TPixel32 m_color;double m_frequency, m_thick;@@ -1031,7 +1033,7 @@ public://--------------------------------------------------------------------class TFriezeStrokeStyle2 : public TOptimizedStrokeStyleT<Points> {+class TFriezeStrokeStyle2 final : public TOptimizedStrokeStyleT<Points> {TPixel32 m_color;double m_parameter, m_thick;@@ -1080,7 +1082,7 @@ public://--------------------------------------------------------------------class TDualColorStrokeStyle2 : public TOutlineStyle {+class TDualColorStrokeStyle2 final : public TOutlineStyle {TPixel32 m_color0, m_color1;double m_parameter;@@ -1143,7 +1145,7 @@ public://--------------------------------------------------------------------class TLongBlendStrokeStyle2 : public TOutlineStyle {+class TLongBlendStrokeStyle2 final : public TOutlineStyle {TPixel32 m_color0, m_color1;double m_parameter;@@ -1208,7 +1210,7 @@ public:#ifdef _DEBUG-class OutlineViewerStyle : public TSolidColorStyle {+class OutlineViewerStyle final : public TSolidColorStyle {double m_parameter[4];bool m_boolPar;@@ -1269,7 +1271,7 @@ public:class TMatrioskaStrokeStyle;-class TMatrioskaStrokeProp : public TStrokeProp {+class TMatrioskaStrokeProp final : public TStrokeProp {protected:double m_outlinePixelSize;TMatrioskaStrokeStyle *m_colorStyle;@@ -1289,7 +1291,7 @@ public:void draw(TFlash &flash) override;};-class TMatrioskaStrokeStyle : public TSolidColorStyle {+class TMatrioskaStrokeStyle final : public TSolidColorStyle {double m_parameter;TPixel32 m_color2;diff --git a/toonz/sources/colorfx/zigzagstyles.h b/toonz/sources/colorfx/zigzagstyles.hindex 6d55a5cc0..e1a3a5d0d 100644--- a/toonz/sources/colorfx/zigzagstyles.h+++ b/toonz/sources/colorfx/zigzagstyles.h@@ -7,7 +7,7 @@#ifdef POICIPENSO-class TZigzagStrokeStyle : public TStrokeStyle {+class TZigzagStrokeStyle final : public TStrokeStyle {TPixel32 m_color;double m_density;@@ -36,7 +36,7 @@ public:}};-class TImageBasedZigzagStrokeStyle : public TStrokeStyle {+class TImageBasedZigzagStrokeStyle final : public TStrokeStyle {TPixel32 m_color;double m_textScale;TRaster32P m_texture;diff --git a/toonz/sources/common/expressions/tgrammar.cpp b/toonz/sources/common/expressions/tgrammar.cppindex 0715ff8f6..da99a206b 100644--- a/toonz/sources/common/expressions/tgrammar.cpp+++ b/toonz/sources/common/expressions/tgrammar.cpp@@ -110,7 +110,7 @@ void Calculator::setRootNode(CalculatorNode *node) {//-------------------------------------------------------------------template <class Op>-class Op0Node : public CalculatorNode {+class Op0Node final : public CalculatorNode {public:Op0Node(Calculator *calc) : CalculatorNode(calc) {}@@ -123,7 +123,7 @@ public://-------------------------------------------------------------------template <class Op>-class Op1Node : public CalculatorNode {+class Op1Node final : public CalculatorNode {protected:std::auto_ptr<CalculatorNode> m_a;@@ -141,7 +141,7 @@ public://-------------------------------------------------------------------template <class Op>-class Op2Node : public CalculatorNode {+class Op2Node final : public CalculatorNode {protected:std::auto_ptr<CalculatorNode> m_a, m_b;@@ -162,7 +162,7 @@ public://-------------------------------------------------------------------template <class Op>-class Op3Node : public CalculatorNode {+class Op3Node final : public CalculatorNode {protected:std::auto_ptr<CalculatorNode> m_a, m_b, m_c;@@ -183,7 +183,7 @@ public://--------------------------------------------------------------------class ChsNode : public CalculatorNode {+class ChsNode final : public CalculatorNode {std::auto_ptr<CalculatorNode> m_a;public:@@ -195,7 +195,7 @@ public://--------------------------------------------------------------------class QuestionNode : public CalculatorNode {+class QuestionNode final : public CalculatorNode {std::auto_ptr<CalculatorNode> m_a, m_b, m_c;public:@@ -214,7 +214,7 @@ public://--------------------------------------------------------------------class NotNode : public CalculatorNode {+class NotNode final : public CalculatorNode {std::auto_ptr<CalculatorNode> m_a;public:@@ -227,7 +227,7 @@ public:};//--------------------------------------------------------------------class CycleNode : public CalculatorNode {+class CycleNode final : public CalculatorNode {std::auto_ptr<CalculatorNode> m_a;public:@@ -267,7 +267,7 @@ public://--------------------------------------------------------------------class RandomNode : public CalculatorNode {+class RandomNode final : public CalculatorNode {std::auto_ptr<CalculatorNode> m_seed, m_min, m_max, m_arg;public:@@ -322,7 +322,7 @@ CalculatorNode *Pattern::popNode(std::vector<CalculatorNode *> &stack) const {//===================================================================-class NumberPattern : public Pattern {+class NumberPattern final : public Pattern {public:bool matchToken(const std::vector<Token> &previousTokens,const Token &token) const override {@@ -346,7 +346,7 @@ public://--------------------------------------------------------------------class ConstantPattern : public Pattern {+class ConstantPattern final : public Pattern {std::string m_constantName;double m_value;@@ -380,7 +380,7 @@ public://--------------------------------------------------------------------class VariablePattern : public Pattern {+class VariablePattern final : public Pattern {std::string m_variableName;int m_varIdx;@@ -416,7 +416,7 @@ public://-------------------------------------------------------------------template <class Op>-class Op2Pattern : public Pattern {+class Op2Pattern final : public Pattern {std::string m_opName;int m_priority;@@ -453,7 +453,7 @@ public://--------------------------------------------------------------------class UnaryMinusPattern : public Pattern {+class UnaryMinusPattern final : public Pattern {public:UnaryMinusPattern() {}int getPriority() const override { return 50; }@@ -486,7 +486,7 @@ public://--------------------------------------------------------------------class NotPattern : public Pattern {+class NotPattern final : public Pattern {std::string m_prefix;public:@@ -522,7 +522,7 @@ public://--------------------------------------------------------------------class QuestionTernaryPattern : public Pattern {+class QuestionTernaryPattern final : public Pattern {public:QuestionTernaryPattern() {}int getPriority() const override { return 5; }@@ -557,7 +557,7 @@ public:};//--------------------------------------------------------------------class BraketPattern : public Pattern {+class BraketPattern final : public Pattern {public:BraketPattern() {}int getPriority() const override { return 5; }@@ -702,7 +702,7 @@ public://-------------------------------------------------------------------template <class Function>-class F0Pattern : public FunctionPattern {+class F0Pattern final : public FunctionPattern {public:F0Pattern(std::string functionName) : FunctionPattern(functionName, 0) {}void createNode(Calculator *calc, std::vector<CalculatorNode *> &stack,@@ -714,7 +714,7 @@ public://-------------------------------------------------------------------template <class Function>-class F1Pattern : public FunctionPattern {+class F1Pattern final : public FunctionPattern {public:F1Pattern(std::string functionName, std::string descr = ""): FunctionPattern(functionName, 1) {@@ -729,7 +729,7 @@ public://-------------------------------------------------------------------template <class Function>-class F2Pattern : public FunctionPattern {+class F2Pattern final : public FunctionPattern {public:F2Pattern(std::string functionName, std::string descr = ""): FunctionPattern(functionName, 2) {@@ -746,7 +746,7 @@ public://-------------------------------------------------------------------template <class Function>-class F3Pattern : public FunctionPattern {+class F3Pattern final : public FunctionPattern {public:F3Pattern(std::string functionName, std::string descr = ""): FunctionPattern(functionName, 3) {@@ -764,7 +764,7 @@ public://-------------------------------------------------------------------template <class Function>-class Fs2Pattern : public FunctionPattern {+class Fs2Pattern final : public FunctionPattern {public:Fs2Pattern(std::string functionName, std::string description): FunctionPattern(functionName, 1) {@@ -782,7 +782,7 @@ public://-------------------------------------------------------------------template <class Function>-class Fs3Pattern : public FunctionPattern {+class Fs3Pattern final : public FunctionPattern {public:Fs3Pattern(std::string functionName, double defVal, std::string descr): FunctionPattern(functionName, 1) {@@ -800,7 +800,7 @@ public://--------------------------------------------------------------------class CyclePattern : public FunctionPattern {+class CyclePattern final : public FunctionPattern {public:CyclePattern(std::string functionName) : FunctionPattern(functionName, 1) {setDescription(@@ -816,7 +816,7 @@ public://--------------------------------------------------------------------class RandomPattern : public FunctionPattern {+class RandomPattern final : public FunctionPattern {bool m_seed;public:diff --git a/toonz/sources/common/tapptools/tcli.cpp b/toonz/sources/common/tapptools/tcli.cppindex 1bef3cab0..22dab09be 100644--- a/toonz/sources/common/tapptools/tcli.cpp+++ b/toonz/sources/common/tapptools/tcli.cpp@@ -37,7 +37,7 @@ void printLibRelease(ostream &out) { out << "Tnzcore 1.0 - " __DATE__ << endl; }////----------------------------------------------------------class SpecialUsageElement : public UsageElement {+class SpecialUsageElement final : public UsageElement {public:SpecialUsageElement(std::string name) : UsageElement(name, " "){};void dumpValue(ostream &) const override{};diff --git a/toonz/sources/common/tapptools/tparamundo.cpp b/toonz/sources/common/tapptools/tparamundo.cppindex 2533cffce..9b87fde29 100644--- a/toonz/sources/common/tapptools/tparamundo.cpp+++ b/toonz/sources/common/tapptools/tparamundo.cpp@@ -4,7 +4,7 @@//#include "tparam.h"#include "tundo.h"-class ParamUndoManager : public TParamUndoManager {+class ParamUndoManager final : public TParamUndoManager {public:ParamUndoManager() {}~ParamUndoManager() {}diff --git a/toonz/sources/common/tapptools/ttimer.cpp b/toonz/sources/common/tapptools/ttimer.cppindex de91626c4..272616461 100644--- a/toonz/sources/common/tapptools/ttimer.cpp+++ b/toonz/sources/common/tapptools/ttimer.cpp@@ -166,7 +166,7 @@ public:TGenericTimerAction *m_action;};-class SendCommandMSG : public TThread::Message {+class SendCommandMSG final : public TThread::Message {TTimer::Imp *m_ztimp;public:diff --git a/toonz/sources/common/tcache/timagecache.cpp b/toonz/sources/common/tcache/timagecache.cppindex 687f7b608..63913bcf0 100644--- a/toonz/sources/common/tcache/timagecache.cpp+++ b/toonz/sources/common/tcache/timagecache.cpp@@ -68,7 +68,7 @@ class ImageInfo;TUINT32 HistoryCount = 0;//-------------------------------------------------------------------------------class TheCodec : public TRasterCodecLz4 {+class TheCodec final : public TRasterCodecLz4 {public:static TheCodec *instance() {if (!_instance) _instance = new TheCodec();@@ -151,7 +151,7 @@ public://------------------------------------------------------------------------------//-------------------------------------------------------------------------------class RasterImageInfo : public ImageInfo {+class RasterImageInfo final : public ImageInfo {public:RasterImageInfo(const TRasterImageP &ri);@@ -195,7 +195,7 @@ ImageInfo *RasterImageInfo::clone() { return new RasterImageInfo(*this); }#include "tpalette.h"#include "ttoonzimage.h"-class ToonzImageInfo : public ImageInfo {+class ToonzImageInfo final : public ImageInfo {public:ToonzImageInfo(const TToonzImageP &ti);~ToonzImageInfo() {@@ -241,7 +241,7 @@ void ToonzImageInfo::setInfo(const TToonzImageP &ti) {//------------------------------------------------------------------------------//-------------------------------------------------------------------------------class RasterImageBuilder : public ImageBuilder {+class RasterImageBuilder final : public ImageBuilder {public:ImageBuilder *clone() override { return new RasterImageBuilder(*this); }@@ -267,7 +267,7 @@ TImageP RasterImageBuilder::build(ImageInfo *info, const TRasterP &ras) {//------------------------------------------------------------------------------#ifndef TNZCORE_LIGHT-class ToonzImageBuilder : public ImageBuilder {+class ToonzImageBuilder final : public ImageBuilder {public:ImageBuilder *clone() override { return new ToonzImageBuilder(*this); }@@ -306,7 +306,7 @@ TImageP ToonzImageBuilder::build(ImageInfo *info, const TRasterP &ras) {//-------------------------------------------------------------------------------class UncompressedOnMemoryCacheItem : public CacheItem {+class UncompressedOnMemoryCacheItem final : public CacheItem {public:UncompressedOnMemoryCacheItem(const TImageP &image) : m_image(image) {TRasterImageP ri = m_image;@@ -369,7 +369,7 @@ TUINT32 UncompressedOnMemoryCacheItem::getSize() const {//-------------------------------------------------------------------------------class CompressedOnMemoryCacheItem : public CacheItem {+class CompressedOnMemoryCacheItem final : public CacheItem {public:CompressedOnMemoryCacheItem(const TImageP &img);@@ -467,7 +467,7 @@ TImageP CompressedOnMemoryCacheItem::getImage() const {//-------------------------------------------------------------------------------class CompressedOnDiskCacheItem : public CacheItem {+class CompressedOnDiskCacheItem final : public CacheItem {public:CompressedOnDiskCacheItem(const TFilePath &fp, const TRasterP &compressedRas,ImageBuilder *builder, ImageInfo *info);@@ -531,7 +531,7 @@ TImageP CompressedOnDiskCacheItem::getImage() const {//-------------------------------------------------------------------------------class UncompressedOnDiskCacheItem : public CacheItem {+class UncompressedOnDiskCacheItem final : public CacheItem {int m_pixelsize;public:diff --git a/toonz/sources/common/tcore/tstring.cpp b/toonz/sources/common/tcore/tstring.cppindex 8bbc83c59..80a5431cb 100644--- a/toonz/sources/common/tcore/tstring.cpp+++ b/toonz/sources/common/tcore/tstring.cpp@@ -15,7 +15,7 @@#include <sstream>-class TStringConvertException : public TException {+class TStringConvertException final : public TException {std::string m_string;public:diff --git a/toonz/sources/common/tcore/tthread.cpp b/toonz/sources/common/tcore/tthread.cppindex 567f2b86c..a5ff80bbb 100644--- a/toonz/sources/common/tcore/tthread.cpp+++ b/toonz/sources/common/tcore/tthread.cpp@@ -181,7 +181,7 @@ namespace TThread {//! A Worker is a specialized QThread that continuously polls Runnable//! tasks from a global execution queue to make them work.-class Worker : public QThread {+class Worker final : public QThread {public:RunnableP m_task;@@ -220,7 +220,7 @@ public://! tasks added through it - by copying the smart pointer to the id into each//! added task.//! \sa Executor and Runnable class.-class ExecutorId : public TSmartObject {+class ExecutorId final : public TSmartObject {public:size_t m_id;diff --git a/toonz/sources/common/tcore/tthreadp.h b/toonz/sources/common/tcore/tthreadp.hindex d6319b014..9b07dc353 100644--- a/toonz/sources/common/tcore/tthreadp.h+++ b/toonz/sources/common/tcore/tthreadp.h@@ -14,7 +14,7 @@//--------------------------------------// NOTE: This class should eventually be moved to tthreadmessagep.h...-class TThreadMessageDispatcher : public QObject // singleton+class TThreadMessageDispatcher final : public QObject // singleton{Q_OBJECT@@ -47,7 +47,7 @@ class ExecutorImpSlots;// ExecutorImpSlots class//-------------------------------class TThread::ExecutorImpSlots : public QObject {+class TThread::ExecutorImpSlots final : public QObject {Q_OBJECTpublic:diff --git a/toonz/sources/common/tcore/tundo.cpp b/toonz/sources/common/tcore/tundo.cppindex 3a4257897..9547a5d57 100644--- a/toonz/sources/common/tcore/tundo.cpp+++ b/toonz/sources/common/tcore/tundo.cpp@@ -14,7 +14,7 @@ void callUndo(const TUndo *undo) { undo->undo(); }void callRedo(const TUndo *undo) { undo->redo(); }// void callRepeat(const TUndo* undo) {undo->repeat(); }-class TUndoBlock : public TUndo {+class TUndoBlock final : public TUndo {std::vector<TUndo *> m_undos;typedef std::vector<TUndo *>::const_iterator Iterator;typedef std::vector<TUndo *>::const_reverse_iterator ReverseIterator;diff --git a/toonz/sources/common/tfx/binaryFx.cpp b/toonz/sources/common/tfx/binaryFx.cppindex e6f8b374f..ff608354b 100644--- a/toonz/sources/common/tfx/binaryFx.cpp+++ b/toonz/sources/common/tfx/binaryFx.cpp@@ -252,7 +252,7 @@ void TImageCombinationFx::compatibilityTranslatePort(int major, int minor,// TImageCombinationFx heir classes//******************************************************************************************-class OverFx : public TImageCombinationFx {+class OverFx final : public TImageCombinationFx {FX_DECLARATION(OverFx)public:@@ -266,7 +266,7 @@ public://==================================================================-class AddFx : public TImageCombinationFx {+class AddFx final : public TImageCombinationFx {FX_DECLARATION(AddFx)TDoubleParamP m_value;@@ -289,7 +289,7 @@ public://==================================================================-class ColorDodgeFx : public TImageCombinationFx {+class ColorDodgeFx final : public TImageCombinationFx {FX_DECLARATION(AddFx)public:@@ -303,7 +303,7 @@ public://==================================================================-class ColorBurnFx : public TImageCombinationFx {+class ColorBurnFx final : public TImageCombinationFx {FX_DECLARATION(AddFx)public:@@ -317,7 +317,7 @@ public://==================================================================-class ScreenFx : public TImageCombinationFx {+class ScreenFx final : public TImageCombinationFx {FX_DECLARATION(AddFx)public:@@ -333,7 +333,7 @@ public://==================================================================-class SubFx : public TImageCombinationFx {+class SubFx final : public TImageCombinationFx {FX_DECLARATION(SubFx)TBoolParamP m_matte;@@ -351,7 +351,7 @@ public://==================================================================-class MultFx : public TImageCombinationFx {+class MultFx final : public TImageCombinationFx {FX_DECLARATION(MultFx)TDoubleParamP m_value;@@ -375,7 +375,7 @@ public://==================================================================-class MinFx : public TImageCombinationFx {+class MinFx final : public TImageCombinationFx {FX_DECLARATION(MinFx)TBoolParamP m_matte;@@ -395,7 +395,7 @@ public://==================================================================-class MaxFx : public TImageCombinationFx {+class MaxFx final : public TImageCombinationFx {FX_DECLARATION(MaxFx)public:@@ -409,7 +409,7 @@ public://==================================================================-class LinearBurnFx : public TImageCombinationFx {+class LinearBurnFx final : public TImageCombinationFx {FX_DECLARATION(LinearBurnFx)public:@@ -424,7 +424,7 @@ public://==================================================================// This Fx is probably unused...!-class OverlayFx : public TImageCombinationFx {+class OverlayFx final : public TImageCombinationFx {FX_DECLARATION(OverlayFx)public:@@ -439,7 +439,7 @@ public://==================================================================-class BlendFx : public TImageCombinationFx {+class BlendFx final : public TImageCombinationFx {FX_DECLARATION(BlendFx)TDoubleParamP m_value;@@ -467,7 +467,7 @@ public:// Matte Fxs definition//******************************************************************************************-class InFx : public TBaseRasterFx {+class InFx final : public TBaseRasterFx {FX_DECLARATION(InFx)TRasterFxPort m_source, m_matte;@@ -549,7 +549,7 @@ public://==================================================================-class OutFx : public TBaseRasterFx {+class OutFx final : public TBaseRasterFx {FX_DECLARATION(OutFx)TRasterFxPort m_source, m_matte;@@ -617,7 +617,7 @@ public://==================================================================-class AtopFx : public TBaseRasterFx {+class AtopFx final : public TBaseRasterFx {FX_DECLARATION(AtopFx)TRasterFxPort m_up, m_dn;diff --git a/toonz/sources/common/tfx/tfxcachemanager.cpp b/toonz/sources/common/tfx/tfxcachemanager.cppindex 1ba13b19e..1786b4163 100644--- a/toonz/sources/common/tfx/tfxcachemanager.cpp+++ b/toonz/sources/common/tfx/tfxcachemanager.cpp@@ -117,7 +117,7 @@ bool getTilesToBuild(// TFxCacheManager Generator//****************************************************************************************************-class TFxCacheManagerGenerator : public TRenderResourceManagerGenerator {+class TFxCacheManagerGenerator final : public TRenderResourceManagerGenerator {public:TFxCacheManagerGenerator() : TRenderResourceManagerGenerator(true) {}diff --git a/toonz/sources/common/tfx/tpassivecachemanager.cpp b/toonz/sources/common/tfx/tpassivecachemanager.cppindex 5db0e0fe2..26f427b5e 100644--- a/toonz/sources/common/tfx/tpassivecachemanager.cpp+++ b/toonz/sources/common/tfx/tpassivecachemanager.cpp@@ -234,7 +234,7 @@ public:bool operator!=(const Iterator &it) { return !operator==(it); }};- class ColIterator : public Iterator {+ class ColIterator final : public Iterator {ColKey m_colKey;friend class Table;@@ -256,7 +256,7 @@ public:}};- class RowIterator : public Iterator {+ class RowIterator final : public Iterator {friend class Table;RowIterator(Table *table) : Iterator(table) {}@@ -423,7 +423,8 @@ TPassiveCacheManager::FxData::~FxData() {}// TPassiveCacheManagerGenerator//----------------------------------------class TPassiveCacheManagerGenerator : public TRenderResourceManagerGenerator {+class TPassiveCacheManagerGenerator final+ : public TRenderResourceManagerGenerator {TRenderResourceManager *operator()(void) override {// return new TPassiveCacheManager;return TPassiveCacheManager::instance();diff --git a/toonz/sources/common/tfx/tpredictivecachemanager.cpp b/toonz/sources/common/tfx/tpredictivecachemanager.cppindex 288000f22..576549430 100644--- a/toonz/sources/common/tfx/tpredictivecachemanager.cpp+++ b/toonz/sources/common/tfx/tpredictivecachemanager.cpp@@ -11,7 +11,7 @@// Preliminaries//************************************************************************************************-class TPredictiveCacheManagerGenerator+class TPredictiveCacheManagerGenerator final: public TRenderResourceManagerGenerator {public:TPredictiveCacheManagerGenerator() : TRenderResourceManagerGenerator(true) {}diff --git a/toonz/sources/common/tfx/trenderer.cpp b/toonz/sources/common/tfx/trenderer.cppindex 52f68894e..11737bcf4 100644--- a/toonz/sources/common/tfx/trenderer.cpp+++ b/toonz/sources/common/tfx/trenderer.cpp@@ -278,7 +278,7 @@ TSystem::outputDebug("~RasterPool: itemCount = " + toString// TRendererImp//----------------------class TRendererImp : public TSmartObject {+class TRendererImp final : public TSmartObject {public:struct RenderInstanceInfos {int m_canceled;@@ -374,7 +374,7 @@ unsigned long TRendererImp::m_renderIdCounter = 0;// RenderTask//--------------------class RenderTask : public TThread::Runnable {+class RenderTask final : public TThread::Runnable {std::vector<double> m_frames;unsigned long m_taskId;diff --git a/toonz/sources/common/tfx/trendererP.h b/toonz/sources/common/tfx/trendererP.hindex a8491d2b6..b30fcd136 100644--- a/toonz/sources/common/tfx/trendererP.h+++ b/toonz/sources/common/tfx/trendererP.h@@ -25,7 +25,7 @@//! the mousePressEvent may cause the mouseReleaseEvent to be processed before//! the//! former's end.-class TRendererStartInvoker : public QObject {+class TRendererStartInvoker final : public QObject {Q_OBJECTpublic:diff --git a/toonz/sources/common/tfx/trenderresourcemanager.cpp b/toonz/sources/common/tfx/trenderresourcemanager.cppindex ba4a40055..26bdd7598 100644--- a/toonz/sources/common/tfx/trenderresourcemanager.cpp+++ b/toonz/sources/common/tfx/trenderresourcemanager.cpp@@ -15,7 +15,7 @@ containerstructure of the active renderIds against resource managers.*/-class RenderInstanceManagersBuilder : public TRenderResourceManager {+class RenderInstanceManagersBuilder final : public TRenderResourceManager {T_RENDER_RESOURCE_MANAGERtypedef std::vector<TRenderResourceManager *> ManagersVector;@@ -38,7 +38,7 @@ public://===============================================================================================-class RenderInstanceManagersBuilderGenerator+class RenderInstanceManagersBuilderGenerator final: public TRenderResourceManagerGenerator {public:TRenderResourceManager *operator()(void) override {@@ -61,7 +61,7 @@ passed to thededicated instanceScope handler.*/-class InstanceResourceManagerStub : public TRenderResourceManager {+class InstanceResourceManagerStub final : public TRenderResourceManager {TRenderResourceManagerGenerator *m_generator;public:@@ -80,7 +80,7 @@ public://===============================================================================================-class StubGenerator : public TRenderResourceManagerGenerator {+class StubGenerator final : public TRenderResourceManagerGenerator {TRenderResourceManagerGenerator *m_generator;public:diff --git a/toonz/sources/common/tfx/unaryFx.cpp b/toonz/sources/common/tfx/unaryFx.cppindex afcd10f1e..4c71c8b0e 100644--- a/toonz/sources/common/tfx/unaryFx.cpp+++ b/toonz/sources/common/tfx/unaryFx.cpp@@ -170,7 +170,7 @@ FX_IDENTIFIER_IS_HIDDEN(NaAffineFx, "naAffineFx")//-------------------------------------------------------------------------------class InvertFx : public TBaseRasterFx {+class InvertFx final : public TBaseRasterFx {FX_DECLARATION(InvertFx)TRasterFxPort m_input;TBoolParamP m_redChan, m_greenChan, m_blueChan, m_alphaChan;diff --git a/toonz/sources/common/tfx/zeraryFx.cpp b/toonz/sources/common/tfx/zeraryFx.cppindex 8adaeeec6..b52fe1dc4 100644--- a/toonz/sources/common/tfx/zeraryFx.cpp+++ b/toonz/sources/common/tfx/zeraryFx.cpp@@ -16,7 +16,7 @@//==================================================================-class ColorCardFx : public TBaseZeraryFx {+class ColorCardFx final : public TBaseZeraryFx {FX_DECLARATION(ColorCardFx)TPixelParamP m_color;@@ -54,7 +54,7 @@ public://==================================================================-class CheckBoardFx : public TBaseZeraryFx {+class CheckBoardFx final : public TBaseZeraryFx {FX_DECLARATION(CheckBoardFx)TPixelParamP m_color1, m_color2;diff --git a/toonz/sources/common/tiio/tiio_bmp.cpp b/toonz/sources/common/tiio/tiio_bmp.cppindex 961641b43..34d360bf0 100644--- a/toonz/sources/common/tiio/tiio_bmp.cpp+++ b/toonz/sources/common/tiio/tiio_bmp.cpp@@ -88,7 +88,7 @@ void putint(FILE *fp, int i) {//=========================================================-class BmpReader : public Tiio::Reader {+class BmpReader final : public Tiio::Reader {FILE *m_chan;BMP_HEADER m_header;char *m_line;@@ -584,7 +584,7 @@ int BmpReader::read32Line(char *buffer, int x0, int x1, int shrink) {//=========================================================-class BmpWriter : public Tiio::Writer {+class BmpWriter final : public Tiio::Writer {FILE *m_chan;int m_bitPerPixel;int m_compression;diff --git a/toonz/sources/common/tiio/tiio_jpg.cpp b/toonz/sources/common/tiio/tiio_jpg.cppindex d704aef1e..991d5ff2b 100644--- a/toonz/sources/common/tiio/tiio_jpg.cpp+++ b/toonz/sources/common/tiio/tiio_jpg.cpp@@ -142,7 +142,7 @@ int JpgReader::skipLines(int lineCount) {return lineCount;}-class JpgWriter : public Tiio::Writer {+class JpgWriter final : public Tiio::Writer {struct jpeg_compress_struct m_cinfo;struct jpeg_error_mgr m_jerr;FILE *m_chan;diff --git a/toonz/sources/common/tparam/tdoubleparam.cpp b/toonz/sources/common/tparam/tdoubleparam.cppindex 6913c9759..556abc4de 100644--- a/toonz/sources/common/tparam/tdoubleparam.cpp+++ b/toonz/sources/common/tparam/tdoubleparam.cpp@@ -24,7 +24,7 @@ using namespace std;//===============================-class TActualDoubleKeyframe : public TDoubleKeyframe {+class TActualDoubleKeyframe final : public TDoubleKeyframe {public:mutable TExpression m_expression;mutable TDoubleParamFileData m_fileData;diff --git a/toonz/sources/common/tparam/tparamset.cpp b/toonz/sources/common/tparam/tparamset.cppindex d138a03b3..11f963a61 100644--- a/toonz/sources/common/tparam/tparamset.cpp+++ b/toonz/sources/common/tparam/tparamset.cpp@@ -18,7 +18,7 @@ void doRelease(const std::pair<TParam *, std::string> ¶m) {//-------------------------------------------------------------------------------class TParamSetImp : public TParamObserver {+class TParamSetImp final : public TParamObserver {friend class TParamSet;TParamSet *m_param;std::vector<std::pair<TParam *, std::string>> m_params;@@ -62,7 +62,8 @@ TParamSet::~TParamSet() { delete m_imp; }//---------------------------------------------------------/*template <class Container >-class MyBackInsertIterator : public std::iterator<std::output_iterator_tag,+class MyBackInsertIterator final : public+std::iterator<std::output_iterator_tag,void, void, void, void>{protected:@@ -323,7 +324,7 @@ void TParamSet::enableDragging(bool on) {/*namespace {-class DoEnableNotification : public std::binary_function {+class DoEnableNotification final : public std::binary_function {public:DoEnableNotification() {}diff --git a/toonz/sources/common/tproperty.cpp b/toonz/sources/common/tproperty.cppindex 1a166dfd6..199597f11 100644--- a/toonz/sources/common/tproperty.cpp+++ b/toonz/sources/common/tproperty.cpp@@ -75,7 +75,7 @@ void assign(Property *dst, TProperty *src) {dst->setValue(s->getValue());}-class Setter : public TProperty::Visitor {+class Setter final : public TProperty::Visitor {TProperty *m_src;public:@@ -111,7 +111,7 @@ void TPropertyGroup::accept(TProperty::Visitor &v) {i->first->accept(v);}-class PropertyWriter : public TProperty::Visitor {+class PropertyWriter final : public TProperty::Visitor {TOStream &m_os;public:diff --git a/toonz/sources/common/trop/runsmap.h b/toonz/sources/common/trop/runsmap.hindex b7fd4f2fe..e6e43376c 100644--- a/toonz/sources/common/trop/runsmap.h+++ b/toonz/sources/common/trop/runsmap.h@@ -37,7 +37,7 @@to traverse runs both forward and backwards. This means that 2 headers areprovided for each run, at the opposite ends (unless the run is 1 pixel-width).*/-class RunsMap : public TRasterT<TPixelGR8> {+class RunsMap final : public TRasterT<TPixelGR8> {public:RunsMap(int lx, int ly) : TRasterT<TPixelGR8>(lx, ly) { clear(); }@@ -62,7 +62,7 @@ public:template class DV_EXPORT_API TSmartPointerT<RunsMap>;#endif-class RunsMapP : public TSmartPointerT<RunsMap> {+class RunsMapP final : public TSmartPointerT<RunsMap> {public:RunsMapP() {}RunsMapP(int lx, int ly) : TSmartPointerT<RunsMap>(new RunsMap(lx, ly)) {}diff --git a/toonz/sources/common/trop/tdespeckle.cpp b/toonz/sources/common/trop/tdespeckle.cppindex a4f0395ef..d7d41ba5f 100644--- a/toonz/sources/common/trop/tdespeckle.cpp+++ b/toonz/sources/common/trop/tdespeckle.cpp@@ -304,7 +304,7 @@ void DespecklingReader::closeContainer() {//========================================================================template <typename Pix>-class ReplacePainter : public BordersPainter<Pix> {+class ReplacePainter final : public BordersPainter<Pix> {typename ReplacePainter::pixel_type m_color;public:@@ -325,7 +325,7 @@ public://---------------------------------------------------------------------------------------------template <>-class ReplacePainter<TPixelCM32> : public BordersPainter<TPixelCM32> {+class ReplacePainter<TPixelCM32> final : public BordersPainter<TPixelCM32> {TUINT32 m_value;TUINT32 m_keepMask;@@ -352,7 +352,7 @@ public://========================================================================template <typename PixelSelector>-class IsolatedReader : public DespecklingReader {+class IsolatedReader final : public DespecklingReader {public:typedef typename PixelSelector::pixel_type pixel_type;typedef typename PixelSelector::value_type value_type;@@ -509,7 +509,7 @@ void TRop::despeckle(const TRasterP &rout, const TRasterP &rin,namespace {template <typename PixelSelector>-class FillingReader : public DespecklingReader {+class FillingReader final : public DespecklingReader {public:typedef typename PixelSelector::pixel_type pixel_type;typedef typename PixelSelector::value_type value_type;diff --git a/toonz/sources/common/tsound/tsop.cpp b/toonz/sources/common/tsound/tsop.cppindex 0f2b2ad1d..41bdebe67 100644--- a/toonz/sources/common/tsound/tsop.cpp+++ b/toonz/sources/common/tsound/tsop.cpp@@ -415,7 +415,7 @@ dstSample += tmp;//=============================================================================-class TSoundTrackResample : public TSoundTransform {+class TSoundTrackResample final : public TSoundTransform {TINT32 m_sampleRate;FLT_TYPE m_filterType;@@ -564,7 +564,7 @@ TSoundTrackP doConvertWithoutResamplingT(SRC *src,//-------------------------------------------------------------------------------class TSoundTrackConverterWithoutResampling : public TSoundTransform {+class TSoundTrackConverterWithoutResampling final : public TSoundTransform {TSoundTrackFormat m_format;public:@@ -792,7 +792,7 @@ TSoundTrackP doReverb(TSoundTrackT<T> *src, double delayTime,//==============================================================================-class TSoundReverb : public TSoundTransform {+class TSoundReverb final : public TSoundTransform {double m_delayTime;double m_decayFactor;double m_extendTime;@@ -899,7 +899,7 @@ TSoundTrackP doGate(TSoundTrackT<T> *src, double threshold, double holdTime,//==============================================================================-class TSoundGate : public TSoundTransform {+class TSoundGate final : public TSoundTransform {double m_threshold;double m_holdTime;double m_releaseTime;@@ -1220,7 +1220,7 @@ TSoundTrackP mixT(TSoundTrackT<T> *st1, double a1, TSoundTrackT<T> *st2,//=============================================================================-class TSoundTrackMixer : public TSoundTransform {+class TSoundTrackMixer final : public TSoundTransform {double m_alpha1, m_alpha2;TSoundTrackP m_sndtrack;@@ -1360,7 +1360,7 @@ TSoundTrackP doFadeIn(const TSoundTrackT<T> &track, double riseFactor) {//-------------------------------------------------------------------------------class TSoundTrackFaderIn : public TSoundTransform {+class TSoundTrackFaderIn final : public TSoundTransform {public:TSoundTrackFaderIn(double riseFactor): TSoundTransform(), m_riseFactor(riseFactor) {}@@ -1482,7 +1482,7 @@ TSoundTrackP doFadeOut(const TSoundTrackT<T> &track, double decayFactor) {//-------------------------------------------------------------------------------class TSoundTrackFaderOut : public TSoundTransform {+class TSoundTrackFaderOut final : public TSoundTransform {public:TSoundTrackFaderOut(double decayFactor): TSoundTransform(), m_decayFactor(decayFactor) {}@@ -1614,7 +1614,7 @@ TSoundTrackP doCrossFade(const TSoundTrackT<T> &track1, TSoundTrackT<T> *track2,//-------------------------------------------------------------------------------class TSoundTrackCrossFader : public TSoundTransform {+class TSoundTrackCrossFader final : public TSoundTransform {public:TSoundTrackCrossFader(TSoundTrackP src, double crossFactor): TSoundTransform(), m_st(src), m_crossFactor(crossFactor) {}@@ -1780,7 +1780,7 @@ TSoundTrackP doCrossFadeOverWrite(const TSoundTrackT<T> &track1,//-------------------------------------------------------------------------------class TSoundTrackCrossFaderOverWrite : public TSoundTransform {+class TSoundTrackCrossFaderOverWrite final : public TSoundTransform {public:TSoundTrackCrossFaderOverWrite(TSoundTrackP src, double crossFactor): TSoundTransform(), m_st(src), m_crossFactor(crossFactor) {}diff --git a/toonz/sources/common/tsound/tsound_l.cpp b/toonz/sources/common/tsound/tsound_l.cppindex efda15f72..36219e70a 100644--- a/toonz/sources/common/tsound/tsound_l.cpp+++ b/toonz/sources/common/tsound/tsound_l.cpp@@ -2058,8 +2058,9 @@ TSoundTrackFormat TSoundInputDevice::getPreferredFormat(//******************************************************************************//******************************************************************************-// funzioni per l'interazione con la-//libreria+// funzioni per l'interazione con+// la+// libreria// OSS//******************************************************************************//******************************************************************************diff --git a/toonz/sources/common/tsound/tsound_nt.cpp b/toonz/sources/common/tsound/tsound_nt.cppindex 3b48bda19..48d74e0bf 100644--- a/toonz/sources/common/tsound/tsound_nt.cpp+++ b/toonz/sources/common/tsound/tsound_nt.cpp@@ -49,7 +49,7 @@ void getAmplitude(int &litude, const TSoundTrackP st, TINT32 sample);// Class to send the message that a playback is completed//==============================================================================#ifndef TNZCORE_LIGHT-class EndPlayMsg : public TThread::Message {+class EndPlayMsg final : public TThread::Message {public:EndPlayMsg(TSoundOutputDeviceListener *notifier) { m_listener = notifier; }@@ -859,7 +859,7 @@ TSoundTrackFormat TSoundOutputDevice::getPreferredFormat(//==============================================================================-class WaveFormat : public WAVEFORMATEX {+class WaveFormat final : public WAVEFORMATEX {public:WaveFormat(){};WaveFormat(unsigned char channelCount, unsigned TINT32 sampleRate,@@ -1012,7 +1012,7 @@ void WinSoundInputDevice::stop() {//====================================================================#ifndef TNZCORE_LIGHT-class RecordTask : public TThread::Runnable {+class RecordTask final : public TThread::Runnable {public:RecordTask(std::shared_ptr<TSoundInputDeviceImp> dev): Runnable(), m_dev(std::move(dev)) {}@@ -1028,7 +1028,7 @@ public://====================================================================-class TSoundInputDeviceImp : public WinSoundInputDevice {+class TSoundInputDeviceImp final : public WinSoundInputDevice {public:bool m_allocateBuff;bool m_isRecording;diff --git a/toonz/sources/common/tsound/tsound_x.cpp b/toonz/sources/common/tsound/tsound_x.cppindex fb1b40efb..2cb55d11a 100644--- a/toonz/sources/common/tsound/tsound_x.cpp+++ b/toonz/sources/common/tsound/tsound_x.cpp@@ -988,8 +988,9 @@ bool TSoundInputDevice::isRecording() { return m_imp->m_isRecording; }//******************************************************************************//******************************************************************************-// funzioni per l'interazione con la-//libreria+// funzioni per l'interazione con+// la+// libreria// audio//******************************************************************************//******************************************************************************diff --git a/toonz/sources/common/tsystem/tlogger.cpp b/toonz/sources/common/tsystem/tlogger.cppindex 48f85fae5..a8114fae9 100644--- a/toonz/sources/common/tsystem/tlogger.cpp+++ b/toonz/sources/common/tsystem/tlogger.cpp@@ -18,7 +18,7 @@ public:std::set<TLogger::Listener *> m_listeners;TThread::Mutex m_mutex;- class ListenerNotifier : public TThread::Message {+ class ListenerNotifier final : public TThread::Message {Imp *m_imp;public:diff --git a/toonz/sources/common/tsystem/tsystem.cpp b/toonz/sources/common/tsystem/tsystem.cppindex d6a0a293b..9dde8537f 100644--- a/toonz/sources/common/tsystem/tsystem.cpp+++ b/toonz/sources/common/tsystem/tsystem.cpp@@ -408,7 +408,7 @@ void TSystem::hideFile(const TFilePath &fp) {//-------------------------------------------------------------class CaselessFilepathLess+class CaselessFilepathLess final: public std::binary_function<TFilePath, TFilePath, bool> {public:bool operator()(const TFilePath &a, const TFilePath &b) const {@@ -632,7 +632,7 @@ TFilePathSet TSystem::getDisks() {//-------------------------------------------------------------class LocalThread : public QThread {+class LocalThread final : public QThread {public:static LocalThread *currentThread() {return (LocalThread *)QThread::currentThread();diff --git a/toonz/sources/common/tunit/tunit.cpp b/toonz/sources/common/tunit/tunit.cppindex b6134a78f..9c1f2ee2b 100644--- a/toonz/sources/common/tunit/tunit.cpp+++ b/toonz/sources/common/tunit/tunit.cpp@@ -9,7 +9,7 @@//-------------------------------------------------------------------/*-class VerticalCameraFldUnitConverter : public TUnitConverter {+class VerticalCameraFldUnitConverter final : public TUnitConverter {public:static double m_factor;VerticalCameraFldUnitConverter() {}@@ -35,7 +35,7 @@ void setCurrentDpiGetter(CurrentDpiGetter f) { currentDpiGetter = f; }//--------------------------------------------------------------------class VerticalFldUnitConverter : public TUnitConverter {+class VerticalFldUnitConverter final : public TUnitConverter {double m_factor;public:@@ -70,7 +70,7 @@ double getFieldGuideAspectRatio() {//===================================================================-class TangentConverter : public TUnitConverter {+class TangentConverter final : public TUnitConverter {public:TangentConverter() {}TUnitConverter *clone() const override { return new TangentConverter(*this); }@@ -82,7 +82,7 @@ public://===================================================================-class TPixelUnitXConverter : public TUnitConverter {+class TPixelUnitXConverter final : public TUnitConverter {public:TPixelUnitXConverter() {}TUnitConverter *clone() const override {@@ -96,7 +96,7 @@ public:}};-class TPixelUnitYConverter : public TUnitConverter {+class TPixelUnitYConverter final : public TUnitConverter {public:TPixelUnitYConverter() {}TUnitConverter *clone() const override {@@ -530,7 +530,7 @@ std::wstring TMeasuredValue::toWideString(int decimals) const {namespace {-class ZDepthUnitConverter : public TUnitConverter {+class ZDepthUnitConverter final : public TUnitConverter {TMeasureManager::CameraSizeProvider *m_cameraSizeProvider;public:@@ -550,7 +550,7 @@ public://--------------------------------------------------------------------class CameraZDepthUnitConverter : public TUnitConverter {+class CameraZDepthUnitConverter final : public TUnitConverter {TMeasureManager::CameraSizeProvider *m_cameraSizeProvider;public:@@ -571,7 +571,7 @@ public://===================================================================/*-- Zのカーブのハンドルの長さは0=0となるようにしなければならない --*/-class ZDepthHandleUnitConverter : public TUnitConverter {+class ZDepthHandleUnitConverter final : public TUnitConverter {TMeasureManager::CameraSizeProvider *m_cameraSizeProvider;public:@@ -591,7 +591,7 @@ public:}};-class CameraZDepthHandleUnitConverter : public TUnitConverter {+class CameraZDepthHandleUnitConverter final : public TUnitConverter {TMeasureManager::CameraSizeProvider *m_cameraSizeProvider;public:diff --git a/toonz/sources/common/tvectorimage/cornerdetector.cpp b/toonz/sources/common/tvectorimage/cornerdetector.cppindex 0912bfb2a..a735bd8bd 100644--- a/toonz/sources/common/tvectorimage/cornerdetector.cpp+++ b/toonz/sources/common/tvectorimage/cornerdetector.cpp@@ -5,7 +5,7 @@//======================================================================//! Classe che definisce dei punti che consentono di trovare gli angoli-class AlgorithmPointI : public TPointI {+class AlgorithmPointI final : public TPointI {public://! Indice originale del puntoint m_originalIndex;diff --git a/toonz/sources/common/tvectorimage/tcomputeregions.cpp b/toonz/sources/common/tvectorimage/tcomputeregions.cppindex 9baa196de..39679d9b7 100644--- a/toonz/sources/common/tvectorimage/tcomputeregions.cpp+++ b/toonz/sources/common/tvectorimage/tcomputeregions.cpp@@ -108,7 +108,7 @@ public:inline bool empty() { return size() == 0; }};-class Intersection : public VIListElem {+class Intersection final : public VIListElem {public:// Intersection* m_prev, *m_next;TPointD m_intersection;@@ -149,7 +149,7 @@ public://------------------------------------------------------------------------------class IntersectedStroke : public VIListElem {+class IntersectedStroke final : public VIListElem {/*double m_w;TStroke *m_s;UINT m_index;*/@@ -2563,7 +2563,7 @@ return false;//-----------------------------------------------------------------------------*/-class TRegionClockWiseFormula : public TRegionFeatureFormula {+class TRegionClockWiseFormula final : public TRegionFeatureFormula {private:double m_quasiArea;diff --git a/toonz/sources/common/tvectorimage/tsweepboundary.cpp b/toonz/sources/common/tvectorimage/tsweepboundary.cppindex 138b2d542..3589de92d 100644--- a/toonz/sources/common/tvectorimage/tsweepboundary.cpp+++ b/toonz/sources/common/tvectorimage/tsweepboundary.cpp@@ -49,7 +49,7 @@ bool isSmallStroke = false;set<TPointD> simpleCrossing;set<TPointD> nonSimpleCrossing;-class LinkedQuadratic : public TQuadratic {+class LinkedQuadratic final : public TQuadratic {public:LinkedQuadratic *prev, *next;LinkedQuadratic() : TQuadratic(), prev(0), next(0){};@@ -1423,7 +1423,7 @@ inline bool deleteUnlinkedLoops(LinkedQuadraticList &inputBoundaries) {if (count == 0) return false;if (nonSimpleCrossing.find(current->getP2()) != nonSimpleCrossing.end())// ||- //simpleCrossing.find(current->getP2())+ // simpleCrossing.find(current->getP2())//!= simpleCrossing.end() ){if (current->next) current->next->prev = 0;@@ -1457,7 +1457,7 @@ inline bool deleteUnlinkedLoops(LinkedQuadraticList &inputBoundaries) {if (count == 0) return false;if (nonSimpleCrossing.find(current->getP0()) != nonSimpleCrossing.end())// ||- //simpleCrossing.find(current->getP0())+ // simpleCrossing.find(current->getP0())//!= simpleCrossing.end() ){if (current->prev) current->prev->next = 0;diff --git a/toonz/sources/common/tvectorimage/tvectorimageP.h b/toonz/sources/common/tvectorimage/tvectorimageP.hindex ebc0ec600..19ce7184b 100644--- a/toonz/sources/common/tvectorimage/tvectorimageP.h+++ b/toonz/sources/common/tvectorimage/tvectorimageP.h@@ -101,7 +101,7 @@ class Intersection;#ifdef LEVO-class TAutocloseEdge : public TGeneralEdge {+class TAutocloseEdge final : public TGeneralEdge {public:TSegment m_segment;int m_nextStrokeIndex;diff --git a/toonz/sources/common/tvrender/tellipticbrush.cpp b/toonz/sources/common/tvrender/tellipticbrush.cppindex 7b1177d42..9e758e1ef 100644--- a/toonz/sources/common/tvrender/tellipticbrush.cpp+++ b/toonz/sources/common/tvrender/tellipticbrush.cpp@@ -295,7 +295,7 @@ void tellipticbrush::CenterlinePoint::buildDirs(const TStroke &stroke) {namespace {-class LengthLinearizator : public tellipticbrush::StrokeLinearizator {+class LengthLinearizator final : public tellipticbrush::StrokeLinearizator {double m_lengthStep;int m_countIdx;@@ -352,7 +352,7 @@ void LengthLinearizator::linearize(std::vector<CenterlinePoint> &cPoints,//============================================================================================-class RecursiveLinearizator : public tellipticbrush::StrokeLinearizator {+class RecursiveLinearizator final : public tellipticbrush::StrokeLinearizator {double m_pixSize;public:@@ -451,7 +451,7 @@ void RecursiveLinearizator::subdivide(std::vector<CenterlinePoint> &cPoints,//============================================================================================-class CoverageLinearizator : public tellipticbrush::StrokeLinearizator {+class CoverageLinearizator final : public tellipticbrush::StrokeLinearizator {public:CoverageLinearizator(const TStroke *stroke) : StrokeLinearizator(stroke) {}diff --git a/toonz/sources/common/tvrender/tfont_qt.cpp b/toonz/sources/common/tvrender/tfont_qt.cppindex dfb68c763..5b431bbfe 100644--- a/toonz/sources/common/tvrender/tfont_qt.cpp+++ b/toonz/sources/common/tvrender/tfont_qt.cpp@@ -85,7 +85,8 @@ TPoint TFont::drawChar(TVectorImageP &image, wchar_t charcode,if (path.elementCount() < 1) return getDistance(charcode, nextCharCode);// force closing the last path- if (path.elementAt(path.elementCount() - 1).type != QPainterPath::MoveToElement) {+ if (path.elementAt(path.elementCount() - 1).type !=+ QPainterPath::MoveToElement) {path.moveTo(0.0, 0.0);}@@ -237,7 +238,8 @@ TPoint TFont::getDistance(wchar_t firstChar, wchar_t secondChar) const {return TPoint(0, 0);}- if (!raw.advancesForGlyphIndexes(indices, advances, 2, QRawFont::KernedAdvances)) {+ if (!raw.advancesForGlyphIndexes(indices, advances, 2,+ QRawFont::KernedAdvances)) {return TPoint(0, 0);}@@ -353,8 +355,8 @@ void TFontManager::setFamily(const wstring family) {m_pimpl->m_currentFamily = family;- // XXX: if current style is not valid for family, reset it?- // doing so asserts when chosing a font in the GUI+// XXX: if current style is not valid for family, reset it?+// doing so asserts when chosing a font in the GUI#if 0QStringList styles = m_pimpl->m_qfontdb->styles(qFamily);if (styles.contains(QString::fromStdWString(m_pimpl->m_currentTypeface))) {diff --git a/toonz/sources/common/tvrender/tofflinegl.cpp b/toonz/sources/common/tvrender/tofflinegl.cppindex 20e5f6278..a3d2d4439 100644--- a/toonz/sources/common/tvrender/tofflinegl.cpp+++ b/toonz/sources/common/tvrender/tofflinegl.cpp@@ -69,7 +69,7 @@ static QMutex win32ImpMutex;//--------------------------------class WIN32Implementation : public TOfflineGL::Imp {+class WIN32Implementation final : public TOfflineGL::Imp {public:HDC m_offDC;HGDIOBJ m_oldobj;@@ -309,7 +309,7 @@ std::shared_ptr<TOfflineGL::Imp> defaultOfflineGLGenerator(#elif defined(LINUX)-class XImplementation : public TOfflineGL::Imp {+class XImplementation final : public TOfflineGL::Imp {public:Display *m_dpy;GLXContext m_context;@@ -507,7 +507,7 @@ TOfflineGL::ImpGenerator *currentImpGenerator = defaultOfflineGLGenerator;// namespace {-class MessageCreateContext : public TThread::Message {+class MessageCreateContext final : public TThread::Message {friend class TOfflineGL;TOfflineGL *m_ogl;@@ -836,7 +836,7 @@ int TOfflineGL::getLy() const { return m_imp->getLy(); }namespace {-struct DimensionLess+struct DimensionLess final: public std::binary_function<TDimension, TDimension, bool> {bool operator()(const TDimension &d1, const TDimension &d2) const {return d1.lx < d2.lx || (d1.lx == d2.lx && d1.ly < d2.ly);diff --git a/toonz/sources/common/tvrender/tpalette.cpp b/toonz/sources/common/tvrender/tpalette.cppindex 76d3c88a1..16a6a709b 100644--- a/toonz/sources/common/tvrender/tpalette.cpp+++ b/toonz/sources/common/tvrender/tpalette.cpp@@ -416,7 +416,7 @@ bool TPalette::getFxRects(const TRect &rect, TRect &rectIn, TRect &rectOut) {namespace {-class StyleWriter : public TOutputStreamInterface {+class StyleWriter final : public TOutputStreamInterface {TOStream &m_os;int m_index;@@ -469,7 +469,7 @@ public://--------------------------------------------------------------------class StyleReader : public TInputStreamInterface {+class StyleReader final : public TInputStreamInterface {TIStream &m_is; //!< Wrapped input stream.VersionNumber m_version; //!< Palette version number (overrides m_is's one).diff --git a/toonz/sources/common/tvrender/tsimplecolorstyles.cpp b/toonz/sources/common/tvrender/tsimplecolorstyles.cppindex 2fb4db8d4..42b794c56 100644--- a/toonz/sources/common/tvrender/tsimplecolorstyles.cpp+++ b/toonz/sources/common/tvrender/tsimplecolorstyles.cpp@@ -165,7 +165,7 @@ public:};//----------------------------------------------- struct KeyLess : public std::binary_function<Key, Key, bool> {+ struct KeyLess final : public std::binary_function<Key, Key, bool> {bool operator()(const Key &d1, const Key &d2) const {return d1.m_glContext < d2.m_glContext ||(d1.m_glContext == d2.m_glContext &&diff --git a/toonz/sources/common/tvrender/tvectorbrush.cpp b/toonz/sources/common/tvrender/tvectorbrush.cppindex 709cf645a..481f8943c 100644--- a/toonz/sources/common/tvrender/tvectorbrush.cpp+++ b/toonz/sources/common/tvrender/tvectorbrush.cpp@@ -118,7 +118,8 @@ void getHRange(const TStroke &stroke, double &x0, double &x1) {// Outlinization Data//********************************************************************************-struct StrokeOutlinizationData : public tellipticbrush::OutlinizationData {+struct StrokeOutlinizationData final+ : public tellipticbrush::OutlinizationData {double m_x0, m_x1, m_xRange;double m_y0, m_yScale;@@ -372,7 +373,7 @@ ReferenceLinearizator::ReferenceLinearizator(// Brush Linearizator on Path inter-chunk points//********************************************************************************-class ReferenceChunksLinearizator : public ReferenceLinearizator {+class ReferenceChunksLinearizator final : public ReferenceLinearizator {double m_w0, m_w1;public:@@ -507,7 +508,7 @@ void ReferenceChunksLinearizator::addCenterlinePoints(// Recursive (regular) Reference Stroke Linearizator//********************************************************************************-class RecursiveReferenceLinearizator : public ReferenceLinearizator {+class RecursiveReferenceLinearizator final : public ReferenceLinearizator {public:typedef void (RecursiveReferenceLinearizator::*SubdivisorFuncPtr)(std::vector<CenterlinePoint> &cPoints, CenterlinePoint &cp0,diff --git a/toonz/sources/common/tvrender/tvectorbrushstyle.cpp b/toonz/sources/common/tvrender/tvectorbrushstyle.cppindex 5500b1162..5afd44335 100644--- a/toonz/sources/common/tvrender/tvectorbrushstyle.cpp+++ b/toonz/sources/common/tvrender/tvectorbrushstyle.cpp@@ -24,7 +24,7 @@ TFilePath TVectorBrushStyle::m_rootDir = TFilePath();// Vector Brush Prop declaration//**********************************************************************-class VectorBrushProp : public TStrokeProp {+class VectorBrushProp final : public TStrokeProp {TVectorBrushStyle *m_style;TVectorImageP m_brush;TRectD m_brushBox;diff --git a/toonz/sources/common/twain/twain.h b/toonz/sources/common/twain/twain.hindex e51357f3b..4e6695bd9 100644--- a/toonz/sources/common/twain/twain.h+++ b/toonz/sources/common/twain/twain.h@@ -1434,13 +1434,13 @@ typedef struct {*/#define DF_DSM2 0x10000000L /* added to the identity by the DSM */#define DF_APP2 \- 0x20000000L /* Set by the App to indicate it would \ \ \+ 0x20000000L /* Set by the App to indicate it would \ \ \ \ \prefer to use DSM2 */#define DF_DS2 \- 0x40000000L /* Set by the DS to indicate it would \ \ \+ 0x40000000L /* Set by the DS to indicate it would \ \ \ \ \prefer to use DSM2 */#define DG_MASK \- 0xFFFFL /* all Data Groups limited to 16 bit. Added for 2.1 \ \+ 0xFFFFL /* all Data Groups limited to 16 bit. Added for 2.1 \ \ \ \*//****************************************************************************@@ -1488,13 +1488,19 @@ typedef struct {/* misplaced */#define DAT_ICCPROFILE \- 0x0401 /* TW_MEMORY Added 1.91 This Data Argument is misplaced but \ \+ 0x0401 /* TW_MEMORY Added 1.91 This Data Argument is misplaced but \ \+ \ \+ \ \ \belongs to the DG_IMAGE Data Group */#define DAT_IMAGEMEMFILEXFER \- 0x0402 /* TW_IMAGEMEMXFER Added 1.91 This Data Argument is misplaced but \ \+ 0x0402 /* TW_IMAGEMEMXFER Added 1.91 This Data Argument is misplaced but \ \+ \ \+ \ \ \belongs to the DG_IMAGE Data Group */#define DAT_ENTRYPOINT \- 0x0403 /* TW_ENTRYPOINT Added 2.0 This Data Argument is misplaced but \ \+ 0x0403 /* TW_ENTRYPOINT Added 2.0 This Data Argument is misplaced but \ \+ \ \+ \ \ \belongs to the DG_CONTROL Data Group *//****************************************************************************@@ -1862,7 +1868,7 @@ typedef struct {#define TWCC_CAPBADOPERATION \14 /* Operation not supported by capability */#define TWCC_CAPSEQERROR \- 15 /* Capability has dependancy on other capability \ \+ 15 /* Capability has dependancy on other capability \ \ \ \*/#define TWCC_DENIED \16 /* File System operation is denied (file is protected) Added 1.8 */@@ -1877,7 +1883,7 @@ typedef struct {#define TWCC_PAPERDOUBLEFEED \21 /* The feeder detected multiple pages Added 1.8 */#define TWCC_FILEWRITEERROR \- 22 /* Error writing the file (meant for things like disk full \ \+ 22 /* Error writing the file (meant for things like disk full \ \ \ \conditions)Added 1.8 */#define TWCC_CHECKDEVICEONLINE \23 /* The device went offline prior to or during this operation Added 1.8 */@@ -1924,10 +1930,11 @@ typedef wchar_t TW_UNI512[512], FAR *pTW_UNI512;#define TWFF_JPN 12 /* 1.91 */#define DAT_TWUNKIDENTITY \- 0x000b /* Additional message required for thunker to request the special \ \+ 0x000b /* Additional message required for thunker to request the special \ \ \+ \ \identity information. */#define DAT_SETUPFILEXFER2 \- 0x0301 /* Data transfer via a file. deprecated - use DAT_SETUPFILEXFER \ \+ 0x0301 /* Data transfer via a file. deprecated - use DAT_SETUPFILEXFER \ \ \ \instead*/#define CAP_SUPPORTEDCAPSEXT 0x100cdiff --git a/toonz/sources/image/3gp/tiio_3gp.h b/toonz/sources/image/3gp/tiio_3gp.hindex faf33ab28..631dfbe77 100644--- a/toonz/sources/image/3gp/tiio_3gp.h+++ b/toonz/sources/image/3gp/tiio_3gp.h@@ -46,7 +46,7 @@ class TImageReader3gp;bool IsQuickTimeInstalled();-class TLevelWriter3gp : public TLevelWriter {+class TLevelWriter3gp final : public TLevelWriter {public:TLevelWriter3gp(const TFilePath &path, TPropertyGroup *winfo);~TLevelWriter3gp();@@ -83,7 +83,7 @@ public:void saveSoundTrack(TSoundTrack *st) override;};-class TLevelReader3gp : public TLevelReader {+class TLevelReader3gp final : public TLevelReader {public:TLevelReader3gp(const TFilePath &path);~TLevelReader3gp();diff --git a/toonz/sources/image/3gp/tiio_3gpW.cpp b/toonz/sources/image/3gp/tiio_3gpW.cppindex 85e1410b3..0a7472f01 100644--- a/toonz/sources/image/3gp/tiio_3gpW.cpp+++ b/toonz/sources/image/3gp/tiio_3gpW.cpp@@ -196,7 +196,7 @@ const std::string CodecQualityId = "PU_CodecQuality";// TImageWriterMov//-------------------------------------------------------------------------------class TImageWriter3gp : public TImageWriter {+class TImageWriter3gp final : public TImageWriter {public:TImageWriter3gp(const TFilePath &, int frameIndex, TLevelWriter3gp *);~TImageWriter3gp() { m_lwm->release(); }@@ -218,7 +218,7 @@ private://-----------------------------------------------------------// TImageReaderv//------------------------------------------------------------class TImageReader3gp : public TImageReader {+class TImageReader3gp final : public TImageReader {public:TImageReader3gp(const TFilePath &, int frameIndex, TLevelReader3gp *);~TImageReader3gp() { m_lrm->release(); }diff --git a/toonz/sources/image/3gp/tiio_3gp_proxy.cpp b/toonz/sources/image/3gp/tiio_3gp_proxy.cppindex 4f7e0e4f9..d1bd79717 100644--- a/toonz/sources/image/3gp/tiio_3gp_proxy.cpp+++ b/toonz/sources/image/3gp/tiio_3gp_proxy.cpp@@ -36,7 +36,7 @@// TImageWriter3gp Proxy implementation//******************************************************************************-class TImageWriter3gpProxy : public TImageWriter {+class TImageWriter3gpProxy final : public TImageWriter {TLevelWriter3gp *m_lw;public:@@ -237,7 +237,7 @@ void TLevelWriter3gp::saveSoundTrack(TSoundTrack *st) {// TImageReaderMov Proxy implementation//******************************************************************************-class TImageReader3gpProxy : public TImageReader {+class TImageReader3gpProxy final : public TImageReader {TLevelReader3gp *m_lr;TImageInfo *m_info;diff --git a/toonz/sources/image/3gp/tiio_3gp_proxy.h b/toonz/sources/image/3gp/tiio_3gp_proxy.hindex 7cb06cdac..db8a539d5 100644--- a/toonz/sources/image/3gp/tiio_3gp_proxy.h+++ b/toonz/sources/image/3gp/tiio_3gp_proxy.h@@ -22,7 +22,7 @@ bool IsQuickTimeInstalled();// TLevelWriter3gp Proxy - delegates to a background 32-bit process//******************************************************************************-class TLevelWriter3gp : public TLevelWriter {+class TLevelWriter3gp final : public TLevelWriter {unsigned int m_id;public:@@ -48,7 +48,7 @@ public:// TLevelReader3gp Proxy//******************************************************************************-class TLevelReader3gp : public TLevelReader {+class TLevelReader3gp final : public TLevelReader {unsigned int m_id;int m_lx, m_ly;diff --git a/toonz/sources/image/avi/tiio_avi.cpp b/toonz/sources/image/avi/tiio_avi.cppindex 97a814ef8..a72bfac96 100644--- a/toonz/sources/image/avi/tiio_avi.cpp+++ b/toonz/sources/image/avi/tiio_avi.cpp@@ -126,7 +126,7 @@ bool isAKeyFrame(PAVISTREAM videoStream, int index) {////===========================================================-class TImageWriterAvi : public TImageWriter {+class TImageWriterAvi final : public TImageWriter {public:int m_frameIndex;@@ -603,7 +603,7 @@ void TLevelWriterAvi::doSaveSoundTrack() {////===========================================================-class TImageReaderAvi : public TImageReader {+class TImageReaderAvi final : public TImageReader {public:int m_frameIndex;diff --git a/toonz/sources/image/avi/tiio_avi.h b/toonz/sources/image/avi/tiio_avi.hindex 963d1265c..e61eff91c 100644--- a/toonz/sources/image/avi/tiio_avi.h+++ b/toonz/sources/image/avi/tiio_avi.h@@ -20,7 +20,7 @@ class VDVideoDecompressor;////===========================================================-class TLevelWriterAvi : public TLevelWriter {+class TLevelWriterAvi final : public TLevelWriter {public:TLevelWriterAvi(const TFilePath &path, TPropertyGroup *winfo);~TLevelWriterAvi();@@ -67,7 +67,7 @@ private:////===========================================================-class TLevelReaderAvi : public TLevelReader {+class TLevelReaderAvi final : public TLevelReader {public:TLevelReaderAvi(const TFilePath &path);~TLevelReaderAvi();@@ -104,7 +104,7 @@ private://===========================================================namespace Tiio {-class AviWriterProperties : public TPropertyGroup {+class AviWriterProperties final : public TPropertyGroup {public:AviWriterProperties();TEnumProperty m_codec;diff --git a/toonz/sources/image/mesh/tiio_mesh.cpp b/toonz/sources/image/mesh/tiio_mesh.cppindex 843fb02b1..2dc41d969 100644--- a/toonz/sources/image/mesh/tiio_mesh.cpp+++ b/toonz/sources/image/mesh/tiio_mesh.cpp@@ -13,7 +13,7 @@// TImageWriterMesh definition//********************************************************************************-class TImageWriterMesh : public TImageWriter {+class TImageWriterMesh final : public TImageWriter {TFrameId m_fid; //!< The frame idpublic:@@ -76,7 +76,7 @@ void TImageWriterMesh::save(const TImageP &img) {// TImageReaderMesh definition//********************************************************************************-class TImageReaderMesh : public TImageReader {+class TImageReaderMesh final : public TImageReader {TFrameId m_fid; //<! Current frame idmutable TImageInfo m_info; //!< The image's infosdiff --git a/toonz/sources/image/mesh/tiio_mesh.h b/toonz/sources/image/mesh/tiio_mesh.hindex 3fd995a75..4c56803b0 100644--- a/toonz/sources/image/mesh/tiio_mesh.h+++ b/toonz/sources/image/mesh/tiio_mesh.h@@ -9,7 +9,7 @@// TLevelWriterMesh declaration//*****************************************************************************************-class TLevelWriterMesh : public TLevelWriter {+class TLevelWriterMesh final : public TLevelWriter {public:TLevelWriterMesh(const TFilePath &path, TPropertyGroup *winfo);~TLevelWriterMesh();@@ -31,7 +31,7 @@ private:// TLevelReaderMesh declaration//*****************************************************************************************-class TLevelReaderMesh : public TLevelReader {+class TLevelReaderMesh final : public TLevelReader {public:TLevelReaderMesh(const TFilePath &path);~TLevelReaderMesh();diff --git a/toonz/sources/image/mov/tiio_mov.h b/toonz/sources/image/mov/tiio_mov.hindex 358d2325b..1793ec468 100644--- a/toonz/sources/image/mov/tiio_mov.h+++ b/toonz/sources/image/mov/tiio_mov.h@@ -72,7 +72,7 @@ bool IsQuickTimeInstalled();// Mov TLevelWriter class//***********************************************************************************-class TLevelWriterMov : public TLevelWriter {+class TLevelWriterMov final : public TLevelWriter {std::vector<std::pair<int, TimeValue>> m_savedFrames;int m_IOError;@@ -110,7 +110,7 @@ public:// Mov TLevelReader class//***********************************************************************************-class DVAPI TLevelReaderMov : public TLevelReader {+class DVAPI TLevelReaderMov final : public TLevelReader {bool m_readAsToonzOutput; // default: falsebool m_yMirror; // default: truebool m_loadTimecode; // default: false@@ -161,7 +161,7 @@ private:namespace Tiio {-class MovWriterProperties : public TPropertyGroup {+class MovWriterProperties final : public TPropertyGroup {public:MovWriterProperties();};diff --git a/toonz/sources/image/mov/tiio_movW.cpp b/toonz/sources/image/mov/tiio_movW.cppindex 46a91c412..0b07b7c73 100644--- a/toonz/sources/image/mov/tiio_movW.cpp+++ b/toonz/sources/image/mov/tiio_movW.cpp@@ -213,7 +213,7 @@ bool IsQuickTimeInstalled() {// TImageWriterMov//-------------------------------------------------------------------------------class TImageWriterMov : public TImageWriter {+class TImageWriterMov final : public TImageWriter {public:TImageWriterMov(const TFilePath &, int frameIndex, TLevelWriterMov *);~TImageWriterMov() { m_lwm->release(); }@@ -294,7 +294,7 @@ return new TWriterInfoMov(*this);*///-----------------------------------------------------------/*-class MovWriterProperties : public TPropertyGroup {+class MovWriterProperties final : public TPropertyGroup {public:TEnumProperty m_codec;TEnumProperty m_quality;@@ -1000,7 +1000,7 @@ void TLevelReaderMov::enableRandomAccessRead(bool enable) {// TImageReaderMov//------------------------------------------------------------class TImageReaderMov : public TImageReader {+class TImageReaderMov final : public TImageReader {TLevelReaderMov *m_lrm;TImageInfo *m_info;diff --git a/toonz/sources/image/mov/tiio_mov_proxy.cpp b/toonz/sources/image/mov/tiio_mov_proxy.cppindex c513962a6..260bbb196 100644--- a/toonz/sources/image/mov/tiio_mov_proxy.cpp+++ b/toonz/sources/image/mov/tiio_mov_proxy.cpp@@ -104,7 +104,7 @@ err:// TImageWriterMov Proxy implementation//******************************************************************************-class TImageWriterMovProxy : public TImageWriter {+class TImageWriterMovProxy final : public TImageWriter {TLevelWriterMov *m_lw;public:@@ -305,7 +305,7 @@ void TLevelWriterMov::saveSoundTrack(TSoundTrack *st) {// TImageReaderMov Proxy implementation//******************************************************************************-class TImageReaderMovProxy : public TImageReader {+class TImageReaderMovProxy final : public TImageReader {TLevelReaderMov *m_lr;TImageInfo *m_info;diff --git a/toonz/sources/image/mov/tiio_mov_proxy.h b/toonz/sources/image/mov/tiio_mov_proxy.hindex 661e376e8..386c79d40 100644--- a/toonz/sources/image/mov/tiio_mov_proxy.h+++ b/toonz/sources/image/mov/tiio_mov_proxy.h@@ -22,7 +22,7 @@ bool IsQuickTimeInstalled();// TLevelWriterMov Proxy - delegates to a background 32-bit process//******************************************************************************-class TLevelWriterMov : public TLevelWriter {+class TLevelWriterMov final : public TLevelWriter {unsigned int m_id;public:@@ -48,7 +48,7 @@ public:// TLevelReaderMov Proxy//******************************************************************************-class TLevelReaderMov : public TLevelReader {+class TLevelReaderMov final : public TLevelReader {unsigned int m_id;int m_lx, m_ly;@@ -76,7 +76,7 @@ public://===========================================================================namespace Tiio {-class MovWriterProperties : public TPropertyGroup {+class MovWriterProperties final : public TPropertyGroup {public:MovWriterProperties();};diff --git a/toonz/sources/image/pli/pli_io.cpp b/toonz/sources/image/pli/pli_io.cppindex ba1016286..420dfd72f 100644--- a/toonz/sources/image/pli/pli_io.cpp+++ b/toonz/sources/image/pli/pli_io.cpp@@ -74,7 +74,7 @@ TThickPoint operator*(const TAffine &aff, const TThickPoint &p) {/*=====================================================================*/-class MyOfstream : public Tofstream {+class MyOfstream final : public Tofstream {public:MyOfstream(const TFilePath &path) : Tofstream(path) {}@@ -285,10 +285,10 @@ UINT TStyleParam::getSize() {#else#define CHECK_FOR_READ_ERROR(filePath) \{ \- /*if (m_iChan.flags()&(ios::failbit|ios::eofbit)) \ \ \- { \ \ \- m_lastError = PREMATURE_EOF; \ \ \- throw TImageException( filePath, "Error on reading file"); \ \ \+ /*if (m_iChan.flags()&(ios::failbit|ios::eofbit)) \ \ \ \ \+ { \ \ \ \ \+ m_lastError = PREMATURE_EOF; \ \ \ \ \+ throw TImageException( filePath, "Error on reading file"); \ \ \ \ \}*/ \}#endifdiff --git a/toonz/sources/image/pli/pli_io.h b/toonz/sources/image/pli/pli_io.hindex e0ac6de1e..ecb2134c8 100644--- a/toonz/sources/image/pli/pli_io.h+++ b/toonz/sources/image/pli/pli_io.h@@ -159,7 +159,7 @@ real tags; their structures resembles the structure in the PLI file andthe description in the PLI specific document=====================================================================*/-class TextTag : public PliObjectTag {+class TextTag final : public PliObjectTag {public:std::string m_text;@@ -171,7 +171,7 @@ public://=====================================================================/*!*/-class PaletteTag : public PliTag {+class PaletteTag final : public PliTag {public:TUINT32 m_numColors;TPixelRGBM32 *m_color;@@ -187,7 +187,7 @@ public://=====================================================================/*!*/-class PaletteWithAlphaTag : public PliTag {+class PaletteWithAlphaTag final : public PliTag {public:TUINT32 m_numColors;TPixelRGBM32 *m_color;@@ -207,7 +207,7 @@ All the geometric tags that contains curve informations areinstantiations of this template class*/-class ThickQuadraticChainTag : public PliGeometricTag {+class ThickQuadraticChainTag final : public PliGeometricTag {public:TUINT32 m_numCurves;std::unique_ptr<TThickQuadratic[]> m_curve;@@ -257,7 +257,7 @@ private:/*!Not yet implemented*/-class BitmapTag : public PliGeometricTag {+class BitmapTag final : public PliGeometricTag {public:enum compressionType { NONE = 0, RLE, HOW_MANY_COMPRESSION };@@ -274,7 +274,7 @@ public:Not yet implemented*/-class ColorTag : public PliObjectTag {+class ColorTag final : public PliObjectTag {public:enum styleType {STYLE_NONE = 0,@@ -308,7 +308,7 @@ public://=====================================================================-class StyleTag : public PliObjectTag {+class StyleTag final : public PliObjectTag {public:USHORT m_id;USHORT m_pageIndex;@@ -324,7 +324,7 @@ public://=====================================================================-class GeometricTransformationTag : public PliGeometricTag {+class GeometricTransformationTag final : public PliGeometricTag {public:TAffine m_affine;PliGeometricTag *m_object;@@ -338,7 +338,7 @@ public://=====================================================================-class GroupTag : public PliObjectTag {+class GroupTag final : public PliObjectTag {public:enum {NONE = 0,@@ -364,7 +364,7 @@ public://=====================================================================-class ImageTag : public PliObjectTag {+class ImageTag final : public PliObjectTag {public:TFrameId m_numFrame;@@ -381,7 +381,7 @@ public://=====================================================================-class DoublePairTag : public PliObjectTag {+class DoublePairTag final : public PliObjectTag {public:double m_first, m_second;@@ -393,7 +393,7 @@ public://=====================================================================-class IntersectionDataTag : public PliObjectTag {+class IntersectionDataTag final : public PliObjectTag {public:UINT m_branchCount;std::unique_ptr<TVectorImage::IntersectionBranch[]> m_branchArray;@@ -409,7 +409,7 @@ public://=====================================================================-class StrokeOutlineOptionsTag : public PliObjectTag {+class StrokeOutlineOptionsTag final : public PliObjectTag {public:TStroke::OutlineOptions m_options;@@ -419,7 +419,7 @@ public://=====================================================================-class PrecisionScaleTag : public PliObjectTag {+class PrecisionScaleTag final : public PliObjectTag {public:int m_precisionScale;diff --git a/toonz/sources/image/pli/tiio_pli.cpp b/toonz/sources/image/pli/tiio_pli.cppindex 732a8ef61..f0f51c733 100644--- a/toonz/sources/image/pli/tiio_pli.cpp+++ b/toonz/sources/image/pli/tiio_pli.cpp@@ -25,7 +25,7 @@ namespace {//----------------------------------------------------------------------------class PliOuputStream : public TOutputStreamInterface {+class PliOuputStream final : public TOutputStreamInterface {std::vector<TStyleParam> *m_stream;public:@@ -58,7 +58,7 @@ public://----------------------------------------------------------------------------class PliInputStream : public TInputStreamInterface {+class PliInputStream final : public TInputStreamInterface {std::vector<TStyleParam> *m_stream;VersionNumber m_version;int m_count;@@ -240,7 +240,7 @@ pli->m_idWrittenColorsArray[0]=true;/*Classe locale per la scrittura di un frame del livello.*/-class TImageWriterPli : public TImageWriter {+class TImageWriterPli final : public TImageWriter {public:TImageWriterPli(const TFilePath &, const TFrameId &frameId,TLevelWriterPli *);diff --git a/toonz/sources/image/pli/tiio_pli.h b/toonz/sources/image/pli/tiio_pli.hindex f21cf58fa..2a35e6222 100644--- a/toonz/sources/image/pli/tiio_pli.h+++ b/toonz/sources/image/pli/tiio_pli.h@@ -14,7 +14,7 @@ class TImageReaderPli;//===========================================================================/*-class TWriterInfoPli : public TWriterInfo {+class TWriterInfoPli final : public TWriterInfo {public:~TWriterInfoPli() {}@@ -33,7 +33,7 @@ private:/*!TLevelWriterPli:*/-class TLevelWriterPli : public TLevelWriter {+class TLevelWriterPli final : public TLevelWriter {//! object to manage a plistd::unique_ptr<ParsedPli> m_pli;@@ -68,7 +68,7 @@ typedef std::pair<ImageTag *, bool> pliFrameInfo;/*!TLevelReaderPli:*/-class TLevelReaderPli : public TLevelReader {+class TLevelReaderPli final : public TLevelReader {public:TLevelReaderPli(const TFilePath &path);~TLevelReaderPli();@@ -120,7 +120,7 @@ private:/*Classe locale per la lettura di un frame del livello.*/-class TImageReaderPli : public TImageReader {+class TImageReaderPli final : public TImageReader {public:TFrameId m_frameId; //<! Current frame iddiff --git a/toonz/sources/image/png/tiio_png.cpp b/toonz/sources/image/png/tiio_png.cppindex 473651bfc..34193c1b8 100644--- a/toonz/sources/image/png/tiio_png.cpp+++ b/toonz/sources/image/png/tiio_png.cpp@@ -45,7 +45,7 @@ TNZ_LITTLE_ENDIAN undefined !!//=========================================================-class PngReader : public Tiio::Reader {+class PngReader final : public Tiio::Reader {FILE *m_chan;png_structp m_png_ptr;png_infop m_info_ptr, m_end_info_ptr;@@ -707,7 +707,7 @@ Tiio::PngWriterProperties::PngWriterProperties()//=========================================================-class PngWriter : public Tiio::Writer {+class PngWriter final : public Tiio::Writer {png_structp m_png_ptr;png_infop m_info_ptr;FILE *m_chan;diff --git a/toonz/sources/image/png/tiio_png.h b/toonz/sources/image/png/tiio_png.hindex a2eeb322c..1d42d0eaa 100644--- a/toonz/sources/image/png/tiio_png.h+++ b/toonz/sources/image/png/tiio_png.h@@ -13,7 +13,7 @@ namespace Tiio {//===========================================================================-class PngWriterProperties : public TPropertyGroup {+class PngWriterProperties final : public TPropertyGroup {public:// TEnumProperty m_pixelSize;TBoolProperty m_matte;diff --git a/toonz/sources/image/psd/tiio_psd.cpp b/toonz/sources/image/psd/tiio_psd.cppindex 08e2c5178..69bc63f9d 100644--- a/toonz/sources/image/psd/tiio_psd.cpp+++ b/toonz/sources/image/psd/tiio_psd.cpp@@ -102,7 +102,7 @@ TLevelReader *TLevelReaderPsd::create(const TFilePath &f) {// TImageReaderLayerPsd//------------------------------------------------------------class TImageReaderLayerPsd : public TImageReader {+class TImageReaderLayerPsd final : public TImageReader {public:TImageReaderLayerPsd(const TFilePath &, int layerId, TLevelReaderPsd *lr,TImageInfo *info);@@ -150,7 +150,7 @@ TImageReaderP TLevelReaderPsd::getFrameReader(TFrameId fid) {// TImageWriterPsd//-------------------------------------------------------------------------------class TImageWriterPsd : public TImageWriter {+class TImageWriterPsd final : public TImageWriter {int m_layerId;public:diff --git a/toonz/sources/image/psd/tiio_psd.h b/toonz/sources/image/psd/tiio_psd.hindex ff2b65018..4b6fabbb6 100644--- a/toonz/sources/image/psd/tiio_psd.h+++ b/toonz/sources/image/psd/tiio_psd.h@@ -6,7 +6,7 @@#include "../../common/psdlib/psd.h"#include "tlevel_io.h"-class TLevelReaderPsd : public TLevelReader {+class TLevelReaderPsd final : public TLevelReader {public:TLevelReaderPsd(const TFilePath &path);~TLevelReaderPsd();@@ -36,7 +36,7 @@ public:TThread::Mutex m_mutex;};-class TLevelWriterPsd : public TLevelWriter {+class TLevelWriterPsd final : public TLevelWriter {public:TLevelWriterPsd(const TFilePath &path, TPropertyGroup *winfo);~TLevelWriterPsd();diff --git a/toonz/sources/image/sgi/filesgi.cpp b/toonz/sources/image/sgi/filesgi.cppindex 1e31bcc25..b91d7fa0d 100644--- a/toonz/sources/image/sgi/filesgi.cpp+++ b/toonz/sources/image/sgi/filesgi.cpp@@ -842,7 +842,7 @@ static int iflush(IMAGERGB *image) {/*----------------------------------------------------------------------------*/-class SgiReader : public Tiio::Reader {+class SgiReader final : public Tiio::Reader {IMAGERGB *m_header;int m_currentY;@@ -1047,7 +1047,7 @@ int SgiReader::skipLines(int lineCount) {WRITER*/-class SgiWriter : public Tiio::Writer {+class SgiWriter final : public Tiio::Writer {int m_currentY;IMAGERGB *m_header;diff --git a/toonz/sources/image/sgi/tiio_sgi.h b/toonz/sources/image/sgi/tiio_sgi.hindex e7a69a7a9..d922f835a 100644--- a/toonz/sources/image/sgi/tiio_sgi.h+++ b/toonz/sources/image/sgi/tiio_sgi.h@@ -12,7 +12,7 @@ namespace Tiio {Tiio::ReaderMaker makeSgiReader;Tiio::WriterMaker makeSgiWriter;-class SgiWriterProperties : public TPropertyGroup {+class SgiWriterProperties final : public TPropertyGroup {public:TEnumProperty m_pixelSize;TBoolProperty m_compressed;diff --git a/toonz/sources/image/svg/tiio_svg.cpp b/toonz/sources/image/svg/tiio_svg.cppindex d3c533b9b..496051d27 100644--- a/toonz/sources/image/svg/tiio_svg.cpp+++ b/toonz/sources/image/svg/tiio_svg.cpp@@ -1759,7 +1759,7 @@ error://=------------------------------------------------------------------------------------------------------------------------------//=-------------------------------------------------------------------------------------------------------------------------------class TImageWriterSvg : public TImageWriter {+class TImageWriterSvg final : public TImageWriter {public:TImageWriterSvg(const TFilePath &, TPropertyGroup *);~TImageWriterSvg() {}@@ -1775,7 +1775,7 @@ public:};//------------------------------------------------------------------------------class TImageReaderSvg : public TImageReader {+class TImageReaderSvg final : public TImageReader {TLevelP m_level;public:diff --git a/toonz/sources/image/svg/tiio_svg.h b/toonz/sources/image/svg/tiio_svg.hindex cdde8278e..8d5ca2d45 100644--- a/toonz/sources/image/svg/tiio_svg.h+++ b/toonz/sources/image/svg/tiio_svg.h@@ -7,7 +7,7 @@#endif-class TLevelReaderSvg : public TLevelReader {+class TLevelReaderSvg final : public TLevelReader {public:TLevelReaderSvg(const TFilePath &path);~TLevelReaderSvg() {}@@ -34,7 +34,7 @@ private:namespace Tiio {-class SvgWriterProperties : public TPropertyGroup {+class SvgWriterProperties final : public TPropertyGroup {public:TEnumProperty m_strokeMode;TEnumProperty m_outlineQuality;@@ -42,7 +42,7 @@ public:};}-class TLevelWriterSvg : public TLevelWriter {+class TLevelWriterSvg final : public TLevelWriter {//! object to manage a pli// ParsedPli *m_pli;diff --git a/toonz/sources/image/tga/tiio_tga.cpp b/toonz/sources/image/tga/tiio_tga.cppindex 537762232..949e3c7ce 100644--- a/toonz/sources/image/tga/tiio_tga.cpp+++ b/toonz/sources/image/tga/tiio_tga.cpp@@ -104,7 +104,7 @@ void writeTgaHeader(TgaHeader &header, FILE *chan) {//============================================================-class TgaReader : public Tiio::Reader {+class TgaReader final : public Tiio::Reader {FILE *m_chan;TgaHeader m_header;TPixel32 *m_palette;@@ -521,7 +521,7 @@ Tiio::TgaWriterProperties::TgaWriterProperties()//============================================================-class TgaWriter : public Tiio::Writer {+class TgaWriter final : public Tiio::Writer {FILE *m_chan;TgaHeader m_header;diff --git a/toonz/sources/image/tga/tiio_tga.h b/toonz/sources/image/tga/tiio_tga.hindex 188466573..804793527 100644--- a/toonz/sources/image/tga/tiio_tga.h+++ b/toonz/sources/image/tga/tiio_tga.h@@ -13,7 +13,7 @@ namespace Tiio {//===========================================================================-class TgaWriterProperties : public TPropertyGroup {+class TgaWriterProperties final : public TPropertyGroup {public:TEnumProperty m_pixelSize; // 16,24,32TBoolProperty m_compressed;diff --git a/toonz/sources/image/tif/tiio_tif.cpp b/toonz/sources/image/tif/tiio_tif.cppindex 2e3b22343..323f86201 100644--- a/toonz/sources/image/tif/tiio_tif.cpp+++ b/toonz/sources/image/tif/tiio_tif.cpp@@ -34,7 +34,7 @@ extern "C" {// TifReader implementation//**************************************************************************-class TifReader : public Tiio::Reader {+class TifReader final : public Tiio::Reader {TIFF *m_tiff;int m_row;bool m_tiled, m_stripped;@@ -340,7 +340,8 @@ break;*/m_stripBuffer = m_tmpRas->getRawData();} else {m_rowsPerStrip = rps;- // if(m_rowsPerStrip<=0) m_rowsPerStrip = 1; //potrei mettere+ // if(m_rowsPerStrip<=0) m_rowsPerStrip = 1; //potrei+ // mettere// qualsiasi// valore// purchè sia lo stesso in tif_getimage.c linea 2512@@ -722,7 +723,7 @@ Tiio::TifWriterProperties::TifWriterProperties()//============================================================-class TifWriter : public Tiio::Writer {+class TifWriter final : public Tiio::Writer {TIFF *m_tiff;int m_row;// Tiio::TifWriterProperties m_properties;diff --git a/toonz/sources/image/tif/tiio_tif.h b/toonz/sources/image/tif/tiio_tif.hindex 7145506c6..523b13816 100644--- a/toonz/sources/image/tif/tiio_tif.h+++ b/toonz/sources/image/tif/tiio_tif.h@@ -41,7 +41,7 @@ namespace Tiio {//===========================================================================-class TifWriterProperties : public TPropertyGroup {+class TifWriterProperties final : public TPropertyGroup {public:TEnumProperty m_byteOrdering;TEnumProperty m_compressionType;diff --git a/toonz/sources/image/tzl/tiio_tzl.cpp b/toonz/sources/image/tzl/tiio_tzl.cppindex af4c64b4e..9a363467b 100644--- a/toonz/sources/image/tzl/tiio_tzl.cpp+++ b/toonz/sources/image/tzl/tiio_tzl.cpp@@ -321,7 +321,7 @@ void getThumbnail(TRasterP ras, int shrink, TRasterP &thumbnail) {//--------------------------------------------------------------------class TImageReaderTzl : public TImageReader {+class TImageReaderTzl final : public TImageReader {public:TImageReaderTzl(const TFilePath &f, const TFrameId &fid, TLevelReaderTzl *);~TImageReaderTzl() {}@@ -366,7 +366,7 @@ private:////--------------------------------------------------------------------class TImageWriterTzl : public TImageWriter {+class TImageWriterTzl final : public TImageWriter {//! Reference to level writerTLevelWriterTzl *m_lwp;TFrameId m_fid;diff --git a/toonz/sources/image/tzl/tiio_tzl.h b/toonz/sources/image/tzl/tiio_tzl.hindex 10a2d71cb..6243198c7 100644--- a/toonz/sources/image/tzl/tiio_tzl.h+++ b/toonz/sources/image/tzl/tiio_tzl.h@@ -30,7 +30,7 @@ private:typedef std::map<TFrameId, TzlChunk> TzlOffsetMap;class TRasterCodecLZO;-class TLevelWriterTzl : public TLevelWriter {+class TLevelWriterTzl final : public TLevelWriter {// bool m_paletteWritten;bool m_headerWritten;bool m_creatorWritten;@@ -134,7 +134,7 @@ private:/*!TLevelReaderTzl:*/-class TLevelReaderTzl : public TLevelReader {+class TLevelReaderTzl final : public TLevelReader {public:TLevelReaderTzl(const TFilePath &path);~TLevelReaderTzl();diff --git a/toonz/sources/image/tzp/tiio_plt.cpp b/toonz/sources/image/tzp/tiio_plt.cppindex 45c04db41..49e983ed3 100644--- a/toonz/sources/image/tzp/tiio_plt.cpp+++ b/toonz/sources/image/tzp/tiio_plt.cpp@@ -19,7 +19,7 @@ extern "C" {//============================================================-class PltReader : public Tiio::Reader {+class PltReader final : public Tiio::Reader {TIFF *m_tiff;int m_row;bool m_tiled, m_stripped;diff --git a/toonz/sources/image/tzp/tiio_tzp.cpp b/toonz/sources/image/tzp/tiio_tzp.cppindex 61ba762c8..8e638b680 100644--- a/toonz/sources/image/tzp/tiio_tzp.cpp+++ b/toonz/sources/image/tzp/tiio_tzp.cpp@@ -18,7 +18,7 @@//============================================================-class TzpReader : public Tiio::Reader {+class TzpReader final : public Tiio::Reader {TIFF *m_tiff;int m_row;bool m_tiled, m_stripped;diff --git a/toonz/sources/include/ext/CornerDeformation.h b/toonz/sources/include/ext/CornerDeformation.hindex e1cbd3db4..3e7ff5ce9 100644--- a/toonz/sources/include/ext/CornerDeformation.h+++ b/toonz/sources/include/ext/CornerDeformation.h@@ -26,7 +26,7 @@#endifnamespace ToonzExt {-class DVAPI CornerDeformation : public StrokeDeformationImpl {+class DVAPI CornerDeformation final : public StrokeDeformationImpl {CornerDeformation();public:diff --git a/toonz/sources/include/ext/LinearPotential.h b/toonz/sources/include/ext/LinearPotential.hindex c72420575..c289b7bf0 100644--- a/toonz/sources/include/ext/LinearPotential.h+++ b/toonz/sources/include/ext/LinearPotential.h@@ -23,7 +23,7 @@#endifnamespace ToonzExt {-class DVAPI LinearPotential : public Potential {+class DVAPI LinearPotential final : public Potential {public:virtual ~LinearPotential();diff --git a/toonz/sources/include/ext/NotSimmetricBezierPotential.h b/toonz/sources/include/ext/NotSimmetricBezierPotential.hindex 277c4f1f9..397ab8057 100644--- a/toonz/sources/include/ext/NotSimmetricBezierPotential.h+++ b/toonz/sources/include/ext/NotSimmetricBezierPotential.h@@ -23,7 +23,7 @@#endifnamespace ToonzExt {-class DVAPI NotSimmetricBezierPotential : public Potential {+class DVAPI NotSimmetricBezierPotential final : public Potential {public:virtual ~NotSimmetricBezierPotential();diff --git a/toonz/sources/include/ext/NotSimmetricExpPotential.h b/toonz/sources/include/ext/NotSimmetricExpPotential.hindex 75b9532a2..6ca337d08 100644--- a/toonz/sources/include/ext/NotSimmetricExpPotential.h+++ b/toonz/sources/include/ext/NotSimmetricExpPotential.h@@ -46,7 +46,7 @@#endifnamespace ToonzExt {-class DVAPI NotSimmetricExpPotential : public Potential {+class DVAPI NotSimmetricExpPotential final : public Potential {public:virtual ~NotSimmetricExpPotential();diff --git a/toonz/sources/include/ext/OverallDesigner.h b/toonz/sources/include/ext/OverallDesigner.hindex 2e71db45c..7bc3d347d 100644--- a/toonz/sources/include/ext/OverallDesigner.h+++ b/toonz/sources/include/ext/OverallDesigner.h@@ -23,7 +23,7 @@#endifnamespace ToonzExt {-class DVAPI OverallDesigner : public Designer {+class DVAPI OverallDesigner final : public Designer {int x_, y_;double scale_, pixelSize_;diff --git a/toonz/sources/include/ext/SmoothDeformation.h b/toonz/sources/include/ext/SmoothDeformation.hindex 98d180c16..aff27a595 100644--- a/toonz/sources/include/ext/SmoothDeformation.h+++ b/toonz/sources/include/ext/SmoothDeformation.h@@ -25,7 +25,7 @@#include "StrokeDeformationImpl.h"namespace ToonzExt {-class DVAPI SmoothDeformation : public StrokeDeformationImpl {+class DVAPI SmoothDeformation final : public StrokeDeformationImpl {SmoothDeformation();public:diff --git a/toonz/sources/include/ext/SquarePotential.h b/toonz/sources/include/ext/SquarePotential.hindex 9a7a18b68..07b50671d 100644--- a/toonz/sources/include/ext/SquarePotential.h+++ b/toonz/sources/include/ext/SquarePotential.h@@ -23,7 +23,7 @@#endifnamespace ToonzExt {-class DVAPI SquarePotential : public Potential {+class DVAPI SquarePotential final : public Potential {public:virtual ~SquarePotential();diff --git a/toonz/sources/include/ext/StraightCornerDeformation.h b/toonz/sources/include/ext/StraightCornerDeformation.hindex 39b898b28..b50dfd220 100644--- a/toonz/sources/include/ext/StraightCornerDeformation.h+++ b/toonz/sources/include/ext/StraightCornerDeformation.h@@ -26,7 +26,7 @@#include "StrokeDeformationImpl.h"namespace ToonzExt {-class DVAPI StraightCornerDeformation : public StrokeDeformationImpl {+class DVAPI StraightCornerDeformation final : public StrokeDeformationImpl {StraightCornerDeformation();public:diff --git a/toonz/sources/include/ext/StrokeParametricDeformer.h b/toonz/sources/include/ext/StrokeParametricDeformer.hindex 5b81e39c1..e2a253b01 100644--- a/toonz/sources/include/ext/StrokeParametricDeformer.h+++ b/toonz/sources/include/ext/StrokeParametricDeformer.h@@ -35,7 +35,7 @@ class Potential;** New stroke deformer doesn't change last point of stroke.*/-class DVAPI StrokeParametricDeformer : public TStrokeDeformation {+class DVAPI StrokeParametricDeformer final : public TStrokeDeformation {public:StrokeParametricDeformer(double actionLenght, double startParameter,TStroke *s, Potential *);diff --git a/toonz/sources/include/ext/plasticskeleton.h b/toonz/sources/include/ext/plasticskeleton.hindex 56a56ef1b..911f23cde 100644--- a/toonz/sources/include/ext/plasticskeleton.h+++ b/toonz/sources/include/ext/plasticskeleton.h@@ -56,8 +56,8 @@ class PlasticSkeletonDeformation;//************************************************************************************//! PlasticSkeletonVertex is the vertex of a plastic skeleton object.-struct DVAPI PlasticSkeletonVertex : public tcg::Vertex<TPointD>,- public TPersist {+struct DVAPI PlasticSkeletonVertex final : public tcg::Vertex<TPointD>,+ public TPersist {PERSIST_DECLARATION(PlasticSkeletonVertex)private:@@ -100,7 +100,7 @@ public:// PlasticSkeleton declaration//************************************************************************************-class DVAPI PlasticSkeleton+class DVAPI PlasticSkeleton final: public TSmartObject,public tcg::Mesh<PlasticSkeletonVertex, tcg::Edge, tcg::FaceN<3>>,public TPersist {diff --git a/toonz/sources/include/ext/plasticskeletondeformation.h b/toonz/sources/include/ext/plasticskeletondeformation.hindex 53dcd9a0a..fbb62ff80 100644--- a/toonz/sources/include/ext/plasticskeletondeformation.h+++ b/toonz/sources/include/ext/plasticskeletondeformation.h@@ -44,7 +44,7 @@ class ParamChange;//**************************************************************************************//! The deformation of a plastic skeleton vertex.-typedef struct DVAPI PlasticSkeletonVertexDeformation : public TPersist {+typedef struct DVAPI PlasticSkeletonVertexDeformation final : public TPersist {PERSIST_DECLARATION(PlasticSkeletonVertexDeformation)public:@@ -154,7 +154,8 @@ of theskeletons it is attached to. It is therefore intended to be a \a container ofsaid skeletons.*/-class DVAPI PlasticSkeletonDeformation : public TSmartObject, public TPersist {+class DVAPI PlasticSkeletonDeformation final : public TSmartObject,+ public TPersist {DECLARE_CLASS_CODEPERSIST_DECLARATION(PlasticSkeletonDeformation)diff --git a/toonz/sources/include/qtofflinegl.h b/toonz/sources/include/qtofflinegl.hindex 94e14b56a..a52ad61f6 100644--- a/toonz/sources/include/qtofflinegl.h+++ b/toonz/sources/include/qtofflinegl.h@@ -13,7 +13,7 @@#include "tofflinegl.h"-class QtOfflineGL : public TOfflineGL::Imp {+class QtOfflineGL final : public TOfflineGL::Imp {public:std::shared_ptr<QOpenGLContext> m_context;std::shared_ptr<QOpenGLContext> m_oldContext;@@ -36,7 +36,7 @@ public://------------------------------------------------------------------------------class QtOfflineGLPBuffer : public TOfflineGL::Imp {+class QtOfflineGLPBuffer final : public TOfflineGL::Imp {public:std::shared_ptr<QGLPixelBuffer> m_context;diff --git a/toonz/sources/include/stdfx/shaderinterface.h b/toonz/sources/include/stdfx/shaderinterface.hindex 4fe7b1eed..f52214b17 100644--- a/toonz/sources/include/stdfx/shaderinterface.h+++ b/toonz/sources/include/stdfx/shaderinterface.h@@ -68,7 +68,7 @@ class QGLShaderProgram;A loaded ShaderInterface allows access to shader parameters andacts as a factory object to compiled QGLShaderProgram instances.*/-class DVAPI ShaderInterface : public TPersist {+class DVAPI ShaderInterface final : public TPersist {public: // Enumsenum ParameterConceptType {CONCEPT_NONE,@@ -110,7 +110,7 @@ public: // Enumsenum HandledWorldTransformsType { HWT_UNKNOWN, ANY, ISOTROPIC, HWTCOUNT };public: // Sub-classes- class ParameterConcept : public TPersist {+ class ParameterConcept final : public TPersist {PERSIST_DECLARATION(ParameterConcept)public:@@ -147,7 +147,7 @@ public: // Sub-classesGLubyte m_rgb[3];};- class Parameter : public TPersist {+ class Parameter final : public TPersist {PERSIST_DECLARATION(Parameter)public:@@ -169,7 +169,7 @@ public: // Sub-classesvoid loadData(TIStream &is) override;};- class ShaderData : public TPersist {+ class ShaderData final : public TPersist {PERSIST_DECLARATION(ShaderData)public:diff --git a/toonz/sources/include/t32bitsrv_wrap.h b/toonz/sources/include/t32bitsrv_wrap.hindex 06dc74b95..3b88efcd8 100644--- a/toonz/sources/include/t32bitsrv_wrap.h+++ b/toonz/sources/include/t32bitsrv_wrap.h@@ -58,8 +58,8 @@ static QString srvCmdline() {// Buffer data exchanger//*************************************************************************************-class DVAPI BufferExchanger : public tipc::ShMemReader,- public tipc::ShMemWriter {+class DVAPI BufferExchanger final : public tipc::ShMemReader,+ public tipc::ShMemWriter {UCHAR *m_buf;UCHAR *m_data;@@ -78,8 +78,8 @@ public://*************************************************************************************template <typename PIXEL>-class DVAPI RasterExchanger : public tipc::ShMemReader,- public tipc::ShMemWriter {+class DVAPI RasterExchanger final : public tipc::ShMemReader,+ public tipc::ShMemWriter {typedef PIXEL pix_type;TRasterPT<PIXEL> m_ras;diff --git a/toonz/sources/include/tcachedlevel.h b/toonz/sources/include/tcachedlevel.hindex f1f093205..0c61d3854 100644--- a/toonz/sources/include/tcachedlevel.h+++ b/toonz/sources/include/tcachedlevel.h@@ -61,14 +61,14 @@ protected:};-class TRamCache : public TCache {+class TRamCache final : public TCache {public:TRamCache();};-class TDiskCache : public TCache {+class TDiskCache final : public TCache {public:TDiskCache();};@@ -83,18 +83,18 @@ void TDiskCache::getRaster(-class TRAMUncompressedCache : public TRamCache {+class TRAMUncompressedCache final : public TRamCache {};-class TRAMLzoCache : public TRamCache {+class TRAMLzoCache final : public TRamCache {};-class TDiskUncompressedCache : public TDiskCache {+class TDiskUncompressedCache final : public TDiskCache {};-class TDiskYUV422Cache : public TDiskCache {+class TDiskYUV422Cache final : public TDiskCache {public:TDiskYUV422Cache();~TDiskYUV422Cache();@@ -186,7 +186,7 @@ public:TRasterCodec *m_codec;};-class DVAPI TRamCachePersist : public TCachePersist {+class DVAPI TRamCachePersist final : public TCachePersist {public:TRamCachePersist(TRasterCodec *codec);~TRamCachePersist();@@ -213,7 +213,7 @@ private://-------------------------------------------------------------------------------class DVAPI TDiskCachePersist : public TCachePersist {+class DVAPI TDiskCachePersist final : public TCachePersist {public:TDiskCachePersist(TRasterCodec *codec, const TFilePath &fullpath);~TDiskCachePersist();@@ -241,7 +241,7 @@ private://------------------------------------------------------------------------------// TDiskCachePersist2 usa il Direct File I/O (acceso al disco non bufferizzato)-class DVAPI TDiskCachePersist2 : public TCachePersist {+class DVAPI TDiskCachePersist2 final : public TCachePersist {public:TDiskCachePersist2(TRasterCodec *codec, const TFilePath &fullpath);~TDiskCachePersist2();diff --git a/toonz/sources/include/tcacheresourcepool.h b/toonz/sources/include/tcacheresourcepool.hindex f91d7786b..0430cd2a9 100644--- a/toonz/sources/include/tcacheresourcepool.h+++ b/toonz/sources/include/tcacheresourcepool.h@@ -30,7 +30,7 @@ class TFilePath;//============================================================================-class DVAPI TCacheResourcePool : public QObject {+class DVAPI TCacheResourcePool final : public QObject {Q_OBJECTTHDCacheResourcePool *m_hdPool;diff --git a/toonz/sources/include/tcli.h b/toonz/sources/include/tcli.hindex 3a429f89d..02f17963c 100644--- a/toonz/sources/include/tcli.h+++ b/toonz/sources/include/tcli.h@@ -128,7 +128,7 @@ public://----------------------------------------------------------class DVAPI Switcher : public SimpleQualifier {+class DVAPI Switcher final : public SimpleQualifier {public:Switcher(std::string name, std::string help) : SimpleQualifier(name, help) {m_switcher = true;@@ -139,7 +139,7 @@ public://---------------------------------------------------------template <class T>-class QualifierT : public Qualifier {+class QualifierT final : public Qualifier {T m_value;public:@@ -183,7 +183,7 @@ public://---------------------------------------------------------template <class T>-class ArgumentT : public Argument {+class ArgumentT final : public Argument {T m_value;public:@@ -222,7 +222,7 @@ public://---------------------------------------------------------template <class T>-class MultiArgumentT : public MultiArgument {+class MultiArgumentT final : public MultiArgument {std::unique_ptr<T[]> m_values;public:@@ -293,7 +293,7 @@ DVAPI UsageLine operator+(UsageElement &a, UsageElement &b);//----------------------------------------------------------class DVAPI Optional : public UsageLine {+class DVAPI Optional final : public UsageLine {public:Optional(const UsageLine &ul);~Optional(){};@@ -346,7 +346,7 @@ typedef MultiArgumentT<TFilePath> FilePathMultiArgument;//=========================================================-class DVAPI RangeQualifier : public Qualifier {+class DVAPI RangeQualifier final : public Qualifier {int m_from, m_to;public:diff --git a/toonz/sources/include/tcodec.h b/toonz/sources/include/tcodec.hindex 4e43a906e..3548637ad 100644--- a/toonz/sources/include/tcodec.h+++ b/toonz/sources/include/tcodec.h@@ -40,7 +40,7 @@ private://-------------------------------------------------------------------------------class DVAPI TRasterCodecDummy : public TRasterCodec {+class DVAPI TRasterCodecDummy final : public TRasterCodec {public:TRasterCodecDummy(const std::string &name) : TRasterCodec(name) {}~TRasterCodecDummy() {}@@ -60,7 +60,7 @@ public://-------------------------------------------------------------------------------class DVAPI TRasterCodecQTL : public TRasterCodec {+class DVAPI TRasterCodecQTL final : public TRasterCodec {public:TRasterCodecQTL(const std::string &name) : TRasterCodec(name) {}~TRasterCodecQTL() {}@@ -80,7 +80,7 @@ public://-------------------------------------------------------------------------------/*class DVAPI TRasterCodecSnappy : public TRasterCodec+/*class DVAPI TRasterCodecSnappy final : public TRasterCodec{public:@@ -133,7 +133,7 @@ private://-------------------------------------------------------------------------------class DVAPI TRasterCodecLZO : public TRasterCodec {+class DVAPI TRasterCodecLZO final : public TRasterCodec {public:TRasterCodecLZO(const std::string &name, bool useCache);~TRasterCodecLZO();diff --git a/toonz/sources/include/tcolorfunctions.h b/toonz/sources/include/tcolorfunctions.hindex 7530e2d7d..4b68c5c6f 100644--- a/toonz/sources/include/tcolorfunctions.h+++ b/toonz/sources/include/tcolorfunctions.h@@ -45,7 +45,7 @@ public://------------------------------------------------------------------------------class DVAPI TGenericColorFunction : public TColorFunction {+class DVAPI TGenericColorFunction final : public TColorFunction {double m_m[4], m_c[4];public:@@ -61,7 +61,7 @@ public://------------------------------------------------------------------------------class DVAPI TColorFader : public TColorFunction {+class DVAPI TColorFader final : public TColorFunction {TPixel32 m_color;double m_fade;@@ -80,7 +80,7 @@ public://------------------------------------------------------------------------------class DVAPI TOnionFader : public TColorFunction {+class DVAPI TOnionFader final : public TColorFunction {TPixel32 m_color;double m_fade;@@ -97,7 +97,7 @@ public:bool getParameters(Parameters &p) const override;};-class DVAPI TTranspFader : public TColorFunction {+class DVAPI TTranspFader final : public TColorFunction {double m_transp;public:diff --git a/toonz/sources/include/tcurves.h b/toonz/sources/include/tcurves.hindex 810b19afc..61a18692e 100644--- a/toonz/sources/include/tcurves.h+++ b/toonz/sources/include/tcurves.h@@ -326,7 +326,7 @@ inline std::ostream &operator<<(std::ostream &out, const TCubic *curve) {TSegment Class to manage a segment with thickness\!relates TSegment*/-class DVAPI TThickSegment : public TSegment {+class DVAPI TThickSegment final : public TSegment {protected:double m_thickP0;double m_thickP1;@@ -413,7 +413,7 @@ inline std::ostream &operator<<(std::ostream &out,Class TThickQuadratic: manage a curve with thick\!relates TQuadratic*/-class DVAPI TThickQuadratic : public TQuadratic {+class DVAPI TThickQuadratic final : public TQuadratic {protected:double m_thickP0;double m_thickP1;@@ -501,7 +501,7 @@ inline std::ostream &operator<<(std::ostream &out, const TThickQuadratic *tq) {Class TThickCubic: manage a cubic with thick\!relates TCubic*/-class DVAPI TThickCubic : public TCubic {+class DVAPI TThickCubic final : public TCubic {protected:double m_thickP0;double m_thickP1;diff --git a/toonz/sources/include/tdata.h b/toonz/sources/include/tdata.hindex a4315d99d..8ffb4f597 100644--- a/toonz/sources/include/tdata.h+++ b/toonz/sources/include/tdata.h@@ -38,7 +38,7 @@ public://--------------------------------------------------------------------class DVAPI TTextData : public TData {+class DVAPI TTextData final : public TData {TString m_text;public:@@ -57,7 +57,7 @@ public:#pragma warning(disable : 4251)#endif-class DVAPI TFilePathListData : public TData {+class DVAPI TFilePathListData final : public TData {std::vector<TFilePath> m_filePaths;public:diff --git a/toonz/sources/include/tdoubleparam.h b/toonz/sources/include/tdoubleparam.hindex fb75f0b9f..5fe50e523 100644--- a/toonz/sources/include/tdoubleparam.h+++ b/toonz/sources/include/tdoubleparam.h@@ -51,7 +51,7 @@ template class DVAPI TPersistDeclarationT<TDoubleParam>;// TDoubleParam declaration//**************************************************************************-class DVAPI TDoubleParam : public TParam {+class DVAPI TDoubleParam final : public TParam {PERSIST_DECLARATION(TDoubleParam)class Imp;diff --git a/toonz/sources/include/tdoubleparamrelayproperty.h b/toonz/sources/include/tdoubleparamrelayproperty.hindex 100e75bd0..24f4f077d 100644--- a/toonz/sources/include/tdoubleparamrelayproperty.h+++ b/toonz/sources/include/tdoubleparamrelayproperty.h@@ -25,8 +25,8 @@//! The TDoubleParamRelayProperty is a TProperty heir which can be used as//! intermediary between a TDoubleParam instance and its GUI viewers.-class DVAPI TDoubleParamRelayProperty : public TProperty,- public TParamObserver {+class DVAPI TDoubleParamRelayProperty final : public TProperty,+ public TParamObserver {TDoubleParamP m_param; //!< The referenced paramdouble m_frame; //!< Frame at which m_param returns valuesdiff --git a/toonz/sources/include/tenv.h b/toonz/sources/include/tenv.hindex 703861ad9..b0ab78e42 100644--- a/toonz/sources/include/tenv.h+++ b/toonz/sources/include/tenv.h@@ -40,7 +40,7 @@ public:void assignValue(std::string str);};-class DVAPI IntVar : public Variable {+class DVAPI IntVar final : public Variable {public:IntVar(std::string name, int defValue);IntVar(std::string name);@@ -48,7 +48,7 @@ public:void operator=(int v);};-class DVAPI DoubleVar : public Variable {+class DVAPI DoubleVar final : public Variable {public:DoubleVar(std::string name, double defValue);DoubleVar(std::string name);@@ -56,7 +56,7 @@ public:void operator=(double v);};-class DVAPI StringVar : public Variable {+class DVAPI StringVar final : public Variable {public:StringVar(std::string name, const std::string &defValue);StringVar(std::string name);@@ -64,7 +64,7 @@ public:void operator=(const std::string &v);};-class DVAPI FilePathVar : public Variable {+class DVAPI FilePathVar final : public Variable {public:FilePathVar(std::string name, const TFilePath &defValue);FilePathVar(std::string name);@@ -72,7 +72,7 @@ public:void operator=(const TFilePath &v);};-class DVAPI RectVar : public Variable {+class DVAPI RectVar final : public Variable {public:RectVar(std::string name, const TRect &defValue);RectVar(std::string name);diff --git a/toonz/sources/include/texternfx.h b/toonz/sources/include/texternfx.hindex d202f6573..31fc6a826 100644--- a/toonz/sources/include/texternfx.h+++ b/toonz/sources/include/texternfx.h@@ -28,7 +28,7 @@ public://----------------------------------------------------------class DVAPI TExternalProgramFx : public TExternFx {+class DVAPI TExternalProgramFx final : public TExternFx {FX_DECLARATION(TExternalProgramFx)class Port {diff --git a/toonz/sources/include/tfarmtask.h b/toonz/sources/include/tfarmtask.hindex 9e0412eb4..ae7b709cf 100644--- a/toonz/sources/include/tfarmtask.h+++ b/toonz/sources/include/tfarmtask.h@@ -144,7 +144,7 @@ public://-------------------------------------------------------------------------------class TFARMAPI TFarmTaskGroup : public TFarmTask {+class TFARMAPI TFarmTaskGroup final : public TFarmTask {public:TFarmTaskGroup();diff --git a/toonz/sources/include/tfilepath.h b/toonz/sources/include/tfilepath.hindex 14326ec83..ee04a451a 100644--- a/toonz/sources/include/tfilepath.h+++ b/toonz/sources/include/tfilepath.h@@ -245,7 +245,7 @@ type is a string that indicate the filename extension(ex:. bmp or .bmp)*///------------------------------------------------------------------------------class TMalformedFrameException : public TException {+class TMalformedFrameException final : public TException {public:TMalformedFrameException(const TFilePath &fp,const std::wstring &msg = std::wstring())diff --git a/toonz/sources/include/tfilepath_io.h b/toonz/sources/include/tfilepath_io.hindex 7d8078c21..7c9048194 100644--- a/toonz/sources/include/tfilepath_io.h+++ b/toonz/sources/include/tfilepath_io.h@@ -59,7 +59,7 @@DVAPI FILE *fopen(const TFilePath &fp, std::string mode);-class DVAPI Tifstream : public std::ifstream {+class DVAPI Tifstream final : public std::ifstream {FILE *m_file;public:diff --git a/toonz/sources/include/tflash.h b/toonz/sources/include/tflash.hindex 608a2968b..15ef86694 100644--- a/toonz/sources/include/tflash.h+++ b/toonz/sources/include/tflash.h@@ -34,7 +34,7 @@ class TColorFunction;namespace Tiio {-class SwfWriterProperties : public TPropertyGroup {+class SwfWriterProperties final : public TPropertyGroup {public:TEnumProperty m_lineQuality;TBoolProperty m_isCompressed;diff --git a/toonz/sources/include/tfont.h b/toonz/sources/include/tfont.hindex 2fd180f9d..8853424ec 100644--- a/toonz/sources/include/tfont.h+++ b/toonz/sources/include/tfont.h@@ -93,14 +93,14 @@ private://------------------------------------------------------------------------------class TFontCreationError : public TException {+class TFontCreationError final : public TException {public:TFontCreationError() : TException("E_CanNotUseSelectedFont") {}};//------------------------------------------------------------------------------class TFontLibraryLoadingError : public TException {+class TFontLibraryLoadingError final : public TException {public:TFontLibraryLoadingError() : TException("E_CanNotLoadFonts") {}};diff --git a/toonz/sources/include/tfunctorinvoker.h b/toonz/sources/include/tfunctorinvoker.hindex 4cefdb739..e70c8cc33 100644--- a/toonz/sources/include/tfunctorinvoker.h+++ b/toonz/sources/include/tfunctorinvoker.h@@ -47,7 +47,7 @@ instance on the heap,The following code exemplifies a correct usage for this class:\n\code- class MyFunctor : public TFunctorInvoker::BaseFunctor+ class MyFunctor final : public TFunctorInvoker::BaseFunctor{MyParams m_params; // Functionparameters@@ -74,7 +74,7 @@ Qt::QueuedConnection,\endcode*/-class DVAPI TFunctorInvoker : public QObject {+class DVAPI TFunctorInvoker final : public QObject {Q_OBJECTpublic:diff --git a/toonz/sources/include/tfx.h b/toonz/sources/include/tfx.hindex 7ac2511a9..fe2b81b22 100644--- a/toonz/sources/include/tfx.h+++ b/toonz/sources/include/tfx.h@@ -250,7 +250,7 @@ private://-------------------------------------------------------------------------------class TFxParamChange : public TFxChange {+class TFxParamChange final : public TFxChange {public:TFxParamChange(TFx *fx, double firstAffectedFrame, double lastAffectedFrame,bool dragging);@@ -259,7 +259,7 @@ public://-------------------------------------------------------------------------------class TFxPortAdded : public TFxChange {+class TFxPortAdded final : public TFxChange {public:TFxPortAdded(TFx *fx) : TFxChange(fx, m_minFrame, m_maxFrame, false) {}~TFxPortAdded() {}@@ -267,7 +267,7 @@ public://-------------------------------------------------------------------------------class TFxPortRemoved : public TFxChange {+class TFxPortRemoved final : public TFxChange {public:TFxPortRemoved(TFx *fx) : TFxChange(fx, m_minFrame, m_maxFrame, false) {}~TFxPortRemoved() {}@@ -275,7 +275,7 @@ public://-------------------------------------------------------------------------------class TFxParamAdded : public TFxChange {+class TFxParamAdded final : public TFxChange {public:TFxParamAdded(TFx *fx) : TFxChange(fx, m_minFrame, m_maxFrame, false) {}~TFxParamAdded() {}@@ -283,7 +283,7 @@ public://-------------------------------------------------------------------------------class TFxParamRemoved : public TFxChange {+class TFxParamRemoved final : public TFxChange {public:TFxParamRemoved(TFx *fx) : TFxChange(fx, m_minFrame, m_maxFrame, false) {}~TFxParamRemoved() {}@@ -291,7 +291,7 @@ public://-------------------------------------------------------------------------------class TFxParamsUnlinked : public TFxChange {+class TFxParamsUnlinked final : public TFxChange {public:TFxParamsUnlinked(TFx *fx) : TFxChange(fx, m_minFrame, m_maxFrame, false) {}~TFxParamsUnlinked() {}@@ -526,7 +526,7 @@ public:};template <class T>-class TFxDeclarationT : public TFxDeclaration {+class TFxDeclarationT final : public TFxDeclaration {public:TFxDeclarationT(const TFxInfo &info) : TFxDeclaration(info) {}TPersist *create() const override { return new T; }diff --git a/toonz/sources/include/tfxcachemanager.h b/toonz/sources/include/tfxcachemanager.hindex f5f40fdf6..280be3e4b 100644--- a/toonz/sources/include/tfxcachemanager.h+++ b/toonz/sources/include/tfxcachemanager.h@@ -200,7 +200,7 @@ predictive purposes.classes*/-class DVAPI TFxCacheManager : public TRenderResourceManager {+class DVAPI TFxCacheManager final : public TRenderResourceManager {T_RENDER_RESOURCE_MANAGERprivate:diff --git a/toonz/sources/include/tgeometry.h b/toonz/sources/include/tgeometry.hindex 1166b3268..f5653a77e 100644--- a/toonz/sources/include/tgeometry.h+++ b/toonz/sources/include/tgeometry.h@@ -363,7 +363,7 @@ inline T3DPointT<T> cross(const T3DPointT<T> &a, const T3DPointT<T> &b) {TThickPoint describe a thick point.\relates TThickQuadratic, TThickCubic*/-class DVAPI TThickPoint : public TPointD {+class DVAPI TThickPoint final : public TPointD {public:double thick;@@ -1071,7 +1071,7 @@ const TAffine AffI = TAffine();//------------------------------------------------------------------------------class DVAPI TTranslation : public TAffine {+class DVAPI TTranslation final : public TAffine {public:TTranslation(){};TTranslation(double x, double y) : TAffine(1, 0, x, 0, 1, y){};@@ -1080,7 +1080,7 @@ public://------------------------------------------------------------------------------class DVAPI TRotation : public TAffine {+class DVAPI TRotation final : public TAffine {public:TRotation(){};@@ -1130,7 +1130,7 @@ a21 = a.a21; a22 = a.a22; a23 = a.a23;//------------------------------------------------------------------------------class DVAPI TScale : public TAffine {+class DVAPI TScale final : public TAffine {public:TScale(){};TScale(double sx, double sy) : TAffine(sx, 0, 0, 0, sy, 0){};@@ -1157,7 +1157,7 @@ a21 = a.a21; a22 = a.a22; a23 = a.a23;//------------------------------------------------------------------------------class DVAPI TShear : public TAffine {+class DVAPI TShear final : public TAffine {public:TShear(){};TShear(double sx, double sy) : TAffine(1, sx, 0, sy, 1, 0){};diff --git a/toonz/sources/include/tgldisplaylistsmanager.h b/toonz/sources/include/tgldisplaylistsmanager.hindex 0054b1d60..021ab0d03 100644--- a/toonz/sources/include/tgldisplaylistsmanager.h+++ b/toonz/sources/include/tgldisplaylistsmanager.h@@ -57,7 +57,7 @@ public://**************************************************************************************************template <typename Context>-class TGLDisplayListsProxyT : public TGLDisplayListsProxy {+class TGLDisplayListsProxyT final : public TGLDisplayListsProxy {Context *m_proxy;public:@@ -113,7 +113,7 @@ handled bydisplay lists id.*/-class DVAPI TGLDisplayListsManager : public tcg::notifier<> {+class DVAPI TGLDisplayListsManager final : public tcg::notifier<> {public:struct Observer : public tcg::observer<TGLDisplayListsManager> {virtual void onDisplayListDestroyed(int dlSpaceId) = 0;diff --git a/toonz/sources/include/tgrammar.h b/toonz/sources/include/tgrammar.hindex 172a4c781..48191900c 100644--- a/toonz/sources/include/tgrammar.h+++ b/toonz/sources/include/tgrammar.h@@ -107,7 +107,7 @@ private://--------------------------------------------------------------------class DVAPI NumberNode : public CalculatorNode {+class DVAPI NumberNode final : public CalculatorNode {double m_value;public:@@ -121,7 +121,7 @@ public://--------------------------------------------------------------------class DVAPI VariableNode : public CalculatorNode {+class DVAPI VariableNode final : public CalculatorNode {int m_varIdx;public:diff --git a/toonz/sources/include/tiio_bmp.h b/toonz/sources/include/tiio_bmp.hindex 4997f04ec..5afa9605d 100644--- a/toonz/sources/include/tiio_bmp.h+++ b/toonz/sources/include/tiio_bmp.h@@ -20,7 +20,7 @@ DVAPI Tiio::WriterMaker makeBmpWriter;// DVAPI TPropertyGroup *makeBmpWriterProperties();-class BmpWriterProperties : public TPropertyGroup {+class BmpWriterProperties final : public TPropertyGroup {public:TEnumProperty m_pixelSize;// TBoolProperty m_compressed;diff --git a/toonz/sources/include/tiio_jpg.h b/toonz/sources/include/tiio_jpg.hindex dbb46d940..bd812fab7 100644--- a/toonz/sources/include/tiio_jpg.h+++ b/toonz/sources/include/tiio_jpg.h@@ -26,7 +26,7 @@ extern "C" {namespace Tiio {-class DVAPI JpgReader : public Tiio::Reader {+class DVAPI JpgReader final : public Tiio::Reader {struct jpeg_decompress_struct m_cinfo;struct jpeg_error_mgr m_jerr;FILE *m_chan;@@ -48,7 +48,7 @@ public:DVAPI Tiio::ReaderMaker makeJpgReader;DVAPI Tiio::WriterMaker makeJpgWriter;-class DVAPI JpgWriterProperties : public TPropertyGroup {+class DVAPI JpgWriterProperties final : public TPropertyGroup {public:TIntProperty m_quality;TIntProperty m_smoothing;diff --git a/toonz/sources/include/timage_io.h b/toonz/sources/include/timage_io.hindex ebf01e128..d6b99d050 100644--- a/toonz/sources/include/timage_io.h+++ b/toonz/sources/include/timage_io.h@@ -34,7 +34,7 @@ class TImageInfo;//===========================================================-class DVAPI TImageException : public TException {+class DVAPI TImageException final : public TException {TFilePath m_fp;public:@@ -48,7 +48,7 @@ public://===========================================================-class DVAPI TImageVersionException : public TException {+class DVAPI TImageVersionException final : public TException {TFilePath m_fp;int m_major, m_minor;@@ -182,7 +182,7 @@ Region dimension doesn't consider shrinktemplate class DVAPI TSmartPointerT<TImageReader>;#endif-class DVAPI TImageReaderP : public TSmartPointerT<TImageReader> {+class DVAPI TImageReaderP final : public TSmartPointerT<TImageReader> {public:TImageReaderP(TImageReader *ir) : TSmartPointerT<TImageReader>(ir){};// il costruttore "non banale"@@ -245,7 +245,7 @@ public:template class DVAPI TSmartPointerT<TImageWriter>;#endif-class DVAPI TImageWriterP : public TSmartPointerT<TImageWriter> {+class DVAPI TImageWriterP final : public TSmartPointerT<TImageWriter> {public:TImageWriterP(TImageWriter *iw) : TSmartPointerT<TImageWriter>(iw){};// il costruttore "non banale"diff --git a/toonz/sources/include/timagecache.h b/toonz/sources/include/timagecache.hindex 01a92c693..5e22fb7a8 100644--- a/toonz/sources/include/timagecache.h+++ b/toonz/sources/include/timagecache.h@@ -170,7 +170,7 @@ private://! The TCachedImage class implements a shared reference to an image that is//! stored under TImageCache.-class DVAPI TCachedImage : public TSmartObject {+class DVAPI TCachedImage final : public TSmartObject {DECLARE_CLASS_CODEstd::string m_ref;diff --git a/toonz/sources/include/tipc.h b/toonz/sources/include/tipc.hindex b2deb311e..885f8b52d 100644--- a/toonz/sources/include/tipc.h+++ b/toonz/sources/include/tipc.h@@ -122,7 +122,7 @@ public:A tipc::Stream is a specialized QDataStream designed to work with a tipc-basedQLocalSocket instance.*/-class DVAPI Stream : public QDataStream {+class DVAPI Stream final : public QDataStream {QLocalSocket *m_socket;public:diff --git a/toonz/sources/include/tipcmsg.h b/toonz/sources/include/tipcmsg.hindex 0088e78d6..fff0f3295 100644--- a/toonz/sources/include/tipcmsg.h+++ b/toonz/sources/include/tipcmsg.h@@ -55,7 +55,7 @@ enum DefMsgEnum {};template <DefMsgEnum msgType>-class DVAPI DefaultMessageParser : public MessageParser {+class DVAPI DefaultMessageParser final : public MessageParser {public:QString header() const override;void operator()(Message &msg) override;diff --git a/toonz/sources/include/tipcsrv.h b/toonz/sources/include/tipcsrv.hindex 6fb604e24..ce52ad00f 100644--- a/toonz/sources/include/tipcsrv.h+++ b/toonz/sources/include/tipcsrv.h@@ -44,7 +44,7 @@ class MessageParser;associations to perform message parsing.*/-class DVAPI Server : public QLocalServer {+class DVAPI Server final : public QLocalServer {Q_OBJECTQHash<QString, MessageParser *> m_parsers;diff --git a/toonz/sources/include/tipcsrvP.h b/toonz/sources/include/tipcsrvP.hindex 514736e43..0216ce7e1 100644--- a/toonz/sources/include/tipcsrvP.h+++ b/toonz/sources/include/tipcsrvP.h@@ -16,7 +16,7 @@ class Server;//-------------------------------------------------------------------class SocketController : public QObject {+class SocketController final : public QObject {Q_OBJECTpublic:diff --git a/toonz/sources/include/tlevel.h b/toonz/sources/include/tlevel.hindex ecf9850c9..08924c375 100644--- a/toonz/sources/include/tlevel.h+++ b/toonz/sources/include/tlevel.h@@ -18,7 +18,7 @@//--------------------------------------------------------------------class DVAPI TLevel : public TSmartObject {+class DVAPI TLevel final : public TSmartObject {DECLARE_CLASS_CODEpublic:@@ -74,7 +74,7 @@ public:template class DVAPI TSmartPointerT<TLevel>;#endif-class DVAPI TLevelP : public TSmartPointerT<TLevel> {+class DVAPI TLevelP final : public TSmartPointerT<TLevel> {public:TLevelP() : TSmartPointerT<TLevel>(new TLevel) {}TLevelP(TLevel *level) : TSmartPointerT<TLevel>(level) {}diff --git a/toonz/sources/include/tlevel_io.h b/toonz/sources/include/tlevel_io.hindex a12d59033..4713788b8 100644--- a/toonz/sources/include/tlevel_io.h+++ b/toonz/sources/include/tlevel_io.h@@ -106,7 +106,7 @@ private:template class DVAPI TSmartPointerT<TLevelReader>;#endif-class DVAPI TLevelReaderP : public TSmartPointerT<TLevelReader> {+class DVAPI TLevelReaderP final : public TSmartPointerT<TLevelReader> {public:// il costruttore "non banale"TLevelReaderP(const TFilePath &filepath, int reader = 0);@@ -211,7 +211,7 @@ public:template class DVAPI TSmartPointerT<TLevelWriter>;#endif-class DVAPI TLevelWriterP : public TSmartPointerT<TLevelWriter> {+class DVAPI TLevelWriterP final : public TSmartPointerT<TLevelWriter> {public:// il costruttore "non banale"TLevelWriterP(const TFilePath &filepath,diff --git a/toonz/sources/include/tmacrofx.h b/toonz/sources/include/tmacrofx.hindex 5297ed7a4..c2a12e842 100644--- a/toonz/sources/include/tmacrofx.h+++ b/toonz/sources/include/tmacrofx.h@@ -21,7 +21,7 @@//===================================================================-class DVAPI TMacroFx : public TRasterFx {+class DVAPI TMacroFx final : public TRasterFx {FX_DECLARATION(TMacroFx)TRasterFxP m_root;diff --git a/toonz/sources/include/tmathutil.h b/toonz/sources/include/tmathutil.hindex ca59dc9f4..6a2e5a753 100644--- a/toonz/sources/include/tmathutil.h+++ b/toonz/sources/include/tmathutil.h@@ -28,7 +28,7 @@ enum TMathError { INFINITE_SOLUTIONS = -1 };//------------------------------------------------------------------------------class DVAPI TMathException : public TException {+class DVAPI TMathException final : public TException {TString m_msg;public:diff --git a/toonz/sources/include/tmeshimage.h b/toonz/sources/include/tmeshimage.hindex 0332c1528..ff4775cee 100644--- a/toonz/sources/include/tmeshimage.h+++ b/toonz/sources/include/tmeshimage.h@@ -39,7 +39,7 @@// TTextureVertex (Textured Mesh Vertex Type) declaration//***********************************************************************************-struct RigidPoint : public TPointD {+struct RigidPoint final : public TPointD {double rigidity;public:@@ -115,7 +115,7 @@ struct point_traits<RigidPoint> {// TTextureMesh (Textured Mesh Type) declaration//***********************************************************************************-class DVAPI TTextureMesh+class DVAPI TTextureMesh final: public tcg::TriMesh<TTextureVertex, tcg::Edge, tcg::FaceN<3>>,public TSmartObject,public TPersist {@@ -150,7 +150,7 @@ typedef TSmartPointerT<TTextureMesh> TTextureMeshP;namespace boost {template <>-struct graph_traits<TTextureMesh>+struct graph_traits<TTextureMesh> final: public graph_traits<tcg::Mesh<TTextureMesh::vertex_type, TTextureMesh::edge_type,TTextureMesh::face_type>> {};@@ -161,7 +161,7 @@ struct graph_traits<TTextureMesh>// TMeshImage (Textured Mesh Image) declaration//***********************************************************************************-class DVAPI TMeshImage : public TImage {+class DVAPI TMeshImage final : public TImage {class Imp;std::shared_ptr<Imp> m_imp;@@ -199,7 +199,8 @@ template class DVAPI TSmartPointerT<TMeshImage>;template class DVAPI TDerivedSmartPointerT<TMeshImage, TImage>;#endif-class DVAPI TMeshImageP : public TDerivedSmartPointerT<TMeshImage, TImage> {+class DVAPI TMeshImageP final+ : public TDerivedSmartPointerT<TMeshImage, TImage> {public:TMeshImageP() {}TMeshImageP(TMeshImage *image) : DerivedSmartPointer(image) {}diff --git a/toonz/sources/include/tmsgcore.h b/toonz/sources/include/tmsgcore.hindex 1dbc88175..eb606d361 100644--- a/toonz/sources/include/tmsgcore.h+++ b/toonz/sources/include/tmsgcore.h@@ -38,7 +38,7 @@ void DVAPI warning(const QString &msg);void DVAPI info(const QString &msg);};-class DVAPI TMsgCore : public QObject {+class DVAPI TMsgCore final : public QObject {Q_OBJECTQTcpServer *m_tcpServer;diff --git a/toonz/sources/include/tnotanimatableparam.h b/toonz/sources/include/tnotanimatableparam.hindex 246baed8a..50943636e 100644--- a/toonz/sources/include/tnotanimatableparam.h+++ b/toonz/sources/include/tnotanimatableparam.h@@ -34,7 +34,7 @@#endiftemplate <class T>-class TNotAnimatableParamChange : public TParamChange {+class TNotAnimatableParamChange final : public TParamChange {T m_oldValue;T m_newValue;@@ -57,7 +57,7 @@ public://-----------------------------------------------------------------------------template <class T>-class TNotAnimatableParamChangeUndo : public TUndo {+class TNotAnimatableParamChangeUndo final : public TUndo {public:TNotAnimatableParamChangeUndo(TParam *param, const T &oldValue,const T &newValue);@@ -187,7 +187,7 @@ class TIntParam;template class DVAPI TPersistDeclarationT<TIntParam>;#endif-class DVAPI TIntParam : public TNotAnimatableParam<int> {+class DVAPI TIntParam final : public TNotAnimatableParam<int> {PERSIST_DECLARATION(TIntParam);int minValue, maxValue;bool m_isWheelEnabled;@@ -223,7 +223,7 @@ class TBoolParam;template class DVAPI TPersistDeclarationT<TBoolParam>;#endif-class DVAPI TBoolParam : public TNotAnimatableParam<bool> {+class DVAPI TBoolParam final : public TNotAnimatableParam<bool> {PERSIST_DECLARATION(TBoolParam);public:@@ -250,7 +250,7 @@ class TFilePathParam;template class DVAPI TPersistDeclarationT<TFilePathParam>;#endif-class DVAPI TFilePathParam : public TNotAnimatableParam<TFilePath> {+class DVAPI TFilePathParam final : public TNotAnimatableParam<TFilePath> {PERSIST_DECLARATION(TFilePathParam);public:@@ -277,7 +277,7 @@ class TStringParam;template class DVAPI TPersistDeclarationT<TStringParam>;#endif-class DVAPI TStringParam : public TNotAnimatableParam<std::wstring> {+class DVAPI TStringParam final : public TNotAnimatableParam<std::wstring> {PERSIST_DECLARATION(TStringParam);public:@@ -299,7 +299,7 @@ DEFINE_PARAM_SMARTPOINTER(TStringParam, std::wstring)class TEnumParamImp;-class DVAPI TEnumParam : public TNotAnimatableParam<int> {+class DVAPI TEnumParam final : public TNotAnimatableParam<int> {PERSIST_DECLARATION(TEnumParam)public:@@ -335,7 +335,7 @@ typedef TNotAnimatableParamObserver<TIntEnumParam> TIntEnumParamObserver;DVAPI_PARAM_SMARTPOINTER(TIntEnumParam)-class DVAPI TIntEnumParamP+class DVAPI TIntEnumParamP final: public TDerivedSmartPointerT<TIntEnumParam, TParam> {public:TIntEnumParamP(TIntEnumParam *p = 0) : DerivedSmartPointer(p) {}@@ -360,7 +360,7 @@ class TNADoubleParam;template class DVAPI TPersistDeclarationT<TNADoubleParam>;#endif-class DVAPI TNADoubleParam : public TNotAnimatableParam<double> {+class DVAPI TNADoubleParam final : public TNotAnimatableParam<double> {PERSIST_DECLARATION(TNADoubleParam);public:diff --git a/toonz/sources/include/tools/imagegrouping.h b/toonz/sources/include/tools/imagegrouping.hindex b88dd7819..4e692567a 100644--- a/toonz/sources/include/tools/imagegrouping.h+++ b/toonz/sources/include/tools/imagegrouping.h@@ -19,7 +19,7 @@ class QMenu;#define DVVAR DV_IMPORT_VAR#endif-class DVAPI TGroupCommand : public QObject {+class DVAPI TGroupCommand final : public QObject {Q_OBJECTpublic:enum {diff --git a/toonz/sources/include/tools/rasterselection.h b/toonz/sources/include/tools/rasterselection.hindex b0465f2f3..40a151337 100644--- a/toonz/sources/include/tools/rasterselection.h+++ b/toonz/sources/include/tools/rasterselection.h@@ -38,7 +38,7 @@ class RasterImageData;//! Selection of TToonzImage and TRasterImage.//------------------------------------------------------------------------------class DVAPI RasterSelection : public TSelection {+class DVAPI RasterSelection final : public TSelection {TImageP m_currentImage;TXshCell m_currentImageCell;diff --git a/toonz/sources/include/tools/screenpicker.h b/toonz/sources/include/tools/screenpicker.hindex 52e2d4ddd..dd9b4099e 100644--- a/toonz/sources/include/tools/screenpicker.h+++ b/toonz/sources/include/tools/screenpicker.h@@ -9,7 +9,7 @@//-----------------------------------------------------------------------class ScreenPicker : public QObject, public DVGui::ScreenBoard::Drawing {+class ScreenPicker final : public QObject, public DVGui::ScreenBoard::Drawing {Q_OBJECTQPoint m_start;diff --git a/toonz/sources/include/tools/strokeselection.h b/toonz/sources/include/tools/strokeselection.hindex 45efa74d3..02d371fe6 100644--- a/toonz/sources/include/tools/strokeselection.h+++ b/toonz/sources/include/tools/strokeselection.h@@ -38,7 +38,7 @@ class TSceneHandle;// StrokeSelection declaration//****************************************************************************-class DVAPI StrokeSelection : public TSelection {+class DVAPI StrokeSelection final : public TSelection {public:typedef std::set<int> IndexesContainer;diff --git a/toonz/sources/include/tools/toolhandle.h b/toonz/sources/include/tools/toolhandle.hindex 6baeb3ba6..e11af611c 100644--- a/toonz/sources/include/tools/toolhandle.h+++ b/toonz/sources/include/tools/toolhandle.h@@ -28,7 +28,7 @@ class QString;// ToolHandle//------------------------------------------------------------------------------class DVAPI ToolHandle : public QObject {+class DVAPI ToolHandle final : public QObject {Q_OBJECTTTool *m_tool;diff --git a/toonz/sources/include/tools/tooloptions.h b/toonz/sources/include/tools/tooloptions.hindex 7aa6e507d..b06a86df7 100644--- a/toonz/sources/include/tools/tooloptions.h+++ b/toonz/sources/include/tools/tooloptions.h@@ -84,7 +84,7 @@ class QStackedWidget;// ToolOptionToolBar declaration//***********************************************************************************************-class ToolOptionToolBar : public QToolBar {+class ToolOptionToolBar final : public QToolBar {public:ToolOptionToolBar(QWidget *parent = 0);@@ -127,7 +127,7 @@ public:// ToolOptionControlBuilder declaration//***********************************************************************************************-class ToolOptionControlBuilder : public TProperty::Visitor {+class ToolOptionControlBuilder final : public TProperty::Visitor {ToolOptionsBox *m_panel;TTool *m_tool;TPaletteHandle *m_pltHandle;@@ -178,7 +178,7 @@ public:////=============================================================================-class ArrowToolOptionsBox : public ToolOptionsBox {+class ArrowToolOptionsBox final : public ToolOptionsBox {Q_OBJECTTPropertyGroup *m_pg;@@ -267,38 +267,51 @@ protected slots:////=============================================================================-class IconViewField : public QWidget {+class IconViewField final : public QWidget {Q_OBJECTpublic:- enum IconType{+ enum IconType {Icon_ScalePeg = 0,Icon_Rotation,Icon_Position,Icon_Thickness,Icon_Amount};+private:IconType m_iconType;protected:QPixmap m_pm[Icon_Amount];- Q_PROPERTY(QPixmap ScalePegPixmap READ getScalePegPixmap WRITE setScalePegPixmap);- Q_PROPERTY(QPixmap RotationPixmap READ getRotationPixmap WRITE setRotationPixmap);- Q_PROPERTY(QPixmap PositionPixmap READ getPositionPixmap WRITE setPositionPixmap);- Q_PROPERTY(QPixmap ThicknessPixmap READ getThicknessPixmap WRITE setThicknessPixmap);+ Q_PROPERTY(+ QPixmap ScalePegPixmap READ getScalePegPixmap WRITE setScalePegPixmap);+ Q_PROPERTY(+ QPixmap RotationPixmap READ getRotationPixmap WRITE setRotationPixmap);+ Q_PROPERTY(+ QPixmap PositionPixmap READ getPositionPixmap WRITE setPositionPixmap);+ Q_PROPERTY(+ QPixmap ThicknessPixmap READ getThicknessPixmap WRITE setThicknessPixmap);public:IconViewField(QWidget *parent = 0, IconType iconType = Icon_ScalePeg);QPixmap getScalePegPixmap() const { return m_pm[Icon_ScalePeg]; }- void setScalePegPixmap(const QPixmap &pixmap) { m_pm[Icon_ScalePeg] = pixmap; }+ void setScalePegPixmap(const QPixmap &pixmap) {+ m_pm[Icon_ScalePeg] = pixmap;+ }QPixmap getRotationPixmap() const { return m_pm[Icon_Rotation]; }- void setRotationPixmap(const QPixmap &pixmap) { m_pm[Icon_Rotation] = pixmap; }+ void setRotationPixmap(const QPixmap &pixmap) {+ m_pm[Icon_Rotation] = pixmap;+ }QPixmap getPositionPixmap() const { return m_pm[Icon_Position]; }- void setPositionPixmap(const QPixmap &pixmap) { m_pm[Icon_Position] = pixmap; }+ void setPositionPixmap(const QPixmap &pixmap) {+ m_pm[Icon_Position] = pixmap;+ }QPixmap getThicknessPixmap() const { return m_pm[Icon_Thickness]; }- void setThicknessPixmap(const QPixmap &pixmap) { m_pm[Icon_Thickness] = pixmap; }+ void setThicknessPixmap(const QPixmap &pixmap) {+ m_pm[Icon_Thickness] = pixmap;+ }protected:void paintEvent(QPaintEvent *e);@@ -306,8 +319,8 @@ protected://------------------------------------------------------------------------------class SelectionToolOptionsBox : public ToolOptionsBox,- public TProperty::Listener {+class SelectionToolOptionsBox final : public ToolOptionsBox,+ public TProperty::Listener {Q_OBJECTTTool *m_tool;@@ -337,7 +350,7 @@ public:void updateStatus();void onPropertyChanged();- protected slots:+protected slots:void onScaleXValueChanged();void onScaleYValueChanged();void onSetSaveboxCheckboxChanged(bool);@@ -349,7 +362,7 @@ public:////=============================================================================-class GeometricToolOptionsBox : public ToolOptionsBox {+class GeometricToolOptionsBox final : public ToolOptionsBox {Q_OBJECTint m_targetType;@@ -379,7 +392,7 @@ protected slots:////=============================================================================-class TypeToolOptionsBox : public ToolOptionsBox {+class TypeToolOptionsBox final : public ToolOptionsBox {Q_OBJECTTTool *m_tool;@@ -400,7 +413,7 @@ protected slots:////=============================================================================-class PaintbrushToolOptionsBox : public ToolOptionsBox {+class PaintbrushToolOptionsBox final : public ToolOptionsBox {Q_OBJECTToolOptionCombo *m_colorMode;@@ -422,7 +435,7 @@ protected slots:////=============================================================================-class FillToolOptionsBox : public ToolOptionsBox {+class FillToolOptionsBox final : public ToolOptionsBox {Q_OBJECTint m_targetType;@@ -451,7 +464,7 @@ protected slots:////=============================================================================-class BrushToolOptionsBox : public ToolOptionsBox {+class BrushToolOptionsBox final : public ToolOptionsBox {Q_OBJECTTTool *m_tool;@@ -488,7 +501,7 @@ protected slots:////=============================================================================-class EraserToolOptionsBox : public ToolOptionsBox {+class EraserToolOptionsBox final : public ToolOptionsBox {Q_OBJECTToolOptionCheckbox *m_pencilMode, *m_invertMode, *m_multiFrameMode;@@ -514,7 +527,7 @@ protected slots:////=============================================================================-class RulerToolOptionsBox : public ToolOptionsBox {+class RulerToolOptionsBox final : public ToolOptionsBox {Q_OBJECTMeasuredValueField *m_Xfld;@@ -547,7 +560,7 @@ public:////=============================================================================-class TapeToolOptionsBox : public ToolOptionsBox {+class TapeToolOptionsBox final : public ToolOptionsBox {Q_OBJECTToolOptionCheckbox *m_smoothMode, *m_joinStrokesMode;@@ -573,7 +586,7 @@ protected slots:////=============================================================================-class RGBPickerToolOptionsBox : public ToolOptionsBox {+class RGBPickerToolOptionsBox final : public ToolOptionsBox {Q_OBJECTToolOptionCheckbox *m_realTimePickMode;// label with background color@@ -594,7 +607,7 @@ protected slots:////=============================================================================-class StylePickerToolOptionsBox : public ToolOptionsBox {+class StylePickerToolOptionsBox final : public ToolOptionsBox {Q_OBJECTToolOptionCheckbox *m_realTimePickMode;@@ -611,7 +624,7 @@ protected slots://------------------------------------------------------------------------------class DVAPI ToolOptions : public QFrame {+class DVAPI ToolOptions final : public QFrame {Q_OBJECTint m_width, m_height;diff --git a/toonz/sources/include/tools/toolutils.h b/toonz/sources/include/tools/toolutils.hindex a86aa0a9c..d196f86ae 100644--- a/toonz/sources/include/tools/toolutils.h+++ b/toonz/sources/include/tools/toolutils.h@@ -249,7 +249,7 @@ public://------------------------------------------------------------------------------class UndoModifyStrokeAndPaint : public UndoModifyStroke {+class UndoModifyStrokeAndPaint final : public UndoModifyStroke {std::vector<TFilledRegionInf> *m_fillInformation;TRectD m_oldBBox;@@ -268,7 +268,7 @@ public://------------------------------------------------------------------------------class UndoModifyListStroke : public TToolUndo {+class UndoModifyListStroke final : public TToolUndo {std::list<UndoModifyStroke *> m_strokeList;std::list<UndoModifyStroke *>::iterator m_beginIt, m_endIt;@@ -291,7 +291,7 @@ public://------------------------------------------------------------------------------class UndoPencil : public TToolUndo {+class UndoPencil final : public TToolUndo {int m_strokeId;TStroke *m_stroke;std::vector<TFilledRegionInf> *m_fillInformation;@@ -362,7 +362,7 @@ public://// undo class (path strokes). call it BEFORE and register it AFTER path change//-class UndoPath : public TUndo {+class UndoPath final : public TUndo {TStageObjectSpline *m_spline;std::vector<TThickPoint> m_before, m_after;bool m_selfLoopBefore;@@ -384,7 +384,7 @@ public://// UndoControlPointEditor//-class UndoControlPointEditor : public TToolUndo {+class UndoControlPointEditor final : public TToolUndo {std::pair<int, VIStroke *> m_oldStroke;std::pair<int, VIStroke *> m_newStroke;bool m_isStrokeDelete;@@ -436,7 +436,7 @@ protected:// ChooseColumnMenu//-class ColumChooserMenu : public DragMenu {+class ColumChooserMenu final : public DragMenu {public:ColumChooserMenu(TXsheet *xsh, const std::vector<int> &columnIndexes);int execute();diff --git a/toonz/sources/include/toonz/cleanupcolorstyles.h b/toonz/sources/include/toonz/cleanupcolorstyles.hindex 5e2440f69..f57ec049a 100644--- a/toonz/sources/include/toonz/cleanupcolorstyles.h+++ b/toonz/sources/include/toonz/cleanupcolorstyles.h@@ -67,7 +67,7 @@ private://--------------------------------------------------------------------class DVAPI TColorCleanupStyle : public TCleanupStyle {+class DVAPI TColorCleanupStyle final : public TCleanupStyle {double m_hRange;double m_lineWidth;@@ -101,7 +101,7 @@ private://--------------------------------------------------------------------class DVAPI TBlackCleanupStyle : public TCleanupStyle {+class DVAPI TBlackCleanupStyle final : public TCleanupStyle {double m_colorThreshold, m_whiteThreshold;public:diff --git a/toonz/sources/include/toonz/fullcolorpalette.h b/toonz/sources/include/toonz/fullcolorpalette.hindex c476acc05..e1308f291 100644--- a/toonz/sources/include/toonz/fullcolorpalette.h+++ b/toonz/sources/include/toonz/fullcolorpalette.h@@ -21,7 +21,7 @@class TPalette;class ToonzScene;-class DVAPI FullColorPalette : public QObject {+class DVAPI FullColorPalette final : public QObject {Q_OBJECTTPalette *m_palette;diff --git a/toonz/sources/include/toonz/imagestyles.h b/toonz/sources/include/toonz/imagestyles.hindex 45871c00f..a2c0b1ef0 100644--- a/toonz/sources/include/toonz/imagestyles.h+++ b/toonz/sources/include/toonz/imagestyles.h@@ -81,7 +81,9 @@ public://---------------------------------------------------------------------------------------------------------class DVAPI TTextureStyle : public TOutlineStyle, TRasterStyleFx, TImageStyle {+class DVAPI TTextureStyle final : public TOutlineStyle,+ TRasterStyleFx,+ TImageStyle {public:private:TTextureParams m_params;diff --git a/toonz/sources/include/toonz/movierenderer.h b/toonz/sources/include/toonz/movierenderer.hindex c595963d9..e2f740043 100644--- a/toonz/sources/include/toonz/movierenderer.h+++ b/toonz/sources/include/toonz/movierenderer.h@@ -39,7 +39,7 @@ In a more generic view, the term 'movie' represents here a generic sequenceof images, which may even be kept in memory rather than written to file.*/-class DVAPI MovieRenderer : public QObject {+class DVAPI MovieRenderer final : public QObject {Q_OBJECTclass Imp;diff --git a/toonz/sources/include/toonz/multimediarenderer.h b/toonz/sources/include/toonz/multimediarenderer.hindex 1692e6246..fd3d7a72a 100644--- a/toonz/sources/include/toonz/multimediarenderer.h+++ b/toonz/sources/include/toonz/multimediarenderer.h@@ -46,7 +46,7 @@ class ToonzScene;class ToonzScene;-class DVAPI MultimediaRenderer : public QObject {+class DVAPI MultimediaRenderer final : public QObject {Q_OBJECTclass Imp;diff --git a/toonz/sources/include/toonz/namebuilder.h b/toonz/sources/include/toonz/namebuilder.hindex 0f0408114..8e47749db 100644--- a/toonz/sources/include/toonz/namebuilder.h+++ b/toonz/sources/include/toonz/namebuilder.h@@ -33,7 +33,7 @@ public://-------------------------------------------------------------------// NameCreator genera la sequenza 'A', 'B', ...-class DVAPI NameCreator : public NameBuilder {+class DVAPI NameCreator final : public NameBuilder {std::vector<int> m_s;public:@@ -43,7 +43,7 @@ public://--------------------------------------------------------------------class DVAPI NameModifier : public NameBuilder {+class DVAPI NameModifier final : public NameBuilder {std::wstring m_nameBase;int m_index;diff --git a/toonz/sources/include/toonz/observer.h b/toonz/sources/include/toonz/observer.hindex 1e0a9b4a7..3c98ce754 100644--- a/toonz/sources/include/toonz/observer.h+++ b/toonz/sources/include/toonz/observer.h@@ -64,7 +64,7 @@ public://-------------------------------------------------------------------template <class T>-class TObserverListT : public TObserverList {+class TObserverListT final : public TObserverList {friend class TNotifier;public:diff --git a/toonz/sources/include/toonz/palettecontroller.h b/toonz/sources/include/toonz/palettecontroller.hindex 60007dc48..1296b38c8 100644--- a/toonz/sources/include/toonz/palettecontroller.h+++ b/toonz/sources/include/toonz/palettecontroller.h@@ -32,7 +32,7 @@ class TPaletteHandle;// PaletteController declaration//************************************************************************-class DVAPI PaletteController : public QObject {+class DVAPI PaletteController final : public QObject {Q_OBJECTTPaletteHandle *m_currentLevelPalette; //!< (\p owned) Handle to the palettediff --git a/toonz/sources/include/toonz/plasticdeformerfx.h b/toonz/sources/include/toonz/plasticdeformerfx.hindex 967325765..8f2e82cb6 100644--- a/toonz/sources/include/toonz/plasticdeformerfx.h+++ b/toonz/sources/include/toonz/plasticdeformerfx.h@@ -25,7 +25,7 @@ class TXsheet;//! PlasticDeformerFx is a hidden fx used to inject data about a plastic//! deformation just above a//! TLevelColumnFx instance.-class PlasticDeformerFx : public TRasterFx {+class PlasticDeformerFx final : public TRasterFx {FX_DECLARATION(PlasticDeformerFx)public:diff --git a/toonz/sources/include/toonz/preferences.h b/toonz/sources/include/toonz/preferences.hindex 26c969ece..1badd26c9 100644--- a/toonz/sources/include/toonz/preferences.h+++ b/toonz/sources/include/toonz/preferences.h@@ -46,7 +46,7 @@ class QSettings;\brief Stores application-wide preferences used throughout Toonz.*/-class DVAPI Preferences : public QObject // singleton+class DVAPI Preferences final : public QObject // singleton{Q_OBJECTdiff --git a/toonz/sources/include/toonz/sceneresources.h b/toonz/sources/include/toonz/sceneresources.hindex 85e95956b..91f98dbe7 100644--- a/toonz/sources/include/toonz/sceneresources.h+++ b/toonz/sources/include/toonz/sceneresources.h@@ -130,7 +130,7 @@ updatePath()*///=============================================================================-class DVAPI ScenePalette : public SceneResource {+class DVAPI ScenePalette final : public SceneResource {TXshPaletteLevel *m_pl;TFilePath m_oldPath, m_oldActualPath;@@ -174,7 +174,7 @@ updatePath()*///=============================================================================-class DVAPI SceneLevel : public SceneResource {+class DVAPI SceneLevel final : public SceneResource {TXshSimpleLevel *m_sl;TFilePath m_oldPath, m_oldActualPath;TFilePath m_oldScannedPath, m_oldActualScannedPath;@@ -218,7 +218,7 @@ path*///=============================================================================-class DVAPI SceneSound : public SceneResource {+class DVAPI SceneSound final : public SceneResource {TXshSoundLevel *m_sl;TFilePath m_oldPath, m_oldActualPath;@@ -326,7 +326,7 @@ private://=============================================================================-class DVAPI ResourceImporter : public ResourceProcessor {+class DVAPI ResourceImporter final : public ResourceProcessor {public:ResourceImporter(ToonzScene *scene, TProject *dstProject,ResourceImportStrategy &strategy);@@ -363,7 +363,7 @@ private:// Rende tutte le risorse locali: tutte quelle con path assoluto// vengono copiate dentro il progetto-class DVAPI ResourceCollector : public ResourceProcessor {+class DVAPI ResourceCollector final : public ResourceProcessor {ToonzScene *m_scene;int m_count;std::map<TFilePath, TFilePath> m_collectedFiles;diff --git a/toonz/sources/include/toonz/scriptbinding.h b/toonz/sources/include/toonz/scriptbinding.hindex d4daffc4e..2168539b2 100644--- a/toonz/sources/include/toonz/scriptbinding.h+++ b/toonz/sources/include/toonz/scriptbinding.h@@ -48,7 +48,7 @@ class TFilePath;namespace TScriptBinding {-class DVAPI Void : public QObject {+class DVAPI Void final : public QObject {Q_OBJECTpublic:WRAPPER_STD_METHODS(Void)diff --git a/toonz/sources/include/toonz/scriptbinding_centerline_vectorizer.h b/toonz/sources/include/toonz/scriptbinding_centerline_vectorizer.hindex 257ecda3e..638cc4245 100644--- a/toonz/sources/include/toonz/scriptbinding_centerline_vectorizer.h+++ b/toonz/sources/include/toonz/scriptbinding_centerline_vectorizer.h@@ -10,7 +10,7 @@ class TXshSimpleLevel;namespace TScriptBinding {-class DVAPI CenterlineVectorizer : public Wrapper {+class DVAPI CenterlineVectorizer final : public Wrapper {Q_OBJECTCenterlineConfiguration *m_parameters;diff --git a/toonz/sources/include/toonz/scriptbinding_files.h b/toonz/sources/include/toonz/scriptbinding_files.hindex f0b0f588b..d220d5747 100644--- a/toonz/sources/include/toonz/scriptbinding_files.h+++ b/toonz/sources/include/toonz/scriptbinding_files.h@@ -10,7 +10,7 @@namespace TScriptBinding {-class DVAPI FilePath : public Wrapper {+class DVAPI FilePath final : public Wrapper {Q_OBJECTQString m_filePath;diff --git a/toonz/sources/include/toonz/scriptbinding_image.h b/toonz/sources/include/toonz/scriptbinding_image.hindex 6f4843e37..07925e814 100644--- a/toonz/sources/include/toonz/scriptbinding_image.h+++ b/toonz/sources/include/toonz/scriptbinding_image.h@@ -7,7 +7,7 @@namespace TScriptBinding {-class DVAPI Image : public Wrapper {+class DVAPI Image final : public Wrapper {Q_OBJECTTImageP m_img;diff --git a/toonz/sources/include/toonz/scriptbinding_image_builder.h b/toonz/sources/include/toonz/scriptbinding_image_builder.hindex cf2d8c2b3..bfe4ed525 100644--- a/toonz/sources/include/toonz/scriptbinding_image_builder.h+++ b/toonz/sources/include/toonz/scriptbinding_image_builder.h@@ -10,7 +10,7 @@ class TXshSimpleLevel;namespace TScriptBinding {-class DVAPI Transform : public Wrapper {+class DVAPI Transform final : public Wrapper {Q_OBJECTTAffine m_affine;@@ -31,7 +31,7 @@ public:const TAffine &getAffine() const { return m_affine; }};-class DVAPI ImageBuilder : public Wrapper {+class DVAPI ImageBuilder final : public Wrapper {Q_OBJECTTImageP m_img;int m_width, m_height;diff --git a/toonz/sources/include/toonz/scriptbinding_level.h b/toonz/sources/include/toonz/scriptbinding_level.hindex 4a41a9918..777b9c368 100644--- a/toonz/sources/include/toonz/scriptbinding_level.h+++ b/toonz/sources/include/toonz/scriptbinding_level.h@@ -11,7 +11,7 @@ class TXshSimpleLevel;namespace TScriptBinding {-class DVAPI Level : public Wrapper {+class DVAPI Level final : public Wrapper {Q_OBJECTTXshSimpleLevel *m_sl;ToonzScene *m_scene;diff --git a/toonz/sources/include/toonz/scriptbinding_outline_vectorizer.h b/toonz/sources/include/toonz/scriptbinding_outline_vectorizer.hindex a1000e935..db95a5d86 100644--- a/toonz/sources/include/toonz/scriptbinding_outline_vectorizer.h+++ b/toonz/sources/include/toonz/scriptbinding_outline_vectorizer.h@@ -10,7 +10,7 @@ class TXshSimpleLevel;namespace TScriptBinding {-class DVAPI OutlineVectorizer : public Wrapper {+class DVAPI OutlineVectorizer final : public Wrapper {Q_OBJECTNewOutlineConfiguration *m_parameters;diff --git a/toonz/sources/include/toonz/scriptbinding_rasterizer.h b/toonz/sources/include/toonz/scriptbinding_rasterizer.hindex 746412752..23d5912e7 100644--- a/toonz/sources/include/toonz/scriptbinding_rasterizer.h+++ b/toonz/sources/include/toonz/scriptbinding_rasterizer.h@@ -10,7 +10,7 @@ class TXshSimpleLevel;namespace TScriptBinding {-class DVAPI Rasterizer : public Wrapper {+class DVAPI Rasterizer final : public Wrapper {Q_OBJECTbool m_colorMapped;int m_xres, m_yres;diff --git a/toonz/sources/include/toonz/scriptbinding_renderer.h b/toonz/sources/include/toonz/scriptbinding_renderer.hindex 6d45b58e8..971b5245f 100644--- a/toonz/sources/include/toonz/scriptbinding_renderer.h+++ b/toonz/sources/include/toonz/scriptbinding_renderer.h@@ -7,7 +7,7 @@namespace TScriptBinding {-class DVAPI Renderer : public Wrapper {+class DVAPI Renderer final : public Wrapper {Q_OBJECTclass Imp;Imp *m_imp;diff --git a/toonz/sources/include/toonz/scriptbinding_scene.h b/toonz/sources/include/toonz/scriptbinding_scene.hindex 3427f1a03..919865135 100644--- a/toonz/sources/include/toonz/scriptbinding_scene.h+++ b/toonz/sources/include/toonz/scriptbinding_scene.h@@ -7,7 +7,7 @@namespace TScriptBinding {-class DVAPI Scene : public Wrapper {+class DVAPI Scene final : public Wrapper {Q_OBJECTToonzScene *m_scene;diff --git a/toonz/sources/include/toonz/scriptbinding_toonz_raster_converter.h b/toonz/sources/include/toonz/scriptbinding_toonz_raster_converter.hindex 0600d5af0..07e8399ee 100644--- a/toonz/sources/include/toonz/scriptbinding_toonz_raster_converter.h+++ b/toonz/sources/include/toonz/scriptbinding_toonz_raster_converter.h@@ -10,7 +10,7 @@ class TXshSimpleLevel;namespace TScriptBinding {-class DVAPI ToonzRasterConverter : public Wrapper {+class DVAPI ToonzRasterConverter final : public Wrapper {Q_OBJECTbool m_flatSource;diff --git a/toonz/sources/include/toonz/scriptengine.h b/toonz/sources/include/toonz/scriptengine.hindex dc55208a5..3b667b1e3 100644--- a/toonz/sources/include/toonz/scriptengine.h+++ b/toonz/sources/include/toonz/scriptengine.h@@ -31,7 +31,7 @@ public:virtual void execute() = 0;};-class DVAPI ScriptEngine : public QObject {+class DVAPI ScriptEngine final : public QObject {Q_OBJECTQScriptEngine *m_engine;class Executor;diff --git a/toonz/sources/include/toonz/stageobjectutil.h b/toonz/sources/include/toonz/stageobjectutil.hindex b7a1965e9..ba424aacc 100644--- a/toonz/sources/include/toonz/stageobjectutil.h+++ b/toonz/sources/include/toonz/stageobjectutil.h@@ -104,7 +104,7 @@ public:////------------------------------------------------------------------------------class DVAPI UndoSetKeyFrame : public TUndo {+class DVAPI UndoSetKeyFrame final : public TUndo {TStageObjectId m_objId;int m_frame;@@ -146,7 +146,7 @@ public:////------------------------------------------------------------------------------class DVAPI UndoRemoveKeyFrame : public TUndo {+class DVAPI UndoRemoveKeyFrame final : public TUndo {TStageObjectId m_objId;int m_frame;@@ -184,7 +184,7 @@ public:// UndoStageObjectCenterMove//------------------------------------------------------------------------------class DVAPI UndoStageObjectCenterMove : public TUndo {+class DVAPI UndoStageObjectCenterMove final : public TUndo {TStageObjectId m_pid;int m_frame;TPointD m_before, m_after;@@ -220,7 +220,7 @@ public:// UndoStageObjectMove//------------------------------------------------------------------------------class DVAPI UndoStageObjectMove : public TUndo {+class DVAPI UndoStageObjectMove final : public TUndo {TStageObjectValues m_before, m_after;TObjectHandle*m_objectHandle; // OK: viene usato per notificare i cambiamenti!@@ -245,7 +245,7 @@ public:// UndoStageObjectPinned//------------------------------------------------------------------------------class DVAPI UndoStageObjectPinned : public TUndo {+class DVAPI UndoStageObjectPinned final : public TUndo {TStageObjectId m_pid;int m_frame;bool m_before, m_after;diff --git a/toonz/sources/include/toonz/stagevisitor.h b/toonz/sources/include/toonz/stagevisitor.hindex b0efb4fa6..f9d8c4d0a 100644--- a/toonz/sources/include/toonz/stagevisitor.h+++ b/toonz/sources/include/toonz/stagevisitor.h@@ -182,7 +182,7 @@ DVAPI void visit(Visitor &visitor, TXshLevel *level, const TFrameId &fid,\warning The RasterPainter visitor expects an active OpenGL context.*/-class DVAPI RasterPainter : public Visitor {+class DVAPI RasterPainter final : public Visitor {private://! Class used to deal with composition of raster images. A Node instance//! represents a@@ -277,7 +277,7 @@ public://=============================================================================-class DVAPI Picker : public Visitor {+class DVAPI Picker final : public Visitor {std::vector<int> m_columnIndexes, m_rows;TPointD m_point;TAffine m_viewAff;@@ -304,7 +304,7 @@ public://! The derived Stage::Visitor responsible for camera-stand rendering in 3D mode-class DVAPI OpenGlPainter : public Visitor // Yep, the name sucks...+class DVAPI OpenGlPainter final : public Visitor // Yep, the name sucks...{TAffine m_viewAff;TRect m_clipRect;diff --git a/toonz/sources/include/toonz/stylemanager.h b/toonz/sources/include/toonz/stylemanager.hindex 082a4ba7f..5c655d7d2 100644--- a/toonz/sources/include/toonz/stylemanager.h+++ b/toonz/sources/include/toonz/stylemanager.h@@ -31,7 +31,7 @@ class QImage;// CustomStyleManager declaration//********************************************************************************-class DVAPI CustomStyleManager : public QObject {+class DVAPI CustomStyleManager final : public QObject {Q_OBJECTpublic:diff --git a/toonz/sources/include/toonz/tcenterlinevectorizer.h b/toonz/sources/include/toonz/tcenterlinevectorizer.hindex 8e933e45f..7b8c97056 100644--- a/toonz/sources/include/toonz/tcenterlinevectorizer.h+++ b/toonz/sources/include/toonz/tcenterlinevectorizer.h@@ -34,7 +34,7 @@ It can also deal notifications about its progress status, and is receptive touser cancels.\sa VectorizerPopup, Vectorizer, VectorizerConfiguration classes.*/-class DVAPI VectorizerCore : public QObject {+class DVAPI VectorizerCore final : public QObject {Q_OBJECTint m_currPartial;diff --git a/toonz/sources/include/toonz/tcolumnfx.h b/toonz/sources/include/toonz/tcolumnfx.hindex e45eef4b2..861bb80eb 100644--- a/toonz/sources/include/toonz/tcolumnfx.h+++ b/toonz/sources/include/toonz/tcolumnfx.h@@ -175,7 +175,7 @@ private:// TZeraryColumnFx declaration//*******************************************************************************************-class DVAPI TZeraryColumnFx : public TColumnFx {+class DVAPI TZeraryColumnFx final : public TColumnFx {TXshZeraryFxColumn *m_zeraryFxColumn;TZeraryFx *m_fx;@@ -222,7 +222,7 @@ private:// TXsheetFx declaration//*******************************************************************************************-class TXsheetFx : public TRasterFx {+class TXsheetFx final : public TRasterFx {FxDag *m_fxDag;public:@@ -257,7 +257,7 @@ private:// TOutputFx declaration//*******************************************************************************************-class TOutputFx : public TRasterFx {+class TOutputFx final : public TRasterFx {TRasterFxPort m_input;public:diff --git a/toonz/sources/include/toonz/tcolumnhandle.h b/toonz/sources/include/toonz/tcolumnhandle.hindex 233ebe043..277c1d5b4 100644--- a/toonz/sources/include/toonz/tcolumnhandle.h+++ b/toonz/sources/include/toonz/tcolumnhandle.h@@ -23,7 +23,7 @@ class TXshColumn;// TColumnHandle//------------------------------------------------------------------------------class DVAPI TColumnHandle : public QObject {+class DVAPI TColumnHandle final : public QObject {Q_OBJECTTXshColumn *m_column;diff --git a/toonz/sources/include/toonz/tdistort.h b/toonz/sources/include/toonz/tdistort.hindex 575557eb2..e878e5d45 100644--- a/toonz/sources/include/toonz/tdistort.h+++ b/toonz/sources/include/toonz/tdistort.h@@ -110,7 +110,7 @@ public://! The BilinearDistorterBase is just a convenience class implementing a//! lightweight version of//! \b BilinearDistorter class when the source quad is a rect.-class DVAPI BilinearDistorterBase : public TQuadDistorter {+class DVAPI BilinearDistorterBase final : public TQuadDistorter {// Used to make things a little bit faster.TPointD m_A, m_B, m_C, m_D;double m_a, m_b0;@@ -133,7 +133,7 @@ public://! of the source corners into the same combinations of destination ones. The//! resulting image deformation//! is similar to bending a paper foil.-class DVAPI BilinearDistorter : public TQuadDistorter {+class DVAPI BilinearDistorter final : public TQuadDistorter {struct Base {TPointD m_p00, m_p10, m_p01, m_p11;// Used to make things a little bit faster.@@ -169,7 +169,7 @@ public://! The PerspectiveDistorter class implements a quadrilateral distorter that//! makes the source quad//! bend into the destination one while keeping a perspectical resemblance.-class DVAPI PerspectiveDistorter : public TQuadDistorter {+class DVAPI PerspectiveDistorter final : public TQuadDistorter {//================================================================================================// TPerspect//================================================================================================diff --git a/toonz/sources/include/toonz/tframehandle.h b/toonz/sources/include/toonz/tframehandle.hindex 259bc73fa..6d5a656ad 100644--- a/toonz/sources/include/toonz/tframehandle.h+++ b/toonz/sources/include/toonz/tframehandle.h@@ -27,7 +27,7 @@ class TXsheet;// TFrameHandle//------------------------------------------------------------------------------class DVAPI TFrameHandle : public QObject {+class DVAPI TFrameHandle final : public QObject {Q_OBJECTpublic:diff --git a/toonz/sources/include/toonz/tfxhandle.h b/toonz/sources/include/toonz/tfxhandle.hindex 7505f38e5..ca3ba988d 100644--- a/toonz/sources/include/toonz/tfxhandle.h+++ b/toonz/sources/include/toonz/tfxhandle.h@@ -24,7 +24,7 @@ class TFx;// TFxHandle//------------------------------------------------------------------------------class DVAPI TFxHandle : public QObject {+class DVAPI TFxHandle final : public QObject {Q_OBJECTprivate:diff --git a/toonz/sources/include/toonz/tobjecthandle.h b/toonz/sources/include/toonz/tobjecthandle.hindex 9dc71d7f7..502731bf9 100644--- a/toonz/sources/include/toonz/tobjecthandle.h+++ b/toonz/sources/include/toonz/tobjecthandle.h@@ -32,7 +32,7 @@ class TStageObjectSpline;Puo' anche essere la spline associata all'oggetto*/-class DVAPI TObjectHandle : public QObject {+class DVAPI TObjectHandle final : public QObject {Q_OBJECTTStageObjectId m_objectId;diff --git a/toonz/sources/include/toonz/tonionskinmaskhandle.h b/toonz/sources/include/toonz/tonionskinmaskhandle.hindex 26ee32b0b..a2c40c930 100644--- a/toonz/sources/include/toonz/tonionskinmaskhandle.h+++ b/toonz/sources/include/toonz/tonionskinmaskhandle.h@@ -25,7 +25,7 @@ class OnionSkinMask;// TOnionSkinMaskHandle//------------------------------------------------------------------------------class DVAPI TOnionSkinMaskHandle : public QObject {+class DVAPI TOnionSkinMaskHandle final : public QObject {Q_OBJECTOnionSkinMask m_onionSkinMask;diff --git a/toonz/sources/include/toonz/tpalettehandle.h b/toonz/sources/include/toonz/tpalettehandle.hindex 75b37cac3..2f0a27ea7 100644--- a/toonz/sources/include/toonz/tpalettehandle.h+++ b/toonz/sources/include/toonz/tpalettehandle.h@@ -24,7 +24,7 @@// TPaletteHandle//------------------------------------------------------------------------------class DVAPI TPaletteHandle : public QObject {+class DVAPI TPaletteHandle final : public QObject {Q_OBJECTTPalette *m_palette;diff --git a/toonz/sources/include/toonz/tproject.h b/toonz/sources/include/toonz/tproject.hindex b9da7738a..399f5f64b 100644--- a/toonz/sources/include/toonz/tproject.h+++ b/toonz/sources/include/toonz/tproject.h@@ -20,7 +20,7 @@ class TSceneProperties;#define DVVAR DV_IMPORT_VAR#endif-class DVAPI TProject : public TSmartObject {+class DVAPI TProject final : public TSmartObject {TFilePath m_name, m_path;std::vector<std::string> m_folderNames;std::map<std::string, TFilePath> m_folders;diff --git a/toonz/sources/include/toonz/tscenehandle.h b/toonz/sources/include/toonz/tscenehandle.hindex 203ee0431..fab6259fe 100644--- a/toonz/sources/include/toonz/tscenehandle.h+++ b/toonz/sources/include/toonz/tscenehandle.h@@ -25,7 +25,7 @@ class TFilePath;// TSceneHandle//------------------------------------------------------------------------------class DVAPI TSceneHandle : public QObject {+class DVAPI TSceneHandle final : public QObject {Q_OBJECTToonzScene *m_scene;diff --git a/toonz/sources/include/toonz/tstageobject.h b/toonz/sources/include/toonz/tstageobject.hindex c3ae0f61d..8862177b5 100644--- a/toonz/sources/include/toonz/tstageobject.h+++ b/toonz/sources/include/toonz/tstageobject.h@@ -92,7 +92,7 @@ responsibility of theTStageObjectTree class.*/-class DVAPI TStageObject : public TSmartObject, public TParamObserver {+class DVAPI TStageObject final : public TSmartObject, public TParamObserver {DECLARE_CLASS_CODEpublic:diff --git a/toonz/sources/include/toonz/tstageobjectspline.h b/toonz/sources/include/toonz/tstageobjectspline.hindex 2f995b19c..bc9ca3fcd 100644--- a/toonz/sources/include/toonz/tstageobjectspline.h+++ b/toonz/sources/include/toonz/tstageobjectspline.h@@ -33,7 +33,7 @@ class TDoubleParam;*///=============================================================================-class DVAPI TStageObjectSpline : public TSmartObject, public TPersist {+class DVAPI TStageObjectSpline final : public TSmartObject, public TPersist {PERSIST_DECLARATION(TStageObjectSpline)TStroke *m_stroke;DECLARE_CLASS_CODEdiff --git a/toonz/sources/include/toonz/tstageobjecttree.h b/toonz/sources/include/toonz/tstageobjecttree.hindex 765da6dd7..03d6f0054 100644--- a/toonz/sources/include/toonz/tstageobjecttree.h+++ b/toonz/sources/include/toonz/tstageobjecttree.h@@ -82,7 +82,7 @@ public:*///=============================================================================-class DVAPI TStageObjectTree : public TPersist {+class DVAPI TStageObjectTree final : public TPersist {PERSIST_DECLARATION(TStageObjectTree)struct TStageObjectTreeImp;std::unique_ptr<TStageObjectTreeImp> m_imp;diff --git a/toonz/sources/include/toonz/ttileset.h b/toonz/sources/include/toonz/ttileset.hindex cd41387a2..450c5d980 100644--- a/toonz/sources/include/toonz/ttileset.h+++ b/toonz/sources/include/toonz/ttileset.h@@ -73,12 +73,12 @@ public://********************************************************************************-class DVAPI TTileSetCM32 : public TTileSet {+class DVAPI TTileSetCM32 final : public TTileSet {public:// per adesso, facciamo che comprime sempre,// appena costruisce l'oggetto. Poi potremmo dare la scelta,// anche per decidere se farlo subito o meno.- class DVAPI Tile : public TTileSet::Tile {+ class DVAPI Tile final : public TTileSet::Tile {public:Tile();Tile(const TRasterCM32P &ras, const TPoint &p);@@ -113,12 +113,12 @@ public://********************************************************************************-class DVAPI TTileSetFullColor : public TTileSet {+class DVAPI TTileSetFullColor final : public TTileSet {public:// per adesso, facciamo che comprime sempre,// appena costruisce l'oggetto. Poi potremmo dare la scelta,// anche per decidere se farlo subito o meno.- class DVAPI Tile : public TTileSet::Tile {+ class DVAPI Tile final : public TTileSet::Tile {public:Tile();Tile(const TRasterP &ras, const TPoint &p);diff --git a/toonz/sources/include/toonz/txshchildlevel.h b/toonz/sources/include/toonz/txshchildlevel.hindex f88b92b5e..696d9908c 100644--- a/toonz/sources/include/toonz/txshchildlevel.h+++ b/toonz/sources/include/toonz/txshchildlevel.h@@ -36,7 +36,7 @@ level*///=============================================================================-class DVAPI TXshChildLevel : public TXshLevel {+class DVAPI TXshChildLevel final : public TXshLevel {PERSIST_DECLARATION(TXshChildLevel)TXsheet *m_xsheet;diff --git a/toonz/sources/include/toonz/txsheet.h b/toonz/sources/include/toonz/txsheet.hindex f0ef22f19..f75b9266b 100644--- a/toonz/sources/include/toonz/txsheet.h+++ b/toonz/sources/include/toonz/txsheet.h@@ -116,7 +116,7 @@ the xsheet refers usinggetScene() and setScene().*/-class DVAPI TXsheet : public TSmartObject, public TPersist {+class DVAPI TXsheet final : public TSmartObject, public TPersist {PERSIST_DECLARATION(TXsheet)public:diff --git a/toonz/sources/include/toonz/txsheethandle.h b/toonz/sources/include/toonz/txsheethandle.hindex 147d9b6db..12e5723e7 100644--- a/toonz/sources/include/toonz/txsheethandle.h+++ b/toonz/sources/include/toonz/txsheethandle.h@@ -24,7 +24,7 @@ class TXsheet;// TXsheetHandle//------------------------------------------------------------------------------class DVAPI TXsheetHandle : public QObject {+class DVAPI TXsheetHandle final : public QObject {Q_OBJECTTXsheet *m_xsheet;diff --git a/toonz/sources/include/toonz/txshlevelcolumn.h b/toonz/sources/include/toonz/txshlevelcolumn.hindex 741c6516b..a3515055f 100644--- a/toonz/sources/include/toonz/txshlevelcolumn.h+++ b/toonz/sources/include/toonz/txshlevelcolumn.h@@ -34,7 +34,7 @@ getIcon()*///=============================================================================-class DVAPI TXshLevelColumn : public TXshCellColumn {+class DVAPI TXshLevelColumn final : public TXshCellColumn {PERSIST_DECLARATION(TXshLevelColumn)TLevelColumnFx *m_fx;std::string m_iconId;diff --git a/toonz/sources/include/toonz/txshlevelhandle.h b/toonz/sources/include/toonz/txshlevelhandle.hindex 6beaf7ffe..3751c71c9 100644--- a/toonz/sources/include/toonz/txshlevelhandle.h+++ b/toonz/sources/include/toonz/txshlevelhandle.h@@ -21,7 +21,7 @@ class TXshSimpleLevel;// TXshLevelHandle//------------------------------------------------------------------------------class DVAPI TXshLevelHandle : public QObject {+class DVAPI TXshLevelHandle final : public QObject {Q_OBJECTTXshLevel *m_level;diff --git a/toonz/sources/include/toonz/txshmeshcolumn.h b/toonz/sources/include/toonz/txshmeshcolumn.hindex 7560d83fa..6a76e5206 100644--- a/toonz/sources/include/toonz/txshmeshcolumn.h+++ b/toonz/sources/include/toonz/txshmeshcolumn.h@@ -19,7 +19,7 @@// TXshMeshColumn declaration//*******************************************************************************-class DVAPI TXshMeshColumn : public TXshCellColumn {+class DVAPI TXshMeshColumn final : public TXshCellColumn {PERSIST_DECLARATION(TXshMeshColumn)public:diff --git a/toonz/sources/include/toonz/txshpalettecolumn.h b/toonz/sources/include/toonz/txshpalettecolumn.hindex 0925e7aee..f2675be8f 100644--- a/toonz/sources/include/toonz/txshpalettecolumn.h+++ b/toonz/sources/include/toonz/txshpalettecolumn.h@@ -27,7 +27,7 @@ class TPaletteColumnFx;*///=============================================================================-class DVAPI TXshPaletteColumn : public TXshCellColumn {+class DVAPI TXshPaletteColumn final : public TXshCellColumn {PERSIST_DECLARATION(TXshPaletteColumn)TPaletteColumnFx *m_fx;diff --git a/toonz/sources/include/toonz/txshpalettelevel.h b/toonz/sources/include/toonz/txshpalettelevel.hindex 74321afee..eaae2beea 100644--- a/toonz/sources/include/toonz/txshpalettelevel.h+++ b/toonz/sources/include/toonz/txshpalettelevel.h@@ -30,7 +30,7 @@ class TContentHistory;*///=============================================================================-class DVAPI TXshPaletteLevel : public TXshLevel {+class DVAPI TXshPaletteLevel final : public TXshLevel {private:PERSIST_DECLARATION(TXshPaletteLevel)diff --git a/toonz/sources/include/toonz/txshsimplelevel.h b/toonz/sources/include/toonz/txshsimplelevel.hindex 5ab990956..2ffba7e43 100644--- a/toonz/sources/include/toonz/txshsimplelevel.h+++ b/toonz/sources/include/toonz/txshsimplelevel.h@@ -57,7 +57,7 @@ class TContentHistory;a boost flat_set.*/-class DVAPI TXshSimpleLevel : public TXshLevel {+class DVAPI TXshSimpleLevel final : public TXshLevel {Q_OBJECTPERSIST_DECLARATION(TXshSimpleLevel)diff --git a/toonz/sources/include/toonz/txshsoundcolumn.h b/toonz/sources/include/toonz/txshsoundcolumn.hindex 2ea418213..23c4eb6bd 100644--- a/toonz/sources/include/toonz/txshsoundcolumn.h+++ b/toonz/sources/include/toonz/txshsoundcolumn.h@@ -31,7 +31,7 @@ class ColumnLevel;/*!Inherits \b TXshCellColumn. *///=============================================================================-class DVAPI TXshSoundColumn : public QObject, public TXshCellColumn {+class DVAPI TXshSoundColumn final : public QObject, public TXshCellColumn {Q_OBJECTPERSIST_DECLARATION(TXshSoundColumn)diff --git a/toonz/sources/include/toonz/txshsoundlevel.h b/toonz/sources/include/toonz/txshsoundlevel.hindex 73803741d..3d693e3d9 100644--- a/toonz/sources/include/toonz/txshsoundlevel.h+++ b/toonz/sources/include/toonz/txshsoundlevel.h@@ -20,7 +20,7 @@#define DVVAR DV_IMPORT_VAR#endif-class DVAPI TXshSoundLevel : public TXshLevel {+class DVAPI TXshSoundLevel final : public TXshLevel {PERSIST_DECLARATION(TXshSoundLevel)TSoundTrackP m_soundTrack;diff --git a/toonz/sources/include/toonz/txshsoundtextcolumn.h b/toonz/sources/include/toonz/txshsoundtextcolumn.hindex 9ecd63cbf..0e840b8d2 100644--- a/toonz/sources/include/toonz/txshsoundtextcolumn.h+++ b/toonz/sources/include/toonz/txshsoundtextcolumn.h@@ -24,7 +24,7 @@/*!Inherits \b TXshCellColumn. *///=============================================================================-class DVAPI TXshSoundTextColumn : public TXshCellColumn {+class DVAPI TXshSoundTextColumn final : public TXshCellColumn {PERSIST_DECLARATION(TXshSoundTextColumn)public:diff --git a/toonz/sources/include/toonz/txshsoundtextlevel.h b/toonz/sources/include/toonz/txshsoundtextlevel.hindex 2e93f4129..85f0e1fd9 100644--- a/toonz/sources/include/toonz/txshsoundtextlevel.h+++ b/toonz/sources/include/toonz/txshsoundtextlevel.h@@ -23,7 +23,7 @@//! The TXshSoundTextLevel//=============================================================================-class DVAPI TXshSoundTextLevel : public TXshLevel {+class DVAPI TXshSoundTextLevel final : public TXshLevel {PERSIST_DECLARATION(TXshSoundTextLevel)DECLARE_CLASS_CODEdiff --git a/toonz/sources/include/toonz/txshzeraryfxcolumn.h b/toonz/sources/include/toonz/txshzeraryfxcolumn.hindex 03f5a1cd9..07730a381 100644--- a/toonz/sources/include/toonz/txshzeraryfxcolumn.h+++ b/toonz/sources/include/toonz/txshzeraryfxcolumn.h@@ -32,7 +32,7 @@ to*///=============================================================================-class DVAPI TXshZeraryFxColumn : public TXshCellColumn {+class DVAPI TXshZeraryFxColumn final : public TXshCellColumn {PERSIST_DECLARATION(TXshZeraryFxColumn)TZeraryColumnFx *m_zeraryColumnFx;TXshZeraryFxLevel *m_zeraryFxLevel;diff --git a/toonz/sources/include/toonz/txshzeraryfxlevel.h b/toonz/sources/include/toonz/txshzeraryfxlevel.hindex 9ebb8beda..9677fc823 100644--- a/toonz/sources/include/toonz/txshzeraryfxlevel.h+++ b/toonz/sources/include/toonz/txshzeraryfxlevel.h@@ -27,7 +27,7 @@ class TXshZeraryFxColumn;*///=============================================================================-class DVAPI TXshZeraryFxLevel : public TXshLevel {+class DVAPI TXshZeraryFxLevel final : public TXshLevel {PERSIST_DECLARATION(TXshZeraryFxLevel)TXshZeraryFxColumn *m_zeraryFxColumn;diff --git a/toonz/sources/include/toonz/vectorizerparameters.h b/toonz/sources/include/toonz/vectorizerparameters.hindex 6b1dadcd8..eae3a3a9f 100644--- a/toonz/sources/include/toonz/vectorizerparameters.h+++ b/toonz/sources/include/toonz/vectorizerparameters.h@@ -79,7 +79,7 @@ public:specialization for the centerline vectorization method.*/-class DVAPI CenterlineConfiguration : public VectorizerConfiguration {+class DVAPI CenterlineConfiguration final : public VectorizerConfiguration {public:/*!After threshold is done, raster zones of uniform ink or paint color whosearea is under this parameter@@ -142,7 +142,7 @@ with activated region computing and painting.*/specialization for the (new) outline vectorization method.*/-class DVAPI NewOutlineConfiguration : public VectorizerConfiguration {+class DVAPI NewOutlineConfiguration final : public VectorizerConfiguration {public:double m_adherenceTol; //!< Adherence to contour cornersdouble m_angleTol; //!< Angle-based corners tolerance@@ -182,7 +182,7 @@ public:with a different outline vectorization algorithm.*/-class DVAPI OutlineConfiguration : public VectorizerConfiguration {+class DVAPI OutlineConfiguration final : public VectorizerConfiguration {public:int m_smoothness; // Outline@@ -215,7 +215,7 @@ public:\brief Container class for scene-bound vectorizer options.*/-class DVAPI VectorizerParameters : public TPersist {+class DVAPI VectorizerParameters final : public TPersist {PERSIST_DECLARATION(VectorizerParameters)public:diff --git a/toonz/sources/include/toonz4.6/raster.h b/toonz/sources/include/toonz4.6/raster.hindex 00787768e..65905c2af 100644--- a/toonz/sources/include/toonz4.6/raster.h+++ b/toonz/sources/include/toonz4.6/raster.h@@ -31,9 +31,7 @@ typedef enum {} RAS_TYPE;#ifdef VECCHIO-' typedef enum { RAS_NONE, RAS_BW, /* 1 bit, B=0, W=1, first pixel in bit 7 */ RAS_WB, /* " , W=0, B=1, " */- RAS_GR8, /* grey tones, 8 bits */- RAS_CM8, /* color-mapped, 8 bits */+' typedef enum { RAS_NONE, RAS_BW, /* 1 bit, B=0, W=1, first pixel in bit 7 */ RAS_WB, /* " , W=0, B=1, " */ RAS_GR8, /* grey tones, 8 bits */ RAS_CM8, /* color-mapped, 8 bits */RAS_GR16, /* grey tones, 16 bits */RAS_RGB16, /* RGB 5+6+5 bits, red most significant */RAS_RLEBW, /* 1 bit compressed(quick casm format) */diff --git a/toonz/sources/include/toonzqt/addfxcontextmenu.h b/toonz/sources/include/toonzqt/addfxcontextmenu.hindex 25317753d..0d099d973 100644--- a/toonz/sources/include/toonzqt/addfxcontextmenu.h+++ b/toonz/sources/include/toonzqt/addfxcontextmenu.h@@ -24,7 +24,7 @@ class PluginInformation;//! FxSchematicScene and its items!//! This method is used to create and keep updated the three menus.//! Each menus contains all toonz special effect and effect presets.-class AddFxContextMenu : public QObject {+class AddFxContextMenu final : public QObject {Q_OBJECTQMenu *m_insertMenu, *m_addMenu, *m_replaceMenu;diff --git a/toonz/sources/include/toonzqt/camerasettingswidget.h b/toonz/sources/include/toonzqt/camerasettingswidget.hindex 0a4f8aed2..14f7f2db3 100644--- a/toonz/sources/include/toonzqt/camerasettingswidget.h+++ b/toonz/sources/include/toonzqt/camerasettingswidget.h@@ -43,7 +43,7 @@ class CheckBox;//----------------------------------------------------------------class SimpleExpValidator : public QValidator {+class SimpleExpValidator final : public QValidator {public:SimpleExpValidator(QObject *parent) : QValidator(parent){};State validate(QString &input, int &pos) const override;@@ -51,7 +51,7 @@ public://---------------------------------------------------------------// for A/R input field-class SimpleExpField : public QLineEdit {+class SimpleExpField final : public QLineEdit {SimpleExpValidator *m_validator;QString m_previousValue;@@ -69,7 +69,7 @@ protected://----------------------------------------------------------------class DVAPI CameraSettingsWidget : public QFrame {+class DVAPI CameraSettingsWidget final : public QFrame {Q_OBJECTbool m_forCleanup;diff --git a/toonz/sources/include/toonzqt/colorfield.h b/toonz/sources/include/toonzqt/colorfield.hindex 04500037e..8bde1a190 100644--- a/toonz/sources/include/toonzqt/colorfield.h+++ b/toonz/sources/include/toonzqt/colorfield.h@@ -40,7 +40,7 @@ namespace DVGui {// StyleSample//------------------------------------------------------------------------------class DVAPI StyleSample : public QWidget {+class DVAPI StyleSample final : public QWidget {Q_OBJECTQImage m_samplePixmap;TRaster32P m_bgRas;@@ -86,7 +86,7 @@ signals:// ChannelField//------------------------------------------------------------------------------class DVAPI ChannelField : public QWidget {+class DVAPI ChannelField final : public QWidget {Q_OBJECTDVGui::IntLineEdit *m_channelEdit;@@ -116,7 +116,7 @@ protected slots:// ColorField//------------------------------------------------------------------------------class DVAPI ColorField : public QWidget {+class DVAPI ColorField final : public QWidget {Q_OBJECTStyleSample *m_colorSample;@@ -196,7 +196,7 @@ signals:// CleanupColorField//------------------------------------------------------------------------------class DVAPI CleanupColorField : public QWidget {+class DVAPI CleanupColorField final : public QWidget {Q_OBJECTTPaletteHandle *m_ph;diff --git a/toonz/sources/include/toonzqt/combohistogram.h b/toonz/sources/include/toonzqt/combohistogram.hindex 8df0e97b8..ada157a7b 100644--- a/toonz/sources/include/toonzqt/combohistogram.h+++ b/toonz/sources/include/toonzqt/combohistogram.h@@ -42,7 +42,7 @@ class QLabel;// 120405//------------------------------------------------------------------------------class DVAPI ComboHistoRGBLabel : public QWidget {+class DVAPI ComboHistoRGBLabel final : public QWidget {QColor m_color;public:@@ -81,7 +81,7 @@ protected://------------------------------------------------------------------------------class DVAPI RGBHistoGraph : public ChannelHistoGraph {+class DVAPI RGBHistoGraph final : public ChannelHistoGraph {Q_OBJECTQVector<int> m_rgbValues[3];@@ -99,7 +99,7 @@ protected:};//------------------------------------------------------------------------------class DVAPI ChannelColorBar : public QWidget {+class DVAPI ChannelColorBar final : public QWidget {Q_OBJECTQColor m_color;@@ -113,7 +113,7 @@ protected://------------------------------------------------------------------------------class DVAPI ChannelHisto : public QWidget {+class DVAPI ChannelHisto final : public QWidget {Q_OBJECTChannelHistoGraph *m_histogramGraph;@@ -133,7 +133,7 @@ protected slots://------------------------------------------------------------------------------class DVAPI ComboHistogram : public QWidget {+class DVAPI ComboHistogram final : public QWidget {Q_OBJECTTRasterP m_raster;diff --git a/toonz/sources/include/toonzqt/doublefield.h b/toonz/sources/include/toonzqt/doublefield.hindex d6b98a0a4..227a1ba01 100644--- a/toonz/sources/include/toonzqt/doublefield.h+++ b/toonz/sources/include/toonzqt/doublefield.h@@ -163,7 +163,7 @@ signals:can set thisvalue using setValue(), setRange() and setDecimals().*/-class DVAPI DoubleLineEdit : public DoubleValueLineEdit {+class DVAPI DoubleLineEdit final : public DoubleValueLineEdit {Q_OBJECTQDoubleValidator *m_validator;@@ -255,7 +255,7 @@ protected slots:Inherits \b PrimaryDoubleField.*/-class DVAPI MeasuredDoubleField : public DoubleValueField {+class DVAPI MeasuredDoubleField final : public DoubleValueField {Q_OBJECTpublic:diff --git a/toonz/sources/include/toonzqt/doublepairfield.h b/toonz/sources/include/toonzqt/doublepairfield.hindex bf6521269..404dbc21d 100644--- a/toonz/sources/include/toonzqt/doublepairfield.h+++ b/toonz/sources/include/toonzqt/doublepairfield.h@@ -234,7 +234,7 @@ public:\image html DoublePairField.jpg*/-class DVAPI MeasuredDoublePairField : public DoubleValuePairField {+class DVAPI MeasuredDoublePairField final : public DoubleValuePairField {public:MeasuredDoublePairField(QWidget *parent = 0, bool isMaxRangeLimited = true);~MeasuredDoublePairField() {}diff --git a/toonz/sources/include/toonzqt/dvdialog.h b/toonz/sources/include/toonzqt/dvdialog.hindex fb1bc74d8..b61e36650 100644--- a/toonz/sources/include/toonzqt/dvdialog.h+++ b/toonz/sources/include/toonzqt/dvdialog.h@@ -126,7 +126,7 @@ QString DVAPI getText(const QString &title, const QString &label,\b Result\image html DialogSeparator.jpg*/-class DVAPI Separator : public QFrame {+class DVAPI Separator final : public QFrame {Q_OBJECTQString m_name;@@ -243,7 +243,7 @@ signals:0 -> Cancel or Close Popup,1,2,3,... -> checkbox clicked.*/-class DVAPI RadioButtonDialog : public DVGui::Dialog {+class DVAPI RadioButtonDialog final : public DVGui::Dialog {Q_OBJECTint m_result;diff --git a/toonz/sources/include/toonzqt/dvscrollwidget.h b/toonz/sources/include/toonzqt/dvscrollwidget.hindex e38d5bd0c..ddbaeeb75 100644--- a/toonz/sources/include/toonzqt/dvscrollwidget.h+++ b/toonz/sources/include/toonzqt/dvscrollwidget.h@@ -62,7 +62,7 @@ class QTimer;\sa The FreeLayout class.*/-class DVAPI DvScrollWidget : public QFrame {+class DVAPI DvScrollWidget final : public QFrame {Q_OBJECTQWidget *m_content;diff --git a/toonz/sources/include/toonzqt/dvtextedit.h b/toonz/sources/include/toonzqt/dvtextedit.hindex 0490f0eb8..5b801d760 100644--- a/toonz/sources/include/toonzqt/dvtextedit.h+++ b/toonz/sources/include/toonzqt/dvtextedit.h@@ -40,7 +40,7 @@ namespace DVGui {class ColorField;//------------------------------------------------------------------------------class DvMiniToolBar : public QFrame {+class DvMiniToolBar final : public QFrame {QPoint m_dragPos;public:@@ -54,7 +54,7 @@ protected://------------------------------------------------------------------------------class DvTextEditButton : public QWidget {+class DvTextEditButton final : public QWidget {Q_OBJECTpublic:@@ -71,7 +71,7 @@ signals://------------------------------------------------------------------------------class DVAPI DvTextEdit : public QTextEdit {+class DVAPI DvTextEdit final : public QTextEdit {Q_OBJECTbool m_paintMode;diff --git a/toonz/sources/include/toonzqt/expressionfield.h b/toonz/sources/include/toonzqt/expressionfield.hindex 18f8e3bfc..f0787be12 100644--- a/toonz/sources/include/toonzqt/expressionfield.h+++ b/toonz/sources/include/toonzqt/expressionfield.h@@ -36,7 +36,7 @@ namespace DVGui {*/-class DVAPI ExpressionField : public QTextEdit {+class DVAPI ExpressionField final : public QTextEdit {Q_OBJECTbool m_editing;const TSyntax::Grammar *m_grammar;diff --git a/toonz/sources/include/toonzqt/flipconsole.h b/toonz/sources/include/toonzqt/flipconsole.hindex 356d35b30..f7d54e63c 100644--- a/toonz/sources/include/toonzqt/flipconsole.h+++ b/toonz/sources/include/toonzqt/flipconsole.h@@ -47,7 +47,7 @@ class FlipConsoleOwner;class TFrameHandle;//------------------------------------------------------------------------------class PlaybackExecutor : public QThread {+class PlaybackExecutor final : public QThread {Q_OBJECTint m_fps;@@ -71,7 +71,7 @@ signals://-----------------------------------------------------------------------------// Implements a flipbook slider with a progress bar in background.-class FlipSlider : public QAbstractSlider {+class FlipSlider final : public QAbstractSlider {Q_OBJECTQ_PROPERTY(int PBHeight READ getPBHeight WRITE setPBHeight)@@ -179,7 +179,7 @@ signals://------------------------------------------------------------------------------class DVAPI FlipConsole : public QWidget {+class DVAPI FlipConsole final : public QWidget {Q_OBJECTpublic:diff --git a/toonz/sources/include/toonzqt/framenavigator.h b/toonz/sources/include/toonzqt/framenavigator.hindex 2307265fc..34f6d8dff 100644--- a/toonz/sources/include/toonzqt/framenavigator.h+++ b/toonz/sources/include/toonzqt/framenavigator.h@@ -48,7 +48,7 @@ class TFrameHandle;(e.g. when \p m_frame is 0 then 1 is visualized).*/-class DVAPI FrameNavigator : public QToolBar {+class DVAPI FrameNavigator final : public QToolBar {Q_OBJECTTFrameHandle *m_frameHandle;diff --git a/toonz/sources/include/toonzqt/freelayout.h b/toonz/sources/include/toonzqt/freelayout.hindex 94bc6ef2c..4f575a904 100644--- a/toonz/sources/include/toonzqt/freelayout.h+++ b/toonz/sources/include/toonzqt/freelayout.h@@ -92,7 +92,7 @@ protected:scrollable environment.*/-class FreeLayout : public DummyLayout {+class FreeLayout final : public DummyLayout {public:FreeLayout() : DummyLayout() {}~FreeLayout() {}diff --git a/toonz/sources/include/toonzqt/functionkeyframenavigator.h b/toonz/sources/include/toonzqt/functionkeyframenavigator.hindex d59320951..49403a271 100644--- a/toonz/sources/include/toonzqt/functionkeyframenavigator.h+++ b/toonz/sources/include/toonzqt/functionkeyframenavigator.h@@ -11,7 +11,7 @@ class FunctionPanel;class TFrameHandle;class FrameNavigator;-class DVAPI FunctionKeyframeNavigator : public KeyframeNavigator {+class DVAPI FunctionKeyframeNavigator final : public KeyframeNavigator {Q_OBJECTTDoubleParamP m_curve;diff --git a/toonz/sources/include/toonzqt/functionpanel.h b/toonz/sources/include/toonzqt/functionpanel.hindex 68cd44ac1..7b3ca6297 100644--- a/toonz/sources/include/toonzqt/functionpanel.h+++ b/toonz/sources/include/toonzqt/functionpanel.h@@ -29,7 +29,7 @@ class FunctionSelection;//-----------------------------------------------------------------------------//! Channel edit panel (numcols + graph popup)-class FunctionPanel : public QDialog {+class FunctionPanel final : public QDialog {Q_OBJECTQColor m_bgColor;diff --git a/toonz/sources/include/toonzqt/functionsegmentviewer.h b/toonz/sources/include/toonzqt/functionsegmentviewer.hindex e7aabfa0b..5dee23b5c 100644--- a/toonz/sources/include/toonzqt/functionsegmentviewer.h+++ b/toonz/sources/include/toonzqt/functionsegmentviewer.h@@ -33,7 +33,7 @@ class ExpressionField;//------------------------------------------------------------------------------class FunctionSegmentViewer : public QFrame, public TParamObserver {+class FunctionSegmentViewer final : public QFrame, public TParamObserver {Q_OBJECTTDoubleParam *m_curve;@@ -134,7 +134,7 @@ public slots://------------------------------------------------------------------------------class SpeedInOutSegmentPage : public FunctionSegmentPage {+class SpeedInOutSegmentPage final : public FunctionSegmentPage {Q_OBJECTDVGui::LineEdit *m_speed0xFld;@@ -164,7 +164,7 @@ public slots://------------------------------------------------------------------------------class EaseInOutSegmentPage : public FunctionSegmentPage {+class EaseInOutSegmentPage final : public FunctionSegmentPage {Q_OBJECTDVGui::MeasuredDoubleLineEdit *m_ease0Fld, *m_ease1Fld;double m_fieldScale;@@ -186,7 +186,7 @@ public slots://------------------------------------------------------------------------------class FunctionExpressionSegmentPage : public FunctionSegmentPage {+class FunctionExpressionSegmentPage final : public FunctionSegmentPage {Q_OBJECTDVGui::ExpressionField *m_expressionFld;@@ -205,7 +205,7 @@ public://------------------------------------------------------------------------------class SimilarShapeSegmentPage : public FunctionSegmentPage {+class SimilarShapeSegmentPage final : public FunctionSegmentPage {Q_OBJECTDVGui::ExpressionField *m_expressionFld;diff --git a/toonz/sources/include/toonzqt/functionselection.h b/toonz/sources/include/toonzqt/functionselection.hindex e79f79fc1..711898f1d 100644--- a/toonz/sources/include/toonzqt/functionselection.h+++ b/toonz/sources/include/toonzqt/functionselection.h@@ -37,7 +37,7 @@ public://------------------------------------------------------------------------------class FunctionSelection : public QObject, public TSelection {+class FunctionSelection final : public QObject, public TSelection {Q_OBJECTQRect m_selectedCells; // yrange = rowrange of the selected keyframes;// xrange = columnrange (functionsheet only)@@ -115,7 +115,7 @@ signals://------------------------------------------------------------------------------class FunctionKeyframesData : public DvMimeData {+class FunctionKeyframesData final : public DvMimeData {public:FunctionKeyframesData();~FunctionKeyframesData();diff --git a/toonz/sources/include/toonzqt/functionsheet.h b/toonz/sources/include/toonzqt/functionsheet.hindex ae3a7a3ff..a8547522f 100644--- a/toonz/sources/include/toonzqt/functionsheet.h+++ b/toonz/sources/include/toonzqt/functionsheet.h@@ -27,7 +27,7 @@ class TDoubleParam;class TFrameHandle;class FunctionSelection;-class FunctionSheetRowViewer : public Spreadsheet::RowPanel {+class FunctionSheetRowViewer final : public Spreadsheet::RowPanel {FunctionSheet *m_sheet;public:@@ -42,7 +42,7 @@ protected:void contextMenuEvent(QContextMenuEvent *) override;};-class FunctionSheetColumnHeadViewer : public Spreadsheet::ColumnPanel {+class FunctionSheetColumnHeadViewer final : public Spreadsheet::ColumnPanel {FunctionSheet *m_sheet;// enable drag and drop the expression argumentsQPoint m_dragStartPosition;@@ -60,7 +60,7 @@ protected:void contextMenuEvent(QContextMenuEvent *) override;};-class FunctionSheetCellViewer : public Spreadsheet::CellPanel {+class FunctionSheetCellViewer final : public Spreadsheet::CellPanel {Q_OBJECTFunctionSheet *m_sheet;DVGui::LineEdit *m_lineEdit;@@ -85,7 +85,7 @@ private slots:void onCellEditorEditingFinished();};-class FunctionSheet : public SpreadsheetViewer {+class FunctionSheet final : public SpreadsheetViewer {Q_OBJECTpublic:diff --git a/toonz/sources/include/toonzqt/functiontoolbar.h b/toonz/sources/include/toonzqt/functiontoolbar.hindex 90a84e141..28694dee2 100644--- a/toonz/sources/include/toonzqt/functiontoolbar.h+++ b/toonz/sources/include/toonzqt/functiontoolbar.h@@ -54,7 +54,7 @@ public:// FunctionToolbar declaration//*************************************************************************-class FunctionToolbar : public DVGui::ToolBar, public TParamObserver {+class FunctionToolbar final : public DVGui::ToolBar, public TParamObserver {Q_OBJECTQToolBar *m_valueToolbar, *m_keyframeToolbar;diff --git a/toonz/sources/include/toonzqt/functiontreeviewer.h b/toonz/sources/include/toonzqt/functiontreeviewer.hindex 507fbda58..399679280 100644--- a/toonz/sources/include/toonzqt/functiontreeviewer.h+++ b/toonz/sources/include/toonzqt/functiontreeviewer.h@@ -70,7 +70,7 @@ class FunctionViewer;TnzExt library).*/-class FunctionTreeModel : public TreeModel, public TParamObserver {+class FunctionTreeModel final : public TreeModel, public TParamObserver {Q_OBJECTpublic:@@ -153,7 +153,9 @@ color, which//----------------------------------------------------------------------------------//! The model item representing a channel (i.e. a real-valued function).- class Channel : public ParamWrapper, public Item, public TParamObserver {+ class Channel final : public ParamWrapper,+ public Item,+ public TParamObserver {FunctionTreeModel *m_model; //!< (\p not \p owned) Reference to the modelChannelGroup*m_group; //!< (\p not \p owned) Reference to the enclosing group@@ -312,7 +314,7 @@ public://=============================================================================-class FxChannelGroup : public FunctionTreeModel::ChannelGroup {+class FxChannelGroup final : public FunctionTreeModel::ChannelGroup {public:TFx *m_fx;@@ -340,7 +342,7 @@ public://! TreeView with stage object and fx channels. controls channel visibility and//! current channel-class FunctionTreeView : public TreeView {+class FunctionTreeView final : public TreeView {Q_OBJECTTFilePath m_scenePath;diff --git a/toonz/sources/include/toonzqt/functionviewer.h b/toonz/sources/include/toonzqt/functionviewer.hindex 56c81b2dc..ed7b2d357 100644--- a/toonz/sources/include/toonzqt/functionviewer.h+++ b/toonz/sources/include/toonzqt/functionviewer.h@@ -63,7 +63,7 @@ class ValueField;//************************************************************************// Function editor widget-class DVAPI FunctionViewer : public QSplitter {+class DVAPI FunctionViewer final : public QSplitter {Q_OBJECTpublic:diff --git a/toonz/sources/include/toonzqt/fxhistogramrender.h b/toonz/sources/include/toonzqt/fxhistogramrender.hindex b968826f1..4d350ff60 100644--- a/toonz/sources/include/toonzqt/fxhistogramrender.h+++ b/toonz/sources/include/toonzqt/fxhistogramrender.h@@ -35,7 +35,7 @@ class ToonzScene;//! Implements the TRenderPort virtual class//! This class receives and handles signals from the TThread::Runnable class//! that make the render of frame.-class FxHistogramRenderPort : public QObject, public TRenderPort {+class FxHistogramRenderPort final : public QObject, public TRenderPort {Q_OBJECTpublic:@@ -56,7 +56,7 @@ signals:// FxHistogramRender//----------------------------------------------------------class DVAPI FxHistogramRender : public QObject {+class DVAPI FxHistogramRender final : public QObject {Q_OBJECTprivate:diff --git a/toonz/sources/include/toonzqt/fxschematicnode.h b/toonz/sources/include/toonzqt/fxschematicnode.hindex 760426a46..cf69b8c50 100644--- a/toonz/sources/include/toonzqt/fxschematicnode.h+++ b/toonz/sources/include/toonzqt/fxschematicnode.h@@ -58,7 +58,7 @@ enum eFxType {// FxColumnPainter//*****************************************************-class FxColumnPainter : public QObject, public QGraphicsItem {+class FxColumnPainter final : public QObject, public QGraphicsItem {Q_OBJECTQ_INTERFACES(QGraphicsItem)@@ -91,7 +91,7 @@ protected:// FxPalettePainter//*****************************************************-class FxPalettePainter : public QGraphicsItem, public QObject {+class FxPalettePainter final : public QGraphicsItem, public QObject {FxSchematicPaletteNode *m_parent;double m_width, m_height;QString m_name;@@ -114,7 +114,7 @@ protected:// FxPainter//*****************************************************-class FxPainter : public QObject, public QGraphicsItem {+class FxPainter final : public QObject, public QGraphicsItem {Q_OBJECTQ_INTERFACES(QGraphicsItem)@@ -147,7 +147,7 @@ protected:// FxXSheetPainter//*****************************************************-class FxXSheetPainter : public QObject, public QGraphicsItem {+class FxXSheetPainter final : public QObject, public QGraphicsItem {Q_OBJECTQ_INTERFACES(QGraphicsItem)@@ -171,7 +171,7 @@ protected:// FxOutputPainter//*****************************************************-class FxOutputPainter : public QObject, public QGraphicsItem {+class FxOutputPainter final : public QObject, public QGraphicsItem {Q_OBJECTQ_INTERFACES(QGraphicsItem)@@ -195,7 +195,7 @@ protected:// FxSchematicLink//*****************************************************-class FxSchematicLink : public SchematicLink {+class FxSchematicLink final : public SchematicLink {Q_OBJECTpublic:@@ -210,7 +210,7 @@ protected:// FxSchematicPort//*****************************************************-class FxSchematicPort : public SchematicPort {+class FxSchematicPort final : public SchematicPort {TFx *m_ownerFx;FxSchematicPort *m_currentTargetPort;QList<SchematicLink *> m_hiddenLinks;@@ -256,7 +256,7 @@ private:// FxSchematicDock//*****************************************************-class FxSchematicDock : public QGraphicsItem, public QObject {+class FxSchematicDock final : public QGraphicsItem, public QObject {QString m_name;double m_width;FxSchematicPort *m_port;@@ -373,7 +373,7 @@ signals:// FxSchematicOutputNode//*****************************************************-class FxSchematicOutputNode : public FxSchematicNode {+class FxSchematicOutputNode final : public FxSchematicNode {FxOutputPainter *m_outputPainter;public:@@ -392,7 +392,7 @@ protected:// FxSchematicXSheetNode//*****************************************************-class FxSchematicXSheetNode : public FxSchematicNode {+class FxSchematicXSheetNode final : public FxSchematicNode {FxXSheetPainter *m_xsheetPainter;public:@@ -411,7 +411,7 @@ protected:// FxSchematicNormalFxNode//*****************************************************-class FxSchematicNormalFxNode : public FxSchematicNode {+class FxSchematicNormalFxNode final : public FxSchematicNode {Q_OBJECTFxPainter *m_painter;@@ -440,7 +440,7 @@ protected slots:// FxSchematicZeraryNode//*****************************************************-class FxSchematicZeraryNode : public FxSchematicNode {+class FxSchematicZeraryNode final : public FxSchematicNode {Q_OBJECTFxPainter *m_painter;@@ -473,7 +473,7 @@ protected slots:// FxSchematicColumnNode//*****************************************************-class FxSchematicColumnNode : public FxSchematicNode {+class FxSchematicColumnNode final : public FxSchematicNode {Q_OBJECTSchematicThumbnailToggle *m_resizeItem;@@ -515,7 +515,7 @@ protected slots:// FxSchematicPaletteNode//*****************************************************-class FxSchematicPaletteNode : public FxSchematicNode {+class FxSchematicPaletteNode final : public FxSchematicNode {Q_OBJECTSchematicToggle *m_renderToggle;@@ -551,7 +551,7 @@ private:// FxGroupNode//*****************************************************-class FxGroupNode : public FxSchematicNode {+class FxGroupNode final : public FxSchematicNode {Q_OBJECTQList<TFxP> m_groupedFxs;diff --git a/toonz/sources/include/toonzqt/fxschematicscene.h b/toonz/sources/include/toonzqt/fxschematicscene.hindex a9cdc081d..cd35c45b5 100644--- a/toonz/sources/include/toonzqt/fxschematicscene.h+++ b/toonz/sources/include/toonzqt/fxschematicscene.h@@ -30,7 +30,7 @@ class TMacroFx;////==================================================================-class FxSchematicScene : public SchematicScene {+class FxSchematicScene final : public SchematicScene {Q_OBJECT//----------------------------------------------------diff --git a/toonz/sources/include/toonzqt/fxselection.h b/toonz/sources/include/toonzqt/fxselection.hindex 9def0cedb..69fa297e1 100644--- a/toonz/sources/include/toonzqt/fxselection.h+++ b/toonz/sources/include/toonzqt/fxselection.h@@ -27,7 +27,7 @@ using namespace TFxCommand;////----------------------------------------------------------class FxSelection : public QObject, public TSelection {+class FxSelection final : public QObject, public TSelection {Q_OBJECTQList<Link> m_selectedLinks;diff --git a/toonz/sources/include/toonzqt/fxsettings.h b/toonz/sources/include/toonzqt/fxsettings.hindex f190a30b1..6f357c9aa 100644--- a/toonz/sources/include/toonzqt/fxsettings.h+++ b/toonz/sources/include/toonzqt/fxsettings.h@@ -55,7 +55,7 @@ class ToonzScene;Inherits \b QWidget.*/-class DVAPI ParamsPage : public QFrame {+class DVAPI ParamsPage final : public QFrame {Q_OBJECTQColor m_textColor; /*-- 文字の色 デフォルト黒 --*/@@ -126,7 +126,7 @@ public:Inherits \b QWidget.*/-class DVAPI ParamsPageSet : public QWidget {+class DVAPI ParamsPageSet final : public QWidget {Q_OBJECTTabBarContainter *m_tabBarContainer;@@ -186,7 +186,7 @@ protected slots:Inherits \b QWidget.*/-class DVAPI ParamViewer : public QFrame {+class DVAPI ParamViewer final : public QFrame {Q_OBJECTTFxP m_fx;@@ -230,7 +230,7 @@ signals:*/class QActionGroup;-class DVAPI FxSettings : public QSplitter {+class DVAPI FxSettings final : public QSplitter {Q_OBJECTQToolBar *m_toolBar;diff --git a/toonz/sources/include/toonzqt/gutil.h b/toonz/sources/include/toonzqt/gutil.hindex 483a61844..a7236fdf0 100644--- a/toonz/sources/include/toonzqt/gutil.h+++ b/toonz/sources/include/toonzqt/gutil.h@@ -154,7 +154,7 @@ QPainterPath DVAPI strokeToPainterPath(TStroke *stroke);// using the styleSheet.// It is also used to take 6px on the left before the tabBar-class DVAPI TabBarContainter : public QFrame {+class DVAPI TabBarContainter final : public QFrame {public:TabBarContainter(QWidget *parent = 0);@@ -166,7 +166,7 @@ protected:// This widget is only used to set the background color of the playToolBar// using the styleSheet. And to put a line in the upper zone-class DVAPI ToolBarContainer : public QFrame {+class DVAPI ToolBarContainer final : public QFrame {public:ToolBarContainer(QWidget *parent = 0);diff --git a/toonz/sources/include/toonzqt/histogram.h b/toonz/sources/include/toonzqt/histogram.hindex 8a967a203..1f464b6d8 100644--- a/toonz/sources/include/toonzqt/histogram.h+++ b/toonz/sources/include/toonzqt/histogram.h@@ -34,7 +34,7 @@ class QColor;// HistogramGraph//------------------------------------------------------------------------------class DVAPI HistogramGraph : public QWidget {+class DVAPI HistogramGraph final : public QWidget {Q_OBJECTQColor m_color;@@ -72,7 +72,7 @@ protected:// ChannelBar//------------------------------------------------------------------------------class DVAPI ChannelBar : public QWidget {+class DVAPI ChannelBar final : public QWidget {Q_OBJECTQColor m_color;@@ -101,7 +101,7 @@ protected:// HistogramView//------------------------------------------------------------------------------class DVAPI HistogramView : public QWidget {+class DVAPI HistogramView final : public QWidget {Q_OBJECTHistogramGraph *m_histogramGraph;@@ -136,7 +136,7 @@ public:// Histograms//------------------------------------------------------------------------------class DVAPI Histograms : public QStackedWidget {+class DVAPI Histograms final : public QStackedWidget {Q_OBJECTTRasterP m_raster;@@ -163,7 +163,7 @@ protected:// Histogram//------------------------------------------------------------------------------class DVAPI Histogram : public QWidget {+class DVAPI Histogram final : public QWidget {Q_OBJECTQComboBox *m_channelsListBox;diff --git a/toonz/sources/include/toonzqt/icongenerator.h b/toonz/sources/include/toonzqt/icongenerator.hindex c68d2b17f..ef7f3a88d 100644--- a/toonz/sources/include/toonzqt/icongenerator.h+++ b/toonz/sources/include/toonzqt/icongenerator.h@@ -63,7 +63,7 @@ class TOfflineGL;once an icon has been generated.*/-class DVAPI IconGenerator : public QObject {+class DVAPI IconGenerator final : public QObject {Q_OBJECTpublic:diff --git a/toonz/sources/include/toonzqt/imageutils.h b/toonz/sources/include/toonzqt/imageutils.hindex 8aba5d4d4..357706d46 100644--- a/toonz/sources/include/toonzqt/imageutils.h+++ b/toonz/sources/include/toonzqt/imageutils.h@@ -41,7 +41,7 @@ namespace ImageUtils {/*!\brief Notify that a task on a single frame is completed.*/-class DVAPI FrameTaskNotifier : public QObject {+class DVAPI FrameTaskNotifier final : public QObject {Q_OBJECTint m_errorCount, m_warningCount;@@ -144,7 +144,7 @@ void DVAPI getStrokeStyleInformationInArea(widgets (specifically, context menus).*/-class DVAPI FullScreenWidget : public QWidget {+class DVAPI FullScreenWidget final : public QWidget {Q_OBJECTQWidget *m_widget; //!< (Owned) The content widget.diff --git a/toonz/sources/include/toonzqt/infoviewer.h b/toonz/sources/include/toonzqt/infoviewer.hindex 5d42d6f8d..b64693965 100644--- a/toonz/sources/include/toonzqt/infoviewer.h+++ b/toonz/sources/include/toonzqt/infoviewer.h@@ -22,7 +22,7 @@ class TFilePath;class TPalette;class InfoViewerImp;-class DVAPI InfoViewer : public DVGui::Dialog {+class DVAPI InfoViewer final : public DVGui::Dialog {Q_OBJECTstd::unique_ptr<InfoViewerImp> m_imp;QWidget *m_parent;diff --git a/toonz/sources/include/toonzqt/intfield.h b/toonz/sources/include/toonzqt/intfield.hindex f18ae044e..09748959e 100644--- a/toonz/sources/include/toonzqt/intfield.h+++ b/toonz/sources/include/toonzqt/intfield.h@@ -31,7 +31,7 @@ namespace DVGui {Inherits \b QWidget.*/-class DVAPI RollerField : public QWidget {+class DVAPI RollerField final : public QWidget {Q_OBJECTdouble m_value;diff --git a/toonz/sources/include/toonzqt/keyframenavigator.h b/toonz/sources/include/toonzqt/keyframenavigator.hindex cf4c0bdeb..7760e7ec2 100644--- a/toonz/sources/include/toonzqt/keyframenavigator.h+++ b/toonz/sources/include/toonzqt/keyframenavigator.h@@ -95,7 +95,7 @@ protected:// ViewerKeyframeNavigator//------------------------------------------------------------------------------class DVAPI ViewerKeyframeNavigator : public KeyframeNavigator {+class DVAPI ViewerKeyframeNavigator final : public KeyframeNavigator {Q_OBJECTTObjectHandle *m_objectHandle;@@ -141,7 +141,7 @@ protected:// PaletteKeyframeNavigator//------------------------------------------------------------------------------class DVAPI PaletteKeyframeNavigator : public KeyframeNavigator {+class DVAPI PaletteKeyframeNavigator final : public KeyframeNavigator {Q_OBJECTTPaletteHandle *m_paletteHandle;@@ -192,7 +192,7 @@ protected:// FxKeyframeNavigator//------------------------------------------------------------------------------class DVAPI FxKeyframeNavigator : public KeyframeNavigator {+class DVAPI FxKeyframeNavigator final : public KeyframeNavigator {Q_OBJECTTFxHandle *m_fxHandle;diff --git a/toonz/sources/include/toonzqt/marksbar.h b/toonz/sources/include/toonzqt/marksbar.hindex 9db1ebd0b..1fffa4198 100644--- a/toonz/sources/include/toonzqt/marksbar.h+++ b/toonz/sources/include/toonzqt/marksbar.h@@ -26,7 +26,7 @@/*!A MarksBar is a generalized slider with multiple values.*/-class DVAPI MarksBar : public QFrame {+class DVAPI MarksBar final : public QFrame {Q_OBJECTprotected:diff --git a/toonz/sources/include/toonzqt/menubarcommand.h b/toonz/sources/include/toonzqt/menubarcommand.hindex b60463eee..869b1be6d 100644--- a/toonz/sources/include/toonzqt/menubarcommand.h+++ b/toonz/sources/include/toonzqt/menubarcommand.h@@ -181,7 +181,7 @@ public://template <class T>-class CommandHandlerHelper : public CommandHandlerInterface {+class CommandHandlerHelper final : public CommandHandlerInterface {T *m_target;void (T::*m_method)();@@ -192,7 +192,7 @@ public:};template <class T, typename R>-class CommandHandlerHelper2 : public CommandHandlerInterface {+class CommandHandlerHelper2 final : public CommandHandlerInterface {T *m_target;void (T::*m_method)(R value);R m_value;@@ -222,7 +222,7 @@ public:};template <class T>-class OpenPopupCommandHandler : public MenuItemHandler {+class OpenPopupCommandHandler final : public MenuItemHandler {T *m_popup;CommandId m_id;@@ -240,7 +240,7 @@ public://------------------------------------------------------------------------------class DVAPI DVAction : public QAction {+class DVAPI DVAction final : public QAction {Q_OBJECTpublic:DVAction(const QString &text, QObject *parent);@@ -252,7 +252,7 @@ public slots://------------------------------------------------------------------------------class DVAPI DVMenuAction : public QMenu {+class DVAPI DVMenuAction final : public QMenu {Q_OBJECTint m_triggeredActionIndex;diff --git a/toonz/sources/include/toonzqt/paletteviewer.h b/toonz/sources/include/toonzqt/paletteviewer.hindex 2daf91ad1..a42a069b1 100644--- a/toonz/sources/include/toonzqt/paletteviewer.h+++ b/toonz/sources/include/toonzqt/paletteviewer.h@@ -40,7 +40,7 @@ class TXsheetHandle;// PaletteViewer//------------------------------------------------------------------------------class DVAPI PaletteViewer : public QFrame {+class DVAPI PaletteViewer final : public QFrame {Q_OBJECTpublic:diff --git a/toonz/sources/include/toonzqt/paletteviewergui.h b/toonz/sources/include/toonzqt/paletteviewergui.hindex 513635c40..390722c22 100644--- a/toonz/sources/include/toonzqt/paletteviewergui.h+++ b/toonz/sources/include/toonzqt/paletteviewergui.h@@ -76,7 +76,7 @@ enum PaletteViewType //! Possible palette contents of a Palette Viewer.// PageViewer declaration//****************************************************************************-class DVAPI PageViewer : public QFrame, public TSelection::View {+class DVAPI PageViewer final : public QFrame, public TSelection::View {Q_OBJECTQColor m_textColor; // text color used for list view@@ -237,7 +237,7 @@ signals:// PaletteTabBar declaration//****************************************************************************-class DVAPI PaletteTabBar : public QTabBar {+class DVAPI PaletteTabBar final : public QTabBar {Q_OBJECTpublic:@@ -284,7 +284,7 @@ private:in the widgets hierarchy.*/-class DVAPI PaletteIconWidget : public QWidget {+class DVAPI PaletteIconWidget final : public QWidget {Q_OBJECTpublic:diff --git a/toonz/sources/include/toonzqt/paramfield.h b/toonz/sources/include/toonzqt/paramfield.hindex 1d42cc668..126cd18fb 100644--- a/toonz/sources/include/toonzqt/paramfield.h+++ b/toonz/sources/include/toonzqt/paramfield.h@@ -103,7 +103,7 @@ signals:// ParamFieldKeyToggle//------------------------------------------------------------------------------class DVAPI ParamFieldKeyToggle : public QWidget {+class DVAPI ParamFieldKeyToggle final : public QWidget {Q_OBJECTpublic:@@ -136,7 +136,7 @@ signals:// FxSettingsKeyToggleUndo//=============================================================================template <class T, class ParamP>-class FxSettingsKeyToggleUndo : public TUndo {+class FxSettingsKeyToggleUndo final : public TUndo {TFxHandle *m_fxHandle;QString m_name;bool m_wasKeyframe;@@ -283,7 +283,7 @@ public:// MeasuredDoubleParamField//------------------------------------------------------------------------------class DVAPI MeasuredDoubleParamField+class DVAPI MeasuredDoubleParamField final: public AnimatedParamField<double, TDoubleParamP> {Q_OBJECT@@ -306,7 +306,7 @@ protected slots:// RangeParamField//------------------------------------------------------------------------------class DVAPI MeasuredRangeParamField+class DVAPI MeasuredRangeParamField final: public AnimatedParamField<DoublePair, TRangeParamP> {Q_OBJECT@@ -330,7 +330,8 @@ protected slots:// PointParamField//------------------------------------------------------------------------------class DVAPI PointParamField : public AnimatedParamField<TPointD, TPointParamP> {+class DVAPI PointParamField final+ : public AnimatedParamField<TPointD, TPointParamP> {Q_OBJECTDVGui::MeasuredDoubleField *m_xFld, *m_yFld;@@ -353,7 +354,7 @@ protected slots:// PixelParamField//------------------------------------------------------------------------------class DVAPI PixelParamField+class DVAPI PixelParamField final: public AnimatedParamField<TPixel32, TPixelParamP> {Q_OBJECT@@ -382,7 +383,7 @@ protected slots:// RGB Link Button//------------------------------------------------------------------------------class DVAPI RgbLinkButton : public QPushButton {+class DVAPI RgbLinkButton final : public QPushButton {Q_OBJECTPixelParamField *m_field1, *m_field2;@@ -398,7 +399,7 @@ protected slots:// SpectrumParamField//------------------------------------------------------------------------------class DVAPI SpectrumParamField+class DVAPI SpectrumParamField final: public AnimatedParamField<TSpectrum, TSpectrumParamP> {Q_OBJECT@@ -425,7 +426,7 @@ protected slots:// EnumParamField//------------------------------------------------------------------------------class EnumParamField : public ParamField {+class EnumParamField final : public ParamField {Q_OBJECTTIntEnumParamP m_currentParam, m_actualParam;@@ -448,7 +449,7 @@ protected slots:// BoolParamField//------------------------------------------------------------------------------class DVAPI BoolParamField : public ParamField {+class DVAPI BoolParamField final : public ParamField {Q_OBJECTTBoolParamP m_currentParam, m_actualParam;@@ -475,7 +476,7 @@ signals:// IntParamField//------------------------------------------------------------------------------class DVAPI IntParamField : public ParamField {+class DVAPI IntParamField final : public ParamField {Q_OBJECTTIntParamP m_currentParam, m_actualParam;@@ -500,7 +501,7 @@ protected slots:// StringParamField//------------------------------------------------------------------------------class DVAPI StringParamField : public ParamField {+class DVAPI StringParamField final : public ParamField {Q_OBJECTTStringParamP m_currentParam, m_actualParam;@@ -522,7 +523,7 @@ protected slots:// ToneCurveParamField//------------------------------------------------------------------------------class DVAPI ToneCurveParamField+class DVAPI ToneCurveParamField final: public AnimatedParamField<const QList<TPointD>, TToneCurveParamP> {Q_OBJECT@@ -550,7 +551,7 @@ protected slots:};namespace component {-class DVAPI LineEdit_double : public ParamField {+class DVAPI LineEdit_double final : public ParamField {Q_OBJECT; // could not use templates for Q_OBJECTint frame_;@@ -569,7 +570,7 @@ protected slots:void update_value(QString const &text); // could not use MACROs for slots};-class DVAPI Slider_double : public ParamField {+class DVAPI Slider_double final : public ParamField {Q_OBJECT;int frame_;@@ -588,7 +589,7 @@ protected slots:void update_value(int);};-class DVAPI SpinBox_double : public ParamField {+class DVAPI SpinBox_double final : public ParamField {Q_OBJECT;int frame_;@@ -609,7 +610,7 @@ protected slots:}namespace component {-class DVAPI LineEdit_int : public ParamField {+class DVAPI LineEdit_int final : public ParamField {Q_OBJECT;int frame_;@@ -628,7 +629,7 @@ protected slots:void update_value(QString const &text);};-class DVAPI Slider_int : public ParamField {+class DVAPI Slider_int final : public ParamField {Q_OBJECT;int frame_;@@ -647,7 +648,7 @@ protected slots:void update_value(int);};-class DVAPI SpinBox_int : public ParamField {+class DVAPI SpinBox_int final : public ParamField {Q_OBJECT;int frame_;@@ -669,7 +670,7 @@ protected slots:} // end of namespace componentnamespace component {-class DVAPI CheckBox_bool : public ParamField {+class DVAPI CheckBox_bool final : public ParamField {Q_OBJECT;int frame_;@@ -691,7 +692,7 @@ protected slots:} // end of namespace componentnamespace component {-class DVAPI RadioButton_enum : public ParamField {+class DVAPI RadioButton_enum final : public ParamField {Q_OBJECT;int frame_;@@ -710,7 +711,7 @@ protected slots:void update_value(int);};-class DVAPI ComboBox_enum : public ParamField {+class DVAPI ComboBox_enum final : public ParamField {Q_OBJECT;int frame_;@@ -731,7 +732,7 @@ protected slots:} // end of namespace componentnamespace component {-class DVAPI LineEdit_string : public ParamField {+class DVAPI LineEdit_string final : public ParamField {Q_OBJECT;int frame_;diff --git a/toonz/sources/include/toonzqt/planeviewer.h b/toonz/sources/include/toonzqt/planeviewer.hindex 8802dac3e..c53fe07f1 100644--- a/toonz/sources/include/toonzqt/planeviewer.h+++ b/toonz/sources/include/toonzqt/planeviewer.h@@ -52,8 +52,8 @@ class TVectorImageP;*//*-CAUTION : Changing PlaneViewer to inherit QOpenGLWidget causes crash bug with-shader fx for some unknown reasons. So I will reluctantly keep using the+CAUTION : Changing PlaneViewer to inherit QOpenGLWidget causes crash bug with+shader fx for some unknown reasons. So I will reluctantly keep using theobsolete class until the shader fx being overhauled. 2016/6/22 Shun*/diff --git a/toonz/sources/include/toonzqt/rasterimagedata.h b/toonz/sources/include/toonzqt/rasterimagedata.hindex ad69f7100..160f40b0d 100644--- a/toonz/sources/include/toonzqt/rasterimagedata.h+++ b/toonz/sources/include/toonzqt/rasterimagedata.h@@ -71,7 +71,7 @@ public:// ToonzImageData//-------------------------------------------------------------------/*-- SelectionToolで選択した画像のデータ --*/-class DVAPI ToonzImageData : public RasterImageData {+class DVAPI ToonzImageData final : public RasterImageData {TRasterCM32P m_copiedRaster;TPaletteP m_palette;@@ -106,7 +106,7 @@ public:// FullColorImageData//--------------------------------------------------------------------class DVAPI FullColorImageData : public RasterImageData {+class DVAPI FullColorImageData final : public RasterImageData {TRasterP m_copiedRaster;TPaletteP m_palette;diff --git a/toonz/sources/include/toonzqt/schematicgroupeditor.h b/toonz/sources/include/toonzqt/schematicgroupeditor.hindex 25259d9bb..5bf7ee3f8 100644--- a/toonz/sources/include/toonzqt/schematicgroupeditor.h+++ b/toonz/sources/include/toonzqt/schematicgroupeditor.h@@ -83,7 +83,7 @@ private:////=====================================================-class DVAPI FxSchematicGroupEditor : public SchematicWindowEditor {+class DVAPI FxSchematicGroupEditor final : public SchematicWindowEditor {Q_OBJECTint m_groupId;@@ -111,7 +111,7 @@ private:////=====================================================-class DVAPI FxSchematicMacroEditor : public SchematicWindowEditor {+class DVAPI FxSchematicMacroEditor final : public SchematicWindowEditor {Q_OBJECTTMacroFx *m_macro;@@ -143,7 +143,7 @@ private:////=====================================================-class DVAPI StageSchematicGroupEditor : public SchematicWindowEditor {+class DVAPI StageSchematicGroupEditor final : public SchematicWindowEditor {Q_OBJECTint m_groupId;diff --git a/toonz/sources/include/toonzqt/schematicnode.h b/toonz/sources/include/toonzqt/schematicnode.hindex 7e0c771e3..709efef59 100644--- a/toonz/sources/include/toonzqt/schematicnode.h+++ b/toonz/sources/include/toonzqt/schematicnode.h@@ -15,7 +15,7 @@ class SchematicPort;////========================================================-class SchematicName : public QGraphicsTextItem {+class SchematicName final : public QGraphicsTextItem {Q_OBJECTdouble m_width;double m_height;@@ -47,7 +47,7 @@ protected slots:////========================================================-class SchematicThumbnailToggle : public QObject, public QGraphicsItem {+class SchematicThumbnailToggle final : public QObject, public QGraphicsItem {Q_OBJECT#ifndef MACOSXQ_INTERFACES(QGraphicsItem)@@ -131,7 +131,7 @@ signals://========================================================-class SchematicToggle_SplineOptions : public SchematicToggle {+class SchematicToggle_SplineOptions final : public SchematicToggle {Q_OBJECTpublic:SchematicToggle_SplineOptions(SchematicNode *parent, const QPixmap &pixmap,diff --git a/toonz/sources/include/toonzqt/schematicviewer.h b/toonz/sources/include/toonzqt/schematicviewer.hindex 505f06a12..5a221f57e 100644--- a/toonz/sources/include/toonzqt/schematicviewer.h+++ b/toonz/sources/include/toonzqt/schematicviewer.h@@ -97,7 +97,7 @@ protected slots:////==================================================================-class DVAPI SchematicSceneViewer : public QGraphicsView {+class DVAPI SchematicSceneViewer final : public QGraphicsView {Q_OBJECTpublic:@@ -139,7 +139,7 @@ private:////==================================================================-class DVAPI SchematicViewer : public QWidget {+class DVAPI SchematicViewer final : public QWidget {Q_OBJECTpublic:diff --git a/toonz/sources/include/toonzqt/screenboard.h b/toonz/sources/include/toonzqt/screenboard.hindex 030b6185e..47a63d5c0 100644--- a/toonz/sources/include/toonzqt/screenboard.h+++ b/toonz/sources/include/toonzqt/screenboard.h@@ -70,7 +70,7 @@ listbe refreshed to keep it to a minimum.*/-class DVAPI ScreenBoard : public QObject {+class DVAPI ScreenBoard final : public QObject {Q_OBJECTpublic:diff --git a/toonz/sources/include/toonzqt/scriptconsole.h b/toonz/sources/include/toonzqt/scriptconsole.hindex bc139127c..0ee099c5e 100644--- a/toonz/sources/include/toonzqt/scriptconsole.h+++ b/toonz/sources/include/toonzqt/scriptconsole.h@@ -18,7 +18,7 @@ class ScriptEngine;#define DVVAR DV_IMPORT_VAR#endif-class DVAPI ScriptConsole : public QTextEdit {+class DVAPI ScriptConsole final : public QTextEdit {Q_OBJECTScriptEngine *m_engine;diff --git a/toonz/sources/include/toonzqt/spectrumfield.h b/toonz/sources/include/toonzqt/spectrumfield.hindex 09ea03f8e..8f9bb7b39 100644--- a/toonz/sources/include/toonzqt/spectrumfield.h+++ b/toonz/sources/include/toonzqt/spectrumfield.h@@ -28,7 +28,7 @@ namespace DVGui {// SpectrumBar//------------------------------------------------------------------------------class DVAPI SpectrumBar : public QWidget {+class DVAPI SpectrumBar final : public QWidget {Q_OBJECTint m_x0;@@ -89,7 +89,7 @@ protected:// SpectrumField//------------------------------------------------------------------------------class DVAPI SpectrumField : public QWidget {+class DVAPI SpectrumField final : public QWidget {Q_OBJECTint m_margin;diff --git a/toonz/sources/include/toonzqt/spreadsheetviewer.h b/toonz/sources/include/toonzqt/spreadsheetviewer.hindex a7b9e7987..9e95be495 100644--- a/toonz/sources/include/toonzqt/spreadsheetviewer.h+++ b/toonz/sources/include/toonzqt/spreadsheetviewer.h@@ -63,7 +63,7 @@ public://--------------------------------------------------------------------class DVAPI SetFrameDragTool : public DragTool {+class DVAPI SetFrameDragTool final : public DragTool {TFrameHandle *m_frameHandle;public:@@ -76,7 +76,7 @@ public://--------------------------------------------------------------------class DVAPI SelectionDragTool : public DragTool {+class DVAPI SelectionDragTool final : public DragTool {SpreadsheetViewer *m_viewer;int m_firstRow, m_firstCol;@@ -90,7 +90,7 @@ public://--------------------------------------------------------------------class DVAPI PanTool : public DragTool {+class DVAPI PanTool final : public DragTool {SpreadsheetViewer *m_viewer;GenericPanel *m_panel;QPoint m_lastPos;@@ -105,7 +105,7 @@ public://--------------------------------------------------------------------class DVAPI ScrollArea : public QScrollArea {+class DVAPI ScrollArea final : public QScrollArea {Q_OBJECTpublic:diff --git a/toonz/sources/include/toonzqt/stageobjectsdata.h b/toonz/sources/include/toonzqt/stageobjectsdata.hindex 4e5522c7a..8b2803fa1 100644--- a/toonz/sources/include/toonzqt/stageobjectsdata.h+++ b/toonz/sources/include/toonzqt/stageobjectsdata.h@@ -50,7 +50,7 @@ class TFxSet;//! StageObjectsData is the class used to store multiple schematic stage//! object's relational data.-class DVAPI StageObjectsData : public DvMimeData {+class DVAPI StageObjectsData final : public DvMimeData {QList<TStageObjectDataElement *>m_elements; //!< The collection of single stage object//!< relational data (owned)diff --git a/toonz/sources/include/toonzqt/stageschematicnode.h b/toonz/sources/include/toonzqt/stageschematicnode.hindex 850f899eb..c70a8c214 100644--- a/toonz/sources/include/toonzqt/stageschematicnode.h+++ b/toonz/sources/include/toonzqt/stageschematicnode.h@@ -39,7 +39,7 @@ enum eStageSchematicPortType {////========================================================-class ColumnPainter : public QObject, public QGraphicsItem {+class ColumnPainter final : public QObject, public QGraphicsItem {Q_OBJECTQ_INTERFACES(QGraphicsItem)@@ -72,7 +72,7 @@ public slots:////========================================================-class GroupPainter : public QObject, public QGraphicsItem {+class GroupPainter final : public QObject, public QGraphicsItem {Q_OBJECTQ_INTERFACES(QGraphicsItem)@@ -99,7 +99,7 @@ protected:////========================================================-class PegbarPainter : public QObject, public QGraphicsItem {+class PegbarPainter final : public QObject, public QGraphicsItem {Q_OBJECTQ_INTERFACES(QGraphicsItem)@@ -126,7 +126,7 @@ protected:////========================================================-class CameraPainter : public QObject, public QGraphicsItem {+class CameraPainter final : public QObject, public QGraphicsItem {Q_OBJECTQ_INTERFACES(QGraphicsItem)@@ -154,7 +154,7 @@ protected:////========================================================-class TablePainter : public QObject, public QGraphicsItem {+class TablePainter final : public QObject, public QGraphicsItem {Q_OBJECTQ_INTERFACES(QGraphicsItem)@@ -178,7 +178,7 @@ protected:////========================================================-class SplinePainter : public QObject, public QGraphicsItem {+class SplinePainter final : public QObject, public QGraphicsItem {Q_OBJECTQ_INTERFACES(QGraphicsItem)@@ -205,7 +205,7 @@ protected:////========================================================-class StageSchematicNodePort : public SchematicPort {+class StageSchematicNodePort final : public SchematicPort {QString m_handle;public:@@ -232,7 +232,7 @@ private:////========================================================-class StageSchematicSplinePort : public SchematicPort {+class StageSchematicSplinePort final : public SchematicPort {StageSchematicSplineDock *m_parent;QPixmap m_squarePixmap, m_rhombPixmap;@@ -257,7 +257,7 @@ private:////========================================================-class SplineAimChanger : public SchematicHandleSpinBox {+class SplineAimChanger final : public SchematicHandleSpinBox {bool m_aim;public:@@ -278,7 +278,7 @@ protected:////========================================================-class StageSchematicNodeDock : public QObject, public QGraphicsItem {+class StageSchematicNodeDock final : public QObject, public QGraphicsItem {Q_OBJECT#ifndef MACOSXQ_INTERFACES(QGraphicsItem)@@ -329,7 +329,7 @@ protected slots:////========================================================-class StageSchematicSplineDock : public QObject, public QGraphicsItem {+class StageSchematicSplineDock final : public QObject, public QGraphicsItem {Q_OBJECT#ifndef MACOSXQ_INTERFACES(QGraphicsItem)@@ -412,7 +412,7 @@ protected slots:////========================================================-class StageSchematicPegbarNode : public StageSchematicNode {+class StageSchematicPegbarNode final : public StageSchematicNode {Q_OBJECTPegbarPainter *m_pegbarPainter;@@ -438,7 +438,7 @@ protected slots:////========================================================-class StageSchematicTableNode : public StageSchematicNode {+class StageSchematicTableNode final : public StageSchematicNode {TablePainter *m_tablePainter;public:@@ -456,7 +456,7 @@ public:////========================================================-class StageSchematicColumnNode : public StageSchematicNode {+class StageSchematicColumnNode final : public StageSchematicNode {Q_OBJECTSchematicThumbnailToggle *m_resizeItem;@@ -496,7 +496,7 @@ protected slots:////========================================================-class StageSchematicCameraNode : public StageSchematicNode {+class StageSchematicCameraNode final : public StageSchematicNode {Q_OBJECTCameraPainter *m_cameraPainter;@@ -522,7 +522,7 @@ protected slots:////========================================================-class StageSchematicSplineNode : public SchematicNode {+class StageSchematicSplineNode final : public SchematicNode {Q_OBJECTTStageObjectSpline *m_spline;@@ -569,7 +569,7 @@ protected slots:////========================================================-class StageSchematicGroupNode : public StageSchematicNode {+class StageSchematicGroupNode final : public StageSchematicNode {Q_OBJECTGroupPainter *m_painter;diff --git a/toonz/sources/include/toonzqt/stageschematicscene.h b/toonz/sources/include/toonzqt/stageschematicscene.hindex 28df5052f..6b044148b 100644--- a/toonz/sources/include/toonzqt/stageschematicscene.h+++ b/toonz/sources/include/toonzqt/stageschematicscene.h@@ -81,7 +81,7 @@ public://! To regenearte the scene use the updateScene().\n//! To oreder nodes in the scene use the reorderScene().-class StageSchematicScene : public SchematicScene {+class StageSchematicScene final : public SchematicScene {Q_OBJECTTXsheetHandle *m_xshHandle;TObjectHandle *m_objHandle;diff --git a/toonz/sources/include/toonzqt/strokesdata.h b/toonz/sources/include/toonzqt/strokesdata.hindex 1eab72b5a..687e515bf 100644--- a/toonz/sources/include/toonzqt/strokesdata.h+++ b/toonz/sources/include/toonzqt/strokesdata.h@@ -26,7 +26,7 @@ class FullColorImageData;// StrokesData//------------------------------------------------------------------------------class DVAPI StrokesData : public DvMimeData {+class DVAPI StrokesData final : public DvMimeData {public:TVectorImageP m_image;diff --git a/toonz/sources/include/toonzqt/studiopaletteviewer.h b/toonz/sources/include/toonzqt/studiopaletteviewer.hindex 87f323b2c..14460d5ec 100644--- a/toonz/sources/include/toonzqt/studiopaletteviewer.h+++ b/toonz/sources/include/toonzqt/studiopaletteviewer.h@@ -39,9 +39,9 @@ class TXshLevelHandle;folder and current project palette folder, the three root folderof \b StudioPalette.*/-class DVAPI StudioPaletteTreeViewer : public QTreeWidget,- public StudioPalette::Listener,- public TProjectManager::Listener {+class DVAPI StudioPaletteTreeViewer final : public QTreeWidget,+ public StudioPalette::Listener,+ public TProjectManager::Listener {Q_OBJECTTPaletteP m_currentPalette;@@ -203,7 +203,7 @@ protected:allows to show and modify current studio palette selected intree.*/-class DVAPI StudioPaletteViewer : public QSplitter {+class DVAPI StudioPaletteViewer final : public QSplitter {Q_OBJECTStudioPaletteTreeViewer *m_studioPaletteTreeViewer;diff --git a/toonz/sources/include/toonzqt/styleeditor.h b/toonz/sources/include/toonzqt/styleeditor.hindex 86a3a152b..251e7d719 100644--- a/toonz/sources/include/toonzqt/styleeditor.h+++ b/toonz/sources/include/toonzqt/styleeditor.h@@ -135,7 +135,7 @@ public:enum CurrentWheel { none, leftWheel, rightTriangle };-class DVAPI HexagonalColorWheel : public QOpenGLWidget {+class DVAPI HexagonalColorWheel final : public QOpenGLWidget {Q_OBJECT// backgoround color (R160, G160, B160)@@ -192,7 +192,7 @@ signals:It's possible to choose viewed shade using \b setChannel().Click in square change current SquaredColorWheel.*/-class DVAPI SquaredColorWheel : public QWidget {+class DVAPI SquaredColorWheel final : public QWidget {Q_OBJECTColorChannel m_channel;ColorModel m_color;@@ -235,7 +235,7 @@ signals:maximum channel colorvalue.*/-class DVAPI ColorSlider : public QSlider {+class DVAPI ColorSlider final : public QSlider {Q_OBJECTpublic:ColorSlider(Qt::Orientation orientation, QWidget *parent = 0);@@ -264,7 +264,7 @@ private://=============================================================================// ArrowButton-class ArrowButton : public QToolButton {+class ArrowButton final : public QToolButton {Q_OBJECTQt::Orientation m_orientaion;@@ -297,7 +297,7 @@ signals:Inherits \b QToolBar.*/-class DVAPI ColorSliderBar : public QWidget {+class DVAPI ColorSliderBar final : public QWidget {Q_OBJECTColorSlider *m_colorSlider;@@ -334,7 +334,7 @@ signals:value.It calls selectAll() at the moment of the first click.*/-class ChannelLineEdit : public DVGui::IntLineEdit {+class ChannelLineEdit final : public DVGui::IntLineEdit {Q_OBJECTbool m_isEditing;@@ -360,7 +360,7 @@ protected:ColorSlider to show/edit thechannel value.*/-class DVAPI ColorChannelControl : public QWidget {+class DVAPI ColorChannelControl final : public QWidget {Q_OBJECTQLabel *m_label;ChannelLineEdit *m_field;@@ -405,7 +405,7 @@ public:Inherits \b QWidget.*/-class ColorParameterSelector : public QWidget {+class ColorParameterSelector final : public QWidget {Q_OBJECTstd::vector<QColor> m_colors;@@ -438,7 +438,7 @@ protected:button (to controlthe ColorWheel behaviour).*/-class PlainColorPage : public StyleEditorPage {+class PlainColorPage final : public StyleEditorPage {Q_OBJECT// ColorSliderBar *m_verticalSlider;@@ -534,7 +534,7 @@ signals:style are \a not performed directly by this class.*/-class SettingsPage : public QScrollArea {+class SettingsPage final : public QScrollArea {Q_OBJECTQGridLayout *m_paramsLayout;@@ -577,7 +577,7 @@ using namespace StyleEditorGUI;// StyleEditor//------------------------------------------------------------------------------class DVAPI StyleEditor : public QWidget {+class DVAPI StyleEditor final : public QWidget {Q_OBJECTPaletteController *m_paletteController;diff --git a/toonz/sources/include/toonzqt/stylenameeditor.h b/toonz/sources/include/toonzqt/stylenameeditor.hindex 3acab4a23..bad58efa7 100644--- a/toonz/sources/include/toonzqt/stylenameeditor.h+++ b/toonz/sources/include/toonzqt/stylenameeditor.h@@ -9,7 +9,7 @@ class QLineEdit;class QPushButton;class TPaletteHandle;-class StyleNameEditor : public QDialog // singleton+class StyleNameEditor final : public QDialog // singleton{Q_OBJECTdiff --git a/toonz/sources/include/toonzqt/styleselection.h b/toonz/sources/include/toonzqt/styleselection.hindex 68f883a6b..fb78637ec 100644--- a/toonz/sources/include/toonzqt/styleselection.h+++ b/toonz/sources/include/toonzqt/styleselection.h@@ -28,7 +28,7 @@ class TXshLevelHandle;// TStyleSelection//------------------------------------------------------------------------------class DVAPI TStyleSelection : public TSelection {+class DVAPI TStyleSelection final : public TSelection {TPaletteHandle *m_paletteHandle;// Used to change level palette; in other palette (cleanup, ...) xsheetHandlediff --git a/toonz/sources/include/toonzqt/swatchviewer.h b/toonz/sources/include/toonzqt/swatchviewer.hindex 9148f8e96..501ccca65 100644--- a/toonz/sources/include/toonzqt/swatchviewer.h+++ b/toonz/sources/include/toonzqt/swatchviewer.h@@ -42,7 +42,7 @@ public://=============================================================================-class DVAPI SolidColorBgPainter : public BgPainter {+class DVAPI SolidColorBgPainter final : public BgPainter {TPixel32 m_color;public:@@ -54,7 +54,7 @@ public://=============================================================================-class DVAPI CheckboardBgPainter : public BgPainter {+class DVAPI CheckboardBgPainter final : public BgPainter {TPixel32 m_c0, m_c1;public:@@ -75,7 +75,7 @@ public:Inherits \b QWidget.*/-class DVAPI SwatchViewer : public QWidget {+class DVAPI SwatchViewer final : public QWidget {Q_OBJECT//! La classe \b Point gestisce un punto che e' collegato a parametri \b@@ -132,7 +132,7 @@ class DVAPI SwatchViewer : public QWidget {friend class ContentRender;public:- class ContentRender : public TThread::Runnable {+ class ContentRender final : public TThread::Runnable {public:TRasterFxP m_fx;TRasterP m_raster;diff --git a/toonz/sources/include/toonzqt/tabbar.h b/toonz/sources/include/toonzqt/tabbar.hindex aa92791a4..3ff52450b 100644--- a/toonz/sources/include/toonzqt/tabbar.h+++ b/toonz/sources/include/toonzqt/tabbar.h@@ -33,7 +33,7 @@ namespace DVGui {using \b addIconTab(),it's anyhow possible add text tab using \b addSimpleTab().*/-class DVAPI TabBar : public QTabBar {+class DVAPI TabBar final : public QTabBar {Q_OBJECTstd::vector<QPixmap> m_pixmaps;diff --git a/toonz/sources/include/toonzqt/tmessageviewer.h b/toonz/sources/include/toonzqt/tmessageviewer.hindex d5ad94390..abbd2ef53 100644--- a/toonz/sources/include/toonzqt/tmessageviewer.h+++ b/toonz/sources/include/toonzqt/tmessageviewer.h@@ -21,7 +21,7 @@ class MySortFilterProxyModel;class QCheckBox;class QStandardItemModel;-class DVAPI TMessageRepository : public QObject {+class DVAPI TMessageRepository final : public QObject {QStandardItemModel *m_sim;Q_OBJECT@@ -41,7 +41,7 @@ signals://----------------------------------------------------------------------------------------class DVAPI TMessageViewer : public QFrame {+class DVAPI TMessageViewer final : public QFrame {Q_OBJECTprotected:diff --git a/toonz/sources/include/toonzqt/tonecurvefield.h b/toonz/sources/include/toonzqt/tonecurvefield.hindex 705441b11..a93c7dbab 100644--- a/toonz/sources/include/toonzqt/tonecurvefield.h+++ b/toonz/sources/include/toonzqt/tonecurvefield.h@@ -35,7 +35,7 @@ class CheckBox;// ChennelCurveEditor//------------------------------------------------------------------------------class DVAPI ChennelCurveEditor : public QWidget {+class DVAPI ChennelCurveEditor final : public QWidget {Q_OBJECTHistogramView *m_histogramView;@@ -119,7 +119,7 @@ signals:// ToneCurveField//------------------------------------------------------------------------------class DVAPI ToneCurveField : public QWidget {+class DVAPI ToneCurveField final : public QWidget {Q_OBJECTQStackedWidget *m_toneCurveStackedWidget;diff --git a/toonz/sources/include/toonzqt/treemodel.h b/toonz/sources/include/toonzqt/treemodel.hindex 3c6ffd859..119312463 100644--- a/toonz/sources/include/toonzqt/treemodel.h+++ b/toonz/sources/include/toonzqt/treemodel.h@@ -151,7 +151,7 @@ public:protected:/*-class Delegate : public QItemDelegate+class Delegate final : public QItemDelegate{public:Delegate(TreeView *parent) : QItemDelegate(parent), m_treeView(parent) {}diff --git a/toonz/sources/include/toonzqt/tselectionhandle.h b/toonz/sources/include/toonzqt/tselectionhandle.hindex b5731adf4..d043fd34e 100644--- a/toonz/sources/include/toonzqt/tselectionhandle.h+++ b/toonz/sources/include/toonzqt/tselectionhandle.h@@ -28,7 +28,7 @@ class CommandHandlerInterface;// TSelectionHandle//------------------------------------------------------------------------------class DVAPI TSelectionHandle : public QObject {+class DVAPI TSelectionHandle final : public QObject {Q_OBJECTstd::vector<TSelection *> m_selectionStack;diff --git a/toonz/sources/include/toonzqt/updatechecker.h b/toonz/sources/include/toonzqt/updatechecker.hindex 9e4186b4b..71f8d3683 100644--- a/toonz/sources/include/toonzqt/updatechecker.h+++ b/toonz/sources/include/toonzqt/updatechecker.h@@ -21,7 +21,7 @@#define DVVAR DV_IMPORT_VAR#endif-class DVAPI UpdateChecker : public QObject {+class DVAPI UpdateChecker final : public QObject {Q_OBJECTQSharedPointer<QNetworkAccessManager> manager_;diff --git a/toonz/sources/include/tpalette.h b/toonz/sources/include/tpalette.hindex 112c07aaf..bf16794cc 100644--- a/toonz/sources/include/tpalette.h+++ b/toonz/sources/include/tpalette.h@@ -82,7 +82,7 @@ ASAP.\sa The TColorStyle class.*/-class DVAPI TPalette : public TPersist, public TSmartObject {+class DVAPI TPalette final : public TPersist, public TSmartObject {DECLARE_CLASS_CODEPERSIST_DECLARATION(TPalette);diff --git a/toonz/sources/include/tparam.h b/toonz/sources/include/tparam.hindex c02e790e4..da957f3d7 100644--- a/toonz/sources/include/tparam.h+++ b/toonz/sources/include/tparam.h@@ -186,7 +186,7 @@ typedef TSmartPointerT<TParam> TParamP;#define DEFINE_PARAM_SMARTPOINTER(PARAM, TYPE) \DVAPI_PARAM_SMARTPOINTER(PARAM) \\- class DVAPI PARAM##P : public TDerivedSmartPointerT<PARAM, TParam> { \+ class DVAPI PARAM##P final : public TDerivedSmartPointerT<PARAM, TParam> { \public: \PARAM##P(PARAM *p = 0) : DerivedSmartPointer(p) {} \PARAM##P(TYPE v) : DerivedSmartPointer(new PARAM(v)) {} \diff --git a/toonz/sources/include/tparamcontainer.h b/toonz/sources/include/tparamcontainer.hindex 4313a8c8a..8077fd71f 100644--- a/toonz/sources/include/tparamcontainer.h+++ b/toonz/sources/include/tparamcontainer.h@@ -43,7 +43,7 @@ public:};template <class T>-class TParamVarT : public TParamVar {+class TParamVarT final : public TParamVar {TParamP m_var;public:diff --git a/toonz/sources/include/tparamset.h b/toonz/sources/include/tparamset.hindex 6c0363cc8..d4c213e94 100644--- a/toonz/sources/include/tparamset.h+++ b/toonz/sources/include/tparamset.h@@ -23,7 +23,7 @@class TParamSetImp;-class TParamSetChange : public TParamChange {+class TParamSetChange final : public TParamChange {public:std::vector<TParamChange *> m_paramChanges;@@ -137,7 +137,7 @@ template class DVAPI TPersistDeclarationT<TPointParam>;class TPointParamImp;class TDoubleParamP;-class DVAPI TPointParam : public TParamSet {+class DVAPI TPointParam final : public TParamSet {PERSIST_DECLARATION(TPointParam)TPointParamImp *m_data;bool m_from_plugin;@@ -184,7 +184,7 @@ public:class TPixelParamImp;-class DVAPI TPixelParam : public TParamSet {+class DVAPI TPixelParam final : public TParamSet {PERSIST_DECLARATION(TPixelParam)TPixelParamImp *m_data;@@ -242,7 +242,7 @@ template class DVAPI TPersistDeclarationT<TRangeParam>;class TRangeParamImp;class TDoubleParamP;-class DVAPI TRangeParam : public TParamSet {+class DVAPI TRangeParam final : public TParamSet {PERSIST_DECLARATION(TRangeParam)TRangeParamImp *m_data;diff --git a/toonz/sources/include/tpassivecachemanager.h b/toonz/sources/include/tpassivecachemanager.hindex 2970247f6..0398fcbde 100644--- a/toonz/sources/include/tpassivecachemanager.h+++ b/toonz/sources/include/tpassivecachemanager.h@@ -33,7 +33,7 @@ under control of another manager class - namely, the TFxCacheManager - forsingle render instances.*/-class DVAPI TPassiveCacheManager : public TFxCacheManagerDelegate {+class DVAPI TPassiveCacheManager final : public TFxCacheManagerDelegate {T_RENDER_RESOURCE_MANAGERprivate:diff --git a/toonz/sources/include/tpersist.h b/toonz/sources/include/tpersist.hindex 698191c1b..c5b15b880 100644--- a/toonz/sources/include/tpersist.h+++ b/toonz/sources/include/tpersist.h@@ -67,7 +67,7 @@ object.This method is overridden with the macro PERSIST_DECLARATION(T).\n For example:\code-class DVAPI TStageObjectTree : public TPersist {+class DVAPI TStageObjectTree final : public TPersist {PERSIST_DECLARATION(TStageObjectTree)public:@@ -116,7 +116,7 @@ inline std::string TPersist::getStreamTag() const {T.*/template <class T>-class TPersistDeclarationT : public TPersistDeclaration {+class TPersistDeclarationT final : public TPersistDeclaration {public:/*!This is the constructor. Its argument is the id of the object.@@ -147,7 +147,9 @@ private: \static TPersistDeclarationT<T> m_declaration; \\public: \- const TPersistDeclaration *getDeclaration() const override { return &m_declaration; }+ const TPersistDeclaration *getDeclaration() const override { \+ return &m_declaration; \+ }#define PERSIST_IDENTIFIER(T, I) TPersistDeclarationT<T> T::m_declaration(I);diff --git a/toonz/sources/include/tpersistset.h b/toonz/sources/include/tpersistset.hindex d88f0a906..b7879054c 100644--- a/toonz/sources/include/tpersistset.h+++ b/toonz/sources/include/tpersistset.h@@ -25,7 +25,7 @@configuration options, without discarding the other objects.*/-class DVAPI TPersistSet : public TPersist {+class DVAPI TPersistSet final : public TPersist {PERSIST_DECLARATION(TPersistSet)std::vector<TPersist *> m_objects; //!< #owned# Stored objects.diff --git a/toonz/sources/include/tpredictivecachemanager.h b/toonz/sources/include/tpredictivecachemanager.hindex 3232f18e3..40f126fee 100644--- a/toonz/sources/include/tpredictivecachemanager.h+++ b/toonz/sources/include/tpredictivecachemanager.h@@ -32,7 +32,7 @@ intermediaterender results due to predictive analysis of the scene schematic.*/-class DVAPI TPredictiveCacheManager : public TFxCacheManagerDelegate {+class DVAPI TPredictiveCacheManager final : public TFxCacheManagerDelegate {T_RENDER_RESOURCE_MANAGERclass Imp;diff --git a/toonz/sources/include/tproperty.h b/toonz/sources/include/tproperty.hindex 83956975f..202eced95 100644--- a/toonz/sources/include/tproperty.h+++ b/toonz/sources/include/tproperty.h@@ -102,7 +102,7 @@ private://---------------------------------------------------------template <class T>-class TRangeProperty : public TProperty {+class TRangeProperty final : public TProperty {public:typedef std::pair<T, T> Range;@@ -150,7 +150,7 @@ template class DVAPI TRangeProperty<double>;#endif//----------------------------------------------------------class TDoublePairProperty : public TProperty {+class TDoublePairProperty final : public TProperty {public:typedef std::pair<double, double> Range;typedef std::pair<double, double> Value;@@ -191,7 +191,7 @@ private://----------------------------------------------------------class TIntPairProperty : public TProperty {+class TIntPairProperty final : public TProperty {public:typedef std::pair<int, int> Range;typedef std::pair<int, int> Value;@@ -232,7 +232,7 @@ private://----------------------------------------------------------class DVAPI TBoolProperty : public TProperty {+class DVAPI TBoolProperty final : public TProperty {public:TBoolProperty(std::string name, bool value): TProperty(name), m_value(value) {}@@ -250,7 +250,7 @@ private://----------------------------------------------------------class DVAPI TStringProperty : public TProperty {+class DVAPI TStringProperty final : public TProperty {public:TStringProperty(std::string name, std::wstring value): TProperty(name), m_value(value) {}@@ -268,7 +268,7 @@ private://----------------------------------------------------------class DVAPI TStyleIndexProperty : public TProperty {+class DVAPI TStyleIndexProperty final : public TProperty {public:TStyleIndexProperty(std::string name, std::wstring value): TProperty(name), m_value(value) {}@@ -288,7 +288,7 @@ private://-------------------------------------------------------------------class DVAPI TPointerProperty : public TProperty {+class DVAPI TPointerProperty final : public TProperty {public:TPointerProperty(std::string name, void *value): TProperty(name), m_value(value) {}@@ -308,7 +308,7 @@ private://----------------------------------------------------------class DVAPI TEnumProperty : public TProperty {+class DVAPI TEnumProperty final : public TProperty {public:typedef std::vector<std::wstring> Range;diff --git a/toonz/sources/include/traster.h b/toonz/sources/include/traster.hindex 07a252a2b..d55c32431 100644--- a/toonz/sources/include/traster.h+++ b/toonz/sources/include/traster.h@@ -237,7 +237,7 @@ class TRasterT;//! \include rasterpt_ex1.cpp// class TRasterPT<T>template <class T>-class TRasterPT : public TSmartPointerT<TRasterT<T>> {+class TRasterPT final : public TSmartPointerT<TRasterT<T>> {public:typedef T Pixel;typedef TRasterT<T> Raster;diff --git a/toonz/sources/include/trasterfx.h b/toonz/sources/include/trasterfx.hindex b933d4190..43d126db0 100644--- a/toonz/sources/include/trasterfx.h+++ b/toonz/sources/include/trasterfx.h@@ -305,7 +305,7 @@ template class DVAPI TDerivedSmartPointerT<TRasterFx, TFx>;//--------------------------------------------------------------------class DVAPI TRasterFxP : public TDerivedSmartPointerT<TRasterFx, TFx> {+class DVAPI TRasterFxP final : public TDerivedSmartPointerT<TRasterFx, TFx> {public:TRasterFxP() {}TRasterFxP(TRasterFx *fx) : DerivedSmartPointer(fx) {}@@ -358,7 +358,8 @@ template class DVAPI TDerivedSmartPointerT<TGeometryFx, TFx>;//--------------------------------------------------------------------class DVAPI TGeometryFxP : public TDerivedSmartPointerT<TGeometryFx, TFx> {+class DVAPI TGeometryFxP final+ : public TDerivedSmartPointerT<TGeometryFx, TFx> {public:TGeometryFxP() {}TGeometryFxP(TGeometryFx *fx) : DerivedSmartPointer(fx) {}@@ -376,7 +377,7 @@ public:template class DVAPI TFxPortT<TGeometryFx>;#endif-class DVAPI TGeometryPort : public TFxPortT<TGeometryFx> {+class DVAPI TGeometryPort final : public TFxPortT<TGeometryFx> {public:TGeometryPort() : TFxPortT<TGeometryFx>(true) {}TAffine getPlacement(double frame) { return m_fx->getPlacement(frame); }@@ -386,7 +387,7 @@ public:// NaAffineFx declaration//******************************************************************************-class DVAPI NaAffineFx : public TGeometryFx {+class DVAPI NaAffineFx final : public TGeometryFx {FX_DECLARATION(NaAffineFx)public:~NaAffineFx() {}diff --git a/toonz/sources/include/trasterimage.h b/toonz/sources/include/trasterimage.hindex 56c4bfa5e..36079548d 100644--- a/toonz/sources/include/trasterimage.h+++ b/toonz/sources/include/trasterimage.h@@ -25,7 +25,7 @@\include rasterImage_ex.cpp*/-class DVAPI TRasterImage : public TImage {+class DVAPI TRasterImage final : public TImage {TRasterP m_mainRaster, m_patchRaster, m_iconRaster;//! dpi value for x axis@@ -144,7 +144,8 @@ template class DVAPI TSmartPointerT<TRasterImage>;template class DVAPI TDerivedSmartPointerT<TRasterImage, TImage>;#endif-class DVAPI TRasterImageP : public TDerivedSmartPointerT<TRasterImage, TImage> {+class DVAPI TRasterImageP final+ : public TDerivedSmartPointerT<TRasterImage, TImage> {public:TRasterImageP() {}TRasterImageP(TRasterImage *image) : DerivedSmartPointer(image) {}diff --git a/toonz/sources/include/tregion.h b/toonz/sources/include/tregion.hindex eddaa0f55..f2ae4c9e8 100644--- a/toonz/sources/include/tregion.h+++ b/toonz/sources/include/tregion.h@@ -65,7 +65,7 @@ public:TGeneralEdge(Type type) : m_type(type) {}};-class TEdge : public TGeneralEdge {+class TEdge final : public TGeneralEdge {public:TStroke *m_s;double m_w0, m_w1;diff --git a/toonz/sources/include/tregionprop.h b/toonz/sources/include/tregionprop.hindex f1c5d48b5..bdbd6eaab 100644--- a/toonz/sources/include/tregionprop.h+++ b/toonz/sources/include/tregionprop.h@@ -74,7 +74,7 @@ private://--------------------------------------------------------------------class OutlineRegionProp : public TRegionProp {+class OutlineRegionProp final : public TRegionProp {double m_pixelSize;TOutlineStyleP m_colorStyle;diff --git a/toonz/sources/include/trenderresourcemanager.h b/toonz/sources/include/trenderresourcemanager.hindex 157a07de5..559274a19 100644--- a/toonz/sources/include/trenderresourcemanager.h+++ b/toonz/sources/include/trenderresourcemanager.h@@ -116,7 +116,7 @@ Declares a TRenderResourceManager class, it must be used inside the managerdefinition.For example:\code-class MyManager : public TRenderResourceManager+class MyManager final : public TRenderResourceManager{T_RENDER_RESOURCE_MANAGERdiff --git a/toonz/sources/include/trop.h b/toonz/sources/include/trop.hindex 4be07f204..434a7edfc 100644--- a/toonz/sources/include/trop.h+++ b/toonz/sources/include/trop.h@@ -30,7 +30,7 @@ struct _RASTER;// TRopException definition//********************************************************************************-class DVAPI TRopException : public TException {+class DVAPI TRopException final : public TException {std::string message;public:diff --git a/toonz/sources/include/trop_borders.h b/toonz/sources/include/trop_borders.hindex 734f21b15..c42047315 100644--- a/toonz/sources/include/trop_borders.h+++ b/toonz/sources/include/trop_borders.h@@ -116,7 +116,7 @@ typedef tcg::Vertex<TPoint> Vertex;//---------------------------------------------------------------------------------class Edge : public tcg::Edge {+class Edge final : public tcg::Edge {TPoint m_directions[2];int m_imageIndex;@@ -133,7 +133,7 @@ public://---------------------------------------------------------------------------------class Face : public tcg::Face {+class Face final : public tcg::Face {tcg::list<int> m_meshes;int m_imageIndex;@@ -153,7 +153,8 @@ public://---------------------------------------------------------------------------------class ImageMesh : public TSmartObject, public tcg::Mesh<Vertex, Edge, Face> {};+class ImageMesh final : public TSmartObject,+ public tcg::Mesh<Vertex, Edge, Face> {};//--------------------------------------------------------------------------------diff --git a/toonz/sources/include/tsimplecolorstyles.h b/toonz/sources/include/tsimplecolorstyles.hindex 90358b366..4185a98e7 100644--- a/toonz/sources/include/tsimplecolorstyles.h+++ b/toonz/sources/include/tsimplecolorstyles.h@@ -186,7 +186,7 @@ private:Constant thickness stroke style.*/-class DVAPI TCenterLineStrokeStyle : public TSimpleStrokeStyle {+class DVAPI TCenterLineStrokeStyle final : public TSimpleStrokeStyle {TPixel32 m_color;USHORT m_stipple;double m_width;@@ -236,7 +236,7 @@ private:// TRasterImagePatternStrokeStyle declaration//**********************************************************************************-class DVAPI TRasterImagePatternStrokeStyle : public TColorStyle {+class DVAPI TRasterImagePatternStrokeStyle final : public TColorStyle {static TFilePath m_rootDir;protected:@@ -313,7 +313,7 @@ private:// TVectorImagePatternStrokeStyle declaration//**********************************************************************************-class DVAPI TVectorImagePatternStrokeStyle : public TColorStyle {+class DVAPI TVectorImagePatternStrokeStyle final : public TColorStyle {static TFilePath m_rootDir;protected:diff --git a/toonz/sources/include/tsop.h b/toonz/sources/include/tsop.hindex 5dc1ddf20..5fbfba3ed 100644--- a/toonz/sources/include/tsop.h+++ b/toonz/sources/include/tsop.h@@ -17,7 +17,7 @@//===================================================================-class DVAPI TSopException : public TException {+class DVAPI TSopException final : public TException {TString m_message;public:diff --git a/toonz/sources/include/tsound.h b/toonz/sources/include/tsound.hindex 61d53ac1d..75593ff31 100644--- a/toonz/sources/include/tsound.h+++ b/toonz/sources/include/tsound.h@@ -245,7 +245,7 @@ Range in seconds//==============================================================================-class TSoundDeviceException : public TException {+class TSoundDeviceException final : public TException {public:enum Type {FailedInit, // fallimento del costruttorediff --git a/toonz/sources/include/tsound_io.h b/toonz/sources/include/tsound_io.hindex 6b59da2c4..5e5b90cd9 100644--- a/toonz/sources/include/tsound_io.h+++ b/toonz/sources/include/tsound_io.h@@ -54,7 +54,8 @@ public:template class DVAPI TSmartPointerT<TSoundTrackReader>;#endif-class DVAPI TSoundTrackReaderP : public TSmartPointerT<TSoundTrackReader> {+class DVAPI TSoundTrackReaderP final+ : public TSmartPointerT<TSoundTrackReader> {public:TSoundTrackReaderP(const TFilePath &fp);};@@ -93,7 +94,8 @@ public:template class DVAPI TSmartPointerT<TSoundTrackWriter>;#endif-class DVAPI TSoundTrackWriterP : public TSmartPointerT<TSoundTrackWriter> {+class DVAPI TSoundTrackWriterP final+ : public TSmartPointerT<TSoundTrackWriter> {public:TSoundTrackWriterP(const TFilePath &fp);};diff --git a/toonz/sources/include/tsound_t.h b/toonz/sources/include/tsound_t.hindex 81f431e19..1735c983a 100644--- a/toonz/sources/include/tsound_t.h+++ b/toonz/sources/include/tsound_t.h@@ -18,7 +18,7 @@//=========================================================template <class T>-class DVAPI TSoundTrackT : public TSoundTrack {+class DVAPI TSoundTrackT final : public TSoundTrack {public:typedef T SampleType;diff --git a/toonz/sources/include/tspectrumparam.h b/toonz/sources/include/tspectrumparam.hindex 3a722f2f6..3cac6df83 100644--- a/toonz/sources/include/tspectrumparam.h+++ b/toonz/sources/include/tspectrumparam.h@@ -35,7 +35,7 @@ template class DVAPI TPersistDeclarationT<TSpectrumParam>;//----------------------------------------------------------class DVAPI TSpectrumParam : public TParam {+class DVAPI TSpectrumParam final : public TParam {PERSIST_DECLARATION(TSpectrumParam)std::unique_ptr<TSpectrumParamImp> m_imp;@@ -98,7 +98,7 @@ template class DVAPI TSmartPointerT<TSpectrumParam>;template class DVAPI TDerivedSmartPointerT<TSpectrumParam, TParam>;#endif-class DVAPI TSpectrumParamP+class DVAPI TSpectrumParamP final: public TDerivedSmartPointerT<TSpectrumParam, TParam> {public:TSpectrumParamP() {}diff --git a/toonz/sources/include/tstreamexception.h b/toonz/sources/include/tstreamexception.hindex f2db8d2ec..560bc475b 100644--- a/toonz/sources/include/tstreamexception.h+++ b/toonz/sources/include/tstreamexception.h@@ -22,7 +22,7 @@ class TOStream;//===================================================================-class DVAPI TIStreamException : public TException {+class DVAPI TIStreamException final : public TException {public:TIStreamException(TIStream &is);TIStreamException(TIStream &is, const TException &e);diff --git a/toonz/sources/include/tstroke.h b/toonz/sources/include/tstroke.hindex ca85a26fb..0cd1e9124 100644--- a/toonz/sources/include/tstroke.h+++ b/toonz/sources/include/tstroke.h@@ -45,7 +45,7 @@ class TFlash;It's possible to use style to set brush, texture, pattern,TStroke now are smart pointer.*/-class DVAPI TStroke : public TSmartObject {+class DVAPI TStroke final : public TSmartObject {DECLARE_CLASS_CODEprivate:diff --git a/toonz/sources/include/tstrokedeformations.h b/toonz/sources/include/tstrokedeformations.hindex 869913b57..6ecc30136 100644--- a/toonz/sources/include/tstrokedeformations.h+++ b/toonz/sources/include/tstrokedeformations.h@@ -79,7 +79,7 @@ Max diff of delta (This value indicates when it's necessaryconst TPointD &vect... list of parameter.*/-class DVAPI TStrokePointDeformation : public TStrokeDeformation {+class DVAPI TStrokePointDeformation final : public TStrokeDeformation {protected:struct Imp;std::unique_ptr<Imp> m_imp;@@ -117,7 +117,7 @@ Use this constructor with modifyControlPoints.Function is b*exp( -((x-a)^2)/c ).*/-class DVAPI TStrokeParamDeformation : public TStrokeDeformation {+class DVAPI TStrokeParamDeformation final : public TStrokeDeformation {private:const TStroke *m_pRef;double m_startParameter;@@ -160,7 +160,7 @@ Use this constructor with movePoints./*!Manage the deformation of thick in a stroke.*/-class DVAPI TStrokeThicknessDeformation : public TStrokeDeformation {+class DVAPI TStrokeThicknessDeformation final : public TStrokeDeformation {private:double m_lengthOfDeformation;double m_startParameter;@@ -203,7 +203,7 @@ Use this constructor with movePoints./*!Manage the bending of a stroke.*/-class DVAPI TStrokeBenderDeformation : public TStrokeDeformation {+class DVAPI TStrokeBenderDeformation final : public TStrokeDeformation {private:const TStroke *m_pRef;double m_startLength;@@ -250,7 +250,7 @@ Use this constructor with movePoints./*!Manage wirling of a stroke.*/-class DVAPI TStrokeTwirlDeformation : public TStrokeDeformation {+class DVAPI TStrokeTwirlDeformation final : public TStrokeDeformation {private:TPointD m_center;double m_innerRadius2;diff --git a/toonz/sources/include/tstrokeprop.h b/toonz/sources/include/tstrokeprop.hindex 44be93d12..978005648 100644--- a/toonz/sources/include/tstrokeprop.h+++ b/toonz/sources/include/tstrokeprop.h@@ -31,7 +31,7 @@ class TCenterLineStrokeStyle;//=============================================================================-class DVAPI TSimpleStrokeProp : public TStrokeProp {+class DVAPI TSimpleStrokeProp final : public TStrokeProp {protected:TSimpleStrokeStyle *m_colorStyle;@@ -48,7 +48,7 @@ public://=============================================================================-class DVAPI TRasterImagePatternStrokeProp : public TStrokeProp {+class DVAPI TRasterImagePatternStrokeProp final : public TStrokeProp {protected:TRasterImagePatternStrokeStyle *m_colorStyle;std::vector<TAffine> m_transformations;@@ -67,7 +67,7 @@ public://=============================================================================-class DVAPI TVectorImagePatternStrokeProp : public TStrokeProp {+class DVAPI TVectorImagePatternStrokeProp final : public TStrokeProp {protected:TVectorImagePatternStrokeStyle *m_colorStyle;std::vector<TAffine> m_transformations;@@ -86,7 +86,7 @@ public://=============================================================================-class DVAPI OutlineStrokeProp : public TStrokeProp {+class DVAPI OutlineStrokeProp final : public TStrokeProp {protected:TOutlineStyleP m_colorStyle;TStrokeOutline m_outline;diff --git a/toonz/sources/include/tsystem.h b/toonz/sources/include/tsystem.hindex f6f0a56c5..1c2e8cab3 100644--- a/toonz/sources/include/tsystem.h+++ b/toonz/sources/include/tsystem.h@@ -62,7 +62,7 @@ public:#endif-class DVAPI TSystemException : public TException {+class DVAPI TSystemException final : public TException {TFilePath m_fname;int m_err;TString m_msg;diff --git a/toonz/sources/include/ttessellator.h b/toonz/sources/include/ttessellator.hindex 1c74f3466..f6f794ef6 100644--- a/toonz/sources/include/ttessellator.h+++ b/toonz/sources/include/ttessellator.h@@ -41,7 +41,7 @@ public://===========================================//=============================================================================-class DVAPI TglTessellator : public TTessellator {+class DVAPI TglTessellator final : public TTessellator {public:// TThread::Mutex m_mutex;diff --git a/toonz/sources/include/tthreadmessage.h b/toonz/sources/include/tthreadmessage.hindex 0eea6f0c6..67e112358 100644--- a/toonz/sources/include/tthreadmessage.h+++ b/toonz/sources/include/tthreadmessage.h@@ -82,7 +82,7 @@ public:#else-class DVAPI Mutex : public QMutex {+class DVAPI Mutex final : public QMutex {public:Mutex() : QMutex(QMutex::Recursive) {}diff --git a/toonz/sources/include/ttimer.h b/toonz/sources/include/ttimer.hindex a208ae1d0..c44892664 100644--- a/toonz/sources/include/ttimer.h+++ b/toonz/sources/include/ttimer.h@@ -28,7 +28,7 @@ public://-------------------------------------------------------------------template <class T>-class TTimerAction : public TGenericTimerAction {+class TTimerAction final : public TGenericTimerAction {public:typedef void (T::*Method)(TUINT64 tick);TTimerAction(T *target, Method method) : m_target(target), m_method(method) {}diff --git a/toonz/sources/include/ttonecurveparam.h b/toonz/sources/include/ttonecurveparam.hindex d4aecbf73..94063be72 100644--- a/toonz/sources/include/ttonecurveparam.h+++ b/toonz/sources/include/ttonecurveparam.h@@ -26,7 +26,7 @@//----------------------------------------------------------class DVAPI TToneCurveParam : public TParam {+class DVAPI TToneCurveParam final : public TParam {PERSIST_DECLARATION(TToneCurveParam)TParamSetP m_rgbaParamSet;@@ -96,7 +96,7 @@ template class DVAPI TSmartPointerT<TToneCurveParam>;template class DVAPI TDerivedSmartPointerT<TToneCurveParam, TParam>;#endif-class DVAPI TToneCurveParamP+class DVAPI TToneCurveParamP final: public TDerivedSmartPointerT<TToneCurveParam, TParam> {public:TToneCurveParamP() {}diff --git a/toonz/sources/include/ttoonzimage.h b/toonz/sources/include/ttoonzimage.hindex d8739e1a7..bc1e98393 100644--- a/toonz/sources/include/ttoonzimage.h+++ b/toonz/sources/include/ttoonzimage.h@@ -20,7 +20,7 @@ class TToonzImageP;//! An image containing a Toonz raster.-class DVAPI TToonzImage : public TImage {+class DVAPI TToonzImage final : public TImage {//! dpi value for x axisdouble m_dpix,//! dpi value for y axis@@ -122,7 +122,8 @@ template class DVAPI TSmartPointerT<TToonzImage>;template class DVAPI TDerivedSmartPointerT<TToonzImage, TImage>;#endif-class DVAPI TToonzImageP : public TDerivedSmartPointerT<TToonzImage, TImage> {+class DVAPI TToonzImageP final+ : public TDerivedSmartPointerT<TToonzImage, TImage> {public:TToonzImageP() {}TToonzImageP(TToonzImage *image) : DerivedSmartPointer(image) {}diff --git a/toonz/sources/include/ttzpimagefx.h b/toonz/sources/include/ttzpimagefx.hindex 321046ce7..76b87b219 100644--- a/toonz/sources/include/ttzpimagefx.h+++ b/toonz/sources/include/ttzpimagefx.h@@ -32,7 +32,7 @@// ExternalPaletteFxRenderData declaration//**********************************************************************************************-class DVAPI ExternalPaletteFxRenderData : public TRasterFxRenderData {+class DVAPI ExternalPaletteFxRenderData final : public TRasterFxRenderData {public:TPaletteP m_palette;std::string m_name;@@ -61,7 +61,7 @@ enum FilterType {//-------------------------------------------------------------------------------class DVAPI PaletteFilterFxRenderData : public TRasterFxRenderData {+class DVAPI PaletteFilterFxRenderData final : public TRasterFxRenderData {public:bool m_keep;FilterType m_type;@@ -171,7 +171,7 @@ public:// SandorFxRenderData declaration//**********************************************************************************************-class DVAPI SandorFxRenderData : public TRasterFxRenderData {+class DVAPI SandorFxRenderData final : public TRasterFxRenderData {public:Type m_type;BlendTzParams m_blendParams;diff --git a/toonz/sources/include/tundo.h b/toonz/sources/include/tundo.hindex 0dec25025..64a980088 100644--- a/toonz/sources/include/tundo.h+++ b/toonz/sources/include/tundo.h@@ -57,7 +57,7 @@ private:// TUndoManager class//************************************************************************-class DVAPI TUndoManager : public QObject {+class DVAPI TUndoManager final : public QObject {Q_OBJECTpublic:diff --git a/toonz/sources/include/tunit.h b/toonz/sources/include/tunit.hindex be80d5e65..944c689e6 100644--- a/toonz/sources/include/tunit.h+++ b/toonz/sources/include/tunit.h@@ -32,7 +32,7 @@ public://----------------------------class DVAPI TSimpleUnitConverter : public TUnitConverter {+class DVAPI TSimpleUnitConverter final : public TUnitConverter {const double m_factor, m_offset;public:diff --git a/toonz/sources/include/tvectorbrushstyle.h b/toonz/sources/include/tvectorbrushstyle.hindex fb15430cf..e6664f69c 100644--- a/toonz/sources/include/tvectorbrushstyle.h+++ b/toonz/sources/include/tvectorbrushstyle.h@@ -22,7 +22,7 @@// Vector Brush Style declaration//**********************************************************************-class DVAPI TVectorBrushStyle : public TColorStyle {+class DVAPI TVectorBrushStyle final : public TColorStyle {static TFilePath m_rootDir;std::string m_brushName;diff --git a/toonz/sources/include/tvectorimage.h b/toonz/sources/include/tvectorimage.hindex 1e9ee8ef2..807874a6e 100644--- a/toonz/sources/include/tvectorimage.h+++ b/toonz/sources/include/tvectorimage.h@@ -55,7 +55,7 @@ class VIStroke;A vector image is a set of strokes and regions.\relates TImage*/-class DVAPI TVectorImage : public TImage {+class DVAPI TVectorImage final : public TImage {class Imp;int pickGroup(const TPointD &pos, bool onEnteredGroup) const;@@ -413,7 +413,8 @@ template class DVAPI TSmartPointerT<TVectorImage>;template class DVAPI TDerivedSmartPointerT<TVectorImage, TImage>;#endif-class DVAPI TVectorImageP : public TDerivedSmartPointerT<TVectorImage, TImage> {+class DVAPI TVectorImageP final+ : public TDerivedSmartPointerT<TVectorImage, TImage> {public:TVectorImageP() {}TVectorImageP(TVectorImage *image) : DerivedSmartPointer(image) {}diff --git a/toonz/sources/sound/aiff/tsio_aiff.cpp b/toonz/sources/sound/aiff/tsio_aiff.cppindex 70c3f802d..7122a9c21 100644--- a/toonz/sources/sound/aiff/tsio_aiff.cpp+++ b/toonz/sources/sound/aiff/tsio_aiff.cpp@@ -70,7 +70,7 @@ public:// COMM Chunk: Chunk contenente le informazioni sulla traccia-class TCOMMChunk : public TAIFFChunk {+class TCOMMChunk final : public TAIFFChunk {public:USHORT m_chans; // numero di canaliTUINT32 m_frames; // numero di campioni@@ -145,7 +145,7 @@ ostream &operator<<(ostream &os, const TCOMMChunk &commChunk) {// SSND Chunk: Chunk contenente i campioni della traccia-class TSSNDChunk : public TAIFFChunk {+class TSSNDChunk final : public TAIFFChunk {public:TUINT32 m_offset; // dall'inizio dei sample frames tra i wavedataTUINT32 m_blockSize;diff --git a/toonz/sources/sound/aiff/tsio_aiff.h b/toonz/sources/sound/aiff/tsio_aiff.hindex d63caeaae..119b8bc55 100644--- a/toonz/sources/sound/aiff/tsio_aiff.h+++ b/toonz/sources/sound/aiff/tsio_aiff.h@@ -11,7 +11,7 @@ The class TSoundTrackReaderAiff reads audio files having.aiff extension*/-class TSoundTrackReaderAiff : public TSoundTrackReader {+class TSoundTrackReaderAiff final : public TSoundTrackReader {public:TSoundTrackReaderAiff(const TFilePath &fp);~TSoundTrackReaderAiff() {}@@ -35,7 +35,7 @@ Returns a soundtrack reader able to read .aiff audio filesThe class TSoundTrackWriterAiff writes audio file having.aiff extension*/-class TSoundTrackWriterAiff : public TSoundTrackWriter {+class TSoundTrackWriterAiff final : public TSoundTrackWriter {public:TSoundTrackWriterAiff(const TFilePath &fp);~TSoundTrackWriterAiff() {}diff --git a/toonz/sources/sound/raw/tsio_raw.h b/toonz/sources/sound/raw/tsio_raw.hindex a08d293d1..a5a36ae1b 100644--- a/toonz/sources/sound/raw/tsio_raw.h+++ b/toonz/sources/sound/raw/tsio_raw.h@@ -11,7 +11,7 @@The class TSoundTrackReaderRaw reads audio files having.raw extension (this kind of file contains only the sample)*/-class TSoundTrackReaderRaw : public TSoundTrackReader {+class TSoundTrackReaderRaw final : public TSoundTrackReader {public:TSoundTrackReaderRaw(const TFilePath &fp);~TSoundTrackReaderRaw() {}@@ -36,7 +36,7 @@ Returns a soundtrack reader able to read .raw audio filesThe class TSoundTrackWriterRaw writes audio file having.raw extension (this kind of file contains only the sample)*/-class TSoundTrackWriterRaw : public TSoundTrackWriter {+class TSoundTrackWriterRaw final : public TSoundTrackWriter {public:TSoundTrackWriterRaw(const TFilePath &fp);~TSoundTrackWriterRaw() {}diff --git a/toonz/sources/sound/wav/tsio_wav.cpp b/toonz/sources/sound/wav/tsio_wav.cppindex 005b5febb..5521b83f5 100644--- a/toonz/sources/sound/wav/tsio_wav.cpp+++ b/toonz/sources/sound/wav/tsio_wav.cpp@@ -66,7 +66,7 @@ TINT32 TWAVChunk::HDR_LENGTH = 8;// FMT Chunk: Chunk contenente le informazioni sulla traccia-class TFMTChunk : public TWAVChunk {+class TFMTChunk final : public TWAVChunk {public:static TINT32 LENGTH;@@ -139,7 +139,7 @@ TINT32 TFMTChunk::LENGTH = TWAVChunk::HDR_LENGTH + 16;// DATA Chunk: Chunk contenente i campioni-class TDATAChunk : public TWAVChunk {+class TDATAChunk final : public TWAVChunk {public:std::unique_ptr<UCHAR[]> m_samples;diff --git a/toonz/sources/sound/wav/tsio_wav.h b/toonz/sources/sound/wav/tsio_wav.hindex 6b7a55b77..207a4893a 100644--- a/toonz/sources/sound/wav/tsio_wav.h+++ b/toonz/sources/sound/wav/tsio_wav.h@@ -10,7 +10,7 @@The class TSoundTrackReaderWav reads audio files having.wav extension*/-class TSoundTrackReaderWav : public TSoundTrackReader {+class TSoundTrackReaderWav final : public TSoundTrackReader {public:TSoundTrackReaderWav(const TFilePath &fp);~TSoundTrackReaderWav() {}@@ -35,7 +35,7 @@ The class TSoundTrackWriterWav writes audio file having.wav extension*/-class TSoundTrackWriterWav : public TSoundTrackWriter {+class TSoundTrackWriterWav final : public TSoundTrackWriter {public:TSoundTrackWriterWav(const TFilePath &fp);~TSoundTrackWriterWav() {}diff --git a/toonz/sources/stdfx/adjustlevelsfx.cpp b/toonz/sources/stdfx/adjustlevelsfx.cppindex ec90e2b80..2f043c8e3 100644--- a/toonz/sources/stdfx/adjustlevelsfx.cpp+++ b/toonz/sources/stdfx/adjustlevelsfx.cpp@@ -9,7 +9,7 @@//===================================================================-class AdjustLevelsFx : public TStandardRasterFx {+class AdjustLevelsFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(AdjustLevelsFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/artcontourfx.cpp b/toonz/sources/stdfx/artcontourfx.cppindex 4837fc287..d19f2f5e0 100644--- a/toonz/sources/stdfx/artcontourfx.cpp+++ b/toonz/sources/stdfx/artcontourfx.cpp@@ -9,7 +9,7 @@#include "trasterfx.h"#include "tspectrumparam.h"-class ArtContourFx : public TStandardRasterFx {+class ArtContourFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ArtContourFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/backlitfx.cpp b/toonz/sources/stdfx/backlitfx.cppindex ea85c7cad..0d1557597 100644--- a/toonz/sources/stdfx/backlitfx.cpp+++ b/toonz/sources/stdfx/backlitfx.cpp@@ -176,7 +176,7 @@ void backlit(TRaster64P lighted, TRaster64P light, TRaster64P out, double blur,//----------------------------------------------------------------------class BacklitFx : public TBaseRasterFx {+class BacklitFx final : public TBaseRasterFx {FX_DECLARATION(BacklitFx)TRasterFxPort m_lighted, m_light;TDoubleParamP m_value;diff --git a/toonz/sources/stdfx/blendtzfx.cpp b/toonz/sources/stdfx/blendtzfx.cppindex 53d1623e4..71607599c 100644--- a/toonz/sources/stdfx/blendtzfx.cpp+++ b/toonz/sources/stdfx/blendtzfx.cpp@@ -9,7 +9,7 @@#include "trasterfx.h"//------------------------------------------------------------------------------------------class BlendTzFx : public TStandardRasterFx {+class BlendTzFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(BlendTzFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/blurfx.cpp b/toonz/sources/stdfx/blurfx.cppindex 2dfd49940..dde4f3ed5 100644--- a/toonz/sources/stdfx/blurfx.cpp+++ b/toonz/sources/stdfx/blurfx.cpp@@ -6,7 +6,7 @@//--------------------------------------------------------------------class BlurFx : public TStandardRasterFx {+class BlurFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(BlurFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/bodyhighlightfx.cpp b/toonz/sources/stdfx/bodyhighlightfx.cppindex c779a14c7..aedcc73b8 100644--- a/toonz/sources/stdfx/bodyhighlightfx.cpp+++ b/toonz/sources/stdfx/bodyhighlightfx.cpp@@ -331,7 +331,7 @@ void doBodyHighlight(const TRasterPT<PIXEL> rout, const TRasterPT<PIXEL> rin,// BodyHighLightFx implementation//************************************************************************-class BodyHighLightFx : public TStandardRasterFx {+class BodyHighLightFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(BodyHighLightFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/bright_contfx.cpp b/toonz/sources/stdfx/bright_contfx.cppindex 0e12fd3ac..c69a60dac 100644--- a/toonz/sources/stdfx/bright_contfx.cpp+++ b/toonz/sources/stdfx/bright_contfx.cpp@@ -4,7 +4,7 @@#include "tfxparam.h"#include "tpixelutils.h"-class Bright_ContFx : public TStandardRasterFx {+class Bright_ContFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(Bright_ContFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/calligraphicfx.cpp b/toonz/sources/stdfx/calligraphicfx.cppindex d4f033430..f1e411327 100644--- a/toonz/sources/stdfx/calligraphicfx.cpp+++ b/toonz/sources/stdfx/calligraphicfx.cpp@@ -22,7 +22,7 @@//===================================================================-class CalligraphicFx : public TStandardRasterFx {+class CalligraphicFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(CalligraphicFx)TRasterFxPort m_input;TStringParamP m_colorIndex;@@ -189,7 +189,7 @@ private://------------------------------------------------------------------//===================================================================-class OutBorderFx : public TStandardRasterFx {+class OutBorderFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(OutBorderFx)TRasterFxPort m_input;TDoubleParamP m_thickness;diff --git a/toonz/sources/stdfx/changecolorfx.cpp b/toonz/sources/stdfx/changecolorfx.cppindex 1e61bde62..c354f62e7 100644--- a/toonz/sources/stdfx/changecolorfx.cpp+++ b/toonz/sources/stdfx/changecolorfx.cpp@@ -99,7 +99,7 @@ static void OLDHSV2RGB(double hue, double sat, double value, double *red,}}-class ChangeColorFx : public TStandardRasterFx {+class ChangeColorFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ChangeColorFx)TRasterFxPort m_input;TPixelParamP m_from_color;diff --git a/toonz/sources/stdfx/channelmixerfx.cpp b/toonz/sources/stdfx/channelmixerfx.cppindex 16f880a7c..89d4040a6 100644--- a/toonz/sources/stdfx/channelmixerfx.cpp+++ b/toonz/sources/stdfx/channelmixerfx.cpp@@ -8,7 +8,7 @@//==================================================================-class ChannelMixerFx : public TStandardRasterFx {+class ChannelMixerFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ChannelMixerFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/cloudsfx.cpp b/toonz/sources/stdfx/cloudsfx.cppindex e34af48a3..3196622e6 100644--- a/toonz/sources/stdfx/cloudsfx.cpp+++ b/toonz/sources/stdfx/cloudsfx.cpp@@ -6,7 +6,7 @@#include "stdfx.h"#include "tspectrumparam.h"-class CloudsFx : public TStandardZeraryFx {+class CloudsFx final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(CloudsFx)TIntEnumParamP m_type;TDoubleParamP m_size;diff --git a/toonz/sources/stdfx/colorembossfx.cpp b/toonz/sources/stdfx/colorembossfx.cppindex 01c3fb911..248d56024 100644--- a/toonz/sources/stdfx/colorembossfx.cpp+++ b/toonz/sources/stdfx/colorembossfx.cpp@@ -6,7 +6,7 @@//===================================================================-class ColorEmbossFx : public TStandardRasterFx {+class ColorEmbossFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ColorEmbossFx)TRasterFxPort m_input;@@ -34,7 +34,8 @@ public:~ColorEmbossFx(){};- bool doGetBBox(double frame, TRectD &bBox, const TRenderSettings &info) override {+ bool doGetBBox(double frame, TRectD &bBox,+ const TRenderSettings &info) override {if (m_input.isConnected()) {bool ret = m_input->doGetBBox(frame, bBox, info);return ret;diff --git a/toonz/sources/stdfx/cornerpinfx.cpp b/toonz/sources/stdfx/cornerpinfx.cppindex 354d92e31..c3a48c3b6 100644--- a/toonz/sources/stdfx/cornerpinfx.cpp+++ b/toonz/sources/stdfx/cornerpinfx.cpp@@ -18,7 +18,7 @@ inline bool myIsEmpty(const TRectD &r) { return r.x0 >= r.x1 || r.y0 >= r.y1; }//==============================================================================-class CornerPinFx : public TStandardRasterFx {+class CornerPinFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(CornerPinFx)enum { PERSPECTIVE, BILINEAR };diff --git a/toonz/sources/stdfx/despecklefx.cpp b/toonz/sources/stdfx/despecklefx.cppindex dee3772a4..dcbde31b2 100644--- a/toonz/sources/stdfx/despecklefx.cpp+++ b/toonz/sources/stdfx/despecklefx.cpp@@ -11,7 +11,7 @@//---------------------------------------------------------------------------class DespeckleFx : public TStandardRasterFx {+class DespeckleFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(DespeckleFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/diamondgradientfx.cpp b/toonz/sources/stdfx/diamondgradientfx.cppindex dd4063728..03d544ca8 100644--- a/toonz/sources/stdfx/diamondgradientfx.cpp+++ b/toonz/sources/stdfx/diamondgradientfx.cpp@@ -6,7 +6,7 @@#include "tspectrumparam.h"#include "tparamuiconcept.h"-class DiamondGradientFx : public TStandardZeraryFx {+class DiamondGradientFx final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(DiamondGradientFx)TSpectrumParamP m_colors;TDoubleParamP m_size;diff --git a/toonz/sources/stdfx/dissolvefx.cpp b/toonz/sources/stdfx/dissolvefx.cppindex e98ed6753..9d6716e77 100644--- a/toonz/sources/stdfx/dissolvefx.cpp+++ b/toonz/sources/stdfx/dissolvefx.cpp@@ -8,7 +8,7 @@//===================================================================-class DissolveFx : public TStandardRasterFx {+class DissolveFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(DissolveFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/embossfx.cpp b/toonz/sources/stdfx/embossfx.cppindex e7329e535..737c16cd4 100644--- a/toonz/sources/stdfx/embossfx.cpp+++ b/toonz/sources/stdfx/embossfx.cpp@@ -5,7 +5,7 @@#include "tpixelutils.h"//===================================================================-class EmbossFx : public TStandardRasterFx {+class EmbossFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(EmbossFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/erodilatefx.cpp b/toonz/sources/stdfx/erodilatefx.cppindex c4025ae46..5a68d8807 100644--- a/toonz/sources/stdfx/erodilatefx.cpp+++ b/toonz/sources/stdfx/erodilatefx.cpp@@ -14,7 +14,7 @@// ErodeDilate Fx//****************************************************************************-class ErodeDilateFx : public TStandardRasterFx {+class ErodeDilateFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ErodeDilateFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/externalpalettefx.cpp b/toonz/sources/stdfx/externalpalettefx.cppindex 28dd2b984..296a3cd00 100644--- a/toonz/sources/stdfx/externalpalettefx.cpp+++ b/toonz/sources/stdfx/externalpalettefx.cpp@@ -11,7 +11,7 @@//===================================================================-class ExternalPaletteFx : public TStandardRasterFx {+class ExternalPaletteFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ExternalPaletteFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/fourpointsgradientfx.cpp b/toonz/sources/stdfx/fourpointsgradientfx.cppindex 374bf5959..0ae3a0478 100644--- a/toonz/sources/stdfx/fourpointsgradientfx.cpp+++ b/toonz/sources/stdfx/fourpointsgradientfx.cpp@@ -13,7 +13,7 @@ inline void pixelConvert(TPixel64 &dst, const TPixel32 &src) {}} // namespace-class FourPointsGradientFx : public TStandardZeraryFx {+class FourPointsGradientFx final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(FourPointsGradientFx)TSpectrumParamP m_colors;TPointParamP m_point1;diff --git a/toonz/sources/stdfx/freedistortfx.cpp b/toonz/sources/stdfx/freedistortfx.cppindex ef5272dc8..6f17afa03 100644--- a/toonz/sources/stdfx/freedistortfx.cpp+++ b/toonz/sources/stdfx/freedistortfx.cpp@@ -75,14 +75,14 @@ private:TDoubleParamP m_downBlur;};-class FreeDistortFx : public FreeDistortBaseFx {+class FreeDistortFx final : public FreeDistortBaseFx {FX_PLUGIN_DECLARATION(FreeDistortFx)public:FreeDistortFx() : FreeDistortBaseFx(false) {}};-class CastShadowFx : public FreeDistortBaseFx {+class CastShadowFx final : public FreeDistortBaseFx {FX_PLUGIN_DECLARATION(CastShadowFx)public:CastShadowFx() : FreeDistortBaseFx(true) {}diff --git a/toonz/sources/stdfx/gammafx.cpp b/toonz/sources/stdfx/gammafx.cppindex 29b282015..484913086 100644--- a/toonz/sources/stdfx/gammafx.cpp+++ b/toonz/sources/stdfx/gammafx.cpp@@ -4,7 +4,7 @@#include "tfxparam.h"#include "trop.h"-class GammaFx : public TStandardRasterFx {+class GammaFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(GammaFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/glowfx.cpp b/toonz/sources/stdfx/glowfx.cppindex ef593979c..207c4b17d 100644--- a/toonz/sources/stdfx/glowfx.cpp+++ b/toonz/sources/stdfx/glowfx.cpp@@ -110,7 +110,7 @@ void fade(TRasterPT<T> ras, double fade, T color) // Why it is not in TRop..??// Glow Fx//------------------class GlowFx : public TBaseRasterFx {+class GlowFx final : public TBaseRasterFx {FX_DECLARATION(GlowFx)TRasterFxPort m_lighted, m_light;diff --git a/toonz/sources/stdfx/hsvkeyfx.cpp b/toonz/sources/stdfx/hsvkeyfx.cppindex cf5d0d05f..760440d02 100644--- a/toonz/sources/stdfx/hsvkeyfx.cpp+++ b/toonz/sources/stdfx/hsvkeyfx.cpp@@ -6,7 +6,7 @@#include "stdfx.h"#include "hsvutil.h"-class HSVKeyFx : public TStandardRasterFx {+class HSVKeyFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(HSVKeyFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/hsvscalefx.cpp b/toonz/sources/stdfx/hsvscalefx.cppindex b78e09f52..42cd16f9e 100644--- a/toonz/sources/stdfx/hsvscalefx.cpp+++ b/toonz/sources/stdfx/hsvscalefx.cpp@@ -6,7 +6,7 @@#include "stdfx.h"#include "hsvutil.h"-class HSVScaleFx : public TStandardRasterFx {+class HSVScaleFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(HSVScaleFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/igs_fog.cpp b/toonz/sources/stdfx/igs_fog.cppindex 482fbc321..e5586cdd0 100644--- a/toonz/sources/stdfx/igs_fog.cpp+++ b/toonz/sources/stdfx/igs_fog.cpp@@ -566,9 +566,9 @@ void put_sl_ch_(std::vector<double> &result, const int hh, const int ww,}namespace { //--------------------------------------------------------template <class T>-class one_thread_+class one_thread_ final: public igs::resource::thread_execute_interface { /* thread単位の実行設定- */+ */public:one_thread_() {}void setup(T in_image, T out_image, double *ref_threshdiff --git a/toonz/sources/stdfx/igs_line_blur.cpp b/toonz/sources/stdfx/igs_line_blur.cppindex 00b9d4f7d..9be88168d 100644--- a/toonz/sources/stdfx/igs_line_blur.cpp+++ b/toonz/sources/stdfx/igs_line_blur.cpp@@ -1159,7 +1159,7 @@ typedef unsigned short uint16_t;#endif/* x,yポイント座標のリストノード、画素連結、及び、線分連結、機能付き */-class pixel_point_node : public list_node {+class pixel_point_node final : public list_node {public:pixel_point_node() {int32_t ii;@@ -1285,7 +1285,7 @@ void pixel_point_node::print_xy_around(void) {#define OFF (0)#endif-class pixel_point_root : public list_root {+class pixel_point_root final : public list_root {public:pixel_point_root(void) {this->_i_mv_sw = OFF;@@ -1456,7 +1456,7 @@ int pixel_point_root::save(const char *cp_fname) {#define NG (-1)#endif-class pixel_line_node : public list_node {+class pixel_line_node final : public list_node {public:pixel_line_node() {this->_i32_point_count = 0;@@ -2397,7 +2397,7 @@ void pixel_line_node::smooth_expand(int32_t i32_smooth_retry) {#include "igs_line_blur.h" // "list_root.h" "calculator_geometry.h" "pixel_point_root.h" "pixel_line_root.h"-class pixel_select_same_way_node : public list_node {+class pixel_select_same_way_node final : public list_node {public:pixel_select_same_way_node(void) {this->clp_point_middle = NULL;@@ -2419,7 +2419,7 @@ public:private:};-class pixel_select_same_way_root : public list_root {+class pixel_select_same_way_root final : public list_root {public:pixel_select_same_way_root(void) {this->_i_mv_sw = OFF;@@ -2715,7 +2715,7 @@ void pixel_select_same_way_root::get_vector(double *dp_xv, double *dp_yv) {#include "igs_line_blur.h" // "list_root.h" "calculator_geometry.h" "pixel_point_root.h" "pixel_line_node.h" "pixel_select_same_way.h"-class pixel_line_root : public list_root {+class pixel_line_root final : public list_root {public:pixel_line_root(void) {this->_i_mv_sw = OFF;@@ -3925,7 +3925,7 @@ int pixel_line_root::save_expand_vector(const char *cp_fname) {#include "igs_line_blur.h" // "list_root.h" "calculator_geometry.h" "pixel_point_root.h" "pixel_line_root.h"-class pixel_select_curve_blur_node : public list_node {+class pixel_select_curve_blur_node final : public list_node {public:pixel_select_curve_blur_node(void) {this->clp_line = NULL;@@ -3953,7 +3953,7 @@ public:private:};-class pixel_select_curve_blur_root : public list_root {+class pixel_select_curve_blur_root final : public list_root {public:pixel_select_curve_blur_root(void) {this->_i_mv_sw = OFF;diff --git a/toonz/sources/stdfx/igs_maxmin_multithread.h b/toonz/sources/stdfx/igs_maxmin_multithread.hindex 98fd34d37..64049494f 100644--- a/toonz/sources/stdfx/igs_maxmin_multithread.h+++ b/toonz/sources/stdfx/igs_maxmin_multithread.h@@ -10,9 +10,9 @@namespace igs {namespace maxmin {template <class IT, class RT>-class thread+class thread final: public igs::resource::thread_execute_interface { /* thread単位の実行設定- */+ */public:thread() {}void setup(diff --git a/toonz/sources/stdfx/ino_blend_add.cpp b/toonz/sources/stdfx/ino_blend_add.cppindex 00f134d07..d03c268ae 100644--- a/toonz/sources/stdfx/ino_blend_add.cpp+++ b/toonz/sources/stdfx/ino_blend_add.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_add : public TBlendForeBackRasterFx {+class ino_blend_add final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_add)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_color_burn.cpp b/toonz/sources/stdfx/ino_blend_color_burn.cppindex cda5c95fe..2c186270f 100644--- a/toonz/sources/stdfx/ino_blend_color_burn.cpp+++ b/toonz/sources/stdfx/ino_blend_color_burn.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_color_burn : public TBlendForeBackRasterFx {+class ino_blend_color_burn final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_color_burn)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_color_dodge.cpp b/toonz/sources/stdfx/ino_blend_color_dodge.cppindex 92c3dc7ad..ddda38eba 100644--- a/toonz/sources/stdfx/ino_blend_color_dodge.cpp+++ b/toonz/sources/stdfx/ino_blend_color_dodge.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_color_dodge : public TBlendForeBackRasterFx {+class ino_blend_color_dodge final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_color_dodge)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_cross_dissolve.cpp b/toonz/sources/stdfx/ino_blend_cross_dissolve.cppindex 06c6bffc8..9c774f64c 100644--- a/toonz/sources/stdfx/ino_blend_cross_dissolve.cpp+++ b/toonz/sources/stdfx/ino_blend_cross_dissolve.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_cross_dissolve : public TBlendForeBackRasterFx {+class ino_blend_cross_dissolve final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_cross_dissolve)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_darken.cpp b/toonz/sources/stdfx/ino_blend_darken.cppindex 20173d616..bbfc76ff4 100644--- a/toonz/sources/stdfx/ino_blend_darken.cpp+++ b/toonz/sources/stdfx/ino_blend_darken.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_darken : public TBlendForeBackRasterFx {+class ino_blend_darken final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_darken)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_darker_color.cpp b/toonz/sources/stdfx/ino_blend_darker_color.cppindex ac7b7bc14..658a94d03 100644--- a/toonz/sources/stdfx/ino_blend_darker_color.cpp+++ b/toonz/sources/stdfx/ino_blend_darker_color.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_darker_color : public TBlendForeBackRasterFx {+class ino_blend_darker_color final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_darker_color)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_divide.cpp b/toonz/sources/stdfx/ino_blend_divide.cppindex 4bc0aae86..42cd07ac6 100644--- a/toonz/sources/stdfx/ino_blend_divide.cpp+++ b/toonz/sources/stdfx/ino_blend_divide.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_divide : public TBlendForeBackRasterFx {+class ino_blend_divide final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_divide)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_hard_light.cpp b/toonz/sources/stdfx/ino_blend_hard_light.cppindex 209cb21ba..bc4056982 100644--- a/toonz/sources/stdfx/ino_blend_hard_light.cpp+++ b/toonz/sources/stdfx/ino_blend_hard_light.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_hard_light : public TBlendForeBackRasterFx {+class ino_blend_hard_light final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_hard_light)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_hard_mix.cpp b/toonz/sources/stdfx/ino_blend_hard_mix.cppindex 5909c698b..bc2b5cb2e 100644--- a/toonz/sources/stdfx/ino_blend_hard_mix.cpp+++ b/toonz/sources/stdfx/ino_blend_hard_mix.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_hard_mix : public TBlendForeBackRasterFx {+class ino_blend_hard_mix final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_hard_mix)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_lighten.cpp b/toonz/sources/stdfx/ino_blend_lighten.cppindex 202a6c9fa..5bb8bb90a 100644--- a/toonz/sources/stdfx/ino_blend_lighten.cpp+++ b/toonz/sources/stdfx/ino_blend_lighten.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_lighten : public TBlendForeBackRasterFx {+class ino_blend_lighten final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_lighten)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_lighter_color.cpp b/toonz/sources/stdfx/ino_blend_lighter_color.cppindex 7d8ecdfb4..b8d081e4a 100644--- a/toonz/sources/stdfx/ino_blend_lighter_color.cpp+++ b/toonz/sources/stdfx/ino_blend_lighter_color.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_lighter_color : public TBlendForeBackRasterFx {+class ino_blend_lighter_color final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_lighter_color)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_linear_burn.cpp b/toonz/sources/stdfx/ino_blend_linear_burn.cppindex 0ba5e8623..d1e63ecde 100644--- a/toonz/sources/stdfx/ino_blend_linear_burn.cpp+++ b/toonz/sources/stdfx/ino_blend_linear_burn.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_linear_burn : public TBlendForeBackRasterFx {+class ino_blend_linear_burn final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_linear_burn)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_linear_dodge.cpp b/toonz/sources/stdfx/ino_blend_linear_dodge.cppindex 1fef84c7b..9e8598a2b 100644--- a/toonz/sources/stdfx/ino_blend_linear_dodge.cpp+++ b/toonz/sources/stdfx/ino_blend_linear_dodge.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_linear_dodge : public TBlendForeBackRasterFx {+class ino_blend_linear_dodge final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_linear_dodge)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_linear_light.cpp b/toonz/sources/stdfx/ino_blend_linear_light.cppindex d5fb8fe1f..3f7439c07 100644--- a/toonz/sources/stdfx/ino_blend_linear_light.cpp+++ b/toonz/sources/stdfx/ino_blend_linear_light.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_linear_light : public TBlendForeBackRasterFx {+class ino_blend_linear_light final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_linear_light)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_multiply.cpp b/toonz/sources/stdfx/ino_blend_multiply.cppindex 91c6e202a..88676ed87 100644--- a/toonz/sources/stdfx/ino_blend_multiply.cpp+++ b/toonz/sources/stdfx/ino_blend_multiply.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_multiply : public TBlendForeBackRasterFx {+class ino_blend_multiply final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_multiply)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_over.cpp b/toonz/sources/stdfx/ino_blend_over.cppindex 63f1c9eb5..84d36ff41 100644--- a/toonz/sources/stdfx/ino_blend_over.cpp+++ b/toonz/sources/stdfx/ino_blend_over.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_over : public TBlendForeBackRasterFx {+class ino_blend_over final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_over)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_overlay.cpp b/toonz/sources/stdfx/ino_blend_overlay.cppindex 0dbfc200c..b695d1694 100644--- a/toonz/sources/stdfx/ino_blend_overlay.cpp+++ b/toonz/sources/stdfx/ino_blend_overlay.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_overlay : public TBlendForeBackRasterFx {+class ino_blend_overlay final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_overlay)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_pin_light.cpp b/toonz/sources/stdfx/ino_blend_pin_light.cppindex 01e7db6fd..a63de63a2 100644--- a/toonz/sources/stdfx/ino_blend_pin_light.cpp+++ b/toonz/sources/stdfx/ino_blend_pin_light.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_pin_light : public TBlendForeBackRasterFx {+class ino_blend_pin_light final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_pin_light)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_screen.cpp b/toonz/sources/stdfx/ino_blend_screen.cppindex 84b002e1d..c888480c1 100644--- a/toonz/sources/stdfx/ino_blend_screen.cpp+++ b/toonz/sources/stdfx/ino_blend_screen.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_screen : public TBlendForeBackRasterFx {+class ino_blend_screen final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_screen)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_soft_light.cpp b/toonz/sources/stdfx/ino_blend_soft_light.cppindex 01f2edc12..def90f913 100644--- a/toonz/sources/stdfx/ino_blend_soft_light.cpp+++ b/toonz/sources/stdfx/ino_blend_soft_light.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_soft_light : public TBlendForeBackRasterFx {+class ino_blend_soft_light final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_soft_light)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_subtract.cpp b/toonz/sources/stdfx/ino_blend_subtract.cppindex f6674bc7b..b2dfee934 100644--- a/toonz/sources/stdfx/ino_blend_subtract.cpp+++ b/toonz/sources/stdfx/ino_blend_subtract.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_subtract : public TBlendForeBackRasterFx {+class ino_blend_subtract final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_subtract)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blend_vivid_light.cpp b/toonz/sources/stdfx/ino_blend_vivid_light.cppindex 1c1fac190..3a93893d3 100644--- a/toonz/sources/stdfx/ino_blend_vivid_light.cpp+++ b/toonz/sources/stdfx/ino_blend_vivid_light.cpp@@ -4,7 +4,7 @@#include "ino_common.h"/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */-class ino_blend_vivid_light : public TBlendForeBackRasterFx {+class ino_blend_vivid_light final : public TBlendForeBackRasterFx {FX_PLUGIN_DECLARATION(ino_blend_vivid_light)TRasterFxPort m_up;TRasterFxPort m_down;diff --git a/toonz/sources/stdfx/ino_blur.cpp b/toonz/sources/stdfx/ino_blur.cppindex ba4552f79..7f7e24064 100644--- a/toonz/sources/stdfx/ino_blur.cpp+++ b/toonz/sources/stdfx/ino_blur.cpp@@ -6,7 +6,7 @@#include "ino_common.h"#include "igs_gaussian_blur.h"//-------------------------------------------------------------class ino_blur : public TStandardRasterFx {+class ino_blur final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_blur)TRasterFxPort m_input;TRasterFxPort m_refer;diff --git a/toonz/sources/stdfx/ino_channel_selector.cpp b/toonz/sources/stdfx/ino_channel_selector.cppindex 3c2312297..cb2d4e5d1 100644--- a/toonz/sources/stdfx/ino_channel_selector.cpp+++ b/toonz/sources/stdfx/ino_channel_selector.cpp@@ -6,7 +6,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_channel_selector : public TStandardRasterFx {+class ino_channel_selector final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_channel_selector)TRasterFxPort m_source1;diff --git a/toonz/sources/stdfx/ino_density.cpp b/toonz/sources/stdfx/ino_density.cppindex b5f7a792d..89f728c11 100644--- a/toonz/sources/stdfx/ino_density.cpp+++ b/toonz/sources/stdfx/ino_density.cpp@@ -4,7 +4,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_density : public TStandardRasterFx {+class ino_density final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_density)TRasterFxPort m_input;TRasterFxPort m_refer;diff --git a/toonz/sources/stdfx/ino_fog.cpp b/toonz/sources/stdfx/ino_fog.cppindex 385932bf2..eb0989287 100644--- a/toonz/sources/stdfx/ino_fog.cpp+++ b/toonz/sources/stdfx/ino_fog.cpp@@ -5,7 +5,7 @@#include "ino_common.h"#include "igs_fog.h"//-------------------------------------------------------------class ino_fog : public TStandardRasterFx {+class ino_fog final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_fog)TRasterFxPort m_input;TDoubleParamP m_radius;diff --git a/toonz/sources/stdfx/ino_hls_add.cpp b/toonz/sources/stdfx/ino_hls_add.cppindex 0966fe08c..54fe41368 100644--- a/toonz/sources/stdfx/ino_hls_add.cpp+++ b/toonz/sources/stdfx/ino_hls_add.cpp@@ -4,7 +4,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_hls_add : public TStandardRasterFx {+class ino_hls_add final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_hls_add)TRasterFxPort m_input;TRasterFxPort m_noise;diff --git a/toonz/sources/stdfx/ino_hls_adjust.cpp b/toonz/sources/stdfx/ino_hls_adjust.cppindex 82a67e66a..1d784d4d6 100644--- a/toonz/sources/stdfx/ino_hls_adjust.cpp+++ b/toonz/sources/stdfx/ino_hls_adjust.cpp@@ -4,7 +4,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_hls_adjust : public TStandardRasterFx {+class ino_hls_adjust final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_hls_adjust)TRasterFxPort m_input;TRasterFxPort m_refer;diff --git a/toonz/sources/stdfx/ino_hls_noise.cpp b/toonz/sources/stdfx/ino_hls_noise.cppindex 65c63d331..2e3fc2ce4 100644--- a/toonz/sources/stdfx/ino_hls_noise.cpp+++ b/toonz/sources/stdfx/ino_hls_noise.cpp@@ -4,7 +4,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_hls_noise : public TStandardRasterFx {+class ino_hls_noise final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_hls_noise)TRasterFxPort m_input;TRasterFxPort m_refer;diff --git a/toonz/sources/stdfx/ino_hsv_add.cpp b/toonz/sources/stdfx/ino_hsv_add.cppindex f9791c2ec..a7aa589fd 100644--- a/toonz/sources/stdfx/ino_hsv_add.cpp+++ b/toonz/sources/stdfx/ino_hsv_add.cpp@@ -4,7 +4,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_hsv_add : public TStandardRasterFx {+class ino_hsv_add final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_hsv_add)TRasterFxPort m_input;TRasterFxPort m_noise;diff --git a/toonz/sources/stdfx/ino_hsv_adjust.cpp b/toonz/sources/stdfx/ino_hsv_adjust.cppindex 21a863d11..23c909a52 100644--- a/toonz/sources/stdfx/ino_hsv_adjust.cpp+++ b/toonz/sources/stdfx/ino_hsv_adjust.cpp@@ -4,7 +4,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_hsv_adjust : public TStandardRasterFx {+class ino_hsv_adjust final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_hsv_adjust)TRasterFxPort m_input;TRasterFxPort m_refer;diff --git a/toonz/sources/stdfx/ino_hsv_noise.cpp b/toonz/sources/stdfx/ino_hsv_noise.cppindex 63eb43676..62eefa254 100644--- a/toonz/sources/stdfx/ino_hsv_noise.cpp+++ b/toonz/sources/stdfx/ino_hsv_noise.cpp@@ -4,7 +4,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_hsv_noise : public TStandardRasterFx {+class ino_hsv_noise final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_hsv_noise)TRasterFxPort m_input;TRasterFxPort m_refer;diff --git a/toonz/sources/stdfx/ino_level_auto.cpp b/toonz/sources/stdfx/ino_level_auto.cppindex 38b6381bc..2260b66d8 100644--- a/toonz/sources/stdfx/ino_level_auto.cpp+++ b/toonz/sources/stdfx/ino_level_auto.cpp@@ -4,7 +4,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_level_auto : public TStandardRasterFx {+class ino_level_auto final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_level_auto)TRasterFxPort m_input;TDoubleParamP m_in_min_shift;diff --git a/toonz/sources/stdfx/ino_level_master.cpp b/toonz/sources/stdfx/ino_level_master.cppindex f028f6100..aab5e3071 100644--- a/toonz/sources/stdfx/ino_level_master.cpp+++ b/toonz/sources/stdfx/ino_level_master.cpp@@ -5,7 +5,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_level_master : public TStandardRasterFx {+class ino_level_master final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_level_master)TRasterFxPort m_input;TRasterFxPort m_refer;diff --git a/toonz/sources/stdfx/ino_level_rgba.cpp b/toonz/sources/stdfx/ino_level_rgba.cppindex 76460d50e..74a9dfcc7 100644--- a/toonz/sources/stdfx/ino_level_rgba.cpp+++ b/toonz/sources/stdfx/ino_level_rgba.cpp@@ -5,7 +5,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_level_rgba : public TStandardRasterFx {+class ino_level_rgba final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_level_rgba)TRasterFxPort m_input;TRasterFxPort m_refer;diff --git a/toonz/sources/stdfx/ino_line_blur.cpp b/toonz/sources/stdfx/ino_line_blur.cppindex 057884eb9..282b5d339 100644--- a/toonz/sources/stdfx/ino_line_blur.cpp+++ b/toonz/sources/stdfx/ino_line_blur.cpp@@ -1225,7 +1225,7 @@ typedef unsigned short uint16_t;#endif/* x,yポイント座標のリストノード、画素連結、及び、線分連結、機能付き */-class pixel_point_node : public list_node {+class pixel_point_node final : public list_node {public:pixel_point_node() {int32_t ii;@@ -1351,7 +1351,7 @@ void pixel_point_node::print_xy_around(void) {#define OFF (0)#endif-class pixel_point_root : public list_root {+class pixel_point_root final : public list_root {public:pixel_point_root(void) {this->_i_mv_sw = OFF;@@ -1522,7 +1522,7 @@ int pixel_point_root::save(const char *cp_fname) {#define NG (-1)#endif-class pixel_line_node : public list_node {+class pixel_line_node final : public list_node {public:pixel_line_node() {this->_i32_point_count = 0;@@ -2463,7 +2463,7 @@ void pixel_line_node::smooth_expand(int32_t i32_smooth_retry) {#include "igs_line_blur.h" // "list_root.h" "calculator_geometry.h" "pixel_point_root.h" "pixel_line_root.h"-class pixel_select_same_way_node : public list_node {+class pixel_select_same_way_node final : public list_node {public:pixel_select_same_way_node(void) {this->clp_point_middle = NULL;@@ -2485,7 +2485,7 @@ public:private:};-class pixel_select_same_way_root : public list_root {+class pixel_select_same_way_root final : public list_root {public:pixel_select_same_way_root(void) {this->_i_mv_sw = OFF;@@ -2781,7 +2781,7 @@ void pixel_select_same_way_root::get_vector(double *dp_xv, double *dp_yv) {#include "igs_line_blur.h" // "list_root.h" "calculator_geometry.h" "pixel_point_root.h" "pixel_line_node.h" "pixel_select_same_way.h"-class pixel_line_root : public list_root {+class pixel_line_root final : public list_root {public:pixel_line_root(void) {this->_i_mv_sw = OFF;@@ -3991,7 +3991,7 @@ int pixel_line_root::save_expand_vector(const char *cp_fname) {#include "igs_line_blur.h" // "list_root.h" "calculator_geometry.h" "pixel_point_root.h" "pixel_line_root.h"-class pixel_select_curve_blur_node : public list_node {+class pixel_select_curve_blur_node final : public list_node {public:pixel_select_curve_blur_node(void) {this->clp_line = NULL;@@ -4019,7 +4019,7 @@ public:private:};-class pixel_select_curve_blur_root : public list_root {+class pixel_select_curve_blur_root final : public list_root {public:pixel_select_curve_blur_root(void) {this->_i_mv_sw = OFF;@@ -6494,7 +6494,7 @@ void igs::line_blur::convert(#include "ino_common.h"#include "igs_line_blur.h"//-------------------------------------------------------------class ino_line_blur : public TStandardRasterFx {+class ino_line_blur final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_line_blur)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/ino_maxmin.cpp b/toonz/sources/stdfx/ino_maxmin.cppindex 1fac6e424..cf2a3ae4a 100644--- a/toonz/sources/stdfx/ino_maxmin.cpp+++ b/toonz/sources/stdfx/ino_maxmin.cpp@@ -7,7 +7,7 @@ namespace {const double smoothing_edge_ = 1.0;}//-------------------------------------------------------------class ino_maxmin : public TStandardRasterFx {+class ino_maxmin final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_maxmin)TRasterFxPort m_input;TRasterFxPort m_refer;diff --git a/toonz/sources/stdfx/ino_median.cpp b/toonz/sources/stdfx/ino_median.cppindex 8fd19bcdc..9ccaf236b 100644--- a/toonz/sources/stdfx/ino_median.cpp+++ b/toonz/sources/stdfx/ino_median.cpp@@ -4,7 +4,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_median : public TStandardRasterFx {+class ino_median final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_median)TRasterFxPort m_input;TRasterFxPort m_refer;diff --git a/toonz/sources/stdfx/ino_median_filter.cpp b/toonz/sources/stdfx/ino_median_filter.cppindex cc7d5e774..9e900111b 100644--- a/toonz/sources/stdfx/ino_median_filter.cpp+++ b/toonz/sources/stdfx/ino_median_filter.cpp@@ -4,7 +4,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_median_filter : public TStandardRasterFx {+class ino_median_filter final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_median_filter)TRasterFxPort m_input;TRasterFxPort m_refer;diff --git a/toonz/sources/stdfx/ino_motion_blur.cpp b/toonz/sources/stdfx/ino_motion_blur.cppindex 9c856f600..7acfca77e 100644--- a/toonz/sources/stdfx/ino_motion_blur.cpp+++ b/toonz/sources/stdfx/ino_motion_blur.cpp@@ -5,7 +5,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_motion_blur : public TStandardRasterFx {+class ino_motion_blur final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_motion_blur)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/ino_motion_wind.cpp b/toonz/sources/stdfx/ino_motion_wind.cppindex f577dd99b..d642e0aab 100644--- a/toonz/sources/stdfx/ino_motion_wind.cpp+++ b/toonz/sources/stdfx/ino_motion_wind.cpp@@ -4,7 +4,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_motion_wind : public TStandardRasterFx {+class ino_motion_wind final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_motion_wind)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/ino_negate.cpp b/toonz/sources/stdfx/ino_negate.cppindex df10bc51d..5fa8713e4 100644--- a/toonz/sources/stdfx/ino_negate.cpp+++ b/toonz/sources/stdfx/ino_negate.cpp@@ -4,7 +4,7 @@#include "ino_common.h"//-------------------------------------------------------------class ino_negate : public TStandardRasterFx {+class ino_negate final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_negate)TRasterFxPort m_input;TBoolParamP m_red;diff --git a/toonz/sources/stdfx/ino_pn_clouds.cpp b/toonz/sources/stdfx/ino_pn_clouds.cppindex cb7576a9e..61f12a702 100644--- a/toonz/sources/stdfx/ino_pn_clouds.cpp+++ b/toonz/sources/stdfx/ino_pn_clouds.cpp@@ -8,7 +8,7 @@toonz6.4sg ではTStandardRasterFxtoonz7.0 ではTStandardZeraryFx*/-class ino_pn_clouds : public TStandardZeraryFx {+class ino_pn_clouds final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(ino_pn_clouds)TDoubleParamP m_size;diff --git a/toonz/sources/stdfx/ino_radial_blur.cpp b/toonz/sources/stdfx/ino_radial_blur.cppindex c6754a8f6..b2e688820 100644--- a/toonz/sources/stdfx/ino_radial_blur.cpp+++ b/toonz/sources/stdfx/ino_radial_blur.cpp@@ -11,7 +11,7 @@namespace {const double ino_param_range = 100.0;}-class ino_radial_blur : public TStandardRasterFx {+class ino_radial_blur final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_radial_blur)TRasterFxPort m_input;TRasterFxPort m_refer;diff --git a/toonz/sources/stdfx/ino_spin_blur.cpp b/toonz/sources/stdfx/ino_spin_blur.cppindex 917e8475e..4a019bb78 100644--- a/toonz/sources/stdfx/ino_spin_blur.cpp+++ b/toonz/sources/stdfx/ino_spin_blur.cpp@@ -8,7 +8,7 @@#include "igs_rotate_blur.h"//-------------------------------------------------------------class ino_spin_blur : public TStandardRasterFx {+class ino_spin_blur final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_spin_blur)TRasterFxPort m_input;TRasterFxPort m_refer;diff --git a/toonz/sources/stdfx/ino_warp_hv.cpp b/toonz/sources/stdfx/ino_warp_hv.cppindex abdc4a287..6aa8841f0 100644--- a/toonz/sources/stdfx/ino_warp_hv.cpp+++ b/toonz/sources/stdfx/ino_warp_hv.cpp@@ -5,7 +5,7 @@#include "ino_common.h"#include "igs_warp.h"//-------------------------------------------------------------class ino_warp_hv : public TStandardRasterFx {+class ino_warp_hv final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ino_warp_hv)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/iwa_adjustexposurefx.h b/toonz/sources/stdfx/iwa_adjustexposurefx.hindex cc8a312bd..61269bfdb 100644--- a/toonz/sources/stdfx/iwa_adjustexposurefx.h+++ b/toonz/sources/stdfx/iwa_adjustexposurefx.h@@ -15,7 +15,7 @@ struct float4 {float x, y, z, w;};-class Iwa_AdjustExposureFx : public TStandardRasterFx {+class Iwa_AdjustExposureFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(Iwa_AdjustExposureFx)protected:diff --git a/toonz/sources/stdfx/iwa_directionalblurfx.h b/toonz/sources/stdfx/iwa_directionalblurfx.hindex a6a7354fe..808e91bdd 100644--- a/toonz/sources/stdfx/iwa_directionalblurfx.h+++ b/toonz/sources/stdfx/iwa_directionalblurfx.h@@ -21,7 +21,7 @@ struct int2 {int x, y;};-class Iwa_DirectionalBlurFx : public TStandardRasterFx {+class Iwa_DirectionalBlurFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(Iwa_DirectionalBlurFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/iwa_gradientwarpfx.h b/toonz/sources/stdfx/iwa_gradientwarpfx.hindex 5589142e0..6629390b5 100644--- a/toonz/sources/stdfx/iwa_gradientwarpfx.h+++ b/toonz/sources/stdfx/iwa_gradientwarpfx.h@@ -21,7 +21,7 @@ struct int2 {int x, y;};-class Iwa_GradientWarpFx : public TStandardRasterFx {+class Iwa_GradientWarpFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(Iwa_GradientWarpFx)protected:diff --git a/toonz/sources/stdfx/iwa_motionblurfx.h b/toonz/sources/stdfx/iwa_motionblurfx.hindex 23fdc62f8..f7a0a31a8 100644--- a/toonz/sources/stdfx/iwa_motionblurfx.h+++ b/toonz/sources/stdfx/iwa_motionblurfx.h@@ -36,7 +36,7 @@ enum PremultiTypes {SOURCE_IS_NOT_PREMUTIPLIED};-class Iwa_MotionBlurCompFx : public MotionAwareBaseFx {+class Iwa_MotionBlurCompFx final : public MotionAwareBaseFx {FX_PLUGIN_DECLARATION(Iwa_MotionBlurCompFx)protected:diff --git a/toonz/sources/stdfx/iwa_particlesfx.h b/toonz/sources/stdfx/iwa_particlesfx.hindex 73fef9279..925f775a7 100644--- a/toonz/sources/stdfx/iwa_particlesfx.h+++ b/toonz/sources/stdfx/iwa_particlesfx.h@@ -15,7 +15,7 @@// Iwa_Particles Fx class//******************************************************************-class Iwa_TiledParticlesFx : public TStandardZeraryFx {+class Iwa_TiledParticlesFx final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(Iwa_TiledParticlesFx)TFxPortDG m_source, m_control;diff --git a/toonz/sources/stdfx/iwa_particlesmanager.cpp b/toonz/sources/stdfx/iwa_particlesmanager.cppindex 84c2cd59e..0a1159daa 100644--- a/toonz/sources/stdfx/iwa_particlesmanager.cpp+++ b/toonz/sources/stdfx/iwa_particlesmanager.cpp@@ -35,7 +35,8 @@ typedef std::map<double, Iwa_ParticlesManager::FrameData> FramesMap;// Preliminaries//************************************************************************************************-class Iwa_ParticlesManagerGenerator : public TRenderResourceManagerGenerator {+class Iwa_ParticlesManagerGenerator final+ : public TRenderResourceManagerGenerator {public:Iwa_ParticlesManagerGenerator() : TRenderResourceManagerGenerator(true) {}diff --git a/toonz/sources/stdfx/iwa_particlesmanager.h b/toonz/sources/stdfx/iwa_particlesmanager.hindex a98b5bbd5..71d6d4499 100644--- a/toonz/sources/stdfx/iwa_particlesmanager.h+++ b/toonz/sources/stdfx/iwa_particlesmanager.h@@ -26,7 +26,7 @@ class TRandom;//------------------------------------------------------------------------class Iwa_ParticlesManager : public TRenderResourceManager {+class Iwa_ParticlesManager final : public TRenderResourceManager {T_RENDER_RESOURCE_MANAGERpublic:@@ -51,7 +51,7 @@ public:void clear();};- struct FxData : public TSmartObject {+ struct FxData final : public TSmartObject {DECLARE_CLASS_CODEQThreadStorage<FrameData *> m_frames;diff --git a/toonz/sources/stdfx/iwa_perspectivedistortfx.h b/toonz/sources/stdfx/iwa_perspectivedistortfx.hindex 09ba1514b..c479bbca3 100644--- a/toonz/sources/stdfx/iwa_perspectivedistortfx.h+++ b/toonz/sources/stdfx/iwa_perspectivedistortfx.h@@ -17,7 +17,7 @@ struct float4 {float x, y, z, w;};-class Iwa_PerspectiveDistortFx : public TStandardRasterFx {+class Iwa_PerspectiveDistortFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(Iwa_PerspectiveDistortFx)protected:TRasterFxPort m_source; /*- 入力画像 -*/diff --git a/toonz/sources/stdfx/iwa_pnperspectivefx.h b/toonz/sources/stdfx/iwa_pnperspectivefx.hindex c95461de1..127ec08e3 100644--- a/toonz/sources/stdfx/iwa_pnperspectivefx.h+++ b/toonz/sources/stdfx/iwa_pnperspectivefx.h@@ -46,7 +46,7 @@ struct PN_Params {float p_evolution;};-class Iwa_PNPerspectiveFx : public TStandardZeraryFx {+class Iwa_PNPerspectiveFx final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(Iwa_PNPerspectiveFx)TIntEnumParamPdiff --git a/toonz/sources/stdfx/iwa_spectrumfx.h b/toonz/sources/stdfx/iwa_spectrumfx.hindex 78a3ba4ac..6d73b75ff 100644--- a/toonz/sources/stdfx/iwa_spectrumfx.h+++ b/toonz/sources/stdfx/iwa_spectrumfx.h@@ -19,7 +19,7 @@ struct float4 {float x, y, z, w;};-class Iwa_SpectrumFx : public TStandardRasterFx {+class Iwa_SpectrumFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(Iwa_SpectrumFx)protected:diff --git a/toonz/sources/stdfx/iwa_tilefx.cpp b/toonz/sources/stdfx/iwa_tilefx.cppindex e56e5dd72..a68201a64 100644--- a/toonz/sources/stdfx/iwa_tilefx.cpp+++ b/toonz/sources/stdfx/iwa_tilefx.cpp@@ -11,7 +11,7 @@//=============================================================================-class Iwa_TileFx : public TStandardRasterFx {+class Iwa_TileFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(Iwa_TileFx)enum tileQuantity { eNoTile = 1, eOneTile = 2, eMultipleTiles = 3 };diff --git a/toonz/sources/stdfx/kaleido.cpp b/toonz/sources/stdfx/kaleido.cppindex a7c73048f..10646fb5d 100644--- a/toonz/sources/stdfx/kaleido.cpp+++ b/toonz/sources/stdfx/kaleido.cpp@@ -12,7 +12,7 @@namespace {-class KaleidoDistorter : public TDistorter {+class KaleidoDistorter final : public TDistorter {double m_angle;TAffine m_aff;TPointD m_shift;@@ -63,7 +63,7 @@ int KaleidoDistorter::invMap(const TPointD &p, TPointD *results) const {// Kaleido Fx//****************************************************************************-class KaleidoFx : public TStandardRasterFx {+class KaleidoFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(KaleidoFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/linearwavefx.cpp b/toonz/sources/stdfx/linearwavefx.cppindex e7c3c727a..0fbba0c26 100644--- a/toonz/sources/stdfx/linearwavefx.cpp+++ b/toonz/sources/stdfx/linearwavefx.cpp@@ -10,7 +10,7 @@//--------------------------------------------------------------------class LinearWaveFx : public TStandardRasterFx {+class LinearWaveFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(LinearWaveFx)protected:TRasterFxPort m_warped;diff --git a/toonz/sources/stdfx/localblurfx.cpp b/toonz/sources/stdfx/localblurfx.cppindex ca8c71606..cf77e65d1 100644--- a/toonz/sources/stdfx/localblurfx.cpp+++ b/toonz/sources/stdfx/localblurfx.cpp@@ -233,7 +233,7 @@ void doLocalBlur(TRasterPT<Pix> rin, TRasterPT<Pix> rcontrol,// LocalBlurFx implementation//********************************************************************************-class LocalBlurFx : public TStandardRasterFx {+class LocalBlurFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(LocalBlurFx)protected:diff --git a/toonz/sources/stdfx/localtransparencyfx.cpp b/toonz/sources/stdfx/localtransparencyfx.cppindex 27db1ec5e..f978700ed 100644--- a/toonz/sources/stdfx/localtransparencyfx.cpp+++ b/toonz/sources/stdfx/localtransparencyfx.cpp@@ -113,7 +113,7 @@ void drawCheckboard(TRaster32P &raster) {//--------------------------------------------------------------------class LocalTransparencyFx : public TStandardRasterFx {+class LocalTransparencyFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(LocalTransparencyFx)protected:TRasterFxPort m_src, m_ref;diff --git a/toonz/sources/stdfx/mosaicfx.cpp b/toonz/sources/stdfx/mosaicfx.cppindex d2a176a53..124d3382e 100644--- a/toonz/sources/stdfx/mosaicfx.cpp+++ b/toonz/sources/stdfx/mosaicfx.cpp@@ -103,7 +103,7 @@ public:};template <typename PIXEL, typename GRAY>-class SquareBuilder : public MaskCellBuilder<PIXEL, GRAY> {+class SquareBuilder final : public MaskCellBuilder<PIXEL, GRAY> {public:SquareBuilder(int cellLx, int cellLy, double radius, int wrap): MaskCellBuilder<PIXEL, GRAY>(cellLx, cellLy, radius, wrap) {@@ -135,7 +135,7 @@ public:};template <typename PIXEL, typename GRAY>-class CircleBuilder : public MaskCellBuilder<PIXEL, GRAY> {+class CircleBuilder final : public MaskCellBuilder<PIXEL, GRAY> {public:CircleBuilder(int cellLx, int cellLy, double radius, int wrap): MaskCellBuilder<PIXEL, GRAY>(cellLx, cellLy, radius, wrap) {@@ -172,7 +172,7 @@ public:// Mosaic Fx//****************************************************************************-class MosaicFx : public TStandardRasterFx {+class MosaicFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(MosaicFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/motionblurfx.cpp b/toonz/sources/stdfx/motionblurfx.cppindex f70c199cd..606d2dfa8 100644--- a/toonz/sources/stdfx/motionblurfx.cpp+++ b/toonz/sources/stdfx/motionblurfx.cpp@@ -415,7 +415,7 @@ public:const TRenderSettings &info) override;};-class DirectionalBlurFx : public DirectionalBlurBaseFx+class DirectionalBlurFx final : public DirectionalBlurBaseFx{FX_PLUGIN_DECLARATION(DirectionalBlurFx)@@ -437,7 +437,7 @@ public:}};-class MotionBlurFx : public DirectionalBlurBaseFx+class MotionBlurFx final : public DirectionalBlurBaseFx{FX_PLUGIN_DECLARATION(MotionBlurFx)diff --git a/toonz/sources/stdfx/multitonefx.cpp b/toonz/sources/stdfx/multitonefx.cppindex 1f80b4410..89202f4c0 100644--- a/toonz/sources/stdfx/multitonefx.cpp+++ b/toonz/sources/stdfx/multitonefx.cpp@@ -4,7 +4,7 @@#include "tfxparam.h"#include "tspectrumparam.h"-class MultiToneFx : public TStandardRasterFx {+class MultiToneFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(MultiToneFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/noisefx.cpp b/toonz/sources/stdfx/noisefx.cppindex e05915b11..0679a7248 100644--- a/toonz/sources/stdfx/noisefx.cpp+++ b/toonz/sources/stdfx/noisefx.cpp@@ -4,7 +4,7 @@#include "tfxparam.h"#include "stdfx.h"-class NoiseFx : public TStandardRasterFx {+class NoiseFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(NoiseFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/palettefilterfx.cpp b/toonz/sources/stdfx/palettefilterfx.cppindex 3ff42ee34..b90fb9aa6 100644--- a/toonz/sources/stdfx/palettefilterfx.cpp+++ b/toonz/sources/stdfx/palettefilterfx.cpp@@ -6,7 +6,7 @@//===================================================================-class PaletteFilterFx : public TStandardRasterFx {+class PaletteFilterFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(PaletteFilterFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/particlesfx.h b/toonz/sources/stdfx/particlesfx.hindex 57d9d82cb..2418b2c64 100644--- a/toonz/sources/stdfx/particlesfx.h+++ b/toonz/sources/stdfx/particlesfx.h@@ -11,7 +11,7 @@// Particles Fx class//******************************************************************-class ParticlesFx : public TStandardZeraryFx {+class ParticlesFx final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(ParticlesFx)TFxPortDG m_source, m_control;diff --git a/toonz/sources/stdfx/particlesmanager.cpp b/toonz/sources/stdfx/particlesmanager.cppindex 0353053b9..80380d625 100644--- a/toonz/sources/stdfx/particlesmanager.cpp+++ b/toonz/sources/stdfx/particlesmanager.cpp@@ -31,7 +31,7 @@ typedef std::map<double, ParticlesManager::FrameData> FramesMap;// Preliminaries//************************************************************************************************-class ParticlesManagerGenerator : public TRenderResourceManagerGenerator {+class ParticlesManagerGenerator final : public TRenderResourceManagerGenerator {public:ParticlesManagerGenerator() : TRenderResourceManagerGenerator(true) {}diff --git a/toonz/sources/stdfx/particlesmanager.h b/toonz/sources/stdfx/particlesmanager.hindex 5202c0ae8..5f75ebbc3 100644--- a/toonz/sources/stdfx/particlesmanager.h+++ b/toonz/sources/stdfx/particlesmanager.h@@ -19,7 +19,7 @@ class TRandom;//------------------------------------------------------------------------class ParticlesManager : public TRenderResourceManager {+class ParticlesManager final : public TRenderResourceManager {T_RENDER_RESOURCE_MANAGERpublic:@@ -41,7 +41,7 @@ public:void clear();};- struct FxData : public TSmartObject {+ struct FxData final : public TSmartObject {DECLARE_CLASS_CODEQThreadStorage<FrameData *> m_frames;diff --git a/toonz/sources/stdfx/perlinnoisefx.cpp b/toonz/sources/stdfx/perlinnoisefx.cppindex 2fc0de13e..e2f9ab1da 100644--- a/toonz/sources/stdfx/perlinnoisefx.cpp+++ b/toonz/sources/stdfx/perlinnoisefx.cpp@@ -9,7 +9,7 @@//==================================================================-class PerlinNoiseFx : public TStandardRasterFx {+class PerlinNoiseFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(PerlinNoiseFx)TRasterFxPort m_input;TIntEnumParamP m_type;diff --git a/toonz/sources/stdfx/posterizefx.cpp b/toonz/sources/stdfx/posterizefx.cppindex a90b4a82c..fcb892c40 100644--- a/toonz/sources/stdfx/posterizefx.cpp+++ b/toonz/sources/stdfx/posterizefx.cpp@@ -16,7 +16,7 @@ void prepare_lut(int levels, std::vector<T> &lut) {//===================================================================-class PosterizeFx : public TStandardRasterFx {+class PosterizeFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(PosterizeFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/premultiplyfx.cpp b/toonz/sources/stdfx/premultiplyfx.cppindex aba74feed..6dab55db4 100644--- a/toonz/sources/stdfx/premultiplyfx.cpp+++ b/toonz/sources/stdfx/premultiplyfx.cpp@@ -5,7 +5,7 @@#include "trop.h"//===================================================================-class PremultiplyFx : public TStandardRasterFx {+class PremultiplyFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(PremultiplyFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/radialblurfx.cpp b/toonz/sources/stdfx/radialblurfx.cppindex eec917331..434461312 100644--- a/toonz/sources/stdfx/radialblurfx.cpp+++ b/toonz/sources/stdfx/radialblurfx.cpp@@ -5,7 +5,7 @@#include "tparamset.h"#include "tparamuiconcept.h"-class RadialBlurFx : public TStandardRasterFx {+class RadialBlurFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(RadialBlurFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/randomwavefx.cpp b/toonz/sources/stdfx/randomwavefx.cppindex 4123bc002..37e8c9017 100644--- a/toonz/sources/stdfx/randomwavefx.cpp+++ b/toonz/sources/stdfx/randomwavefx.cpp@@ -13,7 +13,7 @@//--------------------------------------------------------------------class RandomWaveFx : public TStandardRasterFx {+class RandomWaveFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(RandomWaveFx)protected:TRasterFxPort m_warped;diff --git a/toonz/sources/stdfx/raylitfx.cpp b/toonz/sources/stdfx/raylitfx.cppindex de9097726..34d6f3c22 100644--- a/toonz/sources/stdfx/raylitfx.cpp+++ b/toonz/sources/stdfx/raylitfx.cpp@@ -109,7 +109,7 @@ int BaseRaylitFx::getMemoryRequirement(const TRectD &rect, double frame,//========================================================================================-class RaylitFx : public BaseRaylitFx {+class RaylitFx final : public BaseRaylitFx {FX_PLUGIN_DECLARATION(RaylitFx)protected:@@ -178,7 +178,7 @@ void RaylitFx::doCompute(TTile &tileOut, double frame,//========================================================================================-class ColorRaylitFx : public BaseRaylitFx {+class ColorRaylitFx final : public BaseRaylitFx {FX_PLUGIN_DECLARATION(ColorRaylitFx)public:diff --git a/toonz/sources/stdfx/rgbkeyfx.cpp b/toonz/sources/stdfx/rgbkeyfx.cppindex 5a8559788..8a84e0b93 100644--- a/toonz/sources/stdfx/rgbkeyfx.cpp+++ b/toonz/sources/stdfx/rgbkeyfx.cpp@@ -7,7 +7,7 @@#include "tparamset.h"-class RGBKeyFx : public TStandardRasterFx {+class RGBKeyFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(RGBKeyFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/rgbmcutfx.cpp b/toonz/sources/stdfx/rgbmcutfx.cppindex f060dbc8e..be812e1c0 100644--- a/toonz/sources/stdfx/rgbmcutfx.cpp+++ b/toonz/sources/stdfx/rgbmcutfx.cpp@@ -6,7 +6,7 @@#include "tparamset.h"-class RGBMCutFx : public TStandardRasterFx {+class RGBMCutFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(RGBMCutFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/rgbmfadefx.cpp b/toonz/sources/stdfx/rgbmfadefx.cppindex 71fe5bf58..2a9842077 100644--- a/toonz/sources/stdfx/rgbmfadefx.cpp+++ b/toonz/sources/stdfx/rgbmfadefx.cpp@@ -8,7 +8,7 @@//===================================================================-class RGBMFadeFx : public TStandardRasterFx {+class RGBMFadeFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(RGBMFadeFx)TRasterFxPort m_input;TPixelParamP m_color;diff --git a/toonz/sources/stdfx/rgbmscalefx.cpp b/toonz/sources/stdfx/rgbmscalefx.cppindex 5cf8b8a28..cb96e3a4c 100644--- a/toonz/sources/stdfx/rgbmscalefx.cpp+++ b/toonz/sources/stdfx/rgbmscalefx.cpp@@ -7,7 +7,7 @@//===================================================================-class RGBMScaleFx : public TStandardRasterFx {+class RGBMScaleFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(RGBMScaleFx)TRasterFxPort m_input;TDoubleParamP m_red;diff --git a/toonz/sources/stdfx/ripplefx.cpp b/toonz/sources/stdfx/ripplefx.cppindex dd4d50ae4..126503d2c 100644--- a/toonz/sources/stdfx/ripplefx.cpp+++ b/toonz/sources/stdfx/ripplefx.cpp@@ -12,7 +12,7 @@//--------------------------------------------------------------------class RippleFx : public TStandardRasterFx {+class RippleFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(RippleFx)protected:TRasterFxPort m_warped;diff --git a/toonz/sources/stdfx/rotationalblurfx.cpp b/toonz/sources/stdfx/rotationalblurfx.cppindex 92922a6d0..03b8fb2dd 100644--- a/toonz/sources/stdfx/rotationalblurfx.cpp+++ b/toonz/sources/stdfx/rotationalblurfx.cpp@@ -6,7 +6,7 @@#include "tparamset.h"#include "tparamuiconcept.h"-class SpinBlurFx : public TStandardRasterFx {+class SpinBlurFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(SpinBlurFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/saltpeppernoisefx.cpp b/toonz/sources/stdfx/saltpeppernoisefx.cppindex e51e0f0e4..3baa53a79 100644--- a/toonz/sources/stdfx/saltpeppernoisefx.cpp+++ b/toonz/sources/stdfx/saltpeppernoisefx.cpp@@ -8,7 +8,7 @@//===================================================================-class SaltPepperNoiseFx : public TStandardRasterFx {+class SaltPepperNoiseFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(SaltPepperNoiseFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/shaderfx.cpp b/toonz/sources/stdfx/shaderfx.cppindex e67c7d18d..bb3420396 100644--- a/toonz/sources/stdfx/shaderfx.cpp+++ b/toonz/sources/stdfx/shaderfx.cpp@@ -157,7 +157,7 @@ inline void ceilRect(TRectD &rect) {// Shader Fx declaration//****************************************************************************-class ShaderFx : public TStandardZeraryFx {+class ShaderFx final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(ShaderFx)const ShaderInterface *m_shaderInterface; //!< Shader fx 'description'.@@ -211,7 +211,7 @@ private:// ShaderFxDeclaration definition//****************************************************************************-class ShaderFxDeclaration : public TFxDeclaration {+class ShaderFxDeclaration final : public TFxDeclaration {ShaderInterface m_shaderInterface;public:@@ -227,7 +227,7 @@ public:// ShadingContextManager definition//****************************************************************************-class ShadingContextManager : public QObject {+class ShadingContextManager final : public QObject {mutable QMutex m_mutex;ShadingContext m_shadingContext;@@ -323,7 +323,7 @@ template class DV_EXPORT_API TFxDeclarationT<ShaderFx>;// ShadingContextManagerDelegate definition//****************************************************************************-class MessageCreateContext : public TThread::Message {+class MessageCreateContext final : public TThread::Message {ShadingContextManager *man;public:@@ -336,7 +336,7 @@ public:}};-class SCMDelegate : public TRenderResourceManager {+class SCMDelegate final : public TRenderResourceManager {T_RENDER_RESOURCE_MANAGERvoid onRenderInstanceStart(unsigned long id) override {@@ -355,7 +355,7 @@ class SCMDelegate : public TRenderResourceManager {//--------------------------------------------------------------------class SCMDelegateGenerator : public TRenderResourceManagerGenerator {+class SCMDelegateGenerator final : public TRenderResourceManagerGenerator {public:SCMDelegateGenerator() : TRenderResourceManagerGenerator(false) {/*@@ -365,7 +365,7 @@ QCoreApplication itself has been created. The easiest way to do sois scheduling a slot to be executed as soon as event processing starts.*/- struct InstanceSCM : public TFunctorInvoker::BaseFunctor {+ struct InstanceSCM final : public TFunctorInvoker::BaseFunctor {void operator()() override { ShadingContextManager::instance(); }};diff --git a/toonz/sources/stdfx/sharpenfx.cpp b/toonz/sources/stdfx/sharpenfx.cppindex 22e23ef56..ed34b2d59 100644--- a/toonz/sources/stdfx/sharpenfx.cpp+++ b/toonz/sources/stdfx/sharpenfx.cpp@@ -234,7 +234,7 @@ void ropSharpen(const TRasterPT<T> &rin, TRasterPT<T> &rout,/*---------------------------------------------------------------------------*/-class SharpenFx : public TStandardRasterFx {+class SharpenFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(SharpenFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/solarizefx.cpp b/toonz/sources/stdfx/solarizefx.cppindex 26ceb800d..fccf91c33 100644--- a/toonz/sources/stdfx/solarizefx.cpp+++ b/toonz/sources/stdfx/solarizefx.cpp@@ -21,7 +21,7 @@ void prepare_lut(double max, int edge, std::vector<T> &lut) {//===================================================================-class SolarizeFx : public TStandardRasterFx {+class SolarizeFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(SolarizeFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/squaregradientfx.cpp b/toonz/sources/stdfx/squaregradientfx.cppindex 368e1c0be..be4bd4815 100644--- a/toonz/sources/stdfx/squaregradientfx.cpp+++ b/toonz/sources/stdfx/squaregradientfx.cpp@@ -9,7 +9,7 @@#undef max//===================================================================-class SquareGradientFx : public TStandardZeraryFx {+class SquareGradientFx final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(SquareGradientFx)TSpectrumParamP m_colors;TDoubleParamP m_size;diff --git a/toonz/sources/stdfx/stdfx.cpp b/toonz/sources/stdfx/stdfx.cppindex e6cdc67c4..603b9eed7 100644--- a/toonz/sources/stdfx/stdfx.cpp+++ b/toonz/sources/stdfx/stdfx.cpp@@ -23,7 +23,7 @@ bool isAlmostIsotropic(const TAffine &aff) { return aff.isIsotropic(0.001); }//==================================================================-class FadeFx : public TStandardRasterFx {+class FadeFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(FadeFx)TRasterFxPort m_input;TDoubleParamP m_value;@@ -67,7 +67,7 @@ public://==================================================================-class SpiralFx : public TStandardZeraryFx {+class SpiralFx final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(SpiralFx)TDoubleParamP m_freq;TDoubleParamP m_phase;@@ -164,7 +164,7 @@ void SpiralFx::doCompute(TTile &tile, double frame, const TRenderSettings &ri) {//-------------------------------------------------------------------class MultiLinearGradientFx : public TStandardZeraryFx {+class MultiLinearGradientFx final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(MultiLinearGradientFx)TDoubleParamP m_period;TDoubleParamP m_count;@@ -227,7 +227,7 @@ public:}};-class LinearGradientFx : public TStandardZeraryFx {+class LinearGradientFx final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(LinearGradientFx)TDoubleParamP m_period;@@ -398,7 +398,7 @@ throw TException("MultiLinearGradientFx: unsupported Pixel Type");//==================================================================-class RadialGradientFx : public TStandardZeraryFx {+class RadialGradientFx final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(RadialGradientFx)TDoubleParamP m_period;TDoubleParamP m_innerperiod;@@ -450,7 +450,7 @@ public://==================================================================-class MultiRadialGradientFx : public TStandardZeraryFx {+class MultiRadialGradientFx final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(MultiRadialGradientFx)TDoubleParamP m_period;TDoubleParamP m_count;@@ -546,7 +546,7 @@ void RadialGradientFx::doCompute(TTile &tile, double frame,//-------------------------------------------------------------------class LightSpotFx : public TStandardZeraryFx {+class LightSpotFx final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(LightSpotFx)TDoubleParamP m_softness;TDoubleParamP m_a;diff --git a/toonz/sources/stdfx/targetspotfx.cpp b/toonz/sources/stdfx/targetspotfx.cppindex 4732ec17f..801f2fa72 100644--- a/toonz/sources/stdfx/targetspotfx.cpp+++ b/toonz/sources/stdfx/targetspotfx.cpp@@ -9,7 +9,7 @@//==================================================================-class TargetSpotFx : public TStandardZeraryFx {+class TargetSpotFx final : public TStandardZeraryFx {FX_PLUGIN_DECLARATION(TargetSpotFx)TDoubleParamP m_z;diff --git a/toonz/sources/stdfx/texturefx.cpp b/toonz/sources/stdfx/texturefx.cppindex e8eaab8be..7fe227b95 100644--- a/toonz/sources/stdfx/texturefx.cpp+++ b/toonz/sources/stdfx/texturefx.cpp@@ -8,7 +8,7 @@//===================================================================-class TextureFx : public TStandardRasterFx {+class TextureFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(TextureFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/tilefx.cpp b/toonz/sources/stdfx/tilefx.cppindex 624dda4d5..58bd91c88 100644--- a/toonz/sources/stdfx/tilefx.cpp+++ b/toonz/sources/stdfx/tilefx.cpp@@ -8,7 +8,7 @@//=============================================================================-class TileFx : public TStandardRasterFx {+class TileFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(TileFx)enum tilingMode { eTile = 1, eTileHorizontally = 2, eTileVertically = 3 };diff --git a/toonz/sources/stdfx/tonecurvefx.cpp b/toonz/sources/stdfx/tonecurvefx.cppindex 60a92a6d3..b2b689c35 100644--- a/toonz/sources/stdfx/tonecurvefx.cpp+++ b/toonz/sources/stdfx/tonecurvefx.cpp@@ -85,7 +85,7 @@ void fill_lut(QList<TPointD> points, std::vector<T> &lut, bool isLinear) {//===================================================================-class ToneCurveFx : public TStandardRasterFx {+class ToneCurveFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(ToneCurveFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/unmultiplyfx.cpp b/toonz/sources/stdfx/unmultiplyfx.cppindex ed5f81ceb..296e9369e 100644--- a/toonz/sources/stdfx/unmultiplyfx.cpp+++ b/toonz/sources/stdfx/unmultiplyfx.cpp@@ -15,7 +15,7 @@ TPixel32 unmultiply(const TPixel32 &pix) {//===================================================================-class UnmultiplyFx : public TStandardRasterFx {+class UnmultiplyFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(UnmultiplyFx)TRasterFxPort m_input;diff --git a/toonz/sources/stdfx/warp.cpp b/toonz/sources/stdfx/warp.cppindex 1f4107924..755afda5f 100644--- a/toonz/sources/stdfx/warp.cpp+++ b/toonz/sources/stdfx/warp.cpp@@ -27,7 +27,7 @@ inline double convert<TPixel64>(const TPixel64 &pixel) {/*-----------------------------------------------------------------*/template <typename T>-class Warper : public TDistorter {+class Warper final : public TDistorter {public:TRasterPT<T> m_rin;TRasterPT<T> m_warper;diff --git a/toonz/sources/stdfx/warpfx.cpp b/toonz/sources/stdfx/warpfx.cppindex 4edd805c3..f2754c481 100644--- a/toonz/sources/stdfx/warpfx.cpp+++ b/toonz/sources/stdfx/warpfx.cpp@@ -9,7 +9,7 @@//--------------------------------------------------------------------class WarpFx : public TStandardRasterFx {+class WarpFx final : public TStandardRasterFx {FX_PLUGIN_DECLARATION(WarpFx)protected:diff --git a/toonz/sources/tcomposer/tcomposer.cpp b/toonz/sources/tcomposer/tcomposer.cppindex fd002e7ce..5d777ba39 100644--- a/toonz/sources/tcomposer/tcomposer.cpp+++ b/toonz/sources/tcomposer/tcomposer.cpp@@ -227,7 +227,7 @@ void tcomposerRunOutOfContMemHandler(unsigned long size) {//==============================================================================================-class MyMovieRenderListener : public MovieRenderer::Listener {+class MyMovieRenderListener final : public MovieRenderer::Listener {public:MyMovieRenderListener(const TFilePath &fp, int frameCount,QWaitCondition &renderCompleted, bool stereo)@@ -319,7 +319,7 @@ void MyMovieRenderListener::onSequenceCompleted(const TFilePath &fp) {//==============================================================================================-class MyMultimediaRenderListener : public MultimediaRenderer::Listener {+class MyMultimediaRenderListener final : public MultimediaRenderer::Listener {public:TFilePath m_fp;int m_frameCount;diff --git a/toonz/sources/tnzbase/stringtable.cpp b/toonz/sources/tnzbase/stringtable.cppindex 72171b1ca..ecad8af12 100644--- a/toonz/sources/tnzbase/stringtable.cpp+++ b/toonz/sources/tnzbase/stringtable.cpp@@ -14,7 +14,7 @@ namespace {//--------------------------------------------------------------------class TStringTableImp : public TStringTable {+class TStringTableImp final : public TStringTable {public:bool m_initialized;diff --git a/toonz/sources/tnzbase/trasterfx.cpp b/toonz/sources/tnzbase/trasterfx.cppindex 0a236409d..12bd37722 100644--- a/toonz/sources/tnzbase/trasterfx.cpp+++ b/toonz/sources/tnzbase/trasterfx.cpp@@ -212,7 +212,7 @@ void removeRenderCache(const std::string &alias) {//! Internal fx node which applies the implicit affine stored in the//! TRenderSettings structure,//! replacing the old TRasterFx::doCompute.-class TrFx : public TBaseRasterFx {+class TrFx final : public TBaseRasterFx {FX_DECLARATION(TrFx)TRasterFx *m_fx;@@ -360,7 +360,7 @@ FX_IDENTIFIER_IS_HIDDEN(TrFx, "trFx")// render// results. Please refer to the ResourceBuilder documentation in// tfxcachemanager.cpp-class FxResourceBuilder : public ResourceBuilder {+class FxResourceBuilder final : public ResourceBuilder {TRasterFxP m_rfx;double m_frame;const TRenderSettings *m_rs;diff --git a/toonz/sources/tnzbase/tscanner/TScannerIO/TUSBScannerIO.h b/toonz/sources/tnzbase/tscanner/TScannerIO/TUSBScannerIO.hindex c5b2a8c1f..d2e348491 100644--- a/toonz/sources/tnzbase/tscanner/TScannerIO/TUSBScannerIO.h+++ b/toonz/sources/tnzbase/tscanner/TScannerIO/TUSBScannerIO.h@@ -7,7 +7,7 @@class TUSBScannerIOPD;-class TUSBScannerIO : public TScannerIO {+class TUSBScannerIO final : public TScannerIO {TUSBScannerIOPD *m_data;public:diff --git a/toonz/sources/tnzbase/tscanner/tscanner.cpp b/toonz/sources/tnzbase/tscanner/tscanner.cppindex c7330f3a5..280343629 100644--- a/toonz/sources/tnzbase/tscanner/tscanner.cpp+++ b/toonz/sources/tnzbase/tscanner/tscanner.cpp@@ -329,7 +329,7 @@ Cleaner MyCleaner;// #define DUMMYSCAN#ifdef DUMMYSCAN-class TScannerDummy : public TScanner {+class TScannerDummy final : public TScanner {public:TScannerDummy() {}~TScannerDummy() {}diff --git a/toonz/sources/tnzbase/tscanner/tscannerepson.cpp b/toonz/sources/tnzbase/tscanner/tscannerepson.cppindex 5058ebf9f..7b2740276 100644--- a/toonz/sources/tnzbase/tscanner/tscannerepson.cpp+++ b/toonz/sources/tnzbase/tscanner/tscannerepson.cpp@@ -75,7 +75,7 @@ static unsigned char NotReady = 1 << 6;#define log-class TScannerExpection : public TException {+class TScannerExpection final : public TException {TString m_scannerMsg;public:diff --git a/toonz/sources/tnzbase/tscanner/tscannerepson.h b/toonz/sources/tnzbase/tscanner/tscannerepson.hindex d2afbbda2..bcc036b43 100644--- a/toonz/sources/tnzbase/tscanner/tscannerepson.h+++ b/toonz/sources/tnzbase/tscanner/tscannerepson.h@@ -13,7 +13,7 @@ PLEASE DO NOT REMOVE unreferenced methods... they are useful for debugging :)max*/-class TScannerEpson : public TScanner {+class TScannerEpson final : public TScanner {enum SettingsMode { OLD_STYLE, NEW_STYLE };TScannerIO *m_scannerIO;diff --git a/toonz/sources/tnzbase/tscanner/tscannertwain.h b/toonz/sources/tnzbase/tscanner/tscannertwain.hindex b0fa85eae..8805b8207 100644--- a/toonz/sources/tnzbase/tscanner/tscannertwain.h+++ b/toonz/sources/tnzbase/tscanner/tscannertwain.h@@ -5,7 +5,7 @@#include "tscanner.h"-class TScannerTwain : public TScanner {+class TScannerTwain final : public TScanner {public:TScannerTwain();~TScannerTwain();diff --git a/toonz/sources/tnzext/meshbuilder.cpp b/toonz/sources/tnzext/meshbuilder.cppindex ac4751d0f..a513132ce 100644--- a/toonz/sources/tnzext/meshbuilder.cpp+++ b/toonz/sources/tnzext/meshbuilder.cpp@@ -182,7 +182,7 @@ inline void delete_(T t) {}template <typename T>-struct Vector : public std::vector<T> {+struct Vector final : public std::vector<T> {Vector() : std::vector<T>() {}~Vector() { std::for_each(this->begin(), this->end(), delete_<T>); }};@@ -219,7 +219,7 @@ public://---------------------------------------------------------------------------class BordersReader : public ImageMeshesReaderT<TPixelGR8> {+class BordersReader final : public ImageMeshesReaderT<TPixelGR8> {public:Vector<RasterBorder *> m_borders;RasterBorder *m_current;diff --git a/toonz/sources/tnzext/meshutils.cpp b/toonz/sources/tnzext/meshutils.cppindex 9723cb755..c21f09ccc 100644--- a/toonz/sources/tnzext/meshutils.cpp+++ b/toonz/sources/tnzext/meshutils.cpp@@ -244,8 +244,8 @@ public://--------------------------------------------------------------------------------struct LinearVertexColorFunction : public LinearColorFunction,- public NoColorFunction {+struct LinearVertexColorFunction final : public LinearColorFunction,+ public NoColorFunction {LinearVertexColorFunction(const TMeshImage &meshImg,const PlasticDeformerDataGroup *group, double min,double max, double *cMin, double *cMax,@@ -257,8 +257,8 @@ struct LinearVertexColorFunction : public LinearColorFunction,//--------------------------------------------------------------------------------struct LinearFaceColorFunction : public LinearColorFunction,- public NoColorFunction {+struct LinearFaceColorFunction final : public LinearColorFunction,+ public NoColorFunction {LinearFaceColorFunction(const TMeshImage &meshImg,const PlasticDeformerDataGroup *group, double min,double max, double *cMin, double *cMax,diff --git a/toonz/sources/tnzext/plasticskeletondeformation.cpp b/toonz/sources/tnzext/plasticskeletondeformation.cppindex 5060025df..fa499959a 100644--- a/toonz/sources/tnzext/plasticskeletondeformation.cpp+++ b/toonz/sources/tnzext/plasticskeletondeformation.cpp@@ -214,7 +214,7 @@ void SkVD::loadData(TIStream &is) {// PlasticSkeletonDeformation::Imp definition//**************************************************************************************-class PlasticSkeletonDeformation::Imp : public TParamObserver {+class PlasticSkeletonDeformation::Imp final : public TParamObserver {public:PlasticSkeletonDeformation *m_back; //!< Back-pointer to the interface classdiff --git a/toonz/sources/tnzext/tlin/tlin_superlu_wrap.cpp b/toonz/sources/tnzext/tlin/tlin_superlu_wrap.cppindex cbd24e9cd..636f56331 100644--- a/toonz/sources/tnzext/tlin/tlin_superlu_wrap.cpp+++ b/toonz/sources/tnzext/tlin/tlin_superlu_wrap.cpp@@ -15,8 +15,8 @@ extern "C" {// Preliminaries//*************************************************************************-struct tlin::SuperMatrix : public ::SuperMatrix {};-struct tlin::superlu_options_t : public ::superlu_options_t {};+struct tlin::SuperMatrix final : public ::SuperMatrix {};+struct tlin::superlu_options_t final : public ::superlu_options_t {};//=======================================================================diff --git a/toonz/sources/tnztools/autofillpli.cpp b/toonz/sources/tnztools/autofillpli.cppindex 3912734a0..c9a51c061 100644--- a/toonz/sources/tnztools/autofillpli.cpp+++ b/toonz/sources/tnztools/autofillpli.cpp@@ -59,7 +59,7 @@ static TPointD workB(0, 0);//==============================================================================================-class AreasAndPerimeterFormula : public TRegionFeatureFormula {+class AreasAndPerimeterFormula final : public TRegionFeatureFormula {double m_signedArea, m_perimeter;public:@@ -79,7 +79,7 @@ public://----------------------------------------------------------------------------------------------class CentroidFormula : public TRegionFeatureFormula {+class CentroidFormula final : public TRegionFeatureFormula {TPointD m_centroid;double m_signedArea;diff --git a/toonz/sources/tnztools/bendertool.cpp b/toonz/sources/tnztools/bendertool.cppindex 43abd3602..b98ef9fc0 100644--- a/toonz/sources/tnztools/bendertool.cpp+++ b/toonz/sources/tnztools/bendertool.cpp@@ -108,7 +108,7 @@ void clearPointerMap(std::map<TStroke *, std::vector<int> *> &corners) {// Bender Tool//------------------------------------------------------------------------------class BenderTool : public TTool {+class BenderTool final : public TTool {private:TUndo *m_undo;bool m_atLeastOneIsChanged;diff --git a/toonz/sources/tnztools/brushtool.cpp b/toonz/sources/tnztools/brushtool.cppindex e1c81eb46..f7932316d 100644--- a/toonz/sources/tnztools/brushtool.cpp+++ b/toonz/sources/tnztools/brushtool.cpp@@ -408,7 +408,7 @@ void addStrokeToImage(TTool::Application *application, const TVectorImageP &vi,//=========================================================================================================-class RasterBrushUndo : public TRasterUndo {+class RasterBrushUndo final : public TRasterUndo {std::vector<TThickPoint> m_points;int m_styleId;bool m_selective;@@ -449,7 +449,7 @@ public://=========================================================================================================-class RasterBluredBrushUndo : public TRasterUndo {+class RasterBluredBrushUndo final : public TRasterUndo {std::vector<TThickPoint> m_points;int m_styleId;bool m_selective;diff --git a/toonz/sources/tnztools/brushtool.h b/toonz/sources/tnztools/brushtool.hindex 0cc6d220a..3a87f8e40 100644--- a/toonz/sources/tnztools/brushtool.h+++ b/toonz/sources/tnztools/brushtool.h@@ -31,7 +31,7 @@ class BluredBrush;// Brush Data declaration//************************************************************************-struct BrushData : public TPersist {+struct BrushData final : public TPersist {PERSIST_DECLARATION(BrushData)std::wstring m_name;@@ -104,7 +104,7 @@ private:// Brush Tool declaration//************************************************************************-class BrushTool : public TTool {+class BrushTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(BrushTool)public:diff --git a/toonz/sources/tnztools/controlpointeditortool.cpp b/toonz/sources/tnztools/controlpointeditortool.cppindex c8958842a..ea9642060 100644--- a/toonz/sources/tnztools/controlpointeditortool.cpp+++ b/toonz/sources/tnztools/controlpointeditortool.cpp@@ -108,7 +108,7 @@ void getSegmentParameter(ControlPointEditorStroke *cpEditor, int beforeIndex,// ControlPointEditorTool//------------------------------------------------------------------------------class ControlPointEditorTool : public TTool {+class ControlPointEditorTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(ControlPointEditorTool)bool m_draw;diff --git a/toonz/sources/tnztools/controlpointselection.h b/toonz/sources/tnztools/controlpointselection.hindex c2e42de08..44fa20f65 100644--- a/toonz/sources/tnztools/controlpointselection.h+++ b/toonz/sources/tnztools/controlpointselection.h@@ -133,7 +133,7 @@ If updatePoints is true update dependent point after.*/// ControlPointSelection//------------------------------------------------------------------------------class ControlPointSelection : public QObject, public TSelection {+class ControlPointSelection final : public QObject, public TSelection {Q_OBJECTprivate:diff --git a/toonz/sources/tnztools/cuttertool.cpp b/toonz/sources/tnztools/cuttertool.cppindex 1810f9ce0..9e93f7dcc 100644--- a/toonz/sources/tnztools/cuttertool.cpp+++ b/toonz/sources/tnztools/cuttertool.cpp@@ -31,7 +31,7 @@ namespace {// UndoCutter//------------------------------------------------------------------------------class UndoCutter : public ToolUtils::TToolUndo {+class UndoCutter final : public ToolUtils::TToolUndo {int m_newStrokeId1;int m_newStrokeId2;int m_pos;@@ -151,7 +151,7 @@ public:// CutterTool//------------------------------------------------------------------------------class CutterTool : public TTool {+class CutterTool final : public TTool {public:bool m_mouseDown;diff --git a/toonz/sources/tnztools/edittool.cpp b/toonz/sources/tnztools/edittool.cppindex 2abca32ff..1f5749cab 100644--- a/toonz/sources/tnztools/edittool.cpp+++ b/toonz/sources/tnztools/edittool.cpp@@ -70,7 +70,7 @@ using EditToolGadgets::DragTool;// DragCenterTool//------------------------------------------------------------------------------class DragCenterTool : public DragTool {+class DragCenterTool final : public DragTool {TStageObjectId m_objId;int m_frame;@@ -241,7 +241,7 @@ public:// DragPositionTool//------------------------------------------------------------------------------class DragPositionTool : public DragChannelTool {+class DragPositionTool final : public DragChannelTool {bool m_lockPositionX;bool m_lockPositionY;@@ -282,7 +282,7 @@ public:// DragSplinePositionTool//------------------------------------------------------------------------------class DragSplinePositionTool : public DragChannelTool {+class DragSplinePositionTool final : public DragChannelTool {const TStroke *m_spline;std::vector<double> m_lengthAtCPs;double m_offset;@@ -369,7 +369,7 @@ else return 0.0;// DragRotationTool//------------------------------------------------------------------------------class DragRotationTool : public DragChannelTool {+class DragRotationTool final : public DragChannelTool {TPointD m_lastPos;TPointD m_center;bool m_lockRotation;@@ -413,7 +413,7 @@ a = m_viewer->mouseToTool(gc) - m_curCenter;// DragIsotropicScaleTool//------------------------------------------------------------------------------class DragIsotropicScaleTool : public DragChannelTool {+class DragIsotropicScaleTool final : public DragChannelTool {TPointD m_center;double m_r0;bool m_lockGlobalScale;@@ -446,7 +446,7 @@ public:// DragScaleTool//------------------------------------------------------------------------------class DragScaleTool : public DragChannelTool {+class DragScaleTool final : public DragChannelTool {TPointD m_center;int m_constraint;@@ -521,7 +521,7 @@ public:// DragShearTool//------------------------------------------------------------------------------class DragShearTool : public DragChannelTool {+class DragShearTool final : public DragChannelTool {TPointD m_center;bool m_lockShearH;bool m_lockShearV;@@ -565,7 +565,7 @@ public:// DragZTool//------------------------------------------------------------------------------class DragZTool : public DragChannelTool {+class DragZTool final : public DragChannelTool {TPoint m_lastPos;TTool::Viewer *m_viewer;double m_dz;@@ -599,7 +599,7 @@ public:// EditTool//------------------------------------------------------------------------------class EditTool : public TTool {+class EditTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(EditTool)DragTool *m_dragTool;diff --git a/toonz/sources/tnztools/edittoolgadgets.cpp b/toonz/sources/tnztools/edittoolgadgets.cppindex 28e50e834..b3a545c7b 100644--- a/toonz/sources/tnztools/edittoolgadgets.cpp+++ b/toonz/sources/tnztools/edittoolgadgets.cpp@@ -27,7 +27,7 @@ GLdouble FxGadget::m_selectedColor[3] = {0.2, 0.8, 0.1};// FxGadgetUndo definition//*************************************************************************************-class FxGadgetUndo : public TUndo {+class FxGadgetUndo final : public TUndo {struct ParamData {TDoubleParamP m_param;double m_oldValue, m_newValue;@@ -93,7 +93,7 @@ public:// GadgetDragTool definition//*************************************************************************************-class GadgetDragTool : public DragTool {+class GadgetDragTool final : public DragTool {FxGadgetController *m_controller;FxGadget *m_gadget;@@ -219,7 +219,7 @@ void FxGadget::commitUndo() {// Specific Gadget Concepts definition//*************************************************************************************-class PointFxGadget : public FxGadget {+class PointFxGadget final : public FxGadget {TPointD m_pos;TDoubleParamP m_xParam, m_yParam;@@ -299,7 +299,7 @@ void PointFxGadget::leftButtonUp(const TPointD &pos, const TMouseEvent &) {}//=============================================================================-class RadiusFxGadget : public FxGadget {+class RadiusFxGadget final : public FxGadget {TDoubleParamP m_radius;TPointParamP m_center;@@ -367,7 +367,7 @@ void RadiusFxGadget::leftButtonUp(const TPointD &pos, const TMouseEvent &) {}//=============================================================================-class DistanceFxGadget : public FxGadget {+class DistanceFxGadget final : public FxGadget {TDoubleParamP m_distance, m_angle;int m_grabPos;@@ -451,7 +451,7 @@ void DistanceFxGadget::leftButtonUp(const TPointD &pos, const TMouseEvent &) {}//=============================================================================-class AngleFxGadget : public FxGadget {+class AngleFxGadget final : public FxGadget {TDoubleParamP m_param;TPointD m_pos;@@ -524,7 +524,7 @@ void AngleFxGadget::leftButtonUp(const TPointD &pos, const TMouseEvent &) {}//=============================================================================-class DiamondFxGadget : public FxGadget {+class DiamondFxGadget final : public FxGadget {TDoubleParamP m_param;public:@@ -588,7 +588,7 @@ void DiamondFxGadget::leftButtonDrag(const TPointD &pos, const TMouseEvent &) {//=============================================================================-class SizeFxGadget : public FxGadget {+class SizeFxGadget final : public FxGadget {TDoubleParamP m_lx, m_ly;public:@@ -652,7 +652,7 @@ void SizeFxGadget::leftButtonDrag(const TPointD &pos, const TMouseEvent &) {//=============================================================================-class RectFxGadget : public FxGadget {+class RectFxGadget final : public FxGadget {TDoubleParamP m_width, m_height;TPointParamP m_center;@@ -756,7 +756,7 @@ void RectFxGadget::leftButtonDrag(const TPointD &ppos, const TMouseEvent &) {//=============================================================================-class PolarFxGadget : public FxGadget {+class PolarFxGadget final : public FxGadget {TPointD m_pos;TDoubleParamP m_phiParam, m_lengthParam;@@ -828,7 +828,7 @@ public://=============================================================================-class VectorFxGadget : public FxGadget {+class VectorFxGadget final : public FxGadget {TPointParamP m_pa, m_pb;int m_selected;@@ -885,7 +885,7 @@ public://=============================================================================-class QuadFxGadget : public FxGadget {+class QuadFxGadget final : public FxGadget {TPointParamP m_pa, m_pb, m_pc, m_pd;public:diff --git a/toonz/sources/tnztools/edittoolgadgets.h b/toonz/sources/tnztools/edittoolgadgets.hindex 4179e6bc0..27e6e126b 100644--- a/toonz/sources/tnztools/edittoolgadgets.h+++ b/toonz/sources/tnztools/edittoolgadgets.h@@ -110,7 +110,7 @@ public:} // EditToolGadgets namespace-class FxGadgetController : public QObject {+class FxGadgetController final : public QObject {Q_OBJECTTTool *m_tool;diff --git a/toonz/sources/tnztools/filltool.cpp b/toonz/sources/tnztools/filltool.cppindex 2e05847f8..542df4263 100644--- a/toonz/sources/tnztools/filltool.cpp+++ b/toonz/sources/tnztools/filltool.cpp@@ -88,7 +88,7 @@ inline int vectorFill(const TVectorImageP &img, const std::wstring &type,// VectorFillUndo//------------------------------------------------------------------------------class VectorFillUndo : public TToolUndo {+class VectorFillUndo final : public TToolUndo {int m_oldColorStyle;int m_newColorStyle;TPointD m_point;@@ -167,7 +167,7 @@ public:// VectorRectFillUndo//------------------------------------------------------------------------------class VectorRectFillUndo : public TToolUndo {+class VectorRectFillUndo final : public TToolUndo {std::vector<TFilledRegionInf> *m_regionFillInformation;std::vector<std::pair<int, int>> *m_strokeFillInformation;TRectD m_selectionArea;@@ -257,7 +257,7 @@ public:// RasterFillUndo//------------------------------------------------------------------------------class RasterFillUndo : public TRasterUndo {+class RasterFillUndo final : public TRasterUndo {FillParameters m_params;bool m_saveboxOnly;@@ -327,7 +327,7 @@ public:// RasterRectFillUndo//------------------------------------------------------------------------------class RasterRectFillUndo : public TRasterUndo {+class RasterRectFillUndo final : public TRasterUndo {TRect m_fillArea;int m_paintId;std::wstring m_colorType;@@ -400,7 +400,7 @@ public:// RasterRectAutoFillUndo//------------------------------------------------------------------------------class RasterRectAutoFillUndo : public TRasterUndo {+class RasterRectAutoFillUndo final : public TRasterUndo {TRect m_rectToFill;TFrameId m_fidToLearn;bool m_onlyUnfilled;@@ -444,7 +444,7 @@ public:// RasterStrokeAutoFillUndo//------------------------------------------------------------------------------class RasterStrokeAutoFillUndo : public TRasterUndo {+class RasterStrokeAutoFillUndo final : public TRasterUndo {TTileSetCM32 *m_tileSet;public:@@ -482,7 +482,7 @@ public:// RasterRectAutoFillUndo//------------------------------------------------------------------------------class VectorAutoFillUndo : public TToolUndo {+class VectorAutoFillUndo final : public TToolUndo {std::vector<TFilledRegionInf> *m_regionFillInformation;TRectD m_selectionArea;TStroke *m_selectingStroke;@@ -972,7 +972,7 @@ void SequencePainter::processSequence(TXshSimpleLevel *sl, TFrameId firstFid,// MultiAreaFiller : SequencePainter//------------------------------------------------------------------------------class MultiAreaFiller : public SequencePainter {+class MultiAreaFiller final : public SequencePainter {TRectD m_firstRect, m_lastRect;bool m_unfilledOnly;std::wstring m_colorType;@@ -1047,7 +1047,7 @@ public:// MultiFiller : SequencePainter//------------------------------------------------------------------------------class MultiFiller : public SequencePainter {+class MultiFiller final : public SequencePainter {TPointD m_firstPoint, m_lastPoint;FillParameters m_params;@@ -1666,7 +1666,7 @@ public:// Fill Tool//------------------------------------------------------------------------------class FillTool : public TTool {+class FillTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(FillTool)bool m_firstTime;diff --git a/toonz/sources/tnztools/fingertool.cpp b/toonz/sources/tnztools/fingertool.cppindex daf9dcd3e..0838d007a 100644--- a/toonz/sources/tnztools/fingertool.cpp+++ b/toonz/sources/tnztools/fingertool.cpp@@ -57,7 +57,7 @@ const int BackgroundStyle = 0;namespace {-class FingerUndo : public TRasterUndo {+class FingerUndo final : public TRasterUndo {std::vector<TThickPoint> m_points;int m_styleId;bool m_invert;@@ -242,7 +242,7 @@ void drawEmptyCircle(int thick, const TPointD &mousePos, bool isPencil,//------------------------------------------------------------------------------class FingerTool : public TTool {+class FingerTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(FingerTool)RasterStrokeGenerator *m_rasterTrack;diff --git a/toonz/sources/tnztools/fullcolorbrushtool.cpp b/toonz/sources/tnztools/fullcolorbrushtool.cppindex 45dce2410..dfd740b7c 100644--- a/toonz/sources/tnztools/fullcolorbrushtool.cpp+++ b/toonz/sources/tnztools/fullcolorbrushtool.cpp@@ -81,7 +81,7 @@ double computeThickness(int pressure, const TDoublePairProperty &property,//-----------------------------------------------------------------------------------class FullColorBrushUndo : public ToolUtils::TFullColorRasterUndo {+class FullColorBrushUndo final : public ToolUtils::TFullColorRasterUndo {TPoint m_offset;QString m_id;diff --git a/toonz/sources/tnztools/fullcolorbrushtool.h b/toonz/sources/tnztools/fullcolorbrushtool.hindex ca836d83a..2eebc70b6 100644--- a/toonz/sources/tnztools/fullcolorbrushtool.h+++ b/toonz/sources/tnztools/fullcolorbrushtool.h@@ -20,7 +20,7 @@ class FullColorBrushToolNotifier;// FullColor Brush Tool declaration//************************************************************************-class FullColorBrushTool : public TTool {+class FullColorBrushTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(FullColorBrushTool)public:@@ -103,7 +103,7 @@ protected://-------------------------------------------------------------class FullColorBrushToolNotifier : public QObject {+class FullColorBrushToolNotifier final : public QObject {Q_OBJECTFullColorBrushTool *m_tool;diff --git a/toonz/sources/tnztools/fullcolorerasertool.cpp b/toonz/sources/tnztools/fullcolorerasertool.cppindex 10ea81df4..3a66cc6d3 100644--- a/toonz/sources/tnztools/fullcolorerasertool.cpp+++ b/toonz/sources/tnztools/fullcolorerasertool.cpp@@ -125,7 +125,7 @@ void eraseImage(const TRasterImageP &ri, const TRaster32P &image,//-----------------------------------------------------------------------------------class RectFullColorUndo : public TFullColorRasterUndo {+class RectFullColorUndo final : public TFullColorRasterUndo {TRectD m_modifyArea;TStroke *m_stroke;std::wstring m_eraseType;@@ -180,7 +180,7 @@ public://-----------------------------------------------------------------------------------class FullColorEraserUndo : public TFullColorRasterUndo {+class FullColorEraserUndo final : public TFullColorRasterUndo {std::vector<TThickPoint> m_points;int m_size;double m_hardness;@@ -279,7 +279,7 @@ void eraseStroke(const TRasterImageP &ri, TStroke *stroke,// FullColorEraserTool definition//**********************************************************************************-class FullColorEraserTool : public TTool {+class FullColorEraserTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(FullColorEraserTool)public:diff --git a/toonz/sources/tnztools/geometrictool.cpp b/toonz/sources/tnztools/geometrictool.cppindex 854e50072..bf6c80fb8 100644--- a/toonz/sources/tnztools/geometrictool.cpp+++ b/toonz/sources/tnztools/geometrictool.cpp@@ -177,7 +177,7 @@ TRect drawBluredBrush(const TToonzImageP &ti, TStroke *stroke, int thick,//------------------------------------------------------------------------------class MultilinePrimitiveUndo : public TUndo {+class MultilinePrimitiveUndo final : public TUndo {std::vector<TPointD> m_oldVertex;std::vector<TPointD> m_newVertex;MultiLinePrimitive *m_tool;@@ -203,7 +203,7 @@ public://------------------------------------------------------------------------------class FullColorBluredPrimitiveUndo : public UndoFullColorPencil {+class FullColorBluredPrimitiveUndo final : public UndoFullColorPencil {int m_thickness;double m_hardness;@@ -243,7 +243,7 @@ public://-----------------------------------------------------------------------------/*-- Hardness<100 のときの GeometricToolのUndo --*/-class CMBluredPrimitiveUndo : public UndoRasterPencil {+class CMBluredPrimitiveUndo final : public UndoRasterPencil {int m_thickness;double m_hardness;bool m_selective;@@ -434,7 +434,7 @@ public:// Rectangle Primitive Class Declaration//------------------------------------------------------------------------------class RectanglePrimitive : public Primitive {+class RectanglePrimitive final : public Primitive {TRectD m_selectingRect;TPointD m_pos;TPointD m_startPoint;@@ -462,7 +462,7 @@ public:// Circle Primitive Class Declaration//------------------------------------------------------------------------------class CirclePrimitive : public Primitive {+class CirclePrimitive final : public Primitive {TPointD m_centre;TPointD m_pos;double m_radius;@@ -570,7 +570,7 @@ QString MultilinePrimitiveUndo::getToolName() {// Line Primitive Class Declaration//------------------------------------------------------------------------------class LinePrimitive : public MultiLinePrimitive {+class LinePrimitive final : public MultiLinePrimitive {public:LinePrimitive(PrimitiveParam *param, GeometricTool *tool, bool reasterTool): MultiLinePrimitive(param, tool, reasterTool) {@@ -592,7 +592,7 @@ public:// Ellipse Primitive Class Declaration//------------------------------------------------------------------------------class EllipsePrimitive : public Primitive {+class EllipsePrimitive final : public Primitive {TPointD m_pos;TRectD m_selectingRect;TPointD m_startPoint;@@ -619,7 +619,7 @@ public:// Arc Primitive Class Declaration//------------------------------------------------------------------------------class ArcPrimitive : public Primitive {+class ArcPrimitive final : public Primitive {TStroke *m_stroke;TPointD m_startPoint, m_endPoint, m_centralPoint;int m_clickNumber;@@ -648,7 +648,7 @@ public:// Polygon Primitive Class Declaration//------------------------------------------------------------------------------class PolygonPrimitive : public Primitive {+class PolygonPrimitive final : public Primitive {TPointD m_startPoint, m_centre;double m_radius;TPixel32 m_color;@@ -672,7 +672,7 @@ public:// Geometric Tool//------------------------------------------------------------------------------class GeometricTool : public TTool {+class GeometricTool final : public TTool {protected:Primitive *m_primitive;std::map<std::wstring, Primitive *> m_primitiveTable;diff --git a/toonz/sources/tnztools/hookselection.h b/toonz/sources/tnztools/hookselection.hindex 55f766be0..beb0ee54d 100644--- a/toonz/sources/tnztools/hookselection.h+++ b/toonz/sources/tnztools/hookselection.h@@ -15,7 +15,7 @@// HookUndo//------------------------------------------------------------------------------class HookUndo : public TUndo {+class HookUndo final : public TUndo {HookSet m_oldHooks, m_newHooks;TXshLevelP m_level;@@ -36,7 +36,7 @@ public:// HooksData//------------------------------------------------------------------------------class HooksData : public DvMimeData {+class HooksData final : public DvMimeData {struct HookPosition {int m_id;TPointD m_aPos, m_bPos;@@ -66,7 +66,7 @@ public:// (1=A,2=B)//------------------------------------------------------------------------------class HookSelection : public TSelection {+class HookSelection final : public TSelection {TXshLevelP m_level;std::set<std::pair<int, int>> m_hooks; // hookId, side : 1=A 2=Bdiff --git a/toonz/sources/tnztools/hooktool.cpp b/toonz/sources/tnztools/hooktool.cppindex eea70cddf..4d98c8cf6 100644--- a/toonz/sources/tnztools/hooktool.cpp+++ b/toonz/sources/tnztools/hooktool.cpp@@ -66,7 +66,7 @@ public:// HookTool//------------------------------------------------------------------------------class HookTool : public TTool {+class HookTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(HookTool)HookSelection m_selection;diff --git a/toonz/sources/tnztools/imagegrouping.cpp b/toonz/sources/tnztools/imagegrouping.cppindex 0b477a91e..0aa69ef97 100644--- a/toonz/sources/tnztools/imagegrouping.cpp+++ b/toonz/sources/tnztools/imagegrouping.cpp@@ -75,7 +75,7 @@ void ungroupWithoutUndo(TVectorImage *vimg, StrokeSelection *selection) {// GroupUndo//------------------------------------------------------------------------------class GroupUndo : public ToolUtils::TToolUndo {+class GroupUndo final : public ToolUtils::TToolUndo {std::auto_ptr<StrokeSelection> m_selection;public:@@ -102,7 +102,7 @@ public:// UngroupUndo//------------------------------------------------------------------------------class UngroupUndo : public ToolUtils::TToolUndo {+class UngroupUndo final : public ToolUtils::TToolUndo {std::auto_ptr<StrokeSelection> m_selection;public:@@ -129,7 +129,7 @@ public:// MoveGroupUndo//------------------------------------------------------------------------------class MoveGroupUndo : public ToolUtils::TToolUndo {+class MoveGroupUndo final : public ToolUtils::TToolUndo {UCHAR m_moveType;int m_refStroke, m_count, m_moveBefore;std::vector<std::pair<TStroke *, int>> m_selectedGroups;diff --git a/toonz/sources/tnztools/irontool.cpp b/toonz/sources/tnztools/irontool.cppindex 6b58e075a..f583eae88 100644--- a/toonz/sources/tnztools/irontool.cpp+++ b/toonz/sources/tnztools/irontool.cpp@@ -43,7 +43,7 @@ inline bool isIncluded(int index, int left, int rigth) {// IronTool//------------------------------------------------------------------------------class IronTool : public TTool {+class IronTool final : public TTool {TStroke *m_strokeRef, *m_oldStroke;TUndo *m_undo;diff --git a/toonz/sources/tnztools/magnettool.cpp b/toonz/sources/tnztools/magnettool.cppindex eea903cf9..ecbfeff87 100644--- a/toonz/sources/tnztools/magnettool.cpp+++ b/toonz/sources/tnztools/magnettool.cpp@@ -106,7 +106,7 @@ void drawQuadratic(const TQuadratic &quad, double pixelSize) {// MagnetTool//------------------------------------------------------------------------------class MagnetTool : public TTool {+class MagnetTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(MagnetTool)bool m_active;diff --git a/toonz/sources/tnztools/paintbrushtool.cpp b/toonz/sources/tnztools/paintbrushtool.cppindex 9d6f2fa9c..a7dd097c4 100644--- a/toonz/sources/tnztools/paintbrushtool.cpp+++ b/toonz/sources/tnztools/paintbrushtool.cpp@@ -61,7 +61,7 @@ const int BackgroundStyle = 0;namespace {-class BrushUndo : public TRasterUndo {+class BrushUndo final : public TRasterUndo {std::vector<TThickPoint> m_points;int m_styleId;bool m_selective;@@ -246,7 +246,7 @@ void drawEmptyCircle(int thick, const TPointD &mousePos, bool isPencil,//------------------------------------------------------------------------------class PaintBrushTool : public TTool {+class PaintBrushTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(PaintBrushTool)RasterStrokeGenerator *m_rasterTrack;diff --git a/toonz/sources/tnztools/plastictool.cpp b/toonz/sources/tnztools/plastictool.cppindex ea0790031..3822f0523 100644--- a/toonz/sources/tnztools/plastictool.cpp+++ b/toonz/sources/tnztools/plastictool.cpp@@ -194,7 +194,7 @@ void invalidateXsheet() {// Mime definitions//****************************************************************************************-struct PlasticSkeletonPMime : public DvMimeData {+struct PlasticSkeletonPMime final : public DvMimeData {PlasticSkeletonP m_skeleton;public:@@ -208,7 +208,7 @@ public:void releaseData() override { m_skeleton = PlasticSkeletonP(); }};-struct SkDPMime : public DvMimeData {+struct SkDPMime final : public DvMimeData {SkDP m_sd;public:@@ -233,7 +233,7 @@ public:namespace {-class SetVertexNameUndo : public TUndo {+class SetVertexNameUndo final : public TUndo {int m_row, m_col; //!< Xsheet coordinatesint m_v; //!< Changed vertex@@ -298,7 +298,7 @@ public://========================================================================-class PasteDeformationUndo : public TUndo {+class PasteDeformationUndo final : public TUndo {int m_col; //!< Affected columnSkDP m_oldSd, m_newSd; //!< The skeleton deformations@@ -346,7 +346,7 @@ PlasticTool::TemporaryActivation::~TemporaryActivation() {// PlasticToolOptionsBox::SkelIdComboBox definition//****************************************************************************************-class PlasticToolOptionsBox::SkelIdsComboBox : public QComboBox {+class PlasticToolOptionsBox::SkelIdsComboBox final : public QComboBox {public:SkelIdsComboBox(QWidget *parent = 0) : QComboBox(parent) {updateSkeletonsList();@@ -879,7 +879,7 @@ void PlasticTool::onChange() {static bool refresh = false; // Accessible from locals since staticstruct locals {- struct RefreshFunctor : public TFunctorInvoker::BaseFunctor {+ struct RefreshFunctor final : public TFunctorInvoker::BaseFunctor {void operator()() override {refresh = false;l_plasticTool.storeSkeletonId(); // Calls ::sdFrame()diff --git a/toonz/sources/tnztools/plastictool.h b/toonz/sources/tnztools/plastictool.hindex 1b1167710..721db5e90 100644--- a/toonz/sources/tnztools/plastictool.h+++ b/toonz/sources/tnztools/plastictool.h@@ -56,10 +56,10 @@// PlasticTool declaration//****************************************************************************************-class PlasticTool : public QObject,- public TTool,- public TParamObserver,- public TSelection::View {+class PlasticTool final : public QObject,+ public TTool,+ public TParamObserver,+ public TSelection::View {Q_OBJECTfriend class PlasticToolOptionsBox;@@ -73,7 +73,7 @@ public:~TemporaryActivation();};- struct MeshIndex : public tcg::safe_bool<MeshIndex> {+ struct MeshIndex final : public tcg::safe_bool<MeshIndex> {int m_meshIdx, //!< Mesh index in a TMeshImagem_idx; //!< Index in the referenced mesh@@ -397,8 +397,8 @@ private slots:// PlasticToolOptionsBox declaration//****************************************************************************************-class PlasticToolOptionsBox : public GenericToolOptionsBox,- public TProperty::Listener {+class PlasticToolOptionsBox final : public GenericToolOptionsBox,+ public TProperty::Listener {Q_OBJECTpublic:diff --git a/toonz/sources/tnztools/plastictool_animate.cpp b/toonz/sources/tnztools/plastictool_animate.cppindex 7bbe86272..465af7f43 100644--- a/toonz/sources/tnztools/plastictool_animate.cpp+++ b/toonz/sources/tnztools/plastictool_animate.cpp@@ -16,7 +16,7 @@ using namespace PlasticToolLocals;namespace {-class AnimateValuesUndo : public TUndo {+class AnimateValuesUndo final : public TUndo {int m_row, m_col; //!< Xsheet coordinatesint m_v; //!< Moved vertexdiff --git a/toonz/sources/tnztools/plastictool_build.cpp b/toonz/sources/tnztools/plastictool_build.cppindex f6056a96b..c79751984 100644--- a/toonz/sources/tnztools/plastictool_build.cpp+++ b/toonz/sources/tnztools/plastictool_build.cpp@@ -193,7 +193,7 @@ public://-------------------------------------------------------------------------class AddVertexUndo : public VertexUndo {+class AddVertexUndo final : public VertexUndo {public:AddVertexUndo(int vParent, const PlasticSkeletonVertex &vx) {m_vParent = vParent, m_vx = vx;@@ -210,7 +210,7 @@ public://-------------------------------------------------------------------------class RemoveVertexUndo : public VertexUndo {+class RemoveVertexUndo final : public VertexUndo {public:RemoveVertexUndo(int v) {assert(v >= 0);@@ -227,7 +227,7 @@ public://========================================================================-class InsertVertexUndo : public VertexUndo {+class InsertVertexUndo final : public VertexUndo {public:InsertVertexUndo(int e, const PlasticSkeletonVertex &vx) {const PlasticSkeleton &skeleton = *l_plasticTool.skeleton();@@ -298,7 +298,7 @@ public://-------------------------------------------------------------------------class RemoveSkeletonUndo_WithKeyframes : public RemoveSkeletonUndo {+class RemoveSkeletonUndo_WithKeyframes final : public RemoveSkeletonUndo {mutable std::vector<TDoubleKeyframe>m_skelIdsKeyframes; //!< Skeleton Ids param curve keyframes//!< for m_skelId@@ -351,7 +351,7 @@ public://========================================================================-class SetSkeletonIdUndo : public TUndo {+class SetSkeletonIdUndo final : public TUndo {int m_row, m_col; //!< Xsheet coordinatesint m_skelId; //!< The new skeleton id value@@ -423,7 +423,7 @@ public://========================================================================-class MoveVertexUndo_Build : public TUndo {+class MoveVertexUndo_Build final : public TUndo {int m_row, m_col; //!< Xsheet coordinatesstd::vector<int> m_vIdxs; //!< Moved verticesdiff --git a/toonz/sources/tnztools/plastictool_meshedit.cpp b/toonz/sources/tnztools/plastictool_meshedit.cppindex 0b6d117a7..2cd70e40d 100644--- a/toonz/sources/tnztools/plastictool_meshedit.cpp+++ b/toonz/sources/tnztools/plastictool_meshedit.cpp@@ -640,7 +640,7 @@ bool cutMesh(TMeshImage &mi, const PlasticTool::MeshSelection &edgesSelection) {namespace {-class MoveVertexUndo_Mesh : public TUndo {+class MoveVertexUndo_Mesh final : public TUndo {int m_row, m_col; //!< Xsheet coordinatesstd::vector<MeshIndex> m_vIdxs; //!< Moved vertices@@ -688,7 +688,7 @@ public://==============================================================================-class SwapEdgeUndo : public TUndo {+class SwapEdgeUndo final : public TUndo {int m_row, m_col; //!< Xsheet coordinatesmutable MeshIndex m_edgeIdx; //!< Edge index@@ -750,7 +750,7 @@ public://==============================================================================-class CollapseEdgeUndo : public TTextureMeshUndo {+class CollapseEdgeUndo final : public TTextureMeshUndo {int m_eIdx; //!< Collapsed edge indexpublic:@@ -801,7 +801,7 @@ public://==============================================================================-class SplitEdgeUndo : public TTextureMeshUndo {+class SplitEdgeUndo final : public TTextureMeshUndo {int m_eIdx; //!< Split edge indexpublic:@@ -855,7 +855,7 @@ public://==============================================================================-class CutEdgesUndo : public TUndo {+class CutEdgesUndo final : public TUndo {int m_row, m_col; //!< Xsheet coordinatesTMeshImageP m_origImage; //!< Clone of the original imagediff --git a/toonz/sources/tnztools/plastictool_rigidity.cpp b/toonz/sources/tnztools/plastictool_rigidity.cppindex dbb77fe08..dd584e8b4 100644--- a/toonz/sources/tnztools/plastictool_rigidity.cpp+++ b/toonz/sources/tnztools/plastictool_rigidity.cpp@@ -38,7 +38,7 @@ enum { RIGID_IDX = 0, FLEX_IDX };namespace {-class PaintRigidityUndo : public TUndo {+class PaintRigidityUndo final : public TUndo {TXshCell m_cell; //!< Affected image (cell == level + frame)std::vector<std::map<int, double>> m_vertices; //!< Affected vertices@@ -103,7 +103,7 @@ public:namespace {-class RigidityPainter : public tcg::polymorphic {+class RigidityPainter final : public tcg::polymorphic {std::vector<std::map<int, double>>m_oldRigidities; //!< The original values of painted verticesdouble m_sqRadius, m_value; //!< Drawing parametersdiff --git a/toonz/sources/tnztools/pumptool.cpp b/toonz/sources/tnztools/pumptool.cppindex 50d8d68c3..2dd030405 100644--- a/toonz/sources/tnztools/pumptool.cpp+++ b/toonz/sources/tnztools/pumptool.cpp@@ -32,7 +32,7 @@ using namespace ToolUtils;// PumpTool declaration//*****************************************************************************-class PumpTool : public TTool {+class PumpTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(PumpTool)int m_strokeStyleId, m_strokeIndex; //!< Edited stroke indicesdiff --git a/toonz/sources/tnztools/rastererasertool.cpp b/toonz/sources/tnztools/rastererasertool.cppindex 97ebaf9c3..9cedad282 100644--- a/toonz/sources/tnztools/rastererasertool.cpp+++ b/toonz/sources/tnztools/rastererasertool.cpp@@ -83,7 +83,7 @@ namespace {RECTERASE*/-class RectRasterUndo : public TRasterUndo {+class RectRasterUndo final : public TRasterUndo {TRectD m_modifyArea;TStroke *m_stroke;int m_styleId;@@ -150,7 +150,7 @@ public:Viene realizzata la funzione di "UNDO" per il cancellino nell'opzioneNORMALERAS*/-class RasterEraserUndo : public TRasterUndo {+class RasterEraserUndo final : public TRasterUndo {std::vector<TThickPoint> m_points;int m_styleId;bool m_selective;@@ -197,7 +197,7 @@ public://=====================================================================-class RasterBluredEraserUndo : public TRasterUndo {+class RasterBluredEraserUndo final : public TRasterUndo {std::vector<TThickPoint> m_points;int m_styleId;bool m_selective;@@ -442,7 +442,7 @@ void drawEmptyCircle(int thick, const TPointD &mousePos, bool isPencil,////-------------------------------------------------------------------------class EraserTool : public TTool {+class EraserTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(EraserTool)public:diff --git a/toonz/sources/tnztools/rasterselection.cpp b/toonz/sources/tnztools/rasterselection.cppindex f9ae6665a..2ef7f39c6 100644--- a/toonz/sources/tnztools/rasterselection.cpp+++ b/toonz/sources/tnztools/rasterselection.cpp@@ -303,7 +303,7 @@ void pasteFloatingSelectionWithoutUndo(const TImageP &image,// UndoDeleteSelection//------------------------------------------------------------------------------class UndoDeleteSelection : public TUndo {+class UndoDeleteSelection final : public TUndo {static int m_id;TXshSimpleLevelP m_level;TFrameId m_frameId;@@ -379,7 +379,7 @@ int UndoDeleteSelection::m_id = 0;// UndoPasteSelection//------------------------------------------------------------------------------class UndoPasteSelection : public TUndo {+class UndoPasteSelection final : public TUndo {RasterSelection *m_currentSelection, m_newSelection;public:@@ -410,7 +410,7 @@ public:// UndoPasteFloatingSelection//------------------------------------------------------------------------------class UndoPasteFloatingSelection : public TUndo {+class UndoPasteFloatingSelection final : public TUndo {static int m_id;TXshCell m_imageCell; //!< Level/frame pair to the pasted-to imagediff --git a/toonz/sources/tnztools/rasterselectiontool.h b/toonz/sources/tnztools/rasterselectiontool.hindex c17af3a00..bc02c7f64 100644--- a/toonz/sources/tnztools/rasterselectiontool.h+++ b/toonz/sources/tnztools/rasterselectiontool.h@@ -15,7 +15,7 @@ class VectorFreeDeformer;// RasterFreeDeformer//------------------------------------------------------------------------------class RasterFreeDeformer : public FreeDeformer {+class RasterFreeDeformer final : public FreeDeformer {TRasterP m_ras;TRasterP m_newRas;bool m_noAntialiasing;@@ -44,7 +44,7 @@ namespace DragSelectionTool {// UndoRasterDeform//------------------------------------------------------------------------------class UndoRasterDeform : public TUndo {+class UndoRasterDeform final : public TUndo {static int m_id;RasterSelectionTool *m_tool;std::string m_oldFloatingImageId, m_newFloatingImageId;@@ -75,7 +75,7 @@ public:// UndoRasterTransform//------------------------------------------------------------------------------class UndoRasterTransform : public TUndo {+class UndoRasterTransform final : public TUndo {RasterSelectionTool *m_tool;TAffine m_oldTransform, m_newTransform;TPointD m_oldCenter, m_newCenter;@@ -123,7 +123,7 @@ public:// RasterRotationTool//------------------------------------------------------------------------------class RasterRotationTool : public RasterDeformTool {+class RasterRotationTool final : public RasterDeformTool {Rotation *m_rotation;public:@@ -137,7 +137,7 @@ public:// RasterFreeDeformTool//------------------------------------------------------------------------------class RasterFreeDeformTool : public RasterDeformTool {+class RasterFreeDeformTool final : public RasterDeformTool {FreeDeform *m_freeDeform;public:@@ -149,7 +149,7 @@ public:// RasterMoveSelectionTool//------------------------------------------------------------------------------class RasterMoveSelectionTool : public RasterDeformTool {+class RasterMoveSelectionTool final : public RasterDeformTool {MoveSelection *m_moveSelection;public:@@ -163,7 +163,7 @@ public:// RasterScaleTool//------------------------------------------------------------------------------class RasterScaleTool : public RasterDeformTool {+class RasterScaleTool final : public RasterDeformTool {Scale *m_scale;public:@@ -180,7 +180,7 @@ public:// RasterSelectionTool//------------------------------------------------------------------------------class RasterSelectionTool : public SelectionTool {+class RasterSelectionTool final : public SelectionTool {Q_DECLARE_TR_FUNCTIONS(RasterSelectionTool)RasterSelection m_rasterSelection;diff --git a/toonz/sources/tnztools/rastertapetool.cpp b/toonz/sources/tnztools/rastertapetool.cppindex dda93222b..0f927cec7 100644--- a/toonz/sources/tnztools/rastertapetool.cpp+++ b/toonz/sources/tnztools/rastertapetool.cpp@@ -58,7 +58,7 @@ public://============================================================-class RasterAutocloseUndo : public TRasterUndo {+class RasterAutocloseUndo final : public TRasterUndo {AutocloseParameters m_params;std::vector<TAutocloser::Segment> m_segments;@@ -100,7 +100,7 @@ public://============================================================-class RasterTapeTool : public TTool {+class RasterTapeTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(RasterTapeTool)bool m_selecting;diff --git a/toonz/sources/tnztools/rgbpickertool.cpp b/toonz/sources/tnztools/rgbpickertool.cppindex e5e7e27ee..2b3f1b9f9 100644--- a/toonz/sources/tnztools/rgbpickertool.cpp+++ b/toonz/sources/tnztools/rgbpickertool.cpp@@ -45,7 +45,7 @@ namespace RGBPicker {// Pick RGB Tool//-------------------------------------------------------------class UndoPickRGBM : public TUndo {+class UndoPickRGBM final : public TUndo {TPaletteP m_palette;int m_styleId;int m_styleParamIndex;@@ -198,7 +198,7 @@ RGBPickerTool::RGBPickerTool(), m_firstTime(true), m_passivePick("Passive Pick", false), m_toolOptionsBox(0)- , m_mousePixelPosition(){+ , m_mousePixelPosition() {bind(TTool::CommonLevels);m_prop.bind(m_pickType);m_pickType.addValue(NORMAL_PICK);@@ -284,8 +284,8 @@ void RGBPickerTool::draw() {? TPixel32::White: TPixel32::Red;ToolUtils::drawRect(m_drawingRect, color, 0x3F33, true);- }- else if (m_pickType.getValue() == POLYLINE_PICK && !m_drawingPolyline.empty()) {+ } else if (m_pickType.getValue() == POLYLINE_PICK &&+ !m_drawingPolyline.empty()) {TPixel color = ToonzCheck::instance()->getChecks() & ToonzCheck::eBlackBg? TPixel32::White: TPixel32::Black;@@ -296,12 +296,11 @@ void RGBPickerTool::draw() {tglVertex(m_drawingPolyline[i]);tglVertex(m_mousePosition);glEnd();- }- else if (m_pickType.getValue() == FREEHAND_PICK && !m_drawingTrack.isEmpty())- {+ } else if (m_pickType.getValue() == FREEHAND_PICK &&+ !m_drawingTrack.isEmpty()) {TPixel color = ToonzCheck::instance()->getChecks() & ToonzCheck::eBlackBg- ? TPixel32::White- : TPixel32::Black;+ ? TPixel32::White+ : TPixel32::Black;tglColor(color);m_drawingTrack.drawAllFragments();}@@ -336,9 +335,9 @@ void RGBPickerTool::leftButtonDown(const TPointD &pos, const TMouseEvent &e) {} else if (m_pickType.getValue() == POLYLINE_PICK) {addPointPolyline(pos, convert(e.m_pos));return;- } else {//NORMAL_PICK+ } else { // NORMAL_PICKm_mousePixelPosition = e.m_pos;- m_makePick = true;+ m_makePick = true;invalidate();}}@@ -354,9 +353,7 @@ void RGBPickerTool::leftButtonDrag(const TPointD &pos, const TMouseEvent &e) {m_drawingRect.y1 = pos.y;invalidate();return;- }- else if (m_pickType.getValue() == FREEHAND_PICK)- {+ } else if (m_pickType.getValue() == FREEHAND_PICK) {freehandDrag(pos, convert(e.m_pos));invalidate();}@@ -372,8 +369,7 @@ void RGBPickerTool::leftButtonUp(const TPointD &pos, const TMouseEvent &) {}if (m_pickType.getValue() == FREEHAND_PICK) {closeFreehand();- if (m_currentStyleId != 0)- m_makePick = true;+ if (m_currentStyleId != 0) m_makePick = true;}invalidate();}@@ -416,12 +412,11 @@ void RGBPickerTool::mouseMove(const TPointD &pos, const TMouseEvent &e) {//----------------------------------------------------------void RGBPickerTool::passivePick()-{+void RGBPickerTool::passivePick() {TImageP image = TImageP(getImage(false));if (!image) return;- TRectD area = TRectD(m_mousePixelPosition.x, m_mousePixelPosition.y,- m_mousePixelPosition.x, m_mousePixelPosition.y);+ TRectD area = TRectD(m_mousePixelPosition.x, m_mousePixelPosition.y,+ m_mousePixelPosition.x, m_mousePixelPosition.y);StylePicker picker(image);@@ -430,7 +425,7 @@ void RGBPickerTool::passivePick()QColor col((int)pix.r, (int)pix.g, (int)pix.b);PaletteController *controller =- TTool::getApplication()->getPaletteController();+ TTool::getApplication()->getPaletteController();controller->notifyColorPassivePicked(col);}@@ -445,8 +440,8 @@ void RGBPickerTool::pick() {TPalette *palette = ph->getPalette();if (!palette) return;- TRectD area = TRectD(m_mousePixelPosition.x - 1, m_mousePixelPosition.y - 1,- m_mousePixelPosition.x + 1, m_mousePixelPosition.y + 1);+ TRectD area = TRectD(m_mousePixelPosition.x - 1, m_mousePixelPosition.y - 1,+ m_mousePixelPosition.x + 1, m_mousePixelPosition.y + 1);StylePicker picker(image, palette);m_currentValue = picker.pickColor(area);@@ -489,9 +484,8 @@ void RGBPickerTool::pickRect() {m_selectingRect.empty();if (area.getLx() <= 1 || area.getLy() <= 1) return;StylePicker picker(image, palette);-- m_currentValue = picker.pickColor(area);+ m_currentValue = picker.pickColor(area);}//---------------------------------------------------------@@ -507,9 +501,9 @@ void RGBPickerTool::pickStroke() {StylePicker picker(image, palette);TStroke *stroke = new TStroke(*m_stroke);-+m_currentValue = picker.pickColor(stroke);-+if (!(m_pickType.getValue() == POLYLINE_PICK)) {TXshSimpleLevel *level = app->getCurrentLevel()->getSimpleLevel();TUndoManager::manager()->add(@@ -564,7 +558,8 @@ int RGBPickerTool::getCursorId() const {//---------------------------------------------------------void RGBPickerTool::doPolylineFreehandPick() {- if (m_stroke && (m_pickType.getValue() == POLYLINE_PICK || m_pickType.getValue() == FREEHAND_PICK)) {+ if (m_stroke && (m_pickType.getValue() == POLYLINE_PICK ||+ m_pickType.getValue() == FREEHAND_PICK)) {pickStroke();delete m_stroke;m_stroke = 0;diff --git a/toonz/sources/tnztools/rgbpickertool.h b/toonz/sources/tnztools/rgbpickertool.hindex 2c2072f26..432778a0d 100644--- a/toonz/sources/tnztools/rgbpickertool.h+++ b/toonz/sources/tnztools/rgbpickertool.h@@ -10,7 +10,7 @@#include <QCoreApplication>-class RGBPickerTool : public TTool {+class RGBPickerTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(RGBPickerTool)bool m_firstTime;diff --git a/toonz/sources/tnztools/rulertool.h b/toonz/sources/tnztools/rulertool.hindex f8ffc97ed..c28c9d4a6 100644--- a/toonz/sources/tnztools/rulertool.h+++ b/toonz/sources/tnztools/rulertool.h@@ -11,7 +11,7 @@//-----------------------------------------------------------------------------------------------class RulerTool : public TTool {+class RulerTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(RulerTool)enum DragMode { MakeNewRuler = 0, MoveFirstPos, MoveSecondPos, MoveRuler };diff --git a/toonz/sources/tnztools/screenpicker.cpp b/toonz/sources/tnztools/screenpicker.cppindex 92733c278..efe7585c8 100644--- a/toonz/sources/tnztools/screenpicker.cpp+++ b/toonz/sources/tnztools/screenpicker.cpp@@ -144,7 +144,7 @@ void ScreenPicker::startGrab() {// Pick Screen Command instantiation//***********************************************************************************-class PickScreenCommandHandler : public MenuItemHandler {+class PickScreenCommandHandler final : public MenuItemHandler {public:PickScreenCommandHandler(CommandId cmdId) : MenuItemHandler(cmdId) {}void execute() override {diff --git a/toonz/sources/tnztools/selectiontool.cpp b/toonz/sources/tnztools/selectiontool.cppindex 782f9c62a..d1758ba5d 100644--- a/toonz/sources/tnztools/selectiontool.cpp+++ b/toonz/sources/tnztools/selectiontool.cpp@@ -299,7 +299,7 @@ namespace {// UndoMoveCenter//------------------------------------------------------------------------------class UndoMoveCenter : public TUndo {+class UndoMoveCenter final : public TUndo {SelectionTool *m_tool;TAffine m_aff;@@ -324,7 +324,7 @@ public:// MoveCenterTool//------------------------------------------------------------------------------class MoveCenterTool : public DragTool {+class MoveCenterTool final : public DragTool {TPointD m_startPos;TAffine m_transform;diff --git a/toonz/sources/tnztools/setsaveboxtool.cpp b/toonz/sources/tnztools/setsaveboxtool.cppindex 72cff66a4..0a1012c9d 100644--- a/toonz/sources/tnztools/setsaveboxtool.cpp+++ b/toonz/sources/tnztools/setsaveboxtool.cpp@@ -19,7 +19,7 @@ using namespace ToolUtils;namespace {//------------------------------------------------------------------------------class SetSaveboxUndo : public TRasterUndo {+class SetSaveboxUndo final : public TRasterUndo {TRect m_modifiedSavebox;TRect m_originalSavebox;diff --git a/toonz/sources/tnztools/skeletonsubtools.cpp b/toonz/sources/tnztools/skeletonsubtools.cppindex 13f21b361..b6f3a9022 100644--- a/toonz/sources/tnztools/skeletonsubtools.cpp+++ b/toonz/sources/tnztools/skeletonsubtools.cpp@@ -585,7 +585,7 @@ bool addToActiveChain(Graph &tree, const Skeleton::Bone *bone,namespace SkeletonSubtools {-class IKToolUndo : public TUndo {+class IKToolUndo final : public TUndo {struct Node {TStageObjectId m_id;double m_oldAngle, m_newAngle;@@ -1053,7 +1053,7 @@ void IKTool::draw() {////-------------------------------------------------------------class ChangeDrawingUndo : public TUndo {+class ChangeDrawingUndo final : public TUndo {int m_row, m_col;TFrameId m_oldFid, m_newFid;diff --git a/toonz/sources/tnztools/skeletonsubtools.h b/toonz/sources/tnztools/skeletonsubtools.hindex 27d2044a5..f071e6eaa 100644--- a/toonz/sources/tnztools/skeletonsubtools.h+++ b/toonz/sources/tnztools/skeletonsubtools.h@@ -35,7 +35,7 @@ public://----------------------------------------------------------class DragCenterTool : public DragTool {+class DragCenterTool final : public DragTool {TStageObjectId m_objId;int m_frame;@@ -84,7 +84,7 @@ public://----------------------------------------------------------class DragPositionTool : public DragChannelTool {+class DragPositionTool final : public DragChannelTool {TPointD m_firstPos;public:@@ -96,7 +96,7 @@ public://----------------------------------------------------------class DragRotationTool : public DragChannelTool {+class DragRotationTool final : public DragChannelTool {TPointD m_lastPos;TPointD m_center;bool m_snapped;@@ -110,7 +110,7 @@ public://----------------------------------------------------------class ParentChangeTool : public DragTool {+class ParentChangeTool final : public DragTool {TTool::Viewer *m_viewer;TPoint m_firstWinPos;TPointD m_lastPos, m_lastPos2;@@ -154,7 +154,7 @@ public:class IKToolUndo;-class IKTool : public DragTool {+class IKTool final : public DragTool {TTool::Viewer *m_viewer;TPointD m_pos;Skeleton *m_skeleton;@@ -209,7 +209,7 @@ public://----------------------------------------------------------class ChangeDrawingTool : public DragTool {+class ChangeDrawingTool final : public DragTool {int m_oldY;int m_dir;TUndo *m_undo;@@ -226,7 +226,7 @@ public://----------------------------------------------------------class CommandHandler : public QObject {+class CommandHandler final : public QObject {Q_OBJECTSkeleton *m_skeleton;std::set<int> *m_tempPinnedSet;diff --git a/toonz/sources/tnztools/skeletontool.cpp b/toonz/sources/tnztools/skeletontool.cppindex c993a054f..0ce0e13cb 100644--- a/toonz/sources/tnztools/skeletontool.cpp+++ b/toonz/sources/tnztools/skeletontool.cpp@@ -495,7 +495,7 @@ bool SkeletonTool::keyDown(int key, TUINT32 flags, const TPoint &pos) {//--------------------------------------------------------------------class TogglePinnedStatusUndo : public TUndo {+class TogglePinnedStatusUndo final : public TUndo {SkeletonTool *m_tool;std::set<int> m_oldTemp, m_newTemp;int m_columnIndex, m_oldColumnIndex;diff --git a/toonz/sources/tnztools/strokeselection.cpp b/toonz/sources/tnztools/strokeselection.cppindex 0ac11f8e0..c4efaef00 100644--- a/toonz/sources/tnztools/strokeselection.cpp+++ b/toonz/sources/tnztools/strokeselection.cpp@@ -171,7 +171,7 @@ void cutStrokesWithoutUndo(TVectorImageP image, std::set<int> &indexes) {// CopyStrokesUndo//------------------------------------------------------------------------------class CopyStrokesUndo : public TUndo {+class CopyStrokesUndo final : public TUndo {QMimeData *m_oldData;QMimeData *m_newData;@@ -196,7 +196,7 @@ public:// PasteStrokesUndo//------------------------------------------------------------------------------class PasteStrokesUndo : public TUndo {+class PasteStrokesUndo final : public TUndo {TXshSimpleLevelP m_level;TFrameId m_frameId;std::set<int> m_indexes;@@ -252,7 +252,7 @@ public://---------------------------------------------------------------------class RemoveEndpointsUndo : public TUndo {+class RemoveEndpointsUndo final : public TUndo {TXshSimpleLevelP m_level;TFrameId m_frameId;std::vector<std::pair<int, TStroke *>> m_strokes;@@ -349,7 +349,7 @@ public:// CutStrokesUndo//------------------------------------------------------------------------------class CutStrokesUndo : public DeleteStrokesUndo {+class CutStrokesUndo final : public DeleteStrokesUndo {public:CutStrokesUndo(TXshSimpleLevel *level, const TFrameId &frameId,std::set<int> indexes, QMimeData *data,@@ -619,7 +619,7 @@ void StrokeSelection::enableCommands() {namespace {//===================================================================-class UndoSetStrokeStyle : public TUndo {+class UndoSetStrokeStyle final : public TUndo {TVectorImageP m_image;std::vector<int> m_strokeIndexes;std::vector<int> m_oldStyles;diff --git a/toonz/sources/tnztools/stylepickertool.cpp b/toonz/sources/tnztools/stylepickertool.cppindex 77000fd26..e73625c58 100644--- a/toonz/sources/tnztools/stylepickertool.cpp+++ b/toonz/sources/tnztools/stylepickertool.cpp@@ -35,7 +35,7 @@ namespace {// Pick Style Tool//-------------------------------------------------------------------------class StylePickerTool : public TTool {+class StylePickerTool final : public TTool {int m_oldStyleId, m_currentStyleId;TEnumProperty m_colorType;diff --git a/toonz/sources/tnztools/tool.cpp b/toonz/sources/tnztools/tool.cppindex c5516c0af..a5bb9d58e 100644--- a/toonz/sources/tnztools/tool.cpp+++ b/toonz/sources/tnztools/tool.cpp@@ -59,7 +59,7 @@ std::set<std::string> *toolNames = 0;// Local classes-struct DummyTool : public TTool {+struct DummyTool final : public TTool {ToolType getToolType() const override {return TTool::LevelReadTool;} // Test level typediff --git a/toonz/sources/tnztools/tooloptions.cpp b/toonz/sources/tnztools/tooloptions.cppindex 1a19bbe77..ea777d38c 100644--- a/toonz/sources/tnztools/tooloptions.cpp+++ b/toonz/sources/tnztools/tooloptions.cpp@@ -580,9 +580,9 @@ ArrowToolOptionsBox::ArrowToolOptionsBox(if (splined != m_splined) m_splined = splined;setSplined(m_splined);- const int ITEM_SPACING = 10;+ const int ITEM_SPACING = 10;const int LABEL_SPACING = 3;-+ /* --- Layout --- *//* --- Layout --- */QHBoxLayout *mainLay = m_layout;{@@ -593,8 +593,8 @@ ArrowToolOptionsBox::ArrowToolOptionsBox(mainLay->addWidget(m_mainStackedWidget, 1);{- //Position- QFrame *posFrame = new QFrame(this);+ // Position+ QFrame *posFrame = new QFrame(this);QHBoxLayout *posLay = new QHBoxLayout();posLay->setMargin(0);posLay->setSpacing(0);@@ -636,8 +636,8 @@ ArrowToolOptionsBox::ArrowToolOptionsBox(posLay->addStretch(1);}- //Rotation- QFrame *rotFrame = new QFrame(this);+ // Rotation+ QFrame *rotFrame = new QFrame(this);QHBoxLayout *rotLay = new QHBoxLayout();rotLay->setMargin(0);rotLay->setSpacing(0);@@ -652,8 +652,8 @@ ArrowToolOptionsBox::ArrowToolOptionsBox(rotLay->addStretch(1);}- //Scale- QFrame *scaleFrame = new QFrame(this);+ // Scale+ QFrame *scaleFrame = new QFrame(this);QHBoxLayout *scaleLay = new QHBoxLayout();scaleLay->setMargin(0);scaleLay->setSpacing(0);@@ -690,8 +690,8 @@ ArrowToolOptionsBox::ArrowToolOptionsBox(scaleLay->addStretch(1);}- //Shear- QFrame *shearFrame = new QFrame(this);+ // Shear+ QFrame *shearFrame = new QFrame(this);QHBoxLayout *shearLay = new QHBoxLayout();shearLay->setMargin(0);shearLay->setSpacing(0);@@ -718,8 +718,8 @@ ArrowToolOptionsBox::ArrowToolOptionsBox(shearLay->addStretch(1);}- //Center Position- QFrame *centerPosFrame = new QFrame(this);+ // Center Position+ QFrame *centerPosFrame = new QFrame(this);QHBoxLayout *centerPosLay = new QHBoxLayout();centerPosLay->setMargin(0);centerPosLay->setSpacing(0);@@ -981,12 +981,11 @@ void ArrowToolOptionsBox::onCurrentStageObjectComboActivated(int index) {//=============================================================================IconViewField::IconViewField(QWidget *parent, IconType iconType)- : QWidget(parent)- , m_iconType(iconType){+ : QWidget(parent), m_iconType(iconType) {setMinimumSize(21, 25);}-void IconViewField::paintEvent(QPaintEvent *e){+void IconViewField::paintEvent(QPaintEvent *e) {QPainter p(this);// La pixmap e' alta 17 px, il widget 23. Per centrarla faccio il draw a 3 px.p.drawPixmap(QRect(0, 3, 21, 17), m_pm[m_iconType]);@@ -1004,46 +1003,47 @@ SelectionToolOptionsBox::SelectionToolOptionsBox(QWidget *parent, TTool *tool,TPropertyGroup *props = tool->getProperties(0);assert(props->getPropertyCount() > 0);- RasterSelectionTool *rasterSelectionTool = dynamic_cast<RasterSelectionTool *>(tool);+ RasterSelectionTool *rasterSelectionTool =+ dynamic_cast<RasterSelectionTool *>(tool);SelectionTool *selectionTool = dynamic_cast<SelectionTool *>(tool);ToolOptionControlBuilder builder(this, tool, pltHandle, toolHandle);- if (tool && tool->getProperties(0))- tool->getProperties(0)->accept(builder);+ if (tool && tool->getProperties(0)) tool->getProperties(0)->accept(builder);- //Scale- IconViewField *iconView = new IconViewField(this, IconViewField::Icon_ScalePeg);+ IconViewField *iconView =+ new IconViewField(this, IconViewField::Icon_ScalePeg);m_scaleXLabel = new QLabel(tr("H:"), this);m_scaleXField = new SelectionScaleField(selectionTool, 0, "Scale X");m_scaleYLabel = new QLabel(tr("V:"), this);m_scaleYField = new SelectionScaleField(selectionTool, 1, "Scale Y");- m_scaleLink = new DVGui::CheckBox(tr("Link"), this);+ m_scaleLink = new DVGui::CheckBox(tr("Link"), this);- //Rotation- IconViewField *rotIconView = new IconViewField(this, IconViewField::Icon_Rotation);+ IconViewField *rotIconView =+ new IconViewField(this, IconViewField::Icon_Rotation);m_rotationField = new SelectionRotationField(selectionTool, tr("Rotation"));- //Move- IconViewField *moveIconView = new IconViewField(this, IconViewField::Icon_Position);+ IconViewField *moveIconView =+ new IconViewField(this, IconViewField::Icon_Position);m_moveXLabel = new QLabel(tr("E/W:"), this);m_moveXField = new SelectionMoveField(selectionTool, 0, "Move X");m_moveYLabel = addLabel(tr("N/S:"));m_moveYField = new SelectionMoveField(selectionTool, 1, "Move Y");if (rasterSelectionTool) {- TBoolProperty *modifySetSaveboxProp = rasterSelectionTool->getModifySaveboxProperty();+ TBoolProperty *modifySetSaveboxProp =+ rasterSelectionTool->getModifySaveboxProperty();if (modifySetSaveboxProp)- m_setSaveboxCheckbox = new ToolOptionCheckbox(rasterSelectionTool, modifySetSaveboxProp);+ m_setSaveboxCheckbox =+ new ToolOptionCheckbox(rasterSelectionTool, modifySetSaveboxProp);}-m_scaleXLabel->setEnabled(false);m_scaleYLabel->setEnabled(false);m_moveXLabel->setEnabled(false);m_moveYLabel->setEnabled(false);- //--- layout ----+ //--- layout ----addSeparator();@@ -1067,24 +1067,25 @@ SelectionToolOptionsBox::SelectionToolOptionsBox(QWidget *parent, TTool *tool,hLayout()->addWidget(m_moveXField, 10);hLayout()->addWidget(m_moveYLabel, 0);hLayout()->addWidget(m_moveYField, 10);- if (m_setSaveboxCheckbox)- {+ if (m_setSaveboxCheckbox) {addSeparator();hLayout()->addWidget(m_setSaveboxCheckbox, 0);}- VectorSelectionTool *vectorSelectionTool = dynamic_cast<VectorSelectionTool *>(tool);+ VectorSelectionTool *vectorSelectionTool =+ dynamic_cast<VectorSelectionTool *>(tool);if (vectorSelectionTool) {m_isVectorSelction = true;- //change Thick- IconViewField *thicknessIconView = new IconViewField(this, IconViewField::Icon_Thickness);+ // change Thick+ IconViewField *thicknessIconView =+ new IconViewField(this, IconViewField::Icon_Thickness);m_thickChangeField = new ThickChangeField(selectionTool, tr("Thickness"));addSeparator();hLayout()->addWidget(thicknessIconView, 0);hLayout()->addWidget(m_thickChangeField, 10);-+ // Outline options// Outline optionsToolOptionControlBuilder builder(this, tool, pltHandle, toolHandle);builder.setEnumWidgetType(ToolOptionControlBuilder::POPUPBUTTON);@@ -1105,16 +1106,19 @@ SelectionToolOptionsBox::SelectionToolOptionsBox(QWidget *parent, TTool *tool,onPropertyChanged();}- hLayout()->addStretch(1);-- bool ret = connect(m_scaleXField, SIGNAL(valueChange()), SLOT(onScaleXValueChanged()));- ret = ret && connect(m_scaleYField, SIGNAL(valueChange()), SLOT(onScaleYValueChanged()));- if (m_setSaveboxCheckbox)- ret = ret && connect(m_setSaveboxCheckbox, SIGNAL(toggled(bool)), SLOT(onSetSaveboxCheckboxChanged(bool)));+ hLayout()->addStretch(1);+ // assert(ret);+ bool ret = connect(m_scaleXField, SIGNAL(valueChange()),+ SLOT(onScaleXValueChanged()));+ ret = ret && connect(m_scaleYField, SIGNAL(valueChange()),+ SLOT(onScaleYValueChanged()));+ if (m_setSaveboxCheckbox)+ ret = ret && connect(m_setSaveboxCheckbox, SIGNAL(toggled(bool)),+ SLOT(onSetSaveboxCheckboxChanged(bool)));- //assert(ret);+ // assert(ret);- updateStatus();+ updateStatus();}//-----------------------------------------------------------------------------@@ -1528,7 +1532,7 @@ void FillToolOptionsBox::onMultiFrameModeToggled(bool value) {////=============================================================================-class BrushToolOptionsBox::PresetNamePopup : public DVGui::Dialog {+class BrushToolOptionsBox::PresetNamePopup final : public DVGui::Dialog {DVGui::LineEdit *m_nameFld;public:@@ -1791,7 +1795,7 @@ void EraserToolOptionsBox::onColorModeChanged() {// RulerToolOptionsBox////=============================================================================-class ToolOptionsBarSeparator : public QWidget {+class ToolOptionsBarSeparator final : public QWidget {public:ToolOptionsBarSeparator(QWidget *parent) : QWidget(parent) {setFixedSize(2, 26);@@ -1954,7 +1958,7 @@ TapeToolOptionsBox::TapeToolOptionsBox(QWidget *parent, TTool *tool,ToolOptionControlBuilder builder(this, tool, pltHandle, toolHandle);if (tool && tool->getProperties(0)) tool->getProperties(0)->accept(builder);-+hLayout()->addStretch(1);if (!(tool->getTargetType() & TTool::Vectors)) return;@@ -2029,7 +2033,7 @@ void TapeToolOptionsBox::onJoinStrokesModeChanged() {//-----------------------------------------------------------------------------/*! Label with background color*/-class RGBLabel : public QWidget {+class RGBLabel final : public QWidget {QColor m_color;public:diff --git a/toonz/sources/tnztools/tooloptionscontrols.cpp b/toonz/sources/tnztools/tooloptionscontrols.cppindex 6857601e9..c3f1e5200 100644--- a/toonz/sources/tnztools/tooloptionscontrols.cpp+++ b/toonz/sources/tnztools/tooloptionscontrols.cpp@@ -135,14 +135,18 @@ ToolOptionSlider::ToolOptionSlider(TTool *tool, TDoubleProperty *property,TDoubleProperty::Range range = property->getRange();setRange(range.first, range.second);- //calculate maximum text length which includes length for decimals (for now it's fixed to 2) and period- int textMaxLength = std::max(QString::number((int)range.first).length(), QString::number((int)range.second).length()) + m_lineEdit->getDecimals() + 1;+ // calculate maximum text length which includes length for decimals (for now+ // it's fixed to 2) and period+ int textMaxLength = std::max(QString::number((int)range.first).length(),+ QString::number((int)range.second).length()) ++ m_lineEdit->getDecimals() + 1;QString txt;- //set the maximum width of the widget according to the text length (with 5 pixels margin)+ // set the maximum width of the widget according to the text length (with 5+ // pixels margin)txt.fill('0', textMaxLength);int widgetWidth = fontMetrics().width(txt) + 5;m_lineEdit->parentWidget()->setMaximumWidth(widgetWidth);- //set the maximum width of the slider to 250 pixels+ // set the maximum width of the slider to 250 pixelssetMaximumWidth(250 + widgetWidth);updateStatus();@@ -226,17 +230,21 @@ ToolOptionPairSlider::ToolOptionPairSlider(TTool *tool,TDoublePairProperty::Range range = property->getRange();setRange(range.first, range.second);- //calculate maximum text length which includes length for decimals (for now it's fixed to 2) and period- int textMaxLength = std::max(QString::number((int)range.first).length(), QString::number((int)range.second).length()) + m_leftLineEdit->getDecimals() + 1;+ // calculate maximum text length which includes length for decimals (for now+ // it's fixed to 2) and period+ int textMaxLength = std::max(QString::number((int)range.first).length(),+ QString::number((int)range.second).length()) ++ m_leftLineEdit->getDecimals() + 1;QString txt;- //set the maximum width of the widget according to the text length (with 5 pixels margin)+ // set the maximum width of the widget according to the text length (with 5+ // pixels margin)txt.fill('0', textMaxLength);int widgetWidth = fontMetrics().width(txt) + 5;m_leftLineEdit->setFixedWidth(widgetWidth);m_rightLineEdit->setFixedWidth(widgetWidth);- m_leftMargin = widgetWidth + 12;+ m_leftMargin = widgetWidth + 12;m_rightMargin = widgetWidth + 12;- //set the maximum width of the slider to 300 pixels+ // set the maximum width of the slider to 300 pixelssetMaximumWidth(300 + m_leftMargin + m_rightMargin);setLeftText(leftName);@@ -559,16 +567,15 @@ void ToolOptionCombo::loadEntries() {int maxWidth = 0;clear();- for (it = range.begin(); it != range.end(); ++it)- {+ for (it = range.begin(); it != range.end(); ++it) {QString itemStr = QString::fromStdWString(*it);addItem(itemStr);- int tmpWidth = fontMetrics().width(itemStr);- if (tmpWidth > maxWidth)- maxWidth = tmpWidth;+ int tmpWidth = fontMetrics().width(itemStr);+ if (tmpWidth > maxWidth) maxWidth = tmpWidth;}- //set the maximum width according to the longest item with 25 pixels for arrow button and margin+ // set the maximum width according to the longest item with 25 pixels for+ // arrow button and marginsetMaximumWidth(maxWidth + 25);updateStatus();@@ -857,7 +864,7 @@ void ToolOptionParamRelayField::onValueChanged() {//------------------------------------------------------------------------------ struct SetValueUndo : public TUndo {+ struct SetValueUndo final : public TUndo {TDoubleParamP m_param; //!< The referenced paramdouble m_oldVal, m_newVal; //!< Values before and after the set action...double m_frame; //!< ... at this frame@@ -1026,12 +1033,12 @@ void MeasuredValueField::setPrecision(int precision) {//=============================================================================namespace {- //calculate maximum field size (once) with 10 pixels margin- int getMaximumWidthForEditToolField(QWidget* widget) {- static int fieldMaxWidth = widget->fontMetrics().width("-0000.00 field") + 10;- return fieldMaxWidth;- }-}//namespace+// calculate maximum field size (once) with 10 pixels margin+int getMaximumWidthForEditToolField(QWidget *widget) {+ static int fieldMaxWidth = widget->fontMetrics().width("-0000.00 field") + 10;+ return fieldMaxWidth;+}+} // namespacePegbarChannelField::PegbarChannelField(TTool *tool,enum TStageObject::Channel actionId,@@ -1081,7 +1088,7 @@ PegbarChannelField::PegbarChannelField(TTool *tool,}setMaximumWidth(getMaximumWidthForEditToolField(this));-+updateStatus();}@@ -1340,15 +1347,13 @@ void PropertyMenuButton::onActionTriggered(QAction *action) {}//=============================================================================-namespace-{- //calculate maximum field size (once) with 10 pixels margin- int getMaximumWidthForSelectionToolField(QWidget* widget)- {- static int fieldMaxWidth = widget->fontMetrics().width("-000.00 %") + 10;- return fieldMaxWidth;- }-}//namespace+namespace {+// calculate maximum field size (once) with 10 pixels margin+int getMaximumWidthForSelectionToolField(QWidget *widget) {+ static int fieldMaxWidth = widget->fontMetrics().width("-000.00 %") + 10;+ return fieldMaxWidth;+}+} // namespace// id == 0 Scale X// id == 0 Scale Y@@ -1501,7 +1506,8 @@ SelectionMoveField::SelectionMoveField(SelectionTool *tool, int id,setMeasure("length.y");updateStatus();- // for translation value field, use size for the Edit Tool as it needs more estate+ // for translation value field, use size for the Edit Tool as it needs more+ // estatesetMaximumWidth(getMaximumWidthForEditToolField(this));}diff --git a/toonz/sources/tnztools/tooloptionscontrols.h b/toonz/sources/tnztools/tooloptionscontrols.hindex 2eb137645..f3a26cd25 100644--- a/toonz/sources/tnztools/tooloptionscontrols.h+++ b/toonz/sources/tnztools/tooloptionscontrols.h@@ -81,7 +81,8 @@ public:// ToolOptionControl derivative declarations//***********************************************************************************-class ToolOptionCheckbox : public DVGui::CheckBox, public ToolOptionControl {+class ToolOptionCheckbox final : public DVGui::CheckBox,+ public ToolOptionControl {Q_OBJECTprotected:@@ -100,7 +101,8 @@ protected://------------------------------------------------------------------------------class ToolOptionSlider : public DVGui::DoubleField, public ToolOptionControl {+class ToolOptionSlider final : public DVGui::DoubleField,+ public ToolOptionControl {Q_OBJECTprotected:@@ -120,8 +122,8 @@ protected slots://------------------------------------------------------------------------------class ToolOptionPairSlider : public DVGui::DoublePairField,- public ToolOptionControl {+class ToolOptionPairSlider final : public DVGui::DoublePairField,+ public ToolOptionControl {Q_OBJECTprotected:@@ -144,8 +146,8 @@ protected slots://------------------------------------------------------------------------------class ToolOptionIntPairSlider : public DVGui::IntPairField,- public ToolOptionControl {+class ToolOptionIntPairSlider final : public DVGui::IntPairField,+ public ToolOptionControl {Q_OBJECTprotected:@@ -168,7 +170,8 @@ protected slots://------------------------------------------------------------------------------class ToolOptionIntSlider : public DVGui::IntField, public ToolOptionControl {+class ToolOptionIntSlider final : public DVGui::IntField,+ public ToolOptionControl {Q_OBJECTprotected:@@ -188,7 +191,7 @@ protected slots://------------------------------------------------------------------------------class ToolOptionCombo : public QComboBox, public ToolOptionControl {+class ToolOptionCombo final : public QComboBox, public ToolOptionControl {Q_OBJECTprotected:@@ -209,7 +212,8 @@ public slots://------------------------------------------------------------------------------class ToolOptionPopupButton : public PopupButton, public ToolOptionControl {+class ToolOptionPopupButton final : public PopupButton,+ public ToolOptionControl {Q_OBJECTprotected:@@ -230,7 +234,8 @@ public slots://------------------------------------------------------------------------------class ToolOptionTextField : public DVGui::LineEdit, public ToolOptionControl {+class ToolOptionTextField final : public DVGui::LineEdit,+ public ToolOptionControl {Q_OBJECTprotected:@@ -247,8 +252,8 @@ public slots://------------------------------------------------------------------------------class StyleIndexFieldAndChip : public DVGui::StyleIndexLineEdit,- public ToolOptionControl {+class StyleIndexFieldAndChip final : public DVGui::StyleIndexLineEdit,+ public ToolOptionControl {Q_OBJECTprotected:@@ -280,8 +285,8 @@ public slots:the edited one)\li Undo/Redo of user interactions.*/-class ToolOptionParamRelayField : public DVGui::MeasuredDoubleLineEdit,- public ToolOptionControl {+class ToolOptionParamRelayField final : public DVGui::MeasuredDoubleLineEdit,+ public ToolOptionControl {Q_OBJECTTDoubleParamP m_param; //!< Cached property param@@ -356,7 +361,8 @@ signals:};//------------------------------------------------------------------------------class PegbarChannelField : public MeasuredValueField, public ToolOptionControl {+class PegbarChannelField final : public MeasuredValueField,+ public ToolOptionControl {Q_OBJECTconst enum TStageObject::Channel m_actionId;@@ -386,8 +392,8 @@ protected slots://------------------------------------------------------------------------------class DVAPI PegbarCenterField : public MeasuredValueField,- public ToolOptionControl {+class DVAPI PegbarCenterField final : public MeasuredValueField,+ public ToolOptionControl {Q_OBJECTint m_index; // 0 = x, 1 = y@@ -410,7 +416,7 @@ protected slots://------------------------------------------------------------------------------class NoScaleField : public MeasuredValueField, public ToolOptionControl {+class NoScaleField final : public MeasuredValueField, public ToolOptionControl {Q_OBJECTpublic:@@ -426,7 +432,7 @@ protected slots://------------------------------------------------------------------------------class PropertyMenuButton : public QToolButton, public ToolOptionControl {+class PropertyMenuButton final : public QToolButton, public ToolOptionControl {Q_OBJECTQList<TBoolProperty *> m_properties;@@ -451,7 +457,7 @@ signals://------------------------------------------------------------------------------class SelectionScaleField : public MeasuredValueField {+class SelectionScaleField final : public MeasuredValueField {Q_OBJECTint m_id;@@ -474,7 +480,7 @@ signals://------------------------------------------------------------------------------class SelectionRotationField : public MeasuredValueField {+class SelectionRotationField final : public MeasuredValueField {Q_OBJECTSelectionTool *m_tool;@@ -492,7 +498,7 @@ protected slots://------------------------------------------------------------------------------class SelectionMoveField : public MeasuredValueField {+class SelectionMoveField final : public MeasuredValueField {Q_OBJECTint m_id;@@ -511,7 +517,7 @@ protected slots://------------------------------------------------------------------------------class ThickChangeField : public MeasuredValueField {+class ThickChangeField final : public MeasuredValueField {Q_OBJECTSelectionTool *m_tool;diff --git a/toonz/sources/tnztools/trackertool.cpp b/toonz/sources/tnztools/trackertool.cppindex 0ef50454f..7813b2456 100644--- a/toonz/sources/tnztools/trackertool.cpp+++ b/toonz/sources/tnztools/trackertool.cpp@@ -47,7 +47,7 @@ namespace {//-----------------------------------------------------------------------------// Ancora da definire.// under construction-class TrackerRegionSelection : public TSelection {+class TrackerRegionSelection final : public TSelection {TXshLevelP m_level;std::set<std::pair<int, int>>m_objtp; // objtp: 1=ObjectId 2=Tracker Region Index@@ -138,7 +138,7 @@ return TDataP(); */// TrackerTool class declaration//------------------------------------------------------------------------------class TrackerTool : public TTool {+class TrackerTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(TrackerTool)TrackerRegionSelection m_selection;diff --git a/toonz/sources/tnztools/typetool.cpp b/toonz/sources/tnztools/typetool.cppindex c8eca3e42..8aa670156 100644--- a/toonz/sources/tnztools/typetool.cpp+++ b/toonz/sources/tnztools/typetool.cpp@@ -92,7 +92,7 @@ const double cBorderSize = 15;////----------------------------------------------------------class UndoTypeTool : public ToolUtils::TToolUndo {+class UndoTypeTool final : public ToolUtils::TToolUndo {std::vector<TStroke *> m_strokes;std::vector<TFilledRegionInf> *m_fillInformationBefore,*m_fillInformationAfter;@@ -193,7 +193,7 @@ public://----------------------------------------------------------class RasterUndoTypeTool : public TRasterUndo {+class RasterUndoTypeTool final : public TRasterUndo {TTileSetCM32 *m_afterTiles;public:@@ -288,7 +288,7 @@ public:////----------------------------------------------------------class TypeTool : public TTool {+class TypeTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(TypeTool)// Propertiesdiff --git a/toonz/sources/tnztools/vectorerasertool.cpp b/toonz/sources/tnztools/vectorerasertool.cppindex c56035c34..18d75023a 100644--- a/toonz/sources/tnztools/vectorerasertool.cpp+++ b/toonz/sources/tnztools/vectorerasertool.cpp@@ -72,7 +72,7 @@ void mapToVector(const std::map<int, VIStroke *> &theMap,//------------------------------------------------------------------------------class UndoEraser : public ToolUtils::TToolUndo {+class UndoEraser final : public ToolUtils::TToolUndo {std::vector<TFilledRegionInf> m_oldFillInformation, m_newFillInformation;int m_row;@@ -247,7 +247,7 @@ public:// EraserTool class declaration//------------------------------------------------------------------------------class EraserTool : public TTool {+class EraserTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(EraserTool)public:diff --git a/toonz/sources/tnztools/vectorselectiontool.cpp b/toonz/sources/tnztools/vectorselectiontool.cppindex eaa99bb97..18dc88086 100644--- a/toonz/sources/tnztools/vectorselectiontool.cpp+++ b/toonz/sources/tnztools/vectorselectiontool.cpp@@ -424,7 +424,7 @@ int DragSelectionTool::UndoChangeStrokes::getSize() const {// UndoChangeOutlineStyle//------------------------------------------------------------------------------class UndoChangeOutlineStyle : public ToolUtils::TToolUndo {+class UndoChangeOutlineStyle final : public ToolUtils::TToolUndo {std::vector<TStroke::OutlineOptions> m_oldOptions, m_newOptions;FourPoints m_oldBBox, m_newBBox;VectorSelectionTool *m_tool;@@ -1123,7 +1123,7 @@ bool getGroupBBox(const TVectorImage &vi, int strokeIndex, TRectD &gBox) {// UndoEnterGroup//------------------------------------------------------------------------------class UndoEnterGroup : public TUndo {+class UndoEnterGroup final : public TUndo {int m_strokeIndex;TVectorImageP m_vi;@@ -1145,7 +1145,7 @@ public:// UndoExitGroup//------------------------------------------------------------------------------class UndoExitGroup : public TUndo {+class UndoExitGroup final : public TUndo {int m_strokeIndex;TVectorImageP m_vi;diff --git a/toonz/sources/tnztools/vectorselectiontool.h b/toonz/sources/tnztools/vectorselectiontool.hindex 60ee74e09..63291578d 100644--- a/toonz/sources/tnztools/vectorselectiontool.h+++ b/toonz/sources/tnztools/vectorselectiontool.h@@ -65,7 +65,7 @@ enum SelectionTarget //! Possible selection targets in a SelectionTool.// VectorFreeDeformer//------------------------------------------------------------------------------class VectorFreeDeformer : public FreeDeformer {+class VectorFreeDeformer final : public FreeDeformer {TVectorImageP m_vi;std::set<int> m_strokeIndexes;std::vector<TStroke *> m_originalStrokes;@@ -106,7 +106,7 @@ namespace DragSelectionTool {// UndoChangeStrokes//------------------------------------------------------------------------------class UndoChangeStrokes : public ToolUtils::TToolUndo {+class UndoChangeStrokes final : public ToolUtils::TToolUndo {public:UndoChangeStrokes(TXshSimpleLevel *level, const TFrameId &frameId,VectorSelectionTool *tool,@@ -178,7 +178,7 @@ private:// VectorRotationTool//------------------------------------------------------------------------------class VectorRotationTool : public VectorDeformTool {+class VectorRotationTool final : public VectorDeformTool {tcg::unique_ptr<Rotation> m_rotation;public:@@ -193,7 +193,7 @@ public:// VectorFreeDeformTool//------------------------------------------------------------------------------class VectorFreeDeformTool : public VectorDeformTool {+class VectorFreeDeformTool final : public VectorDeformTool {tcg::unique_ptr<FreeDeform> m_freeDeform;public:@@ -206,7 +206,7 @@ public:// VectorMoveSelectionTool//------------------------------------------------------------------------------class VectorMoveSelectionTool : public VectorDeformTool {+class VectorMoveSelectionTool final : public VectorDeformTool {tcg::unique_ptr<MoveSelection> m_moveSelection;public:@@ -221,7 +221,7 @@ public:// VectorScaleTool//------------------------------------------------------------------------------class VectorScaleTool : public VectorDeformTool {+class VectorScaleTool final : public VectorDeformTool {tcg::unique_ptr<Scale> m_scale;public:@@ -238,7 +238,7 @@ public:// VectorChangeThicknessTool//------------------------------------------------------------------------------class VectorChangeThicknessTool : public DragTool {+class VectorChangeThicknessTool final : public DragTool {TPointD m_curPos, m_firstPos;std::map<int, std::vector<double>> m_strokesThickness;double m_thicknessChange;@@ -271,7 +271,7 @@ public:\brief Selection tool for Toonz's vector images.*/-class VectorSelectionTool : public SelectionTool {+class VectorSelectionTool final : public SelectionTool {Q_DECLARE_TR_FUNCTIONS(VectorSelectionTool)public:@@ -327,7 +327,7 @@ protected:void onImageChanged() override;private:- class AttachedLevelSelection : public LevelSelection {+ class AttachedLevelSelection final : public LevelSelection {StrokeSelection &m_strokeSelection; //!< Selection of strokes to be seen at//! current frame.diff --git a/toonz/sources/tnztools/vectortapetool.cpp b/toonz/sources/tnztools/vectortapetool.cppindex 39aff8b88..332eab2e9 100644--- a/toonz/sources/tnztools/vectortapetool.cpp+++ b/toonz/sources/tnztools/vectortapetool.cpp@@ -39,7 +39,7 @@ TEnv::StringVar TapeType("InknpaintTapeType1", "Normal");TEnv::DoubleVar AutocloseFactor("InknpaintAutocloseFactor", 4.0);namespace {-class UndoAutoclose : public ToolUtils::TToolUndo {+class UndoAutoclose final : public ToolUtils::TToolUndo {int m_oldStrokeId1;int m_oldStrokeId2;int m_pos1, m_pos2;@@ -173,7 +173,7 @@ public:// Autoclose Tool//------------------------------------------------------------------------------class VectorTapeTool : public TTool {+class VectorTapeTool final : public TTool {Q_DECLARE_TR_FUNCTIONS(VectorTapeTool)bool m_draw;diff --git a/toonz/sources/tnztools/viewtools.cpp b/toonz/sources/tnztools/viewtools.cppindex a0ef44873..39cf43c43 100644--- a/toonz/sources/tnztools/viewtools.cpp+++ b/toonz/sources/tnztools/viewtools.cpp@@ -16,7 +16,7 @@ namespace {// Zoom Tool//------------------------------------------------------------------------------class ZoomTool : public TTool {+class ZoomTool final : public TTool {int m_oldY;TPointD m_center;bool m_dragging;@@ -89,7 +89,7 @@ public:// Hand Tool//------------------------------------------------------------------------------class HandTool : public TTool {+class HandTool final : public TTool {TStopWatch m_sw;TPoint m_oldPos;@@ -130,7 +130,7 @@ public:// Rotate Tool//------------------------------------------------------------------------------class RotateTool : public TTool {+class RotateTool final : public TTool {TStopWatch m_sw;TPointD m_oldPos;TPointD m_center;diff --git a/toonz/sources/toonz/addfilmstripframespopup.h b/toonz/sources/toonz/addfilmstripframespopup.hindex 254f2518e..d4bc179df 100644--- a/toonz/sources/toonz/addfilmstripframespopup.h+++ b/toonz/sources/toonz/addfilmstripframespopup.h@@ -14,7 +14,7 @@ class QLineEdit;// AddFilmstripFramesPopup//------------------------------------------------------------------------------class AddFilmstripFramesPopup : public DVGui::Dialog {+class AddFilmstripFramesPopup final : public DVGui::Dialog {Q_OBJECTQPushButton *m_okBtn;diff --git a/toonz/sources/toonz/adjustlevelspopup.cpp b/toonz/sources/toonz/adjustlevelspopup.cppindex ba7c5d755..919936d92 100644--- a/toonz/sources/toonz/adjustlevelspopup.cpp+++ b/toonz/sources/toonz/adjustlevelspopup.cpp@@ -92,7 +92,7 @@ void getRange(const QVector<int> &values, int threshold, int &min, int &max) {// Adjust Levels Swatch//**************************************************************************-class AdjustLevelsPopup::Swatch : public PlaneViewer {+class AdjustLevelsPopup::Swatch final : public PlaneViewer {TRasterP m_ras;public:@@ -554,7 +554,7 @@ void AdjustLevelsPopup::autoAdjust() {// TGBMScale Undo//**************************************************************************-class AdjustLevelsUndo : public TUndo {+class AdjustLevelsUndo final : public TUndo {int m_in0[5], m_in1[5], m_out0[5], m_out1[5];int m_r, m_c;diff --git a/toonz/sources/toonz/adjustlevelspopup.h b/toonz/sources/toonz/adjustlevelspopup.hindex 2a3f050be..69b648142 100644--- a/toonz/sources/toonz/adjustlevelspopup.h+++ b/toonz/sources/toonz/adjustlevelspopup.h@@ -24,7 +24,7 @@ class QPushButton;// EditableMarksBar declaration//**************************************************************-class EditableMarksBar : public QFrame {+class EditableMarksBar final : public QFrame {Q_OBJECTMarksBar *m_marksBar;@@ -59,7 +59,7 @@ public slots:// Adjust-Levels Popup declaration//**************************************************************-class AdjustLevelsPopup : public DVGui::Dialog {+class AdjustLevelsPopup final : public DVGui::Dialog {Q_OBJECTHistogram *m_histogram;diff --git a/toonz/sources/toonz/adjustthicknesspopup.cpp b/toonz/sources/toonz/adjustthicknesspopup.cppindex aca6f9c00..c1b3fdb10 100644--- a/toonz/sources/toonz/adjustthicknesspopup.cpp+++ b/toonz/sources/toonz/adjustthicknesspopup.cpp@@ -215,7 +215,7 @@ double relativePosition(int start, int end, int pos) {// Adjust Thickness Swatch//**************************************************************************-class AdjustThicknessPopup::Swatch : public PlaneViewer {+class AdjustThicknessPopup::Swatch final : public PlaneViewer {TVectorImageP m_vi;public:@@ -972,7 +972,7 @@ void AdjustThicknessPopup::updatePreview() {namespace {-class AdjustThicknessUndo : public TUndo {+class AdjustThicknessUndo final : public TUndo {public:AdjustThicknessUndo(const SelectionData &selData, double (&fromTransform)[2],double (&toTransform)[2]);diff --git a/toonz/sources/toonz/adjustthicknesspopup.h b/toonz/sources/toonz/adjustthicknesspopup.hindex f064a024d..edaa239c3 100644--- a/toonz/sources/toonz/adjustthicknesspopup.h+++ b/toonz/sources/toonz/adjustthicknesspopup.h@@ -35,7 +35,7 @@ class QComboBox;// Adjust Thickness Popup declaration//*****************************************************************************-class AdjustThicknessPopup : public DVGui::Dialog {+class AdjustThicknessPopup final : public DVGui::Dialog {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/antialiaspopup.cpp b/toonz/sources/toonz/antialiaspopup.cppindex db74fd86c..58f1c48bb 100644--- a/toonz/sources/toonz/antialiaspopup.cpp+++ b/toonz/sources/toonz/antialiaspopup.cpp@@ -69,7 +69,7 @@ inline void onChange(const TRasterP &ras, int threshold, int softness) {// AntialiasPopup Swatch//**************************************************************************-class AntialiasPopup::Swatch : public PlaneViewer {+class AntialiasPopup::Swatch final : public PlaneViewer {TImageP m_img;public:@@ -274,7 +274,7 @@ void AntialiasPopup::hideEvent(QHideEvent *he) {//------------------------------------------------------------------------------class TRasterAntialiasUndo : public TUndo {+class TRasterAntialiasUndo final : public TUndo {int m_r, m_c, m_threshold, m_softness;QString m_rasId;diff --git a/toonz/sources/toonz/antialiaspopup.h b/toonz/sources/toonz/antialiaspopup.hindex 197d0811e..ea3559fe3 100644--- a/toonz/sources/toonz/antialiaspopup.h+++ b/toonz/sources/toonz/antialiaspopup.h@@ -16,7 +16,7 @@ class IntField;// AntialiasPopup//------------------------------------------------------------------------------class AntialiasPopup : public DVGui::Dialog {+class AntialiasPopup final : public DVGui::Dialog {Q_OBJECTDVGui::IntField *m_thresholdField;diff --git a/toonz/sources/toonz/batches.cpp b/toonz/sources/toonz/batches.cppindex a12154f41..2931947af 100644--- a/toonz/sources/toonz/batches.cpp+++ b/toonz/sources/toonz/batches.cpp@@ -30,7 +30,7 @@namespace {-class NotifyMessage : public TThread::Message {+class NotifyMessage final : public TThread::Message {public:NotifyMessage() {}@@ -137,7 +137,7 @@ bool SaveTaskListPopup::execute() {QMutex TasksMutex;map<QString, QProcess *> RunningTasks;-class TaskRunner : public TThread::Runnable {+class TaskRunner final : public TThread::Runnable {public:TaskRunner(TFarmTask *task, int localControllerPort): m_task(task), m_localControllerPort(localControllerPort) {}@@ -953,7 +953,7 @@ TFarmController *BatchesController::getController() const {namespace {-class ControllerFailureMsg : public TThread::Message {+class ControllerFailureMsg final : public TThread::Message {public:ControllerFailureMsg(const TException &e) : m_e(e) {}@@ -1027,7 +1027,7 @@ BatchesController::Observer::~Observer() {}namespace {-class MyLocalController : public TFarmController, public TFarmExecutor {+class MyLocalController final : public TFarmController, public TFarmExecutor {public:MyLocalController(int port) : TFarmExecutor(port) {}@@ -1173,7 +1173,7 @@ void MyLocalController::taskProgress(const QString &taskId, int step,void MyLocalController::taskCompleted(const QString &taskId, int exitCode) {}-class MyLocalControllerController : public TThread::Runnable {+class MyLocalControllerController final : public TThread::Runnable {MyLocalController *m_controller;public:diff --git a/toonz/sources/toonz/batches.h b/toonz/sources/toonz/batches.hindex e8fdb8b49..c6d6b3e88 100644--- a/toonz/sources/toonz/batches.h+++ b/toonz/sources/toonz/batches.h@@ -28,7 +28,7 @@ class TFarmController;//------------------------------------------------------------------------------class TaskTreeModel;-class BatchesController : public QObject { // singleton+class BatchesController final : public QObject { // singletonQ_OBJECTpublic:static BatchesController *instance();@@ -109,7 +109,7 @@ private:static inline QString taskBusyStr();};//------------------------------------------------------------------------------class LoadTaskListPopup : public FileBrowserPopup {+class LoadTaskListPopup final : public FileBrowserPopup {public:LoadTaskListPopup();@@ -118,7 +118,7 @@ public://------------------------------------------------------------------------------class LoadTaskPopup : public FileBrowserPopup {+class LoadTaskPopup final : public FileBrowserPopup {Q_OBJECTbool m_isRenderTask;@@ -132,7 +132,7 @@ public://------------------------------------------------------------------------------class SaveTaskListPopup : public FileBrowserPopup {+class SaveTaskListPopup final : public FileBrowserPopup {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/batchserversviewer.cpp b/toonz/sources/toonz/batchserversviewer.cppindex 83718554b..3fafa208b 100644--- a/toonz/sources/toonz/batchserversviewer.cpp+++ b/toonz/sources/toonz/batchserversviewer.cpp@@ -21,7 +21,7 @@ using namespace TFarmStuff;//-------------------------------------------------------------------------------class MyListItem : public QListWidgetItem {+class MyListItem final : public QListWidgetItem {public:QString m_id;diff --git a/toonz/sources/toonz/batchserversviewer.h b/toonz/sources/toonz/batchserversviewer.hindex b91e71a91..a28eaf2f5 100644--- a/toonz/sources/toonz/batchserversviewer.h+++ b/toonz/sources/toonz/batchserversviewer.h@@ -20,7 +20,7 @@ class QListWidgetItem;//=============================================================================// BatchServersViewer-class FarmServerListView : public QListWidget {+class FarmServerListView final : public QListWidget {Q_OBJECTpublic:FarmServerListView(QWidget *parent);@@ -40,7 +40,7 @@ private:std::unique_ptr<QMenu> m_menu;};-class BatchServersViewer : public QFrame {+class BatchServersViewer final : public QFrame {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/binarizepopup.cpp b/toonz/sources/toonz/binarizepopup.cppindex d07c97602..25f30f200 100644--- a/toonz/sources/toonz/binarizepopup.cpp+++ b/toonz/sources/toonz/binarizepopup.cpp@@ -53,7 +53,7 @@// TBinarizeUndo//**************************************************************************-class TBinarizeUndo : public TUndo {+class TBinarizeUndo final : public TUndo {std::wstring m_levelName;TFrameId m_fid;bool m_alphaEnabled;@@ -124,7 +124,7 @@ public:// BinarizePopup Swatch//**************************************************************************-class BinarizePopup::Swatch : public PlaneViewer {+class BinarizePopup::Swatch final : public PlaneViewer {TRasterP m_ras;public:diff --git a/toonz/sources/toonz/binarizepopup.h b/toonz/sources/toonz/binarizepopup.hindex 56b9bf9a2..cc5802432 100644--- a/toonz/sources/toonz/binarizepopup.h+++ b/toonz/sources/toonz/binarizepopup.h@@ -21,7 +21,7 @@ class CheckBox;// BinarizePopup//------------------------------------------------------------------------------class BinarizePopup : public DVGui::Dialog {+class BinarizePopup final : public DVGui::Dialog {Q_OBJECTprotected:diff --git a/toonz/sources/toonz/brightnessandcontrastpopup.cpp b/toonz/sources/toonz/brightnessandcontrastpopup.cppindex 59147b0ca..4c9ea8998 100644--- a/toonz/sources/toonz/brightnessandcontrastpopup.cpp+++ b/toonz/sources/toonz/brightnessandcontrastpopup.cpp@@ -197,7 +197,7 @@ inline void onChange(const RAS &ras, int contrast, int brightness) {// BrightnessAndContrastPopup Swatch//**************************************************************************-class BrightnessAndContrastPopup::Swatch : public PlaneViewer {+class BrightnessAndContrastPopup::Swatch final : public PlaneViewer {TRasterP m_ras;public:@@ -402,7 +402,7 @@ void BrightnessAndContrastPopup::hideEvent(QHideEvent *he) {//------------------------------------------------------------------------------class TRasterBrightnessUndo : public TUndo {+class TRasterBrightnessUndo final : public TUndo {int m_r, m_c, m_brightness, m_contrast;QString m_rasId;diff --git a/toonz/sources/toonz/brightnessandcontrastpopup.h b/toonz/sources/toonz/brightnessandcontrastpopup.hindex d81194214..982108d00 100644--- a/toonz/sources/toonz/brightnessandcontrastpopup.h+++ b/toonz/sources/toonz/brightnessandcontrastpopup.h@@ -19,7 +19,7 @@ class IntField;// BrightnessAndContrastPopup//------------------------------------------------------------------------------class BrightnessAndContrastPopup : public DVGui::Dialog {+class BrightnessAndContrastPopup final : public DVGui::Dialog {Q_OBJECTDVGui::IntField *m_brightnessField;diff --git a/toonz/sources/toonz/cachefxcommand.h b/toonz/sources/toonz/cachefxcommand.hindex 90e1e9b55..2a1bb71e2 100644--- a/toonz/sources/toonz/cachefxcommand.h+++ b/toonz/sources/toonz/cachefxcommand.h@@ -11,7 +11,7 @@// CacheFxCommand//------------------------------------------------------------------------------class CacheFxCommand : public QObject {+class CacheFxCommand final : public QObject {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/camerasettingspopup.cpp b/toonz/sources/toonz/camerasettingspopup.cppindex 2a3beab26..8735cc322 100644--- a/toonz/sources/toonz/camerasettingspopup.cpp+++ b/toonz/sources/toonz/camerasettingspopup.cpp@@ -55,7 +55,7 @@ class CameraSettingsPopup;//=============================================================================-class OpenCameraStageCommandHandler : public MenuItemHandler {+class OpenCameraStageCommandHandler final : public MenuItemHandler {CommandId m_id;public:diff --git a/toonz/sources/toonz/camerasettingspopup.h b/toonz/sources/toonz/camerasettingspopup.hindex 052351e7b..13505bef7 100644--- a/toonz/sources/toonz/camerasettingspopup.h+++ b/toonz/sources/toonz/camerasettingspopup.h@@ -30,7 +30,7 @@ class MeasuredDoubleLineEdit;// CameraSettingsPopup//------------------------------------------------------------------------------class CameraSettingsPopup : public QDialog {+class CameraSettingsPopup final : public QDialog {Q_OBJECTstatic std::map<TStageObjectId, CameraSettingsPopup *> m_popups;diff --git a/toonz/sources/toonz/canvassizepopup.cpp b/toonz/sources/toonz/canvassizepopup.cppindex 0bed09ee9..ac940c999 100644--- a/toonz/sources/toonz/canvassizepopup.cpp+++ b/toonz/sources/toonz/canvassizepopup.cpp@@ -39,7 +39,7 @@namespace {-class ResizeCanvasUndo : public TUndo {+class ResizeCanvasUndo final : public TUndo {TXshSimpleLevelP m_level;TFrameId m_fid;std::string m_oldImageId, m_newImageId;diff --git a/toonz/sources/toonz/canvassizepopup.h b/toonz/sources/toonz/canvassizepopup.hindex 3953e4e25..d8ce737fb 100644--- a/toonz/sources/toonz/canvassizepopup.h+++ b/toonz/sources/toonz/canvassizepopup.h@@ -23,7 +23,7 @@ enum PeggingPositions { e00, e01, e02, e10, e11, e12, e20, e21, e22 };//=============================================================================-class PeggingWidget : public QWidget {+class PeggingWidget final : public QWidget {Q_OBJECTQButtonGroup *m_buttonGroup;@@ -66,7 +66,7 @@ public slots:// CanvasSizePopup//------------------------------------------------------------------------------class CanvasSizePopup : public DVGui::Dialog {+class CanvasSizePopup final : public DVGui::Dialog {Q_OBJECTTXshSimpleLevelP m_sl;diff --git a/toonz/sources/toonz/castselection.h b/toonz/sources/toonz/castselection.hindex c96624614..cf399c7de 100644--- a/toonz/sources/toonz/castselection.h+++ b/toonz/sources/toonz/castselection.h@@ -17,7 +17,7 @@ class TXshLevel;////------------------------------------------------------------------------------class CastSelection : public DvItemSelection {+class CastSelection final : public DvItemSelection {CastBrowser *m_browser;public:@@ -58,7 +58,7 @@ public:};//------------------------------------------------------------------------------class LevelCastItem : public CastItem {+class LevelCastItem final : public CastItem {TXshLevel *m_level;QSize m_itemPixmapSize;@@ -78,7 +78,7 @@ public:};//------------------------------------------------------------------------------class SoundCastItem : public CastItem {+class SoundCastItem final : public CastItem {TXshSoundLevel *m_soundLevel;QSize m_itemPixmapSize;@@ -98,7 +98,7 @@ public://------------------------------------------------------------------------------class PaletteCastItem : public CastItem {+class PaletteCastItem final : public CastItem {TXshPaletteLevel *m_paletteLevel;QSize m_itemPixmapSize;@@ -117,7 +117,7 @@ public:};//------------------------------------------------------------------------------class CastItems : public QMimeData {+class CastItems final : public QMimeData {std::vector<CastItem *> m_items;public:diff --git a/toonz/sources/toonz/castviewer.cpp b/toonz/sources/toonz/castviewer.cppindex de46de50b..5cc3aab5b 100644--- a/toonz/sources/toonz/castviewer.cpp+++ b/toonz/sources/toonz/castviewer.cpp@@ -60,7 +60,7 @@ namespace {// dipendere dallo sceneHandle)// questo undo puo' essere spostato in un nuovo file levelsetcommand in// toonzlib.-class MoveLevelToFolderUndo : public TUndo {+class MoveLevelToFolderUndo final : public TUndo {TLevelSet *m_levelSet;std::wstring m_levelName;TFilePath m_oldFolder;diff --git a/toonz/sources/toonz/castviewer.h b/toonz/sources/toonz/castviewer.hindex f5496ff46..b39b93972 100644--- a/toonz/sources/toonz/castviewer.h+++ b/toonz/sources/toonz/castviewer.h@@ -17,7 +17,7 @@ class CastItems;//------------------------------------------------------------------------------class CastTreeViewer : public QTreeWidget, public TSelection {+class CastTreeViewer final : public QTreeWidget, public TSelection {Q_OBJECTQTreeWidgetItem *m_dropTargetItem;TFilePath m_dropFilePath;@@ -68,7 +68,7 @@ signals:m_treeViewe un widget che consente di visualizzare i file \b m_sceneCastView.I suoi widget sono settati tramite un modello del tipo \b SceneCastModel.*/-class CastBrowser : public QSplitter, public DvItemListModel {+class CastBrowser final : public QSplitter, public DvItemListModel {Q_OBJECTCastTreeViewer *m_treeViewer;diff --git a/toonz/sources/toonz/celldata.h b/toonz/sources/toonz/celldata.hindex 4d3536a92..f8a9b0f3b 100644--- a/toonz/sources/toonz/celldata.h+++ b/toonz/sources/toonz/celldata.h@@ -17,7 +17,7 @@ class TXshColumn;// TCellData//------------------------------------------------------------------------------class TCellData : public DvMimeData {+class TCellData final : public DvMimeData {std::vector<TXshCell> m_cells;int m_rowCount, m_colCount;diff --git a/toonz/sources/toonz/cellkeyframedata.h b/toonz/sources/toonz/cellkeyframedata.hindex f0ca1ddd9..baf332785 100644--- a/toonz/sources/toonz/cellkeyframedata.h+++ b/toonz/sources/toonz/cellkeyframedata.h@@ -15,7 +15,7 @@ class TXshColumn;// TCellKeyframeData//------------------------------------------------------------------------------class TCellKeyframeData : public DvMimeData {+class TCellKeyframeData final : public DvMimeData {TCellData *m_cellData;TKeyframeData *m_keyframeData;diff --git a/toonz/sources/toonz/cellkeyframeselection.h b/toonz/sources/toonz/cellkeyframeselection.hindex 3a17caf98..20768ba4a 100644--- a/toonz/sources/toonz/cellkeyframeselection.h+++ b/toonz/sources/toonz/cellkeyframeselection.h@@ -15,7 +15,7 @@ class TXsheetHandle;// TCellKeyframeSelection//------------------------------------------------------------------------------class TCellKeyframeSelection : public TSelection {+class TCellKeyframeSelection final : public TSelection {TCellSelection *m_cellSelection;TKeyframeSelection *m_keyframeSelection;diff --git a/toonz/sources/toonz/cellselection.cpp b/toonz/sources/toonz/cellselection.cppindex 3f1b7527e..45078850b 100644--- a/toonz/sources/toonz/cellselection.cpp+++ b/toonz/sources/toonz/cellselection.cpp@@ -156,7 +156,7 @@ void cutCellsWithoutUndo(int &r0, int &c0, int &r1, int &c1) {// PasteCellsUndo//------------------------------------------------------------------------------class PasteCellsUndo : public TUndo {+class PasteCellsUndo final : public TUndo {TCellSelection *m_oldSelection;TCellSelection *m_newSelection;TCellData *m_data;@@ -223,7 +223,7 @@ public:// DeleteCellsUndo//------------------------------------------------------------------------------class DeleteCellsUndo : public TUndo {+class DeleteCellsUndo final : public TUndo {TCellSelection *m_selection;QMimeData *m_data;QMap<int, QList<TFxPort *>> m_outputConnections;@@ -311,7 +311,7 @@ public:// CutCellsUndo//------------------------------------------------------------------------------class CutCellsUndo : public TUndo {+class CutCellsUndo final : public TUndo {TCellSelection *m_selection;TCellData *m_data;QMap<int, QList<TFxPort *>> m_outputConnections;@@ -389,7 +389,7 @@ public:// InsertUndo//------------------------------------------------------------------------------class InsertUndo : public TUndo {+class InsertUndo final : public TUndo {TCellSelection::Range m_range;public:@@ -420,7 +420,7 @@ public:// RenumberUndo//------------------------------------------------------------------------------class RenumberUndo : public TUndo {+class RenumberUndo final : public TUndo {std::map<TXshCell, TXshCell> m_undoTable, m_redoTable;public:@@ -464,7 +464,7 @@ public:}};-class RenumberUndo::RedoNotifier : public TUndo {+class RenumberUndo::RedoNotifier final : public TUndo {void undo() const override {}void redo() const override {TApp::instance()->getCurrentXsheet()->notifyXsheetChanged();@@ -474,7 +474,7 @@ class RenumberUndo::RedoNotifier : public TUndo {int getSize() const override { return sizeof(*this); }};-class RenumberUndo::UndoNotifier : public TUndo {+class RenumberUndo::UndoNotifier final : public TUndo {void redo() const override {}void undo() const override {TApp::instance()->getCurrentXsheet()->notifyXsheetChanged();@@ -548,7 +548,7 @@ bool pasteStrokesInCellWithoutUndo(// PasteStrokesInCellsUndo//------------------------------------------------------------------------------class PasteStrokesInCellUndo : public TUndo {+class PasteStrokesInCellUndo final : public TUndo {int m_row, m_col;StrokesData *m_strokesData;TFrameId m_fid;@@ -782,7 +782,7 @@ bool pasteRasterImageInCellWithoutUndo(int row, int col,// PasteToonzImageInCellsUndo//------------------------------------------------------------------------------class PasteToonzImageInCellsUndo : public ToolUtils::TRasterUndo {+class PasteToonzImageInCellsUndo final : public ToolUtils::TRasterUndo {RasterImageData *m_rasterImageData;public:@@ -817,7 +817,8 @@ public:// PasteFullColorImageInCellsUndo//------------------------------------------------------------------------------class PasteFullColorImageInCellsUndo : public ToolUtils::TFullColorRasterUndo {+class PasteFullColorImageInCellsUndo final+ : public ToolUtils::TFullColorRasterUndo {RasterImageData *m_rasterImageData;public:@@ -868,7 +869,7 @@ void pasteDrawingsInCellWithoutUndo(TXsheet *xsh, TXshSimpleLevel *level,// PasteDrawingsInCellUndo//------------------------------------------------------------------------------class PasteDrawingsInCellUndo : public TUndo {+class PasteDrawingsInCellUndo final : public TUndo {TXsheet *m_xsheet;int m_r0, m_c0;set<TFrameId> m_frameIds;@@ -930,7 +931,7 @@ bool pasteCellsWithoutUndo(int &r0, int &c0, int &r1, int &c1,//=============================================================================-class OverwritePasteCellsUndo : public TUndo {+class OverwritePasteCellsUndo final : public TUndo {TCellSelection *m_oldSelection;TCellSelection *m_newSelection;QMimeData *m_data;@@ -1646,7 +1647,7 @@ void TCellSelection::dRenumberCells() {//------------------------------------------------------------------------------class PasteNewCellUndo : public TUndo {+class PasteNewCellUndo final : public TUndo {TXshCell m_oldCell, m_newCell;TImageP m_img;int m_row, m_col;diff --git a/toonz/sources/toonz/cellselection.h b/toonz/sources/toonz/cellselection.hindex 6e2eee71a..c41034461 100644--- a/toonz/sources/toonz/cellselection.h+++ b/toonz/sources/toonz/cellselection.h@@ -13,7 +13,7 @@ class TimeStretchPopup;// TCellSelection//------------------------------------------------------------------------------class TCellSelection : public TSelection {+class TCellSelection final : public TSelection {TimeStretchPopup *m_timeStretchPopup;public:diff --git a/toonz/sources/toonz/cellselectioncommand.cpp b/toonz/sources/toonz/cellselectioncommand.cppindex 65363a69a..af0274bf9 100644--- a/toonz/sources/toonz/cellselectioncommand.cpp+++ b/toonz/sources/toonz/cellselectioncommand.cpp@@ -53,7 +53,7 @@namespace {-class ReverseUndo : public TUndo {+class ReverseUndo final : public TUndo {int m_r0, m_c0, m_r1, m_c1;public:@@ -101,7 +101,7 @@ void TCellSelection::reverseCells() {namespace {-class SwingUndo : public TUndo {+class SwingUndo final : public TUndo {int m_r0, m_c0, m_r1, m_c1;public:@@ -160,7 +160,7 @@ void TCellSelection::swingCells() {namespace {-class IncrementUndo : public TUndo {+class IncrementUndo final : public TUndo {int m_r0, m_c0, m_r1, m_c1;mutable std::vector<std::pair<TRect, TXshCell>> m_undoCells;@@ -245,7 +245,7 @@ void TCellSelection::incrementCells() {namespace {-class RandomUndo : public TUndo {+class RandomUndo final : public TUndo {int m_r0, m_c0, m_r1, m_c1;std::vector<int> m_shuffle; //!< Shuffled indices@@ -344,7 +344,7 @@ void TCellSelection::randomCells() {namespace {-class StepUndo : public TUndo {+class StepUndo final : public TUndo {int m_r0, m_c0, m_r1, m_c1;int m_rowsCount, m_colsCount;@@ -445,7 +445,7 @@ void TCellSelection::stepCells(int step) {namespace {-class EachUndo : public TUndo {+class EachUndo final : public TUndo {int m_r0, m_c0, m_r1, m_c1;int m_rowsCount, m_colsCount;@@ -549,7 +549,7 @@ void TCellSelection::eachCells(int each) {namespace {-class ReframeUndo : public TUndo {+class ReframeUndo final : public TUndo {int m_r0, m_r1;int m_type;int m_nr;@@ -705,7 +705,7 @@ void TColumnSelection::reframeCells(int count) {namespace {-class ResetStepUndo : public TUndo {+class ResetStepUndo final : public TUndo {int m_r0, m_c0, m_r1, m_c1;int m_rowsCount, m_colsCount;@@ -804,7 +804,7 @@ void TCellSelection::resetStepCells() {namespace {-class IncreaseStepUndo : public TUndo {+class IncreaseStepUndo final : public TUndo {int m_r0, m_c0, m_r1, m_c1;int m_rowsCount, m_colsCount;@@ -908,7 +908,7 @@ void TCellSelection::increaseStepCells() {namespace {-class DecreaseStepUndo : public TUndo {+class DecreaseStepUndo final : public TUndo {int m_r0, m_c0, m_r1, m_c1;int m_rowsCount, m_colsCount;@@ -1070,7 +1070,7 @@ void TCellSelection::rollupCells() {namespace {-class RolldownUndo : public RollupUndo {+class RolldownUndo final : public RollupUndo {public:RolldownUndo(int r0, int c0, int r1, int c1) : RollupUndo(r0, c0, r1, c1) {}@@ -1142,7 +1142,7 @@ void TCellSelection::setKeyframes() {namespace {-class CloneLevelUndo : public TUndo {+class CloneLevelUndo final : public TUndo {typedef std::map<TXshSimpleLevel *, TXshLevelP> InsertedLevelsMap;typedef std::set<int> InsertedColumnsSet;@@ -1211,7 +1211,7 @@ private://------------------------------------------------------------------------------struct CloneLevelUndo::ExistsFunc : public OverwriteDialog::ExistsFunc {+struct CloneLevelUndo::ExistsFunc final : public OverwriteDialog::ExistsFunc {ToonzScene *m_scene;public:@@ -1231,7 +1231,7 @@ public://------------------------------------------------------------------------------class CloneLevelUndo::LevelNamePopup : public DVGui::Dialog {+class CloneLevelUndo::LevelNamePopup final : public DVGui::Dialog {DVGui::LineEdit *m_name;QPushButton *m_ok, *m_cancel;diff --git a/toonz/sources/toonz/cleanuppaletteviewer.h b/toonz/sources/toonz/cleanuppaletteviewer.hindex 916682f0e..1896a0c8c 100644--- a/toonz/sources/toonz/cleanuppaletteviewer.h+++ b/toonz/sources/toonz/cleanuppaletteviewer.h@@ -27,7 +27,7 @@ class CleanupColorField;// CleanupPaletteViewer declaration//********************************************************************************-class CleanupPaletteViewer : public QWidget {+class CleanupPaletteViewer final : public QWidget {Q_OBJECTTPaletteHandle *m_ph;diff --git a/toonz/sources/toonz/cleanuppopup.cpp b/toonz/sources/toonz/cleanuppopup.cppindex f413059b0..371396576 100644--- a/toonz/sources/toonz/cleanuppopup.cpp+++ b/toonz/sources/toonz/cleanuppopup.cpp@@ -1580,7 +1580,7 @@ void CleanupPopup::updateTitleString() {// CleanupCommand definition//*****************************************************************************-class CleanupCommand : public MenuItemHandler {+class CleanupCommand final : public MenuItemHandler {public:CleanupCommand() : MenuItemHandler("MI_Cleanup") {}diff --git a/toonz/sources/toonz/cleanuppopup.h b/toonz/sources/toonz/cleanuppopup.hindex c767e67f4..be2bad153 100644--- a/toonz/sources/toonz/cleanuppopup.h+++ b/toonz/sources/toonz/cleanuppopup.h@@ -44,7 +44,7 @@ class QGroupBox;// CleanupPopup declaration//*****************************************************************************-class CleanupPopup : public QDialog {+class CleanupPopup final : public QDialog {Q_OBJECTpublic:@@ -141,7 +141,8 @@ private slots:// CleanupPopup::OverwriteDialog declaration (private)//*****************************************************************************-class CleanupPopup::OverwriteDialog : public DVGui::ValidatedChoiceDialog {+class CleanupPopup::OverwriteDialog final+ : public DVGui::ValidatedChoiceDialog {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/cleanuppreview.cpp b/toonz/sources/toonz/cleanuppreview.cppindex 1cfbf2e6c..e312d7c20 100644--- a/toonz/sources/toonz/cleanuppreview.cpp+++ b/toonz/sources/toonz/cleanuppreview.cpp@@ -392,7 +392,7 @@ void CameraTestToggleCommand::clean() {//=============================================================================/*! CameraTestのドラッグ移動のUndo*/-class UndoCameraTestMove : public TUndo {+class UndoCameraTestMove final : public TUndo {TPointD m_before, m_after;CleanupParameters *m_cp;@@ -437,7 +437,7 @@ public://=============================================================================/*! CameraTestのサイズ変更のUndo*/-class UndoCameraTestScale : public TUndo {+class UndoCameraTestScale final : public TUndo {TDimension m_resBefore, m_resAfter;TDimensionD m_sizeBefore, m_sizeAfter;CleanupParameters *m_cp;@@ -492,7 +492,7 @@ public:// CameraTestTool definition//**********************************************************************************-class CameraTestTool : public TTool {+class CameraTestTool final : public TTool {TPointD m_lastPos;bool m_dragged;int m_scaling;@@ -869,7 +869,7 @@ int CameraTestTool::getCursorId() const {////==============================================================================-class OpacityCheckToggleCommand : public MenuItemHandler {+class OpacityCheckToggleCommand final : public MenuItemHandler {public:OpacityCheckToggleCommand() : MenuItemHandler("MI_OpacityCheck") {}void execute() override {diff --git a/toonz/sources/toonz/cleanuppreview.h b/toonz/sources/toonz/cleanuppreview.hindex 3838f7b18..13f8ed463 100644--- a/toonz/sources/toonz/cleanuppreview.h+++ b/toonz/sources/toonz/cleanuppreview.h@@ -28,7 +28,7 @@ class TTool;// PreviewToggleCommand declaration//**********************************************************************************-class PreviewToggleCommand : public MenuItemHandler {+class PreviewToggleCommand final : public MenuItemHandler {Q_OBJECTTXshSimpleLevelP m_sl; //!< Level under cleanup focus@@ -60,7 +60,7 @@ protected slots:// CameraTestToggleCommand declaration//**********************************************************************************-class CameraTestToggleCommand : public MenuItemHandler {+class CameraTestToggleCommand final : public MenuItemHandler {Q_OBJECTTTool *m_oldTool;diff --git a/toonz/sources/toonz/cleanupsettingsmodel.cpp b/toonz/sources/toonz/cleanupsettingsmodel.cppindex 41d154129..559caea23 100644--- a/toonz/sources/toonz/cleanupsettingsmodel.cpp+++ b/toonz/sources/toonz/cleanupsettingsmodel.cpp@@ -75,7 +75,7 @@ public:// SaveSettingsPopup//==================================================================-class SaveSettingsPopup : public IOSettingsPopup {+class SaveSettingsPopup final : public IOSettingsPopup {public:SaveSettingsPopup() : IOSettingsPopup(tr("Save Cleanup Settings")) {// addFilterType("tif");@@ -111,7 +111,7 @@ public:// LoadSettingsPopup//==================================================================-class LoadSettingsPopup : public IOSettingsPopup {+class LoadSettingsPopup final : public IOSettingsPopup {public:LoadSettingsPopup() : IOSettingsPopup(tr("Load Cleanup Settings")) {setOkText(tr("Load"));diff --git a/toonz/sources/toonz/cleanupsettingsmodel.h b/toonz/sources/toonz/cleanupsettingsmodel.hindex 96451ba39..2a419556d 100644--- a/toonz/sources/toonz/cleanupsettingsmodel.h+++ b/toonz/sources/toonz/cleanupsettingsmodel.h@@ -61,7 +61,7 @@ to the"current cleanup palette handle" accessible through theTPaletteController.*/-class CleanupSettingsModel : public QObject {+class CleanupSettingsModel final : public QObject {Q_OBJECTint m_listenersCount; //!< Number of attached clientsdiff --git a/toonz/sources/toonz/cleanupsettingspane.h b/toonz/sources/toonz/cleanupsettingspane.hindex f83cd2f77..b0069d890 100644--- a/toonz/sources/toonz/cleanupsettingspane.h+++ b/toonz/sources/toonz/cleanupsettingspane.h@@ -30,7 +30,7 @@ class IntField;フィールドのためのFileField。browseDirectoryを再実装して、フィールドが空欄のときは、カレントレベル(Scan画像。TIF等)の入っているフォルダの1つ上をデフォルトフォルダにして開くようにしたい。*/-class CleanupSaveInField : public DVGui::FileField {+class CleanupSaveInField final : public DVGui::FileField {Q_OBJECTpublic:CleanupSaveInField(QWidget *parent = 0, QString path = 0)@@ -40,7 +40,7 @@ protected slots:void browseDirectory() override;};-class CleanupSettingsPane : public QFrame {+class CleanupSettingsPane final : public QFrame {Q_OBJECTpublic://----Cleanup Camera Settingsdiff --git a/toonz/sources/toonz/cleanupsettingspopup.cpp b/toonz/sources/toonz/cleanupsettingspopup.cppindex 778be7f6e..593f4af79 100644--- a/toonz/sources/toonz/cleanupsettingspopup.cpp+++ b/toonz/sources/toonz/cleanupsettingspopup.cpp@@ -829,7 +829,7 @@ void CleanupSettings::onRestoreSceneSettings() {// Toggle Opacity Check Command//**********************************************************************-class ToggleOpacityCheckCommand : public MenuItemHandler {+class ToggleOpacityCheckCommand final : public MenuItemHandler {public:ToggleOpacityCheckCommand() : MenuItemHandler(MI_OpacityCheck) {}@@ -849,7 +849,7 @@ public://**********************************************************************/*-class CleanupSettingsFactory : public TPanelFactory+class CleanupSettingsFactory final : public TPanelFactory{public:diff --git a/toonz/sources/toonz/cleanupsettingspopup.h b/toonz/sources/toonz/cleanupsettingspopup.hindex 1879a04fb..0ef001ba4 100644--- a/toonz/sources/toonz/cleanupsettingspopup.h+++ b/toonz/sources/toonz/cleanupsettingspopup.h@@ -45,7 +45,7 @@ class IntField;// CleanupSettingsPopup declaration//*****************************************************************************-class CleanupSettings : public QWidget {+class CleanupSettings final : public QWidget {Q_OBJECTCleanupTab *m_cleanupTab;@@ -94,7 +94,7 @@ private slots:// Cleanup Tab declaration//**********************************************************************-class CleanupTab : public QFrame {+class CleanupTab final : public QFrame {Q_OBJECTDVGui::CheckBox *m_autoCenter, *m_flipX, *m_flipY;@@ -122,7 +122,7 @@ private:// ProcessingTab declaration//**********************************************************************-class ProcessingTab : public QFrame {+class ProcessingTab final : public QFrame {Q_OBJECTCleanupPaletteViewer *m_paletteViewer;@@ -159,7 +159,7 @@ private slots:// CameraTab declaration//**********************************************************************-class CameraTab : public CleanupCameraSettingsWidget {+class CameraTab final : public CleanupCameraSettingsWidget {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/cleanupswatch.h b/toonz/sources/toonz/cleanupswatch.hindex e0eb02e75..3890db1fb 100644--- a/toonz/sources/toonz/cleanupswatch.h+++ b/toonz/sources/toonz/cleanupswatch.h@@ -5,10 +5,10 @@// class QPushButton;class QAction;-class CleanupSwatch : public QWidget {+class CleanupSwatch final : public QWidget {Q_OBJECT- class CleanupSwatchArea : public QWidget {+ class CleanupSwatchArea final : public QWidget {QPoint m_pos;bool m_isLeft, m_panning;CleanupSwatch *m_sw;diff --git a/toonz/sources/toonz/colormodelviewer.h b/toonz/sources/toonz/colormodelviewer.hindex ded1fdcb7..e06808054 100644--- a/toonz/sources/toonz/colormodelviewer.h+++ b/toonz/sources/toonz/colormodelviewer.h@@ -9,7 +9,7 @@// ColorModelViewer//------------------------------------------------------------------------------class ColorModelViewer : public FlipBook {+class ColorModelViewer final : public FlipBook {Q_OBJECT/*-- ツールのタイプを手元に持っておき、取得の手間を省く --*/diff --git a/toonz/sources/toonz/columncommand.cpp b/toonz/sources/toonz/columncommand.cppindex 5e2d62d98..355611021 100644--- a/toonz/sources/toonz/columncommand.cpp+++ b/toonz/sources/toonz/columncommand.cpp@@ -471,7 +471,7 @@ void cloneSubXsheets(TXsheet *xsh) {// PasteColumnsUndo//------------------------------------------------------------------------------class PasteColumnsUndo : public TUndo {+class PasteColumnsUndo final : public TUndo {std::set<int> m_indices;StageObjectsData *m_data;QMap<TFxPort *, TFx *> m_columnLinks;@@ -532,7 +532,7 @@ public:// DeleteColumnsUndo//------------------------------------------------------------------------------class DeleteColumnsUndo : public TUndo {+class DeleteColumnsUndo final : public TUndo {std::set<int> m_indices;QMap<TFxPort *, TFx *> m_columnFxLinks;@@ -643,7 +643,7 @@ protected:// Insert Empty Columns Command//*************************************************************************-class InsertEmptyColumnsUndo : public ColumnCommandUndo {+class InsertEmptyColumnsUndo final : public ColumnCommandUndo {std::vector<std::pair<int, int>> m_columnBlocks;public:@@ -839,7 +839,7 @@ void ColumnCmd::cutColumns(std::set<int> &indices) {// Undo Resequence//=============================================================================-class ResequenceUndo : public TUndo {+class ResequenceUndo final : public TUndo {int m_index;int m_r0;std::vector<TFrameId> m_oldFrames;@@ -972,7 +972,7 @@ void ColumnCmd::resequence(int index) {// Undo cloneChild//=============================================================================-class CloneChildUndo : public TUndo {+class CloneChildUndo final : public TUndo {TXshChildLevelP m_childLevel;int m_columnIndex;@@ -1126,7 +1126,7 @@ void ColumnCmd::copyColumn(int dstIndex, int srcIndex) {// Undo Clear Cells//=============================================================================-class ClearColumnCellsUndo : public TUndo {+class ClearColumnCellsUndo final : public TUndo {int m_col;int m_r0;std::vector<TXshCell> m_oldFrames;@@ -1213,7 +1213,7 @@ enum {} // namespace-class ColumnsStatusCommand : public MenuItemHandler {+class ColumnsStatusCommand final : public MenuItemHandler {int m_cmd, m_target;public:diff --git a/toonz/sources/toonz/columnselection.h b/toonz/sources/toonz/columnselection.hindex c6ace6a1e..ab4aa71b8 100644--- a/toonz/sources/toonz/columnselection.h+++ b/toonz/sources/toonz/columnselection.h@@ -11,7 +11,7 @@// TColumnSelection//------------------------------------------------------------------------------class TColumnSelection : public TSelection {+class TColumnSelection final : public TSelection {std::set<int> m_indices;public:diff --git a/toonz/sources/toonz/comboviewerpane.h b/toonz/sources/toonz/comboviewerpane.hindex 8644b6eae..c49f00e8a 100644--- a/toonz/sources/toonz/comboviewerpane.h+++ b/toonz/sources/toonz/comboviewerpane.h@@ -37,7 +37,7 @@ enum CV_Parts {};//------------------------------------------------------------------------------class ComboViewerPanel : public TPanel, public FlipConsoleOwner {+class ComboViewerPanel final : public TPanel, public FlipConsoleOwner {Q_OBJECTSceneViewer *m_sceneViewer;diff --git a/toonz/sources/toonz/convertpopup.cpp b/toonz/sources/toonz/convertpopup.cppindex bbda2dc1c..97ac0e6cb 100644--- a/toonz/sources/toonz/convertpopup.cpp+++ b/toonz/sources/toonz/convertpopup.cpp@@ -85,7 +85,7 @@ const QString TlvExtension("tlv");////------------------------------------------------------------------------------class ConvertPopup::Converter : public QThread {+class ConvertPopup::Converter final : public QThread {int m_skippedCount;ConvertPopup *m_parent;diff --git a/toonz/sources/toonz/convertpopup.h b/toonz/sources/toonz/convertpopup.hindex 0b3f71b4a..cc4ff5a47 100644--- a/toonz/sources/toonz/convertpopup.h+++ b/toonz/sources/toonz/convertpopup.h@@ -131,7 +131,7 @@ private:bool isSaveTlvBackupToNopaintActive();};-class ConvertPopupWithInput : public ConvertPopup {+class ConvertPopupWithInput final : public ConvertPopup {public:ConvertPopupWithInput() : ConvertPopup(true) {}};diff --git a/toonz/sources/toonz/curveio.cpp b/toonz/sources/toonz/curveio.cppindex e9c2e29c1..535aeb4d6 100644--- a/toonz/sources/toonz/curveio.cpp+++ b/toonz/sources/toonz/curveio.cpp@@ -12,7 +12,7 @@//=============================================================================-class LoadCurveUndo : public TUndo {+class LoadCurveUndo final : public TUndo {TDoubleParamP m_curve;TDoubleParamP m_oldCurve, m_newCurve;@@ -70,7 +70,7 @@ public://=============================================================================-class SaveCurvePopup : public CurvePopup {+class SaveCurvePopup final : public CurvePopup {public:SaveCurvePopup(const TFilePath folderPath, TDoubleParam *curve): CurvePopup(tr("Save Curve"), folderPath, curve) {@@ -105,7 +105,7 @@ bool SaveCurvePopup::execute() {//=============================================================================-class LoadCurvePopup : public CurvePopup {+class LoadCurvePopup final : public CurvePopup {public:LoadCurvePopup(const TFilePath folderPath, TDoubleParam *curve): CurvePopup(tr("Load Curve"), folderPath, curve) {@@ -146,7 +146,7 @@ bool LoadCurvePopup::execute() {//=============================================================================-class ExportCurvePopup : public CurvePopup {+class ExportCurvePopup final : public CurvePopup {std::string m_name;public:diff --git a/toonz/sources/toonz/drawingdata.h b/toonz/sources/toonz/drawingdata.hindex ebd710fd2..90cf8c531 100644--- a/toonz/sources/toonz/drawingdata.h+++ b/toonz/sources/toonz/drawingdata.h@@ -16,7 +16,7 @@// Sono i fotogrammi della filmstrip//------------------------------------------------------------------------------class DrawingData : public DvMimeData {+class DrawingData final : public DvMimeData {public:std::map<TFrameId, QString>m_imageSet; // images are in the cache, the QString is the cache iddiff --git a/toonz/sources/toonz/dummyprocessor.h b/toonz/sources/toonz/dummyprocessor.hindex 857136e30..ccca93cf3 100644--- a/toonz/sources/toonz/dummyprocessor.h+++ b/toonz/sources/toonz/dummyprocessor.h@@ -6,7 +6,7 @@#include "processor.h"//! A dummy Processor-class DummyProcessor : public Processor {+class DummyProcessor final : public Processor {std::vector<int> m_dummyData;public:diff --git a/toonz/sources/toonz/duplicatepopup.cpp b/toonz/sources/toonz/duplicatepopup.cppindex 1d5e7798f..9e8aab2c4 100644--- a/toonz/sources/toonz/duplicatepopup.cpp+++ b/toonz/sources/toonz/duplicatepopup.cpp@@ -30,7 +30,7 @@namespace {//------------------------------------------------------------------------------class DuplicateUndo : public TUndo {+class DuplicateUndo final : public TUndo {int m_r0, m_c0;int m_r1, m_c1;int m_upTo;diff --git a/toonz/sources/toonz/duplicatepopup.h b/toonz/sources/toonz/duplicatepopup.hindex 29b0c2c1a..714219f13 100644--- a/toonz/sources/toonz/duplicatepopup.h+++ b/toonz/sources/toonz/duplicatepopup.h@@ -15,7 +15,7 @@ class QPushButton;// DuplicatePopup//------------------------------------------------------------------------------class DuplicatePopup : public QDialog {+class DuplicatePopup final : public QDialog {Q_OBJECTQPushButton *m_okBtn;diff --git a/toonz/sources/toonz/dvdirtreeview.h b/toonz/sources/toonz/dvdirtreeview.hindex 1e0013347..966176e05 100644--- a/toonz/sources/toonz/dvdirtreeview.h+++ b/toonz/sources/toonz/dvdirtreeview.h@@ -36,7 +36,7 @@ class QFileSystemWatcher;// DvDirTreeView declaration//**********************************************************************************-class DvDirTreeView : public QTreeView, public TSelection {+class DvDirTreeView final : public QTreeView, public TSelection {Q_OBJECTQColor m_textColor; // text color (black)@@ -200,7 +200,7 @@ private:// DvDirTreeViewDelegate declaration//**********************************************************************************-class DvDirTreeViewDelegate : public QItemDelegate {+class DvDirTreeViewDelegate final : public QItemDelegate {Q_OBJECTpublic:@@ -237,7 +237,7 @@ private slots:// NodeEditor declaration//**********************************************************************************-class NodeEditor : public QWidget {+class NodeEditor final : public QWidget {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/dvitemview.h b/toonz/sources/toonz/dvitemview.hindex 7db1f0a57..4a77553f8 100644--- a/toonz/sources/toonz/dvitemview.h+++ b/toonz/sources/toonz/dvitemview.h@@ -100,7 +100,7 @@ protected://=============================================================================-class ItemViewPlayWidget : public QWidget {+class ItemViewPlayWidget final : public QWidget {Q_OBJECTint m_currentItemIndex; //-1 -> pause@@ -159,7 +159,7 @@ protected://=============================================================================-class DVItemViewPlayDelegate : public QObject {+class DVItemViewPlayDelegate final : public QObject {Q_OBJECTItemViewPlayWidget *m_itemViewPlay;@@ -216,7 +216,7 @@ signals://=============================================================================-class DvItemViewerPanel : public QFrame, public TSelection::View {+class DvItemViewerPanel final : public QFrame, public TSelection::View {Q_OBJECTQColor m_alternateBackground; // alaternate bg color for teble view@@ -429,7 +429,7 @@ signals://=============================================================================-class DvItemViewerTitleBar : public QWidget {+class DvItemViewerTitleBar final : public QWidget {Q_OBJECTDvItemViewer *m_itemViewer;@@ -453,7 +453,7 @@ protected://=============================================================================-class DvItemViewerButtonBar : public QToolBar {+class DvItemViewerButtonBar final : public QToolBar {Q_OBJECTQAction *m_folderBack;QAction *m_folderFwd;diff --git a/toonz/sources/toonz/dvwidgets.h b/toonz/sources/toonz/dvwidgets.hindex 33896e22c..3bdfd15df 100644--- a/toonz/sources/toonz/dvwidgets.h+++ b/toonz/sources/toonz/dvwidgets.h@@ -35,7 +35,7 @@ private://------------------------------------------------------------------------------class PropertyComboBox : public QComboBox, public PropertyWidget {+class PropertyComboBox final : public QComboBox, public PropertyWidget {Q_OBJECTpublic:@@ -50,7 +50,7 @@ private://------------------------------------------------------------------------------class PropertyCheckBox : public CheckBox, public PropertyWidget {+class PropertyCheckBox final : public CheckBox, public PropertyWidget {Q_OBJECTpublic:@@ -65,7 +65,7 @@ private://------------------------------------------------------------------------------class PropertyLineEdit : public LineEdit, public PropertyWidget {+class PropertyLineEdit final : public LineEdit, public PropertyWidget {Q_OBJECTpublic:@@ -80,7 +80,7 @@ private://------------------------------------------------------------------------------class PropertyIntField : public IntField, public PropertyWidget {+class PropertyIntField final : public IntField, public PropertyWidget {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/exportlevelcommand.cpp b/toonz/sources/toonz/exportlevelcommand.cppindex 7feeb202c..10e62f710 100644--- a/toonz/sources/toonz/exportlevelcommand.cpp+++ b/toonz/sources/toonz/exportlevelcommand.cpp@@ -61,7 +61,7 @@ struct BusyCursorOverride {//----------------------------------------------------------------------------struct ExportOverwriteCB : public IoCmd::OverwriteCallbacks {+struct ExportOverwriteCB final : public IoCmd::OverwriteCallbacks {bool overwriteRequest(const TFilePath &fp) override {int ret = DVGui::MsgBox(QObject::tr("Warning: file %1 already exists.").arg(toQString(fp)),@@ -72,7 +72,7 @@ struct ExportOverwriteCB : public IoCmd::OverwriteCallbacks {//----------------------------------------------------------------------------struct ExportProgressCB : public IoCmd::ProgressCallbacks {+struct ExportProgressCB final : public IoCmd::ProgressCallbacks {QString m_processedName;ProgressDialog m_pb;diff --git a/toonz/sources/toonz/exportlevelpopup.cpp b/toonz/sources/toonz/exportlevelpopup.cppindex 58e683da0..3dfa0d98f 100644--- a/toonz/sources/toonz/exportlevelpopup.cpp+++ b/toonz/sources/toonz/exportlevelpopup.cpp@@ -59,7 +59,7 @@namespace {-struct MultiExportOverwriteCB : public IoCmd::OverwriteCallbacks {+struct MultiExportOverwriteCB final : public IoCmd::OverwriteCallbacks {bool m_yesToAll;bool m_stopped;@@ -81,7 +81,7 @@ struct MultiExportOverwriteCB : public IoCmd::OverwriteCallbacks {//=============================================================================-struct MultiExportProgressCB : public IoCmd::ProgressCallbacks {+struct MultiExportProgressCB final : public IoCmd::ProgressCallbacks {QString m_processedName;DVGui::ProgressDialog m_pb;@@ -114,7 +114,7 @@ public:// Swatch definition//********************************************************************************-class ExportLevelPopup::Swatch : public PlaneViewer {+class ExportLevelPopup::Swatch final : public PlaneViewer {public:Swatch(QWidget *parent = 0) : PlaneViewer(parent) {}@@ -130,7 +130,7 @@ protected:void setActualPixelSize();private:- struct ShortcutZoomer : public ImageUtils::ShortcutZoomer {+ struct ShortcutZoomer final : public ImageUtils::ShortcutZoomer {ShortcutZoomer(Swatch *swatch) : ImageUtils::ShortcutZoomer(swatch) {}private:diff --git a/toonz/sources/toonz/exportlevelpopup.h b/toonz/sources/toonz/exportlevelpopup.hindex 82a9444b2..4980cd362 100644--- a/toonz/sources/toonz/exportlevelpopup.h+++ b/toonz/sources/toonz/exportlevelpopup.h@@ -55,7 +55,7 @@ class QHideEvent;/*!\brief The popup dealing with level exports in Toonz.*/-class ExportLevelPopup : public FileBrowserPopup {+class ExportLevelPopup final : public FileBrowserPopup {Q_OBJECTpublic:@@ -105,7 +105,7 @@ private slots://------------------------------------------------------------------------------class ExportLevelPopup::ExportOptions : public QFrame {+class ExportLevelPopup::ExportOptions final : public QFrame {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/exportpanel.h b/toonz/sources/toonz/exportpanel.hindex eb62460c8..552fa99fb 100644--- a/toonz/sources/toonz/exportpanel.h+++ b/toonz/sources/toonz/exportpanel.h@@ -35,7 +35,7 @@ class LineEdit;//------------------------------------------------------------------------------class ClipListViewer : public DvItemViewer, public DvItemListModel {+class ClipListViewer final : public DvItemViewer, public DvItemListModel {Q_OBJECTstatic const char *m_mimeFormat;@@ -79,7 +79,7 @@ public slots://------------------------------------------------------------------------------class ExportPanel : public TPanel {+class ExportPanel final : public TPanel {Q_OBJECTClipListViewer *m_clipListViewer;@@ -106,8 +106,8 @@ public slots:void openSettingsPopup();};-class RenderController : public QObject,- public MovieGenerator::Listener { // singleton+class RenderController final : public QObject,+ public MovieGenerator::Listener { // singletonQ_OBJECTDVGui::ProgressDialog *m_progressDialog;int m_frame;diff --git a/toonz/sources/toonz/exportscenepopup.h b/toonz/sources/toonz/exportscenepopup.hindex 59f33df66..e00a80d6b 100644--- a/toonz/sources/toonz/exportscenepopup.h+++ b/toonz/sources/toonz/exportscenepopup.h@@ -36,7 +36,7 @@ public://=============================================================================// ExportSceneDvDirModelSpecialFileFolderNode-class ExportSceneDvDirModelSpecialFileFolderNode+class ExportSceneDvDirModelSpecialFileFolderNode final: public ExportSceneDvDirModelFileFolderNode {QPixmap m_pixmap;@@ -52,7 +52,7 @@ public://=============================================================================// ExportSceneDvDirModelProjectNode-class ExportSceneDvDirModelProjectNode+class ExportSceneDvDirModelProjectNode final: public ExportSceneDvDirModelFileFolderNode {public:ExportSceneDvDirModelProjectNode(DvDirModelNode *parent,@@ -65,7 +65,7 @@ public://=============================================================================// ExportSceneDvDirModelRootNode-class ExportSceneDvDirModelRootNode : public DvDirModelNode {+class ExportSceneDvDirModelRootNode final : public DvDirModelNode {std::vector<ExportSceneDvDirModelFileFolderNode *> m_projectRootNodes;ExportSceneDvDirModelFileFolderNode *m_sandboxProjectNode;void add(std::wstring name, const TFilePath &path);@@ -80,7 +80,7 @@ public://=============================================================================// ExportSceneDvDirModel-class ExportSceneDvDirModel : public QAbstractItemModel {+class ExportSceneDvDirModel final : public QAbstractItemModel {DvDirModelNode *m_root;public:@@ -107,7 +107,7 @@ public://=============================================================================// ExportSceneTreeViewDelegate-class ExportSceneTreeViewDelegate : public QItemDelegate {+class ExportSceneTreeViewDelegate final : public QItemDelegate {Q_OBJECTExportSceneTreeView *m_treeView;@@ -123,7 +123,7 @@ public://=============================================================================// ExportSceneTreeView-class ExportSceneTreeView : public QTreeView {+class ExportSceneTreeView final : public QTreeView {Q_OBJECTExportSceneDvDirModel *m_model;@@ -147,7 +147,7 @@ signals://=============================================================================// ExportScenePopup-class ExportScenePopup : public DVGui::Dialog {+class ExportScenePopup final : public DVGui::Dialog {Q_OBJECTstd::vector<TFilePath> m_scenes;diff --git a/toonz/sources/toonz/filebrowser.cpp b/toonz/sources/toonz/filebrowser.cppindex ddc610fcd..ab03c5991 100644--- a/toonz/sources/toonz/filebrowser.cpp+++ b/toonz/sources/toonz/filebrowser.cpp@@ -99,7 +99,7 @@ using namespace DVGui;// FrameCountTask class//-----------------------------class FrameCountTask : public TThread::Runnable {+class FrameCountTask final : public TThread::Runnable {bool m_started;TFilePath m_path;diff --git a/toonz/sources/toonz/filebrowser.h b/toonz/sources/toonz/filebrowser.hindex 90c9aebd3..cb506016a 100644--- a/toonz/sources/toonz/filebrowser.h+++ b/toonz/sources/toonz/filebrowser.h@@ -37,7 +37,7 @@ class QFileSystemWatcher;//! generator does. Calculated frame counts are also stored for quick lookup//! once they//! have been calculated the first time.-class FrameCountReader : public QObject {+class FrameCountReader final : public QObject {Q_OBJECTTThread::Executor m_executor;@@ -56,7 +56,7 @@ signals://------------------------------------------------------------------------------class FileBrowser : public QFrame, public DvItemListModel {+class FileBrowser final : public QFrame, public DvItemListModel {Q_OBJECTpublic:@@ -267,7 +267,7 @@ private:};//---------------------------------------------------------------------class RenameAsToonzPopup : public DVGui::Dialog {+class RenameAsToonzPopup final : public DVGui::Dialog {Q_OBJECTQPushButton *m_okBtn, *m_cancelBtn;DVGui::LineEdit *m_name;diff --git a/toonz/sources/toonz/filebrowsermodel.h b/toonz/sources/toonz/filebrowsermodel.hindex 4da6ef323..830ad1fa0 100644--- a/toonz/sources/toonz/filebrowsermodel.h+++ b/toonz/sources/toonz/filebrowsermodel.h@@ -125,7 +125,7 @@ public://------------------------------------------------------------------------------class DvDirModelSceneFolderNode : public DvDirModelFileFolderNode {+class DvDirModelSceneFolderNode final : public DvDirModelFileFolderNode {std::map<std::wstring, TFilePath> m_folders;public:@@ -145,7 +145,7 @@ public://------------------------------------------------------------------------------class DvDirModelSpecialFileFolderNode : public DvDirModelFileFolderNode {+class DvDirModelSpecialFileFolderNode final : public DvDirModelFileFolderNode {QPixmap m_pixmap;public:@@ -206,7 +206,7 @@ public://------------------------------------------------------------------------------class DvDirVersionControlRootNode : public DvDirVersionControlNode {+class DvDirVersionControlRootNode final : public DvDirVersionControlNode {QPixmap m_pixmap;std::wstring m_repositoryPath;std::wstring m_localPath;@@ -241,7 +241,7 @@ public://------------------------------------------------------------------------------class DvDirVersionControlProjectNode : public DvDirVersionControlNode {+class DvDirVersionControlProjectNode final : public DvDirVersionControlNode {public:DvDirVersionControlProjectNode(DvDirModelNode *parent, std::wstring name,const TFilePath &path);@@ -256,7 +256,7 @@ public://------------------------------------------------------------------------------class DvDirModelProjectNode : public DvDirModelFileFolderNode {+class DvDirModelProjectNode final : public DvDirModelFileFolderNode {public:DvDirModelProjectNode(DvDirModelNode *parent, const TFilePath &path);TFilePath getProjectPath() const;@@ -270,7 +270,7 @@ public://------------------------------------------------------------------------------class DvDirModelDayNode : public DvDirModelNode {+class DvDirModelDayNode final : public DvDirModelNode {std::string m_dayDateString;public:@@ -282,7 +282,7 @@ public://------------------------------------------------------------------------------class DvDirModelHistoryNode : public DvDirModelNode {+class DvDirModelHistoryNode final : public DvDirModelNode {public:DvDirModelHistoryNode(DvDirModelNode *parent);void refreshChildren() override;@@ -291,7 +291,7 @@ public://------------------------------------------------------------------------------class DvDirModelMyComputerNode : public DvDirModelNode {+class DvDirModelMyComputerNode final : public DvDirModelNode {public:DvDirModelMyComputerNode(DvDirModelNode *parent);void refreshChildren() override;@@ -301,7 +301,7 @@ public://------------------------------------------------------------------------------class DvDirModelNetworkNode : public DvDirModelNode {+class DvDirModelNetworkNode final : public DvDirModelNode {public:DvDirModelNetworkNode(DvDirModelNode *parent);void refreshChildren() override;@@ -311,7 +311,7 @@ public://------------------------------------------------------------------------------class DvDirModelRootNode : public DvDirModelNode {+class DvDirModelRootNode final : public DvDirModelNode {std::vector<DvDirModelFileFolderNode *> m_projectRootNodes;std::vector<DvDirModelFileFolderNode *> m_versionControlNodes;DvDirModelMyComputerNode *m_myComputerNode;@@ -331,8 +331,8 @@ public://=============================================================================// singleton-class DvDirModel : public QAbstractItemModel,- public FolderListenerManager::Listener {+class DvDirModel final : public QAbstractItemModel,+ public FolderListenerManager::Listener {DvDirModelNode *m_root;public:diff --git a/toonz/sources/toonz/filebrowserpopup.h b/toonz/sources/toonz/filebrowserpopup.hindex a043d595b..ec07c38df 100644--- a/toonz/sources/toonz/filebrowserpopup.h+++ b/toonz/sources/toonz/filebrowserpopup.h@@ -152,7 +152,7 @@ protected slots://! The GenericLoadFilePopup is a simple, standard Toonz popup that//! asks the user for \a single file to be loaded from disk.-class GenericLoadFilePopup : public FileBrowserPopup {+class GenericLoadFilePopup final : public FileBrowserPopup {public:GenericLoadFilePopup(const QString &title);@@ -171,7 +171,7 @@ protected://! The GenericSaveFilePopup is a simple, standard Toonz popup that//! asks the user for a \a single file path to save something to.-class GenericSaveFilePopup : public FileBrowserPopup {+class GenericSaveFilePopup final : public FileBrowserPopup {public:GenericSaveFilePopup(const QString &title);@@ -191,7 +191,7 @@ protected://------------------------------------------------------------------------------class LoadScenePopup : public FileBrowserPopup {+class LoadScenePopup final : public FileBrowserPopup {Q_OBJECTpublic:@@ -209,7 +209,7 @@ protected://------------------------------------------------------------------------------class LoadSubScenePopup : public FileBrowserPopup {+class LoadSubScenePopup final : public FileBrowserPopup {Q_OBJECTpublic:@@ -224,7 +224,7 @@ protected://------------------------------------------------------------------------------class SaveSceneAsPopup : public FileBrowserPopup {+class SaveSceneAsPopup final : public FileBrowserPopup {Q_OBJECTpublic:@@ -236,7 +236,7 @@ public://------------------------------------------------------------------------------class SaveSubSceneAsPopup : public FileBrowserPopup {+class SaveSubSceneAsPopup final : public FileBrowserPopup {Q_OBJECTpublic:@@ -248,7 +248,7 @@ public://------------------------------------------------------------------------------class LoadLevelPopup : public FileBrowserPopup {+class LoadLevelPopup final : public FileBrowserPopup {Q_OBJECTQFrame *m_subsequenceFrame;@@ -305,7 +305,7 @@ private://------------------------------------------------------------------------------class SaveLevelAsPopup : public FileBrowserPopup {+class SaveLevelAsPopup final : public FileBrowserPopup {Q_OBJECTpublic:@@ -317,7 +317,7 @@ public://------------------------------------------------------------------------------class ReplaceLevelPopup : public FileBrowserPopup {+class ReplaceLevelPopup final : public FileBrowserPopup {Q_OBJECTTCellSelection::Range m_range;@@ -338,7 +338,7 @@ protected slots://------------------------------------------------------------------------------class SavePaletteAsPopup : public FileBrowserPopup {+class SavePaletteAsPopup final : public FileBrowserPopup {Q_OBJECTpublic:@@ -350,7 +350,7 @@ public://------------------------------------------------------------------------------class LoadColorModelPopup : public FileBrowserPopup {+class LoadColorModelPopup final : public FileBrowserPopup {Q_OBJECTDVGui::LineEdit *m_paletteFrame;@@ -370,7 +370,7 @@ protected slots://------------------------------------------------------------------------------class ImportMagpieFilePopup : public FileBrowserPopup {+class ImportMagpieFilePopup final : public FileBrowserPopup {Q_OBJECTpublic:@@ -387,7 +387,7 @@ protected:/*! replace the parent folder path of the levels in the selected cells*/-class ReplaceParentDirectoryPopup : public FileBrowserPopup {+class ReplaceParentDirectoryPopup final : public FileBrowserPopup {TCellSelection::Range m_range;bool m_replaceCells; // true : cell selection, false : column selectionstd::set<int> m_columnRange;@@ -401,7 +401,7 @@ public://------------------------------------------------------------------------------class BrowserPopup : public FileBrowserPopup {+class BrowserPopup final : public FileBrowserPopup {Q_OBJECTTFilePath m_path;@@ -417,8 +417,9 @@ public://------------------------------------------------------------------------------class BrowserPopupController : public QObject,- public DVGui::FileField::BrowserPopupController {+class BrowserPopupController final+ : public QObject,+ public DVGui::FileField::BrowserPopupController {Q_OBJECTBrowserPopup *m_browserPopup;diff --git a/toonz/sources/toonz/filedata.h b/toonz/sources/toonz/filedata.hindex b1f9bce29..d81da96e7 100644--- a/toonz/sources/toonz/filedata.h+++ b/toonz/sources/toonz/filedata.h@@ -10,7 +10,7 @@// FileData//------------------------------------------------------------------------------class FileData : public DvMimeData {+class FileData final : public DvMimeData {public:std::vector<TFilePath> m_files;diff --git a/toonz/sources/toonz/fileinfopopup.h b/toonz/sources/toonz/fileinfopopup.hindex 008cbcc61..6df0f918a 100644--- a/toonz/sources/toonz/fileinfopopup.h+++ b/toonz/sources/toonz/fileinfopopup.h@@ -15,7 +15,7 @@ class TFilePath;// FileInfoPopup//------------------------------------------------------------------------------class FileInfoPopup : public DVGui::Dialog {+class FileInfoPopup final : public DVGui::Dialog {Q_OBJECTtypedef std::pair<std::string, std::string> StringPair;diff --git a/toonz/sources/toonz/fileselection.cpp b/toonz/sources/toonz/fileselection.cppindex 383bb6e36..2e0c3c9ca 100644--- a/toonz/sources/toonz/fileselection.cpp+++ b/toonz/sources/toonz/fileselection.cpp@@ -53,7 +53,7 @@ namespace {// CopyFilesUndo//------------------------------------------------------------------------------class CopyFilesUndo : public TUndo {+class CopyFilesUndo final : public TUndo {QMimeData *m_oldData;QMimeData *m_newData;@@ -80,7 +80,7 @@ public:// PasteFilesUndo//------------------------------------------------------------------------------class PasteFilesUndo : public TUndo {+class PasteFilesUndo final : public TUndo {std::vector<TFilePath> m_newFiles;TFilePath m_folder;@@ -130,7 +130,7 @@ public:// DuplicateUndo//------------------------------------------------------------------------------class DuplicateUndo : public TUndo {+class DuplicateUndo final : public TUndo {std::vector<TFilePath> m_newFiles;std::vector<TFilePath> m_files;diff --git a/toonz/sources/toonz/fileselection.h b/toonz/sources/toonz/fileselection.hindex 417fc5bd6..d5a90b828 100644--- a/toonz/sources/toonz/fileselection.h+++ b/toonz/sources/toonz/fileselection.h@@ -13,7 +13,7 @@ class ExportScenePopup;// FileSelection//------------------------------------------------------------------------------class FileSelection : public DvItemSelection {+class FileSelection final : public DvItemSelection {QList<InfoViewer *> m_infoViewers;ExportScenePopup *m_exportScenePopup;diff --git a/toonz/sources/toonz/filmstrip.h b/toonz/sources/toonz/filmstrip.hindex 970e850da..7ce4fce93 100644--- a/toonz/sources/toonz/filmstrip.h+++ b/toonz/sources/toonz/filmstrip.h@@ -36,7 +36,7 @@ const int fs_iconMarginBottom = 15;// (inserita dentro Filmstrip : QScrollArea)//------------------------------------------------------------------------------class FilmstripFrames : public QFrame, public TSelection::View {+class FilmstripFrames final : public QFrame, public TSelection::View {Q_OBJECTpublic:@@ -191,7 +191,7 @@ private:// Filmstrip//------------------------------------------------------------------------------class Filmstrip : public QWidget {+class Filmstrip final : public QWidget {Q_OBJECTFilmstripFrames *m_frames;@@ -243,7 +243,7 @@ private:// inbetweenDialog//------------------------------------------------------------------------------class InbetweenDialog : public DVGui::Dialog {+class InbetweenDialog final : public DVGui::Dialog {Q_OBJECTQComboBox *m_comboBox;diff --git a/toonz/sources/toonz/filmstripcommand.cpp b/toonz/sources/toonz/filmstripcommand.cppindex e35d5aae8..23af794e2 100644--- a/toonz/sources/toonz/filmstripcommand.cpp+++ b/toonz/sources/toonz/filmstripcommand.cpp@@ -434,7 +434,7 @@ void insertNotEmptyframes(const TXshSimpleLevelP &sl,// PasteRasterAreasUndo//------------------------------------------------------------------------------class PasteRasterAreasUndo : public TUndo {+class PasteRasterAreasUndo final : public TUndo {TXshSimpleLevelP m_level;std::set<TFrameId> m_frames;TTileSet *m_tiles;@@ -628,7 +628,7 @@ public:// PasteVectorAreasUndo//------------------------------------------------------------------------------class PasteVectorAreasUndo : public TUndo {+class PasteVectorAreasUndo final : public TUndo {TXshSimpleLevelP m_level;std::set<TFrameId> m_frames;std::map<TFrameId, std::set<int>> m_indices;@@ -748,7 +748,7 @@ public:// PasteAreasUndo//------------------------------------------------------------------------------class PasteAreasUndo : public TUndo+class PasteAreasUndo final : public TUndo{TXshSimpleLevelP m_level;std::set<TFrameId> m_frames;@@ -867,7 +867,7 @@ TImageCache::instance()->get("PasteAreasUndoNew"+QString::number((UINT)this)+QSt// PasteFramesUndo//------------------------------------------------------------------------------class PasteFramesUndo : public TUndo {+class PasteFramesUndo final : public TUndo {TXshSimpleLevelP m_sl;std::set<TFrameId> m_frames;std::vector<TFrameId> m_oldLevelFrameId;@@ -987,7 +987,7 @@ public:// DeleteFramesUndo//------------------------------------------------------------------------------class DeleteFramesUndo : public TUndo {+class DeleteFramesUndo final : public TUndo {TXshSimpleLevel *m_sl;std::set<TFrameId> m_frames;DrawingData *m_oldData;@@ -1040,7 +1040,7 @@ public://------------------------------------------------------------------------------class CutFramesUndo : public TUndo {+class CutFramesUndo final : public TUndo {TXshSimpleLevel *m_sl;std::set<TFrameId> m_framesCutted;std::vector<TFrameId> m_oldFrames;@@ -1106,7 +1106,7 @@ public:namespace {//------------------------------------------------------------------------------class AddFramesUndo : public TUndo {+class AddFramesUndo final : public TUndo {TXshSimpleLevelP m_level;std::set<TFrameId> m_insertedFids;std::vector<TFrameId> m_oldFids;@@ -1201,7 +1201,7 @@ void FilmstripCmd::addFrames(TXshSimpleLevel *sl, int start, int end,namespace {-class RenumberUndo : public TUndo {+class RenumberUndo final : public TUndo {TXshSimpleLevelP m_level;std::vector<TFrameId> m_fids;std::map<TFrameId, TFrameId> m_mapOldFrameId;@@ -1611,7 +1611,7 @@ void insertEmptyFilmstripFrames(const TXshSimpleLevelP &sl,//------------------------------------------------------------------------------class UndoInsertEmptyFrames : public TUndo {+class UndoInsertEmptyFrames final : public TUndo {TXshSimpleLevelP m_level;std::vector<TFrameId> m_oldFrames;std::set<TFrameId> m_frames;@@ -1726,7 +1726,7 @@ void performReverse(const TXshSimpleLevelP &sl,//------------------------------------------------------------------------------class FilmstripReverseUndo : public TUndo {+class FilmstripReverseUndo final : public TUndo {TXshSimpleLevelP m_level;std::set<TFrameId> m_frames;@@ -1797,7 +1797,7 @@ void performSwing(const TXshSimpleLevelP &sl,//------------------------------------------------------------------------------class FilmstripSwingUndo : public TUndo {+class FilmstripSwingUndo final : public TUndo {TXshSimpleLevelP m_level;std::set<TFrameId> m_frames;std::set<TFrameId> m_newFrames;@@ -1892,7 +1892,7 @@ void stepFilmstripFrames(const TXshSimpleLevelP &sl,//------------------------------------------------------------------------------class StepFilmstripUndo : public TUndo {+class StepFilmstripUndo final : public TUndo {TXshSimpleLevelP m_level;std::set<TFrameId> m_insertedFrames;std::set<TFrameId> m_frames;@@ -1992,7 +1992,7 @@ std::map<TFrameId, QString> eachFilmstripFrames(//------------------------------------------------------------------------------class EachFilmstripUndo : public TUndo {+class EachFilmstripUndo final : public TUndo {TXshSimpleLevelP m_level;std::set<TFrameId> m_frames;std::map<TFrameId, QString> m_cutFrames;@@ -2054,7 +2054,7 @@ void FilmstripCmd::each(TXshSimpleLevel *sl, std::set<TFrameId> &frames,namespace {//------------------------------------------------------------------------------class UndoDuplicateDrawing : public TUndo {+class UndoDuplicateDrawing final : public TUndo {TXshSimpleLevelP m_level;std::set<TFrameId> m_frameInserted;std::vector<TFrameId> m_oldFrames;@@ -2151,7 +2151,7 @@ void moveToSceneFrames(TXshLevel *level, const std::set<TFrameId> &frames) {//------------------------------------------------------------------------------class MoveLevelToSceneUndo : public TUndo {+class MoveLevelToSceneUndo final : public TUndo {std::wstring m_levelName;int m_col;std::set<TFrameId> m_fids;@@ -2257,7 +2257,7 @@ void FilmstripCmd::moveToScene(TXshSoundLevel *sl) {namespace {-class UndoInbetween : public TUndo {+class UndoInbetween final : public TUndo {TXshSimpleLevelP m_level;std::vector<TFrameId> m_fids;std::vector<TVectorImageP> m_images;diff --git a/toonz/sources/toonz/filmstripselection.h b/toonz/sources/toonz/filmstripselection.hindex 476f01a56..178d32a83 100644--- a/toonz/sources/toonz/filmstripselection.h+++ b/toonz/sources/toonz/filmstripselection.h@@ -13,7 +13,7 @@ class TXshSimpleLevel;// TFilmStripSelection//------------------------------------------------------------------------------class TFilmstripSelection : public TSelection {+class TFilmstripSelection final : public TSelection {public:typedef std::pair<TFrameId, TFrameId> InbetweenRange;diff --git a/toonz/sources/toonz/flipbook.cpp b/toonz/sources/toonz/flipbook.cppindex 089df7e0e..b8cc24ed9 100644--- a/toonz/sources/toonz/flipbook.cpp+++ b/toonz/sources/toonz/flipbook.cpp@@ -303,7 +303,7 @@ enum { eBegin, eIncrement, eEnd };static DVGui::ProgressDialog *Pd = 0;-class ProgressBarMessager : public TThread::Message {+class ProgressBarMessager final : public TThread::Message {public:int m_choice;int m_val;diff --git a/toonz/sources/toonz/flipbook.h b/toonz/sources/toonz/flipbook.hindex d8b6f2c77..a116f3c73 100644--- a/toonz/sources/toonz/flipbook.h+++ b/toonz/sources/toonz/flipbook.h@@ -25,7 +25,7 @@ class FlipBook;//=============================================================================-class SaveImagesPopup : public FileBrowserPopup {+class SaveImagesPopup final : public FileBrowserPopup {Q_OBJECTFlipBook *m_flip;@@ -36,7 +36,7 @@ public:bool execute() override;};-class LoadImagesPopup : public FileBrowserPopup {+class LoadImagesPopup final : public FileBrowserPopup {Q_OBJECTDVGui::LineEdit *m_fromField;diff --git a/toonz/sources/toonz/floatingpanelcommand.h b/toonz/sources/toonz/floatingpanelcommand.hindex 7f044b833..5cdf7e85a 100644--- a/toonz/sources/toonz/floatingpanelcommand.h+++ b/toonz/sources/toonz/floatingpanelcommand.h@@ -12,7 +12,7 @@ class TPanel;// Widget"));// the "paneName" create the right widget and set it to the pane-class OpenFloatingPanel : public MenuItemHandler {+class OpenFloatingPanel final : public MenuItemHandler {QString m_title;std::string m_panelType;diff --git a/toonz/sources/toonz/formatsettingspopups.h b/toonz/sources/toonz/formatsettingspopups.hindex 3e2bf5569..838987444 100644--- a/toonz/sources/toonz/formatsettingspopups.h+++ b/toonz/sources/toonz/formatsettingspopups.h@@ -30,7 +30,7 @@ class PropertyComboBox;// FormatSettingsPopup definition//**********************************************************************************-class FormatSettingsPopup : public DVGui::Dialog {+class FormatSettingsPopup final : public DVGui::Dialog {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/frameheadgadget.cpp b/toonz/sources/toonz/frameheadgadget.cppindex 6c553cd40..e6ab48483 100644--- a/toonz/sources/toonz/frameheadgadget.cpp+++ b/toonz/sources/toonz/frameheadgadget.cpp@@ -649,7 +649,7 @@ bool FilmstripFrameHeadGadget::eventFilter(QObject *obj, QEvent *e) {//------------------------------------------------------------------------------class OnionSkinToggle : public MenuItemHandler {+class OnionSkinToggle final : public MenuItemHandler {public:OnionSkinToggle() : MenuItemHandler(MI_OnionSkin) {}void execute() override {diff --git a/toonz/sources/toonz/frameheadgadget.h b/toonz/sources/toonz/frameheadgadget.hindex 83bc7f092..0fcf9fbad 100644--- a/toonz/sources/toonz/frameheadgadget.h+++ b/toonz/sources/toonz/frameheadgadget.h@@ -62,11 +62,11 @@ public:bool eventFilter(QObject *obj, QEvent *event) override;};-class XsheetFrameHeadGadget : public FrameHeadGadget {+class XsheetFrameHeadGadget final : public FrameHeadGadget {public:};-class FilmstripFrameHeadGadget : public FrameHeadGadget {+class FilmstripFrameHeadGadget final : public FrameHeadGadget {FilmstripFrames *m_filmstrip;int m_dy;diff --git a/toonz/sources/toonz/fxparameditorpopup.h b/toonz/sources/toonz/fxparameditorpopup.hindex b26a9cc0b..576ebb249 100644--- a/toonz/sources/toonz/fxparameditorpopup.h+++ b/toonz/sources/toonz/fxparameditorpopup.h@@ -9,7 +9,7 @@// FxParamEditorPopup//------------------------------------------------------------------------------class FxParamEditorPopup : public QDialog {+class FxParamEditorPopup final : public QDialog {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/histogrampopup.h b/toonz/sources/toonz/histogrampopup.hindex cc3db161e..18cb3a1bf 100644--- a/toonz/sources/toonz/histogrampopup.h+++ b/toonz/sources/toonz/histogrampopup.h@@ -34,7 +34,7 @@ public:// ViewerHistogramPopup//------------------------------------------------------------------------------class ViewerHistogramPopup : public HistogramPopup {+class ViewerHistogramPopup final : public HistogramPopup {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/historypane.h b/toonz/sources/toonz/historypane.hindex 9311002f5..0376539b4 100644--- a/toonz/sources/toonz/historypane.h+++ b/toonz/sources/toonz/historypane.h@@ -5,7 +5,7 @@#include <QScrollArea>-class HistoryField : public QFrame {+class HistoryField final : public QFrame {Q_OBJECTQScrollArea *m_scrollArea;@@ -29,7 +29,7 @@ protected:void mousePressEvent(QMouseEvent *event) override;};-class HistoryPane : public QWidget {+class HistoryPane final : public QWidget {Q_OBJECTHistoryField *m_field;diff --git a/toonz/sources/toonz/imageviewer.cpp b/toonz/sources/toonz/imageviewer.cppindex 93e9cccfb..84ae89536 100644--- a/toonz/sources/toonz/imageviewer.cpp+++ b/toonz/sources/toonz/imageviewer.cpp@@ -111,7 +111,7 @@ inline TRectD getImageBoundsD(const TImageP &img) {//------------------------------------------------------------------------------class FlipZoomer : public ImageUtils::ShortcutZoomer {+class FlipZoomer final : public ImageUtils::ShortcutZoomer {public:FlipZoomer(ImageViewer *parent) : ShortcutZoomer(parent) {}@@ -1160,7 +1160,7 @@ void ImageViewer::keyPressEvent(QKeyEvent *event) {//-----------------------------------------------------------------------------/*! load image from history*/-class LoadRecentFlipbookImagesCommandHandler : public MenuItemHandler {+class LoadRecentFlipbookImagesCommandHandler final : public MenuItemHandler {public:LoadRecentFlipbookImagesCommandHandler(): MenuItemHandler(MI_LoadRecentImage) {}@@ -1188,7 +1188,7 @@ public://-----------------------------------------------------------------------------/*! clear the history*/-class ClearRecentFlipbookImagesCommandHandler : public MenuItemHandler {+class ClearRecentFlipbookImagesCommandHandler final : public MenuItemHandler {public:ClearRecentFlipbookImagesCommandHandler(): MenuItemHandler(MI_ClearRecentImage) {}diff --git a/toonz/sources/toonz/imageviewer.h b/toonz/sources/toonz/imageviewer.hindex 73181517a..0d8655cb8 100644--- a/toonz/sources/toonz/imageviewer.h+++ b/toonz/sources/toonz/imageviewer.h@@ -22,7 +22,7 @@ class HistogramPopup;// ImageViewer//---------------------class ImageViewer : public QOpenGLWidget {+class ImageViewer final : public QOpenGLWidget {Q_OBJECTenum DragType {eNone,diff --git a/toonz/sources/toonz/insertfxpopup.h b/toonz/sources/toonz/insertfxpopup.hindex 308522047..3fdc1bbb8 100644--- a/toonz/sources/toonz/insertfxpopup.h+++ b/toonz/sources/toonz/insertfxpopup.h@@ -18,7 +18,7 @@ class TFx;// InsertFxPopup//------------------------------------------------------------------------------class InsertFxPopup : public DVGui::Dialog {+class InsertFxPopup final : public DVGui::Dialog {Q_OBJECTQTreeWidget *m_fxTree;diff --git a/toonz/sources/toonz/iocommand.cpp b/toonz/sources/toonz/iocommand.cppindex ae71d85d6..69bf2b7fa 100644--- a/toonz/sources/toonz/iocommand.cpp+++ b/toonz/sources/toonz/iocommand.cpp@@ -102,7 +102,7 @@ class RenderingSuspender;// class ResourceImportDialog//----------------------------------------------------------------------------class ResourceImportDialog : public ResourceImportStrategy {+class ResourceImportDialog final : public ResourceImportStrategy {OverwriteDialog *m_dialog;bool m_isLastResource;bool m_importQuestionAsked;@@ -350,7 +350,7 @@ int getLevelType(const TFilePath &actualPath) {// class LoadLevelUndo//----------------------------------------------------------------------------class LoadLevelUndo : public TUndo {+class LoadLevelUndo final : public TUndo {TXshLevelP m_level;TFilePath m_levelSetFolder;int m_row, m_col, m_rowCount;@@ -452,7 +452,7 @@ public:// class LoadLevelAndReplaceUndo//----------------------------------------------------------------------------class LoadAndReplaceLevelUndo : public TUndo {+class LoadAndReplaceLevelUndo final : public TUndo {TXshSimpleLevelP m_level;QMap<QPair<int, int>, QPair<TXshSimpleLevelP, TFrameId>> m_oldLevels;int m_row0, m_col0, m_row1, m_col1;@@ -582,7 +582,7 @@ void substituteLevel(TXsheet *xsh, TXshLevel *srcLevel, TXshLevel *dstLevel) {// class ChildLevelResourceImporter//----------------------------------------------------------------------------class ChildLevelResourceImporter : public ResourceProcessor {+class ChildLevelResourceImporter final : public ResourceProcessor {ToonzScene *m_parentScene;ToonzScene *m_childScene;@@ -990,7 +990,7 @@ enum ExposeType { eOverWrite, eShiftCells, eNone };// class ExposeLevelUndo//----------------------------------------------------------------------------class ExposeLevelUndo : public TUndo {+class ExposeLevelUndo final : public TUndo {TXshSimpleLevelP m_sl;std::vector<TXshCell> m_oldCells;std::vector<TFrameId> m_fids;@@ -1070,7 +1070,7 @@ public:// class ExposeCommentUndo//----------------------------------------------------------------------------class ExposeCommentUndo : public TUndo {+class ExposeCommentUndo final : public TUndo {TXshSoundTextColumnP m_soundtextColumn;int m_col;bool m_insertEmptyColumn;@@ -2454,7 +2454,7 @@ bool IoCmd::importLipSync(TFilePath levelPath, QList<TFrameId> frameList,// Commands//----------------------------------------------------------------------------class SaveSceneCommandHandler : public MenuItemHandler {+class SaveSceneCommandHandler final : public MenuItemHandler {public:SaveSceneCommandHandler() : MenuItemHandler(MI_SaveScene) {}void execute() override { IoCmd::saveScene(); }@@ -2462,7 +2462,7 @@ public://----------------------------------------------------------------------------class SaveLevelCommandHandler : public MenuItemHandler {+class SaveLevelCommandHandler final : public MenuItemHandler {public:SaveLevelCommandHandler() : MenuItemHandler(MI_SaveLevel) {}void execute() override {@@ -2495,7 +2495,7 @@ public://------------------------------------------------------------------------------class SaveProjectTemplate : public MenuItemHandler {+class SaveProjectTemplate final : public MenuItemHandler {public:SaveProjectTemplate() : MenuItemHandler(MI_SaveDefaultSettings) {}void execute() override {@@ -2517,7 +2517,7 @@ public://------------------------------------------------------------------------------class OpenRecentSceneFileCommandHandler : public MenuItemHandler {+class OpenRecentSceneFileCommandHandler final : public MenuItemHandler {public:OpenRecentSceneFileCommandHandler() : MenuItemHandler(MI_OpenRecentScene) {}void execute() override {@@ -2533,7 +2533,7 @@ public://------------------------------------------------------------------------------class OpenRecentLevelFileCommandHandler : public MenuItemHandler {+class OpenRecentLevelFileCommandHandler final : public MenuItemHandler {public:OpenRecentLevelFileCommandHandler() : MenuItemHandler(MI_OpenRecentLevel) {}void execute() override {@@ -2556,7 +2556,7 @@ public://------------------------------------------------------------------------------class ClearRecentSceneFileListCommandHandler : public MenuItemHandler {+class ClearRecentSceneFileListCommandHandler final : public MenuItemHandler {public:ClearRecentSceneFileListCommandHandler(): MenuItemHandler(MI_ClearRecentScene) {}@@ -2567,7 +2567,7 @@ public://------------------------------------------------------------------------------class ClearRecentLevelFileListCommandHandler : public MenuItemHandler {+class ClearRecentLevelFileListCommandHandler final : public MenuItemHandler {public:ClearRecentLevelFileListCommandHandler(): MenuItemHandler(MI_ClearRecentLevel) {}@@ -2578,7 +2578,7 @@ public://------------------------------------------------------------------------------class RevertScene : public MenuItemHandler {+class RevertScene final : public MenuItemHandler {public:RevertScene() : MenuItemHandler(MI_RevertScene) {}void execute() override {@@ -2607,7 +2607,7 @@ public://=============================================================================// Overwrite palette//------------------------------------------------------------------------------class OverwritePaletteCommandHandler : public MenuItemHandler {+class OverwritePaletteCommandHandler final : public MenuItemHandler {public:OverwritePaletteCommandHandler() : MenuItemHandler(MI_OverwritePalette) {}@@ -2696,7 +2696,7 @@ public://=============================================================================// Save scene and levels//------------------------------------------------------------------------------class SaveAllCommandHandler : public MenuItemHandler {+class SaveAllCommandHandler final : public MenuItemHandler {public:SaveAllCommandHandler() : MenuItemHandler(MI_SaveAll) {}void execute() override { IoCmd::saveAll(); }diff --git a/toonz/sources/toonz/iocommand.h b/toonz/sources/toonz/iocommand.hindex 4ce38867e..17f6fdb46 100644--- a/toonz/sources/toonz/iocommand.h+++ b/toonz/sources/toonz/iocommand.h@@ -156,7 +156,7 @@ public://-------------------------------------------------------------------------class ConvertingPopup : public QDialog {+class ConvertingPopup final : public QDialog {public:ConvertingPopup(QWidget *parent, QString fileName);~ConvertingPopup();diff --git a/toonz/sources/toonz/keyframedata.h b/toonz/sources/toonz/keyframedata.hindex ee73bc3cb..28f8696fd 100644--- a/toonz/sources/toonz/keyframedata.h+++ b/toonz/sources/toonz/keyframedata.h@@ -15,7 +15,7 @@ class TXsheet;// TKeyframeData//------------------------------------------------------------------------------class TKeyframeData : public DvMimeData {+class TKeyframeData final : public DvMimeData {public:typedef TKeyframeSelection::Position Position;typedef std::map<Position, TStageObject::Keyframe> KeyData;diff --git a/toonz/sources/toonz/keyframemover.cpp b/toonz/sources/toonz/keyframemover.cppindex 51ba96088..4eb135c70 100644--- a/toonz/sources/toonz/keyframemover.cpp+++ b/toonz/sources/toonz/keyframemover.cpp@@ -197,7 +197,7 @@ namespace {// UndoMoveKeyFrame//------------------------------------------------------------------------------class UndoMoveKeyFrame : public TUndo {+class UndoMoveKeyFrame final : public TUndo {int m_dr;KeyframeMover *m_mover;diff --git a/toonz/sources/toonz/keyframemover.h b/toonz/sources/toonz/keyframemover.hindex cb47b5634..7660eba5e 100644--- a/toonz/sources/toonz/keyframemover.h+++ b/toonz/sources/toonz/keyframemover.h@@ -65,7 +65,7 @@ public:// KeyframeMoverTool//------------------------------------------------------------------------------class KeyframeMoverTool : public XsheetGUI::DragTool {+class KeyframeMoverTool final : public XsheetGUI::DragTool {TKeyframeSelection m_startSelection;int m_offset;int m_firstRow, m_firstCol;diff --git a/toonz/sources/toonz/keyframeselection.cpp b/toonz/sources/toonz/keyframeselection.cppindex f33f29a10..526a32615 100644--- a/toonz/sources/toonz/keyframeselection.cpp+++ b/toonz/sources/toonz/keyframeselection.cpp@@ -119,7 +119,7 @@ bool deleteKeyframesWithoutUndo(// PasteKeyframesUndo//------------------------------------------------------------------------------class PasteKeyframesUndo : public TUndo {+class PasteKeyframesUndo final : public TUndo {TKeyframeSelection *m_selection;QMimeData *m_newData;QMimeData *m_oldData;@@ -173,7 +173,7 @@ public:// DeleteKeyframesUndo//------------------------------------------------------------------------------class DeleteKeyframesUndo : public TUndo {+class DeleteKeyframesUndo final : public TUndo {TKeyframeSelection *m_selection;QMimeData *m_data;int m_r0, m_r1, m_c0, m_c1;diff --git a/toonz/sources/toonz/keyframeselection.h b/toonz/sources/toonz/keyframeselection.hindex ffe43f57c..ca5dfe6f1 100644--- a/toonz/sources/toonz/keyframeselection.h+++ b/toonz/sources/toonz/keyframeselection.h@@ -10,7 +10,7 @@// TKeyframeSelection//------------------------------------------------------------------------------class TKeyframeSelection : public TSelection {+class TKeyframeSelection final : public TSelection {public:typedef std::pair<int, int> Position; // row, coldiff --git a/toonz/sources/toonz/levelcommand.cpp b/toonz/sources/toonz/levelcommand.cppindex bbbbd0f67..665d321ba 100644--- a/toonz/sources/toonz/levelcommand.cpp+++ b/toonz/sources/toonz/levelcommand.cpp@@ -35,7 +35,7 @@namespace {-class DeleteLevelUndo : public TUndo {+class DeleteLevelUndo final : public TUndo {TXshLevelP m_xl;public:@@ -66,7 +66,7 @@ public:// RemoveUnusedLevelCommand//------------------------------------------------------------------------------class RemoveUnusedLevelsCommand : public MenuItemHandler {+class RemoveUnusedLevelsCommand final : public MenuItemHandler {public:RemoveUnusedLevelsCommand() : MenuItemHandler(MI_RemoveUnused) {}@@ -108,7 +108,7 @@ public:// RemoveLevelCommand//------------------------------------------------------------------------------class RemoveLevelCommand : public MenuItemHandler {+class RemoveLevelCommand final : public MenuItemHandler {public:RemoveLevelCommand() : MenuItemHandler(MI_RemoveLevel) {}@@ -242,7 +242,7 @@ bool loadLastSaveFids(TXshSimpleLevel *sl,// Undo RevertToCommandUndo//------------------------------------------------------------------------------class RevertToCommandUndo : public TUndo {+class RevertToCommandUndo final : public TUndo {TXshSimpleLevel *m_sl;std::vector<QString> m_replacedImgsId;std::set<TFrameId> m_selectedFids;@@ -409,7 +409,7 @@ void revertTo(bool isCleanedUp) {// RevertToCleanedUpCommand//------------------------------------------------------------------------------class RevertToCleanedUpCommand : public MenuItemHandler {+class RevertToCleanedUpCommand final : public MenuItemHandler {public:RevertToCleanedUpCommand() : MenuItemHandler(MI_RevertToCleanedUp) {}@@ -421,7 +421,7 @@ public:// RevertToLastSaveCommand//------------------------------------------------------------------------------class RevertToLastSaveCommand : public MenuItemHandler {+class RevertToLastSaveCommand final : public MenuItemHandler {public:RevertToLastSaveCommand() : MenuItemHandler(MI_RevertToLastSaved) {}diff --git a/toonz/sources/toonz/levelcreatepopup.cpp b/toonz/sources/toonz/levelcreatepopup.cppindex d37ef0fc8..c47cdefdf 100644--- a/toonz/sources/toonz/levelcreatepopup.cpp+++ b/toonz/sources/toonz/levelcreatepopup.cpp@@ -67,7 +67,7 @@ const QString ScanLevel("Scan Level");// CreateLevelUndo//------------------------------------------------------------------------------class CreateLevelUndo : public TUndo {+class CreateLevelUndo final : public TUndo {int m_rowIndex;int m_columnIndex;int m_frameCount;diff --git a/toonz/sources/toonz/levelcreatepopup.h b/toonz/sources/toonz/levelcreatepopup.hindex d5b58e74e..07999470d 100644--- a/toonz/sources/toonz/levelcreatepopup.h+++ b/toonz/sources/toonz/levelcreatepopup.h@@ -17,7 +17,7 @@ class QComboBox;// LevelCreatePopup//------------------------------------------------------------------------------class LevelCreatePopup : public DVGui::Dialog {+class LevelCreatePopup final : public DVGui::Dialog {Q_OBJECTDVGui::LineEdit *m_nameFld;diff --git a/toonz/sources/toonz/levelsettingspopup.cpp b/toonz/sources/toonz/levelsettingspopup.cppindex 0c4f458df..35d413c8a 100644--- a/toonz/sources/toonz/levelsettingspopup.cpp+++ b/toonz/sources/toonz/levelsettingspopup.cpp@@ -1048,7 +1048,7 @@ OpenPopupCommandHandler<LevelSettingsPopup> openLevelSettingsPopup(//------------------------------------------------------------------------------class ViewLevelFileInfoHandler : public MenuItemHandler {+class ViewLevelFileInfoHandler final : public MenuItemHandler {public:ViewLevelFileInfoHandler(CommandId cmdId) : MenuItemHandler(cmdId) {}@@ -1106,7 +1106,7 @@ public://------------------------------------------------------------------------------class ViewLevelHandler : public MenuItemHandler {+class ViewLevelHandler final : public MenuItemHandler {public:ViewLevelHandler(CommandId cmdId) : MenuItemHandler(cmdId) {}diff --git a/toonz/sources/toonz/levelsettingspopup.h b/toonz/sources/toonz/levelsettingspopup.hindex 76bc9a93c..955ce1070 100644--- a/toonz/sources/toonz/levelsettingspopup.h+++ b/toonz/sources/toonz/levelsettingspopup.h@@ -31,7 +31,7 @@ class CheckBox;// LevelSettingsPopup//------------------------------------------------------------------------------class LevelSettingsPopup : public DVGui::Dialog {+class LevelSettingsPopup final : public DVGui::Dialog {Q_OBJECTTXshSimpleLevelP m_sl;diff --git a/toonz/sources/toonz/linesfadepopup.cpp b/toonz/sources/toonz/linesfadepopup.cppindex 4dee3a849..4e4f8c65f 100644--- a/toonz/sources/toonz/linesfadepopup.cpp+++ b/toonz/sources/toonz/linesfadepopup.cpp@@ -93,7 +93,7 @@ pix->m=(UCHAR)(pix->m+intensity*(col.m-pix->m));*/// BrightnessAndContrastPopup Swatch//**************************************************************************-class LinesFadePopup::Swatch : public PlaneViewer {+class LinesFadePopup::Swatch final : public PlaneViewer {TRasterP m_ras;public:@@ -295,7 +295,7 @@ void LinesFadePopup::hideEvent(QHideEvent *he) {//------------------------------------------------------------------------------class TLineFadeUndo : public TUndo {+class TLineFadeUndo final : public TUndo {int m_r, m_c;TPixel32 m_color;int m_intensity;diff --git a/toonz/sources/toonz/linesfadepopup.h b/toonz/sources/toonz/linesfadepopup.hindex 25bbb0bb7..e588ba816 100644--- a/toonz/sources/toonz/linesfadepopup.h+++ b/toonz/sources/toonz/linesfadepopup.h@@ -20,7 +20,7 @@ class IntField;// LinesFadePopup//------------------------------------------------------------------------------class LinesFadePopup : public DVGui::Dialog {+class LinesFadePopup final : public DVGui::Dialog {Q_OBJECTDVGui::ColorField *m_linesColorField;diff --git a/toonz/sources/toonz/linetestcapturepane.cpp b/toonz/sources/toonz/linetestcapturepane.cppindex 5a9f87650..1f716f55e 100644--- a/toonz/sources/toonz/linetestcapturepane.cpp+++ b/toonz/sources/toonz/linetestcapturepane.cpp@@ -51,7 +51,7 @@//-----------------------------------------------------------------------------namespace {-class ViewerZoomer : public ImageUtils::ShortcutZoomer {+class ViewerZoomer final : public ImageUtils::ShortcutZoomer {public:ViewerZoomer(QWidget *parent) : ShortcutZoomer(parent) {}void zoom(bool zoomin, bool resetZoom) {@@ -78,7 +78,7 @@ ToggleCommandHandler capturePanelFieldGuideToggle(MI_CapturePanelFieldGuide,// CaptureCommand//------------------------------------------------------------------------------class CaptureCommand : public MenuItemHandler {+class CaptureCommand final : public MenuItemHandler {public:CaptureCommand() : MenuItemHandler(MI_Capture) {}void execute() {}diff --git a/toonz/sources/toonz/linetestcapturepane.h b/toonz/sources/toonz/linetestcapturepane.hindex 55e180429..b680f3445 100644--- a/toonz/sources/toonz/linetestcapturepane.h+++ b/toonz/sources/toonz/linetestcapturepane.h@@ -32,7 +32,7 @@ class CaptureParameters;//=============================================================================// LineTestImageViewer-class LineTestImageViewer : public QWidget, public CameraImageViewer {+class LineTestImageViewer final : public QWidget, public CameraImageViewer {Q_OBJECTQPoint m_pos;@@ -88,7 +88,7 @@ protected://===================================================================// ChooseCameraDialog-class ChooseCameraDialog : public DVGui::Dialog {+class ChooseCameraDialog final : public DVGui::Dialog {Q_OBJECTint m_cameraIndex;@@ -107,7 +107,7 @@ protected slots://===================================================================// CaptureSettingsPopup-class CaptureSettingsPopup : public DVGui::Dialog {+class CaptureSettingsPopup final : public DVGui::Dialog {Q_OBJECTQPushButton *m_defineDeviceButton;@@ -149,7 +149,7 @@ signals://===================================================================// FileSettingsPopup-class FileSettingsPopup : public DVGui::Dialog {+class FileSettingsPopup final : public DVGui::Dialog {Q_OBJECTDVGui::FileField *m_pathField;@@ -173,7 +173,7 @@ protected slots://=============================================================================// LineTestCapturePane-class LineTestCapturePane : public TPanel {+class LineTestCapturePane final : public TPanel {Q_OBJECTLineTestImageViewer *m_imageView;diff --git a/toonz/sources/toonz/linetestpane.h b/toonz/sources/toonz/linetestpane.hindex c876c226e..339f3a267 100644--- a/toonz/sources/toonz/linetestpane.h+++ b/toonz/sources/toonz/linetestpane.h@@ -22,7 +22,7 @@ class QStackedWidget;// MixAudioThread//------------------------------------------------------------------------------class MixAudioThread : public QThread {+class MixAudioThread final : public QThread {Q_OBJECTbool m_abort;@@ -57,7 +57,7 @@ signals:// LineTestPanel//-----------------------------------------------------------------------------// Andrebbe messo a fattor comune del codice con ViewerPane-class LineTestPane : public TPanel {+class LineTestPane final : public TPanel {Q_OBJECTQStackedWidget *m_stackedWidget;diff --git a/toonz/sources/toonz/linetestviewer.cpp b/toonz/sources/toonz/linetestviewer.cppindex 2c8fa85a6..f40aed0a1 100644--- a/toonz/sources/toonz/linetestviewer.cpp+++ b/toonz/sources/toonz/linetestviewer.cpp@@ -86,7 +86,7 @@ void initToonzEvent(TMouseEvent &toonzEvent, QMouseEvent *event,//------------------------------------------------------------------------------class ViewerZoomer : public ImageUtils::ShortcutZoomer {+class ViewerZoomer final : public ImageUtils::ShortcutZoomer {public:ViewerZoomer(QWidget *parent) : ShortcutZoomer(parent) {}void zoom(bool zoomin, bool resetZoom) {@@ -351,7 +351,7 @@ dare seri problemi!!!!// ras->lock();// memcpy( ptr, ras->getRawData(), dataSize);// glUnmapBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB); // release pointer- //to+ // to// mapping buffer// ras->unlock();// }diff --git a/toonz/sources/toonz/linetestviewer.h b/toonz/sources/toonz/linetestviewer.hindex 81676f17d..b9f408128 100644--- a/toonz/sources/toonz/linetestviewer.h+++ b/toonz/sources/toonz/linetestviewer.h@@ -23,9 +23,9 @@// Andrebbe messo a fattor comune del codice con SceneViewer#ifdef USE_QPAINTER-class LineTestViewer : public QWidget+class LineTestViewer final : public QWidget#else-class LineTestViewer : public QOpenGLWidget+class LineTestViewer final : public QOpenGLWidget#endif{Q_OBJECTdiff --git a/toonz/sources/toonz/loadfoldercommand.cpp b/toonz/sources/toonz/loadfoldercommand.cppindex c8da846fa..7808c1a09 100644--- a/toonz/sources/toonz/loadfoldercommand.cpp+++ b/toonz/sources/toonz/loadfoldercommand.cpp@@ -133,7 +133,7 @@ public:// OverwriteDialog definition//************************************************************************-class OverwriteDialog : public DVGui::ValidatedChoiceDialog {+class OverwriteDialog final : public DVGui::ValidatedChoiceDialog {public:enum Resolution {NO_RESOLUTION,diff --git a/toonz/sources/toonz/loadfolderpopup.h b/toonz/sources/toonz/loadfolderpopup.hindex 08b6ca304..5b53070e4 100644--- a/toonz/sources/toonz/loadfolderpopup.h+++ b/toonz/sources/toonz/loadfolderpopup.h@@ -23,7 +23,7 @@ class DvDirTreeView;\brief Popup widget used to invoke the <I>Load Folder</I> command.*/-class LoadFolderPopup : public DVGui::Dialog {+class LoadFolderPopup final : public DVGui::Dialog {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/magpiefileimportpopup.h b/toonz/sources/toonz/magpiefileimportpopup.hindex 3e59e6f29..65a39da61 100644--- a/toonz/sources/toonz/magpiefileimportpopup.h+++ b/toonz/sources/toonz/magpiefileimportpopup.h@@ -35,7 +35,7 @@ public:// MagpieFileImportPopup//------------------------------------------------------------------------------class MagpieFileImportPopup : public DVGui::Dialog {+class MagpieFileImportPopup final : public DVGui::Dialog {Q_OBJECTMagpieInfo *m_info;diff --git a/toonz/sources/toonz/mainwindow.cpp b/toonz/sources/toonz/mainwindow.cppindex 43d33e04c..d94290f40 100644--- a/toonz/sources/toonz/mainwindow.cpp+++ b/toonz/sources/toonz/mainwindow.cpp@@ -2151,7 +2151,7 @@ void MainWindow::togglePickStyleLines() {//------------------------------------------------------------------------------class ReloadStyle : public MenuItemHandler {+class ReloadStyle final : public MenuItemHandler {public:ReloadStyle() : MenuItemHandler("MI_ReloadStyle") {}void execute() override {diff --git a/toonz/sources/toonz/mainwindow.h b/toonz/sources/toonz/mainwindow.hindex b3a4b1cd2..2b3d8c0de 100644--- a/toonz/sources/toonz/mainwindow.h+++ b/toonz/sources/toonz/mainwindow.h@@ -24,7 +24,7 @@ class ComboViewerPanel;class TopBar;//------------------------------------------------------------------------------class Room : public TMainWindow {+class Room final : public TMainWindow {Q_OBJECTTFilePath m_path;@@ -63,7 +63,7 @@ public://------------------------------------------------------------------------------class MainWindow : public QMainWindow {+class MainWindow final : public QMainWindow {Q_OBJECTbool m_saveSettingsOnQuit;diff --git a/toonz/sources/toonz/matchline.cpp b/toonz/sources/toonz/matchline.cppindex 16dd7065f..8392313ba 100644--- a/toonz/sources/toonz/matchline.cpp+++ b/toonz/sources/toonz/matchline.cpp@@ -481,7 +481,7 @@ void MatchlinesDialog::onInkPrevalenceChanged(bool isDragging) {//------------------------------------------------------------------------------class DeleteMatchlineUndo : public TUndo {+class DeleteMatchlineUndo final : public TUndo {public:TXshLevel *m_xl;TXshSimpleLevel *m_sl;@@ -555,7 +555,7 @@ public://------------------------------------------------------------------------------class MatchlineUndo : public TUndo {+class MatchlineUndo final : public TUndo {TXshLevelP m_xl;int m_mergeCmappedSessionId;std::map<TFrameId, QString> m_images;diff --git a/toonz/sources/toonz/matchline.h b/toonz/sources/toonz/matchline.hindex 8560d359a..dbefb4d49 100644--- a/toonz/sources/toonz/matchline.h+++ b/toonz/sources/toonz/matchline.h@@ -24,7 +24,7 @@ class TXsheet;//==================================================-class MergeCmappedDialog : public DVGui::Dialog {+class MergeCmappedDialog final : public DVGui::Dialog {Q_OBJECTDVGui::FileField *m_saveInFileFld;@@ -44,7 +44,7 @@ protected slots://-----------------------------------------------------------------class MatchlinesDialog : public DVGui::Dialog {+class MatchlinesDialog final : public DVGui::Dialog {Q_OBJECTQRadioButton *m_button1, *m_button2;@@ -78,7 +78,7 @@ public://-----------------------------------------------------------------class DeleteInkDialog : public DVGui::Dialog {+class DeleteInkDialog final : public DVGui::Dialog {Q_OBJECTDVGui::LineEdit *m_inkIndex;diff --git a/toonz/sources/toonz/matchlinecommand.cpp b/toonz/sources/toonz/matchlinecommand.cppindex 73d38e606..04f329f42 100644--- a/toonz/sources/toonz/matchlinecommand.cpp+++ b/toonz/sources/toonz/matchlinecommand.cpp@@ -100,7 +100,7 @@ MergeCmappedDialog::MergeCmappedDialog(TFilePath &levelPath)// MergeColumns command//*****************************************************************************-class MergeColumnsCommand : public MenuItemHandler {+class MergeColumnsCommand final : public MenuItemHandler {public:MergeColumnsCommand() : MenuItemHandler(MI_MergeColumns) {}@@ -135,7 +135,7 @@ public:// ApplyMatchlines command//*****************************************************************************-class ApplyMatchlinesCommand : public MenuItemHandler {+class ApplyMatchlinesCommand final : public MenuItemHandler {public:ApplyMatchlinesCommand() : MenuItemHandler(MI_ApplyMatchLines) {}@@ -220,7 +220,7 @@ void doCloneLevelNoSave(const TCellSelection::Range &range,namespace {//------------------------------------------------------------------------------class CloneLevelNoSaveUndo : public TUndo {+class CloneLevelNoSaveUndo final : public TUndo {std::map<TXshSimpleLevel *, TXshLevelP> m_createdLevels;std::set<int> m_insertedColumnIndices;@@ -413,7 +413,7 @@ void cloneColumn(const TCellSelection::Range &cells,} // namespace-class MergeCmappedCommand : public MenuItemHandler {+class MergeCmappedCommand final : public MenuItemHandler {public:MergeCmappedCommand() : MenuItemHandler(MI_MergeCmapped) {}void execute() override {@@ -582,7 +582,7 @@ void doDeleteCommand(bool isMatchline) {//------------------------------------------------------------------------------class DeleteInkCommand : public MenuItemHandler {+class DeleteInkCommand final : public MenuItemHandler {public:DeleteInkCommand() : MenuItemHandler(MI_DeleteInk) {}void execute() override { doDeleteCommand(false); }@@ -591,7 +591,7 @@ public://------------------------------------------------------------------------------class DeleteMatchlinesCommand : public MenuItemHandler {+class DeleteMatchlinesCommand final : public MenuItemHandler {public:DeleteMatchlinesCommand() : MenuItemHandler(MI_DeleteMatchLines) {}void execute() override { doDeleteCommand(true); }diff --git a/toonz/sources/toonz/menubar.h b/toonz/sources/toonz/menubar.hindex 8d6f56ec5..bb2e3b9c0 100644--- a/toonz/sources/toonz/menubar.h+++ b/toonz/sources/toonz/menubar.h@@ -28,7 +28,7 @@ class QXmlStreamReader;//------------------------------------------------------------------------------class RoomTabWidget : public QTabBar {+class RoomTabWidget final : public QTabBar {Q_OBJECTint m_clickedTabIndex;@@ -69,7 +69,7 @@ signals://-----------------------------------------------------------------------------/*-class SubSheetBar : public QFrame+class SubSheetBar final : public QFrame{Q_OBJECT@@ -105,7 +105,7 @@ protected://-----------------------------------------------------------------------------#ifdef MACOSX-class MenuBarWhiteLine : public QFrame+class MenuBarWhiteLine final : public QFrame{Q_OBJECTpublic:@@ -114,7 +114,7 @@ protected:void paintEvent(QPaintEvent *event);};#else-class MenuBarWhiteLine : public QMenuBar+class MenuBarWhiteLine final : public QMenuBar{public:MenuBarWhiteLine(QWidget *parent = 0);@@ -125,7 +125,7 @@ protected:*///------------------------------------------------------------------------------class UrlOpener : public QObject {+class UrlOpener final : public QObject {Q_OBJECTQUrl m_url;@@ -138,7 +138,7 @@ public slots://-----------------------------------------------------------------------------/*-- モジュールごとにMenubarの内容を切り替える --*/-class StackedMenuBar : public QStackedWidget {+class StackedMenuBar final : public QStackedWidget {Q_OBJECTQMenuBar *createCleanupMenuBar();@@ -170,7 +170,7 @@ protected slots://------------------------------------------------------------------------------class TopBar : public QToolBar {+class TopBar final : public QToolBar {Q_OBJECTQFrame *m_containerFrame;diff --git a/toonz/sources/toonz/menubarpopup.cpp b/toonz/sources/toonz/menubarpopup.cppindex 6611e5396..06e3828e7 100644--- a/toonz/sources/toonz/menubarpopup.cpp+++ b/toonz/sources/toonz/menubarpopup.cpp@@ -37,7 +37,7 @@// MenuBarCommandItem//------------------------------------------------------------------------------class MenuBarCommandItem : public QTreeWidgetItem {+class MenuBarCommandItem final : public QTreeWidgetItem {QAction* m_action;public:@@ -55,7 +55,7 @@ public:// MenuBarSeparatorItem//------------------------------------------------------------------------------class MenuBarSeparatorItem : public QTreeWidgetItem {+class MenuBarSeparatorItem final : public QTreeWidgetItem {public:MenuBarSeparatorItem(QTreeWidgetItem* parent): QTreeWidgetItem(parent, UserType) {@@ -70,7 +70,7 @@ public:// MenuBarSubmenuItem//------------------------------------------------------------------------------class MenuBarSubmenuItem : public QTreeWidgetItem {+class MenuBarSubmenuItem final : public QTreeWidgetItem {public:MenuBarSubmenuItem(QTreeWidgetItem* parent, QString& title): QTreeWidgetItem(parent, UserType) {diff --git a/toonz/sources/toonz/menubarpopup.h b/toonz/sources/toonz/menubarpopup.hindex ea7941186..5d0a44d58 100644--- a/toonz/sources/toonz/menubarpopup.h+++ b/toonz/sources/toonz/menubarpopup.h@@ -18,7 +18,7 @@ class QXmlStreamWriter;// MenuBarTree//------------------------------------------------------------------------------class MenuBarTree : public QTreeWidget {+class MenuBarTree final : public QTreeWidget {Q_OBJECTTFilePath m_path;@@ -45,7 +45,7 @@ protected slots:// CommandListTree//------------------------------------------------------------------------------class CommandListTree : public QTreeWidget {+class CommandListTree final : public QTreeWidget {Q_OBJECTvoid addFolder(const QString& title, int commandType,@@ -62,7 +62,7 @@ protected:// MenuBarPopup//------------------------------------------------------------------------------class MenuBarPopup : public DVGui::Dialog {+class MenuBarPopup final : public DVGui::Dialog {Q_OBJECTCommandListTree* m_commandListTree;MenuBarTree* m_menuBarTree;diff --git a/toonz/sources/toonz/mergecmapped.cpp b/toonz/sources/toonz/mergecmapped.cppindex a3019a13f..defc15af6 100644--- a/toonz/sources/toonz/mergecmapped.cpp+++ b/toonz/sources/toonz/mergecmapped.cpp@@ -217,7 +217,7 @@ void applyDeleteMatchline(TXshSimpleLevel *sl,} // namespace//------------------------------------------------------------------------------class DeleteMatchlineUndo : public TUndo {+class DeleteMatchlineUndo final : public TUndo {public:TXshLevel *m_xl;TXshSimpleLevel *m_sl;@@ -295,7 +295,7 @@ public:/*namespace {-class DeleteLevelUndo : public TUndo {+class DeleteLevelUndo final : public TUndo {TXshLevelP m_xl;public:DeleteLevelUndo(TXshLevel *xl) : m_xl(xl) {}@@ -338,7 +338,7 @@ bool removeLevel(TXshLevel *level) {return true;}-class MergeCmappedUndo : public TUndo {+class MergeCmappedUndo final : public TUndo {TXshLevel *m_xl;int m_mergeCmappedSessionId;std::map<TFrameId, QString> m_images;diff --git a/toonz/sources/toonz/mergecolumns.cpp b/toonz/sources/toonz/mergecolumns.cppindex dd55f16c5..027e8d065 100644--- a/toonz/sources/toonz/mergecolumns.cpp+++ b/toonz/sources/toonz/mergecolumns.cpp@@ -176,7 +176,7 @@ void mergeVectorColumns(const std::vector<MatchlinePair> &matchingLevels) {} // namespace//------------------------------------------------------------------------------class MergeColumnsUndo : public TUndo {+class MergeColumnsUndo final : public TUndo {TXshLevelP m_xl;int m_matchlineSessionId;std::map<TFrameId, QString> m_images;diff --git a/toonz/sources/toonz/meshifypopup.cpp b/toonz/sources/toonz/meshifypopup.cppindex 5f3261c9d..bf51ea7b3 100644--- a/toonz/sources/toonz/meshifypopup.cpp+++ b/toonz/sources/toonz/meshifypopup.cpp@@ -493,7 +493,7 @@ void getRaster(const TXsheet *xsh, int row, TRasterP &ras, TPointD &rasDpi,// MeshifyPopup::Swatch definition//********************************************************************************************-class MeshifyPopup::Swatch : public PlaneViewer {+class MeshifyPopup::Swatch final : public PlaneViewer {public:TImageP m_img; //!< The eventual image to be meshified@@ -1306,7 +1306,7 @@ bool meshifySelection(const MeshifyOptions &options) {// Meshify Command definition//********************************************************************************************-class MeshifyCommand : public MenuItemHandler {+class MeshifyCommand final : public MenuItemHandler {public:MeshifyCommand() : MenuItemHandler("A_ToolOption_Meshify") {}diff --git a/toonz/sources/toonz/meshifypopup.h b/toonz/sources/toonz/meshifypopup.hindex b84daf8ca..0c1388a72 100644--- a/toonz/sources/toonz/meshifypopup.h+++ b/toonz/sources/toonz/meshifypopup.h@@ -38,7 +38,7 @@ class QPushButton;Plastic Tool.*/-class MeshifyPopup : public DVGui::Dialog {+class MeshifyPopup final : public DVGui::Dialog {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/messagepanel.cpp b/toonz/sources/toonz/messagepanel.cppindex 09e743dd5..7f0abd6d0 100644--- a/toonz/sources/toonz/messagepanel.cpp+++ b/toonz/sources/toonz/messagepanel.cpp@@ -16,7 +16,7 @@// Centered Text Widget class//-----------------------------------class CenteredTextWidget : public QWidget {+class CenteredTextWidget final : public QWidget {QString m_text;public:@@ -158,7 +158,7 @@ void LogPanel::clear() {//=============================================================================// OpenFloatingLogPanel-class OpenFloatingLogPanel : public MenuItemHandler {+class OpenFloatingLogPanel final : public MenuItemHandler {public:OpenFloatingLogPanel() : MenuItemHandler(MI_OpenMessage) {}void execute() override {diff --git a/toonz/sources/toonz/messagepanel.h b/toonz/sources/toonz/messagepanel.hindex 5785a13b0..4cbe76319 100644--- a/toonz/sources/toonz/messagepanel.h+++ b/toonz/sources/toonz/messagepanel.h@@ -16,7 +16,7 @@ class MainWindow;// MessagePanel//------------------------------------------------------------------------------class MessagePanel : public TPanel {+class MessagePanel final : public TPanel {friend class MainWindow;CenteredTextWidget *m_messageBox;@@ -45,7 +45,7 @@ private:// MessagePanel//------------------------------------------------------------------------------class LogPanel : public TPanel, public TLogger::Listener {+class LogPanel final : public TPanel, public TLogger::Listener {Q_OBJECTQTextEdit *m_messageBox;diff --git a/toonz/sources/toonz/moviegenerator.cpp b/toonz/sources/toonz/moviegenerator.cppindex cd3d53f05..98978293e 100644--- a/toonz/sources/toonz/moviegenerator.cpp+++ b/toonz/sources/toonz/moviegenerator.cpp@@ -105,7 +105,7 @@ public:// il canale di trasparenza (se la proprieta' booleana Alpha Channel esiste// e vale true, oppure la "Resolution" vale L"32 bits"//-class AlphaChecker : public TProperty::Visitor {+class AlphaChecker final : public TProperty::Visitor {bool m_alphaEnabled;public:@@ -128,7 +128,7 @@ public:// RasterMovieGenerator ( animazioni raster)//------------------------------------------------------------------------------class RasterMovieGenerator : public MovieGenerator::Imp {+class RasterMovieGenerator final : public MovieGenerator::Imp {public:bool m_isFrames;TLevelWriterP m_lw;@@ -304,7 +304,7 @@ false,0);// FlashStagePainter//------------------------------------------------------------------------------class FlashStagePainter : public Stage::Visitor {+class FlashStagePainter final : public Stage::Visitor {TFlash &m_flash;TAffine m_cameraAff;TPixel32 m_bgColor;@@ -346,7 +346,7 @@ public:// FlashMovieGenerator//------------------------------------------------------------------------------class FlashMovieGenerator : public MovieGenerator::Imp {+class FlashMovieGenerator final : public MovieGenerator::Imp {public:TFlash m_flash;TAffine m_viewAff;diff --git a/toonz/sources/toonz/onionskinmaskgui.h b/toonz/sources/toonz/onionskinmaskgui.hindex 71f435eed..bbe0d3bcd 100644--- a/toonz/sources/toonz/onionskinmaskgui.h+++ b/toonz/sources/toonz/onionskinmaskgui.h@@ -19,7 +19,7 @@ void addOnionSkinCommand(QMenu *, bool isFilmStrip = false);// OnionSkinSwitcher//------------------------------------------------------------------------------class OnionSkinSwitcher : public QObject {+class OnionSkinSwitcher final : public QObject {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/outputsettingspopup.h b/toonz/sources/toonz/outputsettingspopup.hindex 3a1ee97c6..e737da564 100644--- a/toonz/sources/toonz/outputsettingspopup.h+++ b/toonz/sources/toonz/outputsettingspopup.h@@ -97,7 +97,7 @@ protected slots:void onFrameRateEditingFinished();};-class PreviewSettingsPopup : public OutputSettingsPopup {+class PreviewSettingsPopup final : public OutputSettingsPopup {public:PreviewSettingsPopup() : OutputSettingsPopup(true) {}};diff --git a/toonz/sources/toonz/overwritepopup.h b/toonz/sources/toonz/overwritepopup.hindex 0ee962546..0c16f6c7a 100644--- a/toonz/sources/toonz/overwritepopup.h+++ b/toonz/sources/toonz/overwritepopup.h@@ -40,7 +40,7 @@ class QPushButton;Additionally, the dialog could be \t CANCELED, either by closing itor pressing the "Cancel" button.*/-class OverwriteDialog : public DVGui::Dialog {+class OverwriteDialog final : public DVGui::Dialog {Q_OBJECTpublic:@@ -59,7 +59,7 @@ public:virtual bool operator()(const TFilePath &fp) const = 0;};- struct DecodeFileExistsFunc : public ExistsFunc {+ struct DecodeFileExistsFunc final : public ExistsFunc {ToonzScene *m_scene;DecodeFileExistsFunc(ToonzScene *scene) : m_scene(scene) {}diff --git a/toonz/sources/toonz/pane.h b/toonz/sources/toonz/pane.hindex 62934ac97..253f4c699 100644--- a/toonz/sources/toonz/pane.h+++ b/toonz/sources/toonz/pane.h@@ -53,7 +53,7 @@ signals:* context menu*/-class TPanelTitleBarButtonForSafeArea : public TPanelTitleBarButton {+class TPanelTitleBarButtonForSafeArea final : public TPanelTitleBarButton {Q_OBJECTpublic:TPanelTitleBarButtonForSafeArea(QWidget *parent,@@ -74,7 +74,7 @@ protected slots://-----------------------------------------------------------------------------//! a buttonset can group different TPanelTitleBarButton-class TPanelTitleBarButtonSet : public QObject {+class TPanelTitleBarButtonSet final : public QObject {Q_OBJECTstd::vector<TPanelTitleBarButton *> m_buttons;@@ -92,7 +92,7 @@ signals://------------------------------------------------------------------------------class TPanelTitleBar : public QFrame {+class TPanelTitleBar final : public QFrame {Q_OBJECTbool m_isActive;diff --git a/toonz/sources/toonz/pltgizmopopup.cpp b/toonz/sources/toonz/pltgizmopopup.cppindex d150b1700..b1e307699 100644--- a/toonz/sources/toonz/pltgizmopopup.cpp+++ b/toonz/sources/toonz/pltgizmopopup.cpp@@ -68,7 +68,7 @@ void getStyleIds(std::vector<int> &styleIds, const TStyleSelection &selection) {// GizmoUndo//------------------------------------------------------------------------------class GizmoUndo : public TUndo {+class GizmoUndo final : public TUndo {TStyleSelection m_selection;std::vector<TPixel32> m_oldColors, m_newColors;diff --git a/toonz/sources/toonz/pltgizmopopup.h b/toonz/sources/toonz/pltgizmopopup.hindex b971d260e..2f4528e3d 100644--- a/toonz/sources/toonz/pltgizmopopup.h+++ b/toonz/sources/toonz/pltgizmopopup.h@@ -12,7 +12,7 @@// ValueAdjuster//------------------------------------------------------------------------------class ValueAdjuster : public QWidget {+class ValueAdjuster final : public QWidget {Q_OBJECTDVGui::DoubleLineEdit *m_valueLineEdit;@@ -37,7 +37,7 @@ signals:// ValueShifter//------------------------------------------------------------------------------class ValueShifter : public QWidget {+class ValueShifter final : public QWidget {Q_OBJECTDVGui::DoubleLineEdit *m_valueLineEdit;@@ -64,7 +64,7 @@ signals:// TODO: spostare il colorfield qui dentro-class ColorFader : public QWidget {+class ColorFader final : public QWidget {Q_OBJECTDVGui::DoubleLineEdit *m_valueLineEdit;@@ -88,7 +88,7 @@ signals:// PltGizmoPopup//------------------------------------------------------------------------------class PltGizmoPopup : public DVGui::Dialog {+class PltGizmoPopup final : public DVGui::Dialog {Q_OBJECTDVGui::ColorField *m_colorFld;diff --git a/toonz/sources/toonz/preferencespopup.h b/toonz/sources/toonz/preferencespopup.hindex e508e133e..4fd3d15fa 100644--- a/toonz/sources/toonz/preferencespopup.h+++ b/toonz/sources/toonz/preferencespopup.h@@ -30,7 +30,7 @@ class QLabel;// PreferencesPopup definition//**********************************************************************************-class PreferencesPopup : public QDialog {+class PreferencesPopup final : public QDialog {Q_OBJECTpublic:@@ -151,7 +151,7 @@ private slots:// PreferencesPopup::FormatProperties definition//**********************************************************************************-class PreferencesPopup::FormatProperties : public DVGui::Dialog {+class PreferencesPopup::FormatProperties final : public DVGui::Dialog {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/previewer.cpp b/toonz/sources/toonz/previewer.cppindex 79482ece9..bcc3d8ac6 100644--- a/toonz/sources/toonz/previewer.cpp+++ b/toonz/sources/toonz/previewer.cpp@@ -126,7 +126,7 @@ inline bool contains(const QRegion ®ion, const TRect &rect) {// Previewer::Imp//------------------------class Previewer::Imp : public TRenderPort {+class Previewer::Imp final : public TRenderPort {public:// All useful infos about a frame under Previewer's managementstruct FrameInfo {@@ -768,7 +768,7 @@ static DVGui::ProgressDialog *Pd = 0;//------------------------------------------------------------------------------class ProgressBarMessager : public TThread::Message {+class ProgressBarMessager final : public TThread::Message {public:int m_choice;int m_val;@@ -814,7 +814,7 @@ public://------------------------------------------------------------------------------class SavePreviewedPopup : public FileBrowserPopup {+class SavePreviewedPopup final : public FileBrowserPopup {Previewer *m_p;public:diff --git a/toonz/sources/toonz/previewer.h b/toonz/sources/toonz/previewer.hindex 9753f307b..566d77b15 100644--- a/toonz/sources/toonz/previewer.h+++ b/toonz/sources/toonz/previewer.h@@ -28,7 +28,7 @@ class TFilePath;// Previewer//------------------------------------------------------------------------------class Previewer : public QObject, public TFxObserver {+class Previewer final : public QObject, public TFxObserver {Q_OBJECTclass Imp;diff --git a/toonz/sources/toonz/previewfxmanager.cpp b/toonz/sources/toonz/previewfxmanager.cppindex 0e0718958..ae01623c2 100644--- a/toonz/sources/toonz/previewfxmanager.cpp+++ b/toonz/sources/toonz/previewfxmanager.cpp@@ -142,7 +142,7 @@ inline void adaptView(FlipBook *flipbook, TDimension cameraSize) {//! This class receives and handles notifications from a TRenderer executing the//! preview fx//! rendering job.-class PreviewFxRenderPort : public QObject, public TRenderPort {+class PreviewFxRenderPort final : public QObject, public TRenderPort {PreviewFxInstance *m_owner;public:diff --git a/toonz/sources/toonz/previewfxmanager.h b/toonz/sources/toonz/previewfxmanager.hindex 0c5ff4f6b..5a1f2c1fa 100644--- a/toonz/sources/toonz/previewfxmanager.h+++ b/toonz/sources/toonz/previewfxmanager.h@@ -55,7 +55,7 @@ or the whole scene's fxs.\sa FlipBook, TXshLevelHandle, TFxHandle, TXsheetHandle classes.*/-class PreviewFxManager : public QObject {+class PreviewFxManager final : public QObject {Q_OBJECTTThread::Mutex m_mutex;diff --git a/toonz/sources/toonz/print.cpp b/toonz/sources/toonz/print.cppindex 5810bd7be..d28710985 100644--- a/toonz/sources/toonz/print.cpp+++ b/toonz/sources/toonz/print.cpp@@ -66,7 +66,7 @@ void printCurrentFrame() {//=============================================================================-class PrintCommand : public MenuItemHandler {+class PrintCommand final : public MenuItemHandler {public:PrintCommand() : MenuItemHandler(MI_Print) {}void execute() override {diff --git a/toonz/sources/toonz/projectpopup.h b/toonz/sources/toonz/projectpopup.hindex 2484c96f3..782d176f3 100644--- a/toonz/sources/toonz/projectpopup.h+++ b/toonz/sources/toonz/projectpopup.h@@ -21,7 +21,7 @@ class QComboBox;//=============================================================================// ProjectDvDirModelRootNode-class ProjectDvDirModelRootNode : public DvDirModelNode {+class ProjectDvDirModelRootNode final : public DvDirModelNode {public:ProjectDvDirModelRootNode();void refreshChildren() override;@@ -45,7 +45,7 @@ public://=============================================================================// ProjectDvDirModelSpecialFileFolderNode-class ProjectDvDirModelSpecialFileFolderNode+class ProjectDvDirModelSpecialFileFolderNode final: public ProjectDvDirModelFileFolderNode {QPixmap m_pixmap;@@ -61,7 +61,8 @@ public://=============================================================================// ProjectDvDirModelProjectNode-class ProjectDvDirModelProjectNode : public ProjectDvDirModelFileFolderNode {+class ProjectDvDirModelProjectNode final+ : public ProjectDvDirModelFileFolderNode {public:ProjectDvDirModelProjectNode(DvDirModelNode *parent, const TFilePath &path): ProjectDvDirModelFileFolderNode(parent, path) {}@@ -72,7 +73,7 @@ public://=============================================================================// ProjectDirModel-class ProjectDirModel : public QAbstractItemModel {+class ProjectDirModel final : public QAbstractItemModel {DvDirModelNode *m_root;public:@@ -137,7 +138,7 @@ protected:// ProjectSettingsPopup//------------------------------------------------------------------------------class ProjectSettingsPopup : public ProjectPopup {+class ProjectSettingsPopup final : public ProjectPopup {Q_OBJECTpublic:@@ -154,7 +155,7 @@ public slots:// ProjectCreatePopup//------------------------------------------------------------------------------class ProjectCreatePopup : public ProjectPopup {+class ProjectCreatePopup final : public ProjectPopup {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/psdsettingspopup.h b/toonz/sources/toonz/psdsettingspopup.hindex 02afbecd6..1b3a7a1be 100644--- a/toonz/sources/toonz/psdsettingspopup.h+++ b/toonz/sources/toonz/psdsettingspopup.h@@ -23,15 +23,16 @@ class CheckBox;// PsdSettingsPopup//------------------------------------------------------------------------------class PsdSettingsPopup : public DVGui::Dialog {+class PsdSettingsPopup final : public DVGui::Dialog {Q_OBJECT// Loading Mode// FLAT: psd flat image// FRAMES: all psd layers are frames of a single Tlevel// COLUMNS: each psd layer is a TLevel with only one frame.// FOLDER: each psd layer is a TLevel and- // each psd folder is a TLevel where each psd layer- //contained+ // each psd folder is a TLevel where each psd+ // layer+ // contained// into folder is a frame of TLevelenum Mode { FLAT, FRAMES, COLUMNS, FOLDER };diff --git a/toonz/sources/toonz/rendercommand.cpp b/toonz/sources/toonz/rendercommand.cppindex 72e047cd6..1171ddbec 100644--- a/toonz/sources/toonz/rendercommand.cpp+++ b/toonz/sources/toonz/rendercommand.cpp@@ -99,7 +99,7 @@ TRaster32P loadLight() {//=========================================================-class OnRenderCompleted : public TThread::Message {+class OnRenderCompleted final : public TThread::Message {TFilePath m_fp;bool m_error;@@ -378,14 +378,14 @@ void RenderCommand::flashRender() {//===================================================================-class RenderListener : public DVGui::ProgressDialog,- public MovieRenderer::Listener {+class RenderListener final : public DVGui::ProgressDialog,+ public MovieRenderer::Listener {QString m_progressBarString;int m_frameCounter;TRenderer *m_renderer;bool m_error;- class Message : public TThread::Message {+ class Message final : public TThread::Message {RenderListener *m_pb;int m_frame;QString m_labelText;@@ -595,8 +595,8 @@ void RenderCommand::resetBgColor() {//===================================================================-class MultimediaProgressBar : public DVGui::ProgressDialog,- public MultimediaRenderer::Listener {+class MultimediaProgressBar final : public DVGui::ProgressDialog,+ public MultimediaRenderer::Listener {QString m_progressBarString;int m_frameCounter;int m_columnCounter;@@ -605,7 +605,7 @@ class MultimediaProgressBar : public DVGui::ProgressDialog,//----------------------------------------------------------- class Message : public TThread::Message {+ class Message final : public TThread::Message {MultimediaProgressBar *m_pb;int m_frame;int m_column;diff --git a/toonz/sources/toonz/renumberpopup.h b/toonz/sources/toonz/renumberpopup.hindex 53ba86a34..9d30ef8b6 100644--- a/toonz/sources/toonz/renumberpopup.h+++ b/toonz/sources/toonz/renumberpopup.h@@ -14,7 +14,7 @@ class QPushButton;// RenumberPopup//------------------------------------------------------------------------------class RenumberPopup : public DVGui::Dialog {+class RenumberPopup final : public DVGui::Dialog {Q_OBJECTQPushButton *m_okBtn;diff --git a/toonz/sources/toonz/reslist.h b/toonz/sources/toonz/reslist.hindex c85c55859..7f718387d 100644--- a/toonz/sources/toonz/reslist.h+++ b/toonz/sources/toonz/reslist.h@@ -27,7 +27,7 @@files as well.*/-class ResListManager : public QObject {+class ResListManager final : public QObject {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/ruler.h b/toonz/sources/toonz/ruler.hindex 3065ce803..114f37bcc 100644--- a/toonz/sources/toonz/ruler.h+++ b/toonz/sources/toonz/ruler.h@@ -16,7 +16,7 @@ class SceneViewer;/*! La classe si occupa della visualizzazione e della gestionedi una linea guida (puo' essere orizzontale o verticale)*/-class Ruler : public QWidget {+class Ruler final : public QWidget {Q_OBJECTQColor m_parentBgColor;diff --git a/toonz/sources/toonz/runscriptcommand.cpp b/toonz/sources/toonz/runscriptcommand.cppindex 89fba7aab..e32b189d9 100644--- a/toonz/sources/toonz/runscriptcommand.cpp+++ b/toonz/sources/toonz/runscriptcommand.cpp@@ -17,7 +17,7 @@#include <QFileDialog>-class RunScriptCommand : public MenuItemHandler {+class RunScriptCommand final : public MenuItemHandler {public:RunScriptCommand() : MenuItemHandler("MI_RunScript") {}void execute() override;diff --git a/toonz/sources/toonz/savepresetpopup.h b/toonz/sources/toonz/savepresetpopup.hindex c2bcfd9c3..b2b061703 100644--- a/toonz/sources/toonz/savepresetpopup.h+++ b/toonz/sources/toonz/savepresetpopup.h@@ -10,7 +10,7 @@// SavePresetPopup//------------------------------------------------------------------------------class SavePresetPopup : public DVGui::Dialog {+class SavePresetPopup final : public DVGui::Dialog {Q_OBJECTDVGui::LineEdit *m_nameFld;diff --git a/toonz/sources/toonz/scanpopup.cpp b/toonz/sources/toonz/scanpopup.cppindex 483a71b48..718232c57 100644--- a/toonz/sources/toonz/scanpopup.cpp+++ b/toonz/sources/toonz/scanpopup.cpp@@ -876,7 +876,7 @@ OpenPopupCommandHandler<ScanSettingsPopup> openScanSettingsPopup(OpenPopupCommandHandler<AutocenterPopup> openAutocenterPopup(MI_Autocenter);#endif-class ScanCommand : public MenuItemHandler {+class ScanCommand final : public MenuItemHandler {public:ScanCommand() : MenuItemHandler("MI_Scan") {}void execute() override { doScan(); }@@ -888,7 +888,7 @@ public:////=========================================================================================-class SetCropboxCommand : public MenuItemHandler {+class SetCropboxCommand final : public MenuItemHandler {TTool *m_currentTool;public:@@ -957,7 +957,7 @@ public:////=========================================================================================-class ResetCropboxCommand : public MenuItemHandler {+class ResetCropboxCommand final : public MenuItemHandler {public:ResetCropboxCommand() : MenuItemHandler("MI_ResetScanCropbox") {}@@ -977,7 +977,7 @@ public:////=========================================================================================-class SetScanCropboxTool : public TTool {+class SetScanCropboxTool final : public TTool {const std::string m_imgId;TScannerParameters *m_parameters;int m_scaling;diff --git a/toonz/sources/toonz/scanpopup.h b/toonz/sources/toonz/scanpopup.hindex 58b40b4c1..aa133cc06 100644--- a/toonz/sources/toonz/scanpopup.h+++ b/toonz/sources/toonz/scanpopup.h@@ -21,7 +21,7 @@ class ProgressDialog;// MyScannerListener//------------------------------------------------------------------------------class MyScannerListener : public QObject, public TScannerListener {+class MyScannerListener final : public QObject, public TScannerListener {Q_OBJECTint m_current;@@ -46,7 +46,7 @@ protected slots:// DefineScannerPopup//------------------------------------------------------------------------------class DefineScannerPopup : public DVGui::Dialog {+class DefineScannerPopup final : public DVGui::Dialog {Q_OBJECTQComboBox *m_scanDriverOm;@@ -61,7 +61,7 @@ public slots:// ScanSettingsPopup//------------------------------------------------------------------------------class ScanSettingsPopup : public DVGui::Dialog {+class ScanSettingsPopup final : public DVGui::Dialog {Q_OBJECTQLabel *m_scannerNameLbl;DVGui::CheckBox *m_reverseOrderCB;@@ -99,7 +99,7 @@ public slots:// AutocenterPopup//------------------------------------------------------------------------------class AutocenterPopup : public DVGui::Dialog {+class AutocenterPopup final : public DVGui::Dialog {Q_OBJECTDVGui::CheckBox *m_autocenter;QComboBox *m_pegbarHoles;diff --git a/toonz/sources/toonz/scenesettingspopup.cpp b/toonz/sources/toonz/scenesettingspopup.cppindex 2f30e7985..d3c7ba7a7 100644--- a/toonz/sources/toonz/scenesettingspopup.cpp+++ b/toonz/sources/toonz/scenesettingspopup.cpp@@ -49,7 +49,7 @@ const int labelSize = 110;//-----------------------------------------------------------------------------/*-class CheckBoardRect : public QWidget+class CheckBoardRect final : public QWidget{TRaster32P m_ras;diff --git a/toonz/sources/toonz/scenesettingspopup.h b/toonz/sources/toonz/scenesettingspopup.hindex 801d0b9fc..1160f13d8 100644--- a/toonz/sources/toonz/scenesettingspopup.h+++ b/toonz/sources/toonz/scenesettingspopup.h@@ -17,7 +17,7 @@ class QComboBox;// SceneSettingsPopup//------------------------------------------------------------------------------class SceneSettingsPopup : public QDialog {+class SceneSettingsPopup final : public QDialog {Q_OBJECTDVGui::DoubleLineEdit *m_frameRateFld;diff --git a/toonz/sources/toonz/sceneviewer.cpp b/toonz/sources/toonz/sceneviewer.cppindex 7e0b9e9ab..ff7c79fbb 100644--- a/toonz/sources/toonz/sceneviewer.cpp+++ b/toonz/sources/toonz/sceneviewer.cpp@@ -96,7 +96,7 @@ std::set<TGlContext>//-------------------------------------------------------------------------------QGLWidget *touchProxy() {- struct GLWidgetProxy : public TGLDisplayListsProxy {+ struct GLWidgetProxy final : public TGLDisplayListsProxy {~GLWidgetProxy() {delete l_proxy;l_proxy = 0;@@ -318,7 +318,7 @@ void executeCheck(int checkType) {//------------------------------------------------------------------------------class TCheckToggleCommand : public MenuItemHandler {+class TCheckToggleCommand final : public MenuItemHandler {public:TCheckToggleCommand() : MenuItemHandler("MI_TCheck") {}void execute() override { executeCheck(ToonzCheck::eTransparency); }@@ -326,7 +326,7 @@ public://------------------------------------------------------------------------------class ICheckToggleCommand : public MenuItemHandler {+class ICheckToggleCommand final : public MenuItemHandler {public:ICheckToggleCommand() : MenuItemHandler("MI_ICheck") {}void execute() override { executeCheck(ToonzCheck::eInk); }@@ -334,7 +334,7 @@ public://------------------------------------------------------------------------------class PCheckToggleCommand : public MenuItemHandler {+class PCheckToggleCommand final : public MenuItemHandler {public:PCheckToggleCommand() : MenuItemHandler("MI_PCheck") {}void execute() override { executeCheck(ToonzCheck::ePaint); }@@ -342,7 +342,7 @@ public://------------------------------------------------------------------------------class BCheckToggleCommand : public MenuItemHandler {+class BCheckToggleCommand final : public MenuItemHandler {public:BCheckToggleCommand() : MenuItemHandler("MI_BCheck") {}void execute() override { executeCheck(ToonzCheck::eBlackBg); }@@ -350,7 +350,7 @@ public://------------------------------------------------------------------------------class TAutocloseToggleCommand : public MenuItemHandler {+class TAutocloseToggleCommand final : public MenuItemHandler {public:TAutocloseToggleCommand() : MenuItemHandler("MI_ACheck") {}void execute() override { executeCheck(ToonzCheck::eAutoclose); }@@ -358,7 +358,7 @@ public://------------------------------------------------------------------------------class TGapToggleCommand : public MenuItemHandler {+class TGapToggleCommand final : public MenuItemHandler {public:TGapToggleCommand() : MenuItemHandler("MI_GCheck") {}void execute() override { executeCheck(ToonzCheck::eGap); }@@ -366,7 +366,7 @@ public://------------------------------------------------------------------------------class TInksOnlyToggleCommand : public MenuItemHandler {+class TInksOnlyToggleCommand final : public MenuItemHandler {public:TInksOnlyToggleCommand() : MenuItemHandler("MI_IOnly") {}void execute() override { executeCheck(ToonzCheck::eInksOnly); }@@ -375,7 +375,7 @@ public://-----------------------------------------------------------------------------/*! emphasize lines with style#1 regardless of the current style*/-class Ink1CheckToggleCommand : public MenuItemHandler {+class Ink1CheckToggleCommand final : public MenuItemHandler {public:Ink1CheckToggleCommand() : MenuItemHandler("MI_Ink1Check") {}void execute() override { executeCheck(ToonzCheck::eInk1); }@@ -383,7 +383,7 @@ public://=============================================================================-class TShiftTraceToggleCommand : public MenuItemHandler {+class TShiftTraceToggleCommand final : public MenuItemHandler {CommandId m_cmdId;public:@@ -440,7 +440,7 @@ public:TShiftTraceToggleCommand shiftTraceToggleCommand(MI_ShiftTrace),editShiftToggleCommand(MI_EditShift), noShiftToggleCommand(MI_NoShift);-class TResetShiftTraceCommand : public MenuItemHandler {+class TResetShiftTraceCommand final : public MenuItemHandler {public:TResetShiftTraceCommand() : MenuItemHandler(MI_ResetShift) {}void execute() override {@@ -1401,7 +1401,7 @@ void drawFpsGraph(int t0, int t1) {//------------------------------------------------------------------------------class Qt_GLContextManager : public TGLContextManager {+class Qt_GLContextManager final : public TGLContextManager {QGLContext *m_context;public:diff --git a/toonz/sources/toonz/sceneviewer.h b/toonz/sources/toonz/sceneviewer.hindex c1c34f97b..8923fbe67 100644--- a/toonz/sources/toonz/sceneviewer.h+++ b/toonz/sources/toonz/sceneviewer.h@@ -40,7 +40,7 @@ class FullScreenWidget;//=====================================================================-class ToggleCommandHandler : public MenuItemHandler {+class ToggleCommandHandler final : public MenuItemHandler {int m_status;public:@@ -56,9 +56,9 @@ public:// SceneViewer//------------------------------------------------------------------------------class SceneViewer : public QGLWidget,- public TTool::Viewer,- public Previewer::Listener {+class SceneViewer final : public QGLWidget,+ public TTool::Viewer,+ public Previewer::Listener {Q_OBJECTqreal m_pressure;diff --git a/toonz/sources/toonz/sceneviewercontextmenu.h b/toonz/sources/toonz/sceneviewercontextmenu.hindex ce656a45f..8d58e8161 100644--- a/toonz/sources/toonz/sceneviewercontextmenu.h+++ b/toonz/sources/toonz/sceneviewercontextmenu.h@@ -10,7 +10,7 @@ class TStageObjectId;class SceneViewer;class TXshColumn;-class SceneViewerContextMenu : public QMenu {+class SceneViewerContextMenu final : public QMenu {Q_OBJECTSceneViewer *m_viewer;int m_groupIndexToBeEntered;diff --git a/toonz/sources/toonz/sceneviewerevents.cpp b/toonz/sources/toonz/sceneviewerevents.cppindex 22cd34d46..4eb457b29 100644--- a/toonz/sources/toonz/sceneviewerevents.cpp+++ b/toonz/sources/toonz/sceneviewerevents.cpp@@ -656,7 +656,7 @@ break;//------------------------------------------------------------------------------class ViewerZoomer : public ImageUtils::ShortcutZoomer {+class ViewerZoomer final : public ImageUtils::ShortcutZoomer {public:ViewerZoomer(SceneViewer *parent) : ShortcutZoomer(parent) {}diff --git a/toonz/sources/toonz/scriptconsolepanel.h b/toonz/sources/toonz/scriptconsolepanel.hindex 7023452e3..987603950 100644--- a/toonz/sources/toonz/scriptconsolepanel.h+++ b/toonz/sources/toonz/scriptconsolepanel.h@@ -7,7 +7,7 @@class ScriptConsole;-class ScriptConsolePanel : public TPanel {+class ScriptConsolePanel final : public TPanel {Q_OBJECTScriptConsole *m_scriptConsole;diff --git a/toonz/sources/toonz/shifttracetool.cpp b/toonz/sources/toonz/shifttracetool.cppindex e21b0ff4c..db740ebda 100644--- a/toonz/sources/toonz/shifttracetool.cpp+++ b/toonz/sources/toonz/shifttracetool.cpp@@ -44,7 +44,7 @@ bool circumCenter(TPointD &out, const TPointD &a, const TPointD &b,//=============================================================================-class ShiftTraceTool : public TTool {+class ShiftTraceTool final : public TTool {public:enum CurveStatus {NoCurve,diff --git a/toonz/sources/toonz/shortcutpopup.cpp b/toonz/sources/toonz/shortcutpopup.cppindex 0b0f8a645..d3e7b011f 100644--- a/toonz/sources/toonz/shortcutpopup.cpp+++ b/toonz/sources/toonz/shortcutpopup.cpp@@ -33,7 +33,7 @@// ogni ShortcutItem rappresenta una QAction (e relativo Shortcut)//------------------------------------------------------------------------------class ShortcutItem : public QTreeWidgetItem {+class ShortcutItem final : public QTreeWidgetItem {QAction *m_action;public:diff --git a/toonz/sources/toonz/shortcutpopup.h b/toonz/sources/toonz/shortcutpopup.hindex b4e8e60e0..eaa06e10a 100644--- a/toonz/sources/toonz/shortcutpopup.h+++ b/toonz/sources/toonz/shortcutpopup.h@@ -21,7 +21,7 @@ class ShortcutItem;// Per cancellarlo bisogna chiamare removeShortcut()//------------------------------------------------------------------------------class ShortcutViewer : public QWidget {+class ShortcutViewer final : public QWidget {Q_OBJECTQAction *m_action;@@ -51,7 +51,7 @@ signals:// Serve per selezionare la QAction corrente//------------------------------------------------------------------------------class ShortcutTree : public QTreeWidget {+class ShortcutTree final : public QTreeWidget {Q_OBJECTstd::vector<ShortcutItem *> m_items;@@ -80,7 +80,7 @@ signals:// Questo e' il popup che l'utente utilizza per modificare gli shortcut//------------------------------------------------------------------------------class ShortcutPopup : public DVGui::Dialog {+class ShortcutPopup final : public DVGui::Dialog {Q_OBJECTQPushButton *m_removeBtn;ShortcutViewer *m_sViewer;diff --git a/toonz/sources/toonz/subcameramanager.h b/toonz/sources/toonz/subcameramanager.hindex f8eaf505d..e77e9d554 100644--- a/toonz/sources/toonz/subcameramanager.h+++ b/toonz/sources/toonz/subcameramanager.h@@ -55,7 +55,7 @@ public:// PreviewSubCameraManager//---------------------------------class PreviewSubCameraManager : public SceneViewerInteractiveGadget {+class PreviewSubCameraManager final : public SceneViewerInteractiveGadget {TRect m_editingInterestRect;UCHAR m_dragType;bool m_clickAndDrag;diff --git a/toonz/sources/toonz/subscenecommand.cpp b/toonz/sources/toonz/subscenecommand.cppindex e1a7fc645..07ab17f5d 100644--- a/toonz/sources/toonz/subscenecommand.cpp+++ b/toonz/sources/toonz/subscenecommand.cpp@@ -895,7 +895,7 @@ set<int> explode(TXsheet *xsh, TXsheet *subXsh, int index,// OpenChildUndo//------------------------------------------------------------------------------class OpenChildUndo : public TUndo {+class OpenChildUndo final : public TUndo {int m_row, m_col;public:@@ -931,7 +931,7 @@ public:// CloseChildUndo//------------------------------------------------------------------------------class CloseChildUndo : public TUndo {+class CloseChildUndo final : public TUndo {std::vector<std::pair<int, int>> m_cells;public:@@ -1532,7 +1532,7 @@ public:// CollapseFxUndo//------------------------------------------------------------------------------class CollapseFxUndo : public CollapseUndo {+class CollapseFxUndo final : public CollapseUndo {set<TFx *> m_fxs;QMap<TFx *, FxConnections> m_fxConnections;@@ -1624,7 +1624,7 @@ public:// ExplodeChildUndoRemovingColumn//------------------------------------------------------------------------------class ExplodeChildUndoRemovingColumn : public TUndo {+class ExplodeChildUndoRemovingColumn final : public TUndo {std::set<int> m_newIndexs;int m_index;StageObjectsData *m_oldData;@@ -1914,7 +1914,7 @@ public:// ExplodeChildUndo//------------------------------------------------------------------------------class ExplodeChildUndoWithoutRemovingColumn : public TUndo {+class ExplodeChildUndoWithoutRemovingColumn final : public TUndo {std::set<int> m_newIndexs;int m_index, m_from, m_to;@@ -2098,7 +2098,7 @@ public:// OpenChildCommand//------------------------------------------------------------------------------class OpenChildCommand : public MenuItemHandler {+class OpenChildCommand final : public MenuItemHandler {public:OpenChildCommand() : MenuItemHandler(MI_OpenChild) {}void execute() override { openSubXsheet(); }@@ -2108,7 +2108,7 @@ public:// CloseChildCommand//------------------------------------------------------------------------------class CloseChildCommand : public MenuItemHandler {+class CloseChildCommand final : public MenuItemHandler {public:CloseChildCommand() : MenuItemHandler(MI_CloseChild) {}void execute() override { closeSubXsheet(1); }@@ -2118,7 +2118,7 @@ public:// ToggleEditInPlaceCommand//------------------------------------------------------------------------------class ToggleEditInPlaceCommand : public MenuItemHandler {+class ToggleEditInPlaceCommand final : public MenuItemHandler {public:ToggleEditInPlaceCommand() : MenuItemHandler(MI_ToggleEditInPlace) {}void execute() override { toggleEditInPlace(); }diff --git a/toonz/sources/toonz/svncleanupdialog.h b/toonz/sources/toonz/svncleanupdialog.hindex dceb81c2a..596f695d2 100644--- a/toonz/sources/toonz/svncleanupdialog.h+++ b/toonz/sources/toonz/svncleanupdialog.h@@ -11,7 +11,7 @@ class QLabel;//------------------------------------------------------------------------------class SVNCleanupDialog : public DVGui::Dialog {+class SVNCleanupDialog final : public DVGui::Dialog {Q_OBJECTQPushButton *m_closeButton;diff --git a/toonz/sources/toonz/svncommitdialog.h b/toonz/sources/toonz/svncommitdialog.hindex 7435f6816..60df92dd1 100644--- a/toonz/sources/toonz/svncommitdialog.h+++ b/toonz/sources/toonz/svncommitdialog.h@@ -22,7 +22,7 @@ class TXshLevel;//------------------------------------------------------------------------------class SVNCommitDialog : public DVGui::Dialog {+class SVNCommitDialog final : public DVGui::Dialog {Q_OBJECTQLabel *m_waitingLabel;@@ -116,7 +116,7 @@ signals://------------------------------------------------------------------------------class SVNCommitFrameRangeDialog : public DVGui::Dialog {+class SVNCommitFrameRangeDialog final : public DVGui::Dialog {Q_OBJECTQLabel *m_waitingLabel;diff --git a/toonz/sources/toonz/svndeletedialog.h b/toonz/sources/toonz/svndeletedialog.hindex ec19195ca..571dad7d4 100644--- a/toonz/sources/toonz/svndeletedialog.h+++ b/toonz/sources/toonz/svndeletedialog.h@@ -15,7 +15,7 @@ class QFile;//------------------------------------------------------------------------------class SVNDeleteDialog : public DVGui::Dialog {+class SVNDeleteDialog final : public DVGui::Dialog {Q_OBJECTQLabel *m_waitingLabel;diff --git a/toonz/sources/toonz/svnlockdialog.h b/toonz/sources/toonz/svnlockdialog.hindex a241e6d20..c0a44daef 100644--- a/toonz/sources/toonz/svnlockdialog.h+++ b/toonz/sources/toonz/svnlockdialog.h@@ -17,7 +17,7 @@ class QFile;//------------------------------------------------------------------------------class SVNLockDialog : public DVGui::Dialog {+class SVNLockDialog final : public DVGui::Dialog {Q_OBJECTQLabel *m_waitingLabel;@@ -76,7 +76,7 @@ signals://------------------------------------------------------------------------------class SVNLockInfoDialog : public DVGui::Dialog {+class SVNLockInfoDialog final : public DVGui::Dialog {Q_OBJECTSVNStatus m_status;diff --git a/toonz/sources/toonz/svnlockframerangedialog.h b/toonz/sources/toonz/svnlockframerangedialog.hindex 5c28b1ff0..edae3fa51 100644--- a/toonz/sources/toonz/svnlockframerangedialog.h+++ b/toonz/sources/toonz/svnlockframerangedialog.h@@ -15,7 +15,7 @@ class QPlainTextEdit;//------------------------------------------------------------------------------class SVNLockFrameRangeDialog : public DVGui::Dialog {+class SVNLockFrameRangeDialog final : public DVGui::Dialog {Q_OBJECTQLabel *m_waitingLabel;@@ -74,7 +74,7 @@ signals://------------------------------------------------------------------------------class SVNLockMultiFrameRangeDialog : public DVGui::Dialog {+class SVNLockMultiFrameRangeDialog final : public DVGui::Dialog {Q_OBJECTQLabel *m_waitingLabel;@@ -130,7 +130,7 @@ signals://------------------------------------------------------------------------------class SVNUnlockFrameRangeDialog : public DVGui::Dialog {+class SVNUnlockFrameRangeDialog final : public DVGui::Dialog {Q_OBJECTQLabel *m_waitingLabel;@@ -175,7 +175,7 @@ signals://------------------------------------------------------------------------------class SVNUnlockMultiFrameRangeDialog : public DVGui::Dialog {+class SVNUnlockMultiFrameRangeDialog final : public DVGui::Dialog {Q_OBJECTQLabel *m_waitingLabel;@@ -216,7 +216,7 @@ signals://------------------------------------------------------------------------------class SVNFrameRangeLockInfoDialog : public DVGui::Dialog {+class SVNFrameRangeLockInfoDialog final : public DVGui::Dialog {Q_OBJECTQString m_workingDir;@@ -238,7 +238,7 @@ protected slots://------------------------------------------------------------------------------class SVNMultiFrameRangeLockInfoDialog : public DVGui::Dialog {+class SVNMultiFrameRangeLockInfoDialog final : public DVGui::Dialog {Q_OBJECTQString m_workingDir;diff --git a/toonz/sources/toonz/svnpurgedialog.h b/toonz/sources/toonz/svnpurgedialog.hindex ff42cc45b..c97c26dd3 100644--- a/toonz/sources/toonz/svnpurgedialog.h+++ b/toonz/sources/toonz/svnpurgedialog.h@@ -12,7 +12,7 @@ class QLabel;//------------------------------------------------------------------------------class SVNPurgeDialog : public DVGui::Dialog {+class SVNPurgeDialog final : public DVGui::Dialog {Q_OBJECTQString m_workingDir;diff --git a/toonz/sources/toonz/svnrevertdialog.h b/toonz/sources/toonz/svnrevertdialog.hindex 3b782c5da..777955fbc 100644--- a/toonz/sources/toonz/svnrevertdialog.h+++ b/toonz/sources/toonz/svnrevertdialog.h@@ -14,7 +14,7 @@ class QCheckBox;//------------------------------------------------------------------------------class SVNRevertDialog : public DVGui::Dialog {+class SVNRevertDialog final : public DVGui::Dialog {Q_OBJECTQLabel *m_waitingLabel;@@ -72,7 +72,7 @@ signals://------------------------------------------------------------------------------class SVNRevertFrameRangeDialog : public DVGui::Dialog {+class SVNRevertFrameRangeDialog final : public DVGui::Dialog {Q_OBJECTQLabel *m_waitingLabel;diff --git a/toonz/sources/toonz/svnupdateandlockdialog.h b/toonz/sources/toonz/svnupdateandlockdialog.hindex c692cc7fe..1b8e2d846 100644--- a/toonz/sources/toonz/svnupdateandlockdialog.h+++ b/toonz/sources/toonz/svnupdateandlockdialog.h@@ -15,7 +15,7 @@ class QCheckBox;//------------------------------------------------------------------------------class SVNUpdateAndLockDialog : public DVGui::Dialog {+class SVNUpdateAndLockDialog final : public DVGui::Dialog {Q_OBJECTQLabel *m_waitingLabel;diff --git a/toonz/sources/toonz/svnupdatedialog.h b/toonz/sources/toonz/svnupdatedialog.hindex 1d475b8b6..b410a91dd 100644--- a/toonz/sources/toonz/svnupdatedialog.h+++ b/toonz/sources/toonz/svnupdatedialog.h@@ -17,7 +17,7 @@ class QCheckBox;//------------------------------------------------------------------------------class SVNUpdateDialog : public DVGui::Dialog {+class SVNUpdateDialog final : public DVGui::Dialog {Q_OBJECTQPushButton *m_closeButton;diff --git a/toonz/sources/toonz/tapp.h b/toonz/sources/toonz/tapp.hindex e742a1d5c..e057482f1 100644--- a/toonz/sources/toonz/tapp.h+++ b/toonz/sources/toonz/tapp.h@@ -59,8 +59,8 @@ TApp::instance()->getCurrentObject()->getObjectId();application and tonotify through event handling to the rest of the code.*/-class TApp : public QObject,- public TTool::Application // Singleton+class TApp final : public QObject,+ public TTool::Application // Singleton{Q_OBJECTdiff --git a/toonz/sources/toonz/tasksviewer.cpp b/toonz/sources/toonz/tasksviewer.cppindex 72ab3aa68..b9e99d88b 100644--- a/toonz/sources/toonz/tasksviewer.cpp+++ b/toonz/sources/toonz/tasksviewer.cpp@@ -230,7 +230,7 @@ bool containsTask(const TFarmTask::Dependencies &dependencies,//------------------------------------------------------------------------------class DependencyItem : public QListWidgetItem {+class DependencyItem final : public QListWidgetItem {public:TFarmTask *m_task;diff --git a/toonz/sources/toonz/tasksviewer.h b/toonz/sources/toonz/tasksviewer.hindex ae83cfce6..3013cddaf 100644--- a/toonz/sources/toonz/tasksviewer.h+++ b/toonz/sources/toonz/tasksviewer.h@@ -17,14 +17,14 @@ class TaskTreeView;class QListWidgetItem;class QComboBox;-class TaskTreeModel : public TreeModel {+class TaskTreeModel final : public TreeModel {Q_OBJECT// QModelIndex m_selectedIndex;TaskTreeView *m_view;public:- class Item : public TreeModel::Item {+ class Item final : public TreeModel::Item {friend class TaskTreeModel;public:@@ -69,7 +69,7 @@ private://------------------------------------------------------------------------------------------class TasksViewer;-class TaskTreeView : public TreeView {+class TaskTreeView final : public TreeView {Q_OBJECTpublic:@@ -93,7 +93,7 @@ class TFarmTask;class QTextEdit;class QListWidget;-class TaskSheet : public QScrollArea {+class TaskSheet final : public QScrollArea {Q_OBJECTTasksViewer *m_viewer;@@ -161,7 +161,7 @@ public://=============================================================================class QToolBar;-class TasksViewer : public QSplitter, public BatchesController::Observer {+class TasksViewer final : public QSplitter, public BatchesController::Observer {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/testpanel.cpp b/toonz/sources/toonz/testpanel.cppindex 70f584561..e7d1989ab 100644--- a/toonz/sources/toonz/testpanel.cpp+++ b/toonz/sources/toonz/testpanel.cpp@@ -113,7 +113,7 @@ void TestPanel::onColorValueChanged(const TPixel32 &, bool isDragging) {//=============================================================================// OpenFloatingTestPanel-class OpenFloatingTestPanel : public MenuItemHandler {+class OpenFloatingTestPanel final : public MenuItemHandler {public:OpenFloatingTestPanel() : MenuItemHandler(MI_OpenTest) {}void execute() override {diff --git a/toonz/sources/toonz/testpanel.h b/toonz/sources/toonz/testpanel.hindex bab861515..0e300f3c7 100644--- a/toonz/sources/toonz/testpanel.h+++ b/toonz/sources/toonz/testpanel.h@@ -9,7 +9,7 @@//=============================================================================// TestPanel-class TestPanel : public TPanel {+class TestPanel final : public TPanel {Q_OBJECTpublic:diff --git a/toonz/sources/toonz/tfarmstuff.h b/toonz/sources/toonz/tfarmstuff.hindex 3f75132bb..4f0c75ebb 100644--- a/toonz/sources/toonz/tfarmstuff.h+++ b/toonz/sources/toonz/tfarmstuff.h@@ -33,7 +33,7 @@ public://-------------------------------------------------------------------------------class TaskInfoPage : public TFarmPage {+class TaskInfoPage final : public TFarmPage {public:TaskInfoPage(TWidget *parent);~TaskInfoPage();@@ -90,7 +90,7 @@ protected://-------------------------------------------------------------------------------class SubmitPage : public TFarmPage {+class SubmitPage final : public TFarmPage {public:SubmitPage(TWidget *parent);~SubmitPage();@@ -110,7 +110,7 @@ public://-------------------------------------------------------------------------------class TaskConfigPanel : public TWidget {+class TaskConfigPanel final : public TWidget {public:TaskConfigPanel(TWidget *parent) : TWidget(parent) {}@@ -120,7 +120,7 @@ public://-------------------------------------------------------------------------------class SubmitRenderPopup : public TModalPopup {+class SubmitRenderPopup final : public TModalPopup {public:SubmitRenderPopup(TWidget *parent, std::string name);~SubmitRenderPopup();@@ -144,7 +144,7 @@ private://-------------------------------------------------------------------------------class SubmitCleanupPopup : public TModalPopup {+class SubmitCleanupPopup final : public TModalPopup {public:SubmitCleanupPopup(TWidget *parent, std::string name);~SubmitCleanupPopup();@@ -168,7 +168,7 @@ private://------------------------------------------------------------------------------//-------------------------------------------------------------------------------class GRootEnvVarPopup : public TModalPopup {+class GRootEnvVarPopup final : public TModalPopup {public:GRootEnvVarPopup(TWidget *parent, std::string name);~GRootEnvVarPopup();@@ -210,14 +210,14 @@ void getControllerData(QString &hostName, QString &ipAddr, int &port);//-------------------------------------------------------------------------------class TMissingGRootFolder : public TException {+class TMissingGRootFolder final : public TException {public:TMissingGRootFolder() : TException() {}};//-------------------------------------------------------------------------------class TMissingGRootEnvironmentVariable : public TException {+class TMissingGRootEnvironmentVariable final : public TException {public:TMissingGRootEnvironmentVariable() : TException() {}};diff --git a/toonz/sources/toonz/timestretchpopup.cpp b/toonz/sources/toonz/timestretchpopup.cppindex d6d57db88..4dedeb323 100644--- a/toonz/sources/toonz/timestretchpopup.cpp+++ b/toonz/sources/toonz/timestretchpopup.cpp@@ -37,7 +37,7 @@namespace {//------------------------------------------------------------------------------class TimeStretchUndo : public TUndo {+class TimeStretchUndo final : public TUndo {int m_r0, m_r1;int m_c0, m_c1;int m_newRange;diff --git a/toonz/sources/toonz/timestretchpopup.h b/toonz/sources/toonz/timestretchpopup.hindex 4ef300259..3ad57f2a7 100644--- a/toonz/sources/toonz/timestretchpopup.h+++ b/toonz/sources/toonz/timestretchpopup.h@@ -18,7 +18,7 @@ class TSelection;// TimeStretchPopup//------------------------------------------------------------------------------class TimeStretchPopup : public DVGui::Dialog {+class TimeStretchPopup final : public DVGui::Dialog {Q_OBJECTQPushButton *m_okBtn;diff --git a/toonz/sources/toonz/toolbar.h b/toonz/sources/toonz/toolbar.hindex 9f435c7c7..2ce884482 100755--- a/toonz/sources/toonz/toolbar.h+++ b/toonz/sources/toonz/toolbar.h@@ -7,7 +7,7 @@class QToolButton;-class Toolbar : public QToolBar {+class Toolbar final : public QToolBar {Q_OBJECTQToolButton *m_expandButton;diff --git a/toonz/sources/toonz/tpanels.cpp b/toonz/sources/toonz/tpanels.cppindex 0e05e3efd..74fee6a76 100644--- a/toonz/sources/toonz/tpanels.cpp+++ b/toonz/sources/toonz/tpanels.cpp@@ -89,7 +89,7 @@// XsheetViewer//------------------------------------------------------------------------------class XsheetViewerFactory : public TPanelFactory {+class XsheetViewerFactory final : public TPanelFactory {public:XsheetViewerFactory() : TPanelFactory("Xsheet") {}void initialize(TPanel *panel) override {@@ -106,7 +106,7 @@ public:// SchematicSceneViewerFactory//----------------------------------------------------------class SchematicSceneViewerFactory : public QObject, public TPanelFactory {+class SchematicSceneViewerFactory final : public QObject, public TPanelFactory {public:SchematicSceneViewerFactory() : TPanelFactory("Schematic") {}@@ -381,7 +381,7 @@ void FunctionViewerPanel::onIoCurve(int type, TDoubleParam *curve,// CurrentStyleChangeCommand//------------------------------------------------------------------------------class CurrentStyleChangeCommand : public ChangeStyleCommand {+class CurrentStyleChangeCommand final : public ChangeStyleCommand {public:CurrentStyleChangeCommand() {}~CurrentStyleChangeCommand() {}@@ -549,7 +549,7 @@ void PaletteViewerPanel::onSceneSwitched() {//=============================================================================-class PaletteViewerFactory : public TPanelFactory {+class PaletteViewerFactory final : public TPanelFactory {public:PaletteViewerFactory() : TPanelFactory("LevelPalette") {}@@ -611,7 +611,7 @@ void StudioPaletteViewerPanel::onPaletteSwitched() {// StudioPaletteViewerFactory//------------------------------------------------------------------------------class StudioPaletteViewerFactory : public TPanelFactory {+class StudioPaletteViewerFactory final : public TPanelFactory {public:StudioPaletteViewerFactory() : TPanelFactory("StudioPalette") {}@@ -798,7 +798,7 @@ StyleEditorPanel::StyleEditorPanel(QWidget *parent) : TPanel(parent) {//------------------------------------------------------------------------------class StyleEditorFactory : public TPanelFactory {+class StyleEditorFactory final : public TPanelFactory {public:StyleEditorFactory() : TPanelFactory("StyleEditor") {}@@ -822,7 +822,7 @@ OpenFloatingPanel openStyleEditorCommand(MI_OpenStyleControl, "StyleEditor",// SceneViewer//------------------------------------------------------------------------------class SceneViewerFactory : public TPanelFactory {+class SceneViewerFactory final : public TPanelFactory {public:SceneViewerFactory() : TPanelFactory("SceneViewer") {}@@ -845,7 +845,7 @@ OpenFloatingPanel openSceneViewerCommand(MI_OpenLevelView, "SceneViewer",//------------------------------------------------------------------------------class ToolbarFactory : public TPanelFactory {+class ToolbarFactory final : public TPanelFactory {public:ToolbarFactory() : TPanelFactory("ToolBar") {}void initialize(TPanel *panel) override {@@ -877,7 +877,7 @@ ToolOptionPanel::ToolOptionPanel(QWidget *parent)// ToolOptionsFactory//------------------------------------------------------------------------------class ToolOptionsFactory : public TPanelFactory {+class ToolOptionsFactory final : public TPanelFactory {TPanel *m_panel;public:@@ -976,7 +976,7 @@ void FlipbookPanel::onDock(bool docked) { m_button->setVisible(!docked); }//------------------------------------------------------------------------------class FlipbookFactory : public TPanelFactory {+class FlipbookFactory final : public TPanelFactory {public:FlipbookFactory() : TPanelFactory("FlipBook") {}@@ -995,7 +995,7 @@ public:// TasksViewerFactory//------------------------------------------------------------------------------class TasksViewerFactory : public TPanelFactory {+class TasksViewerFactory final : public TPanelFactory {public:TasksViewerFactory() : TPanelFactory("Tasks") {}void initialize(TPanel *panel) override {@@ -1004,7 +1004,7 @@ public:}} tasksViewerFactory;-class BatchServersViewerFactory : public TPanelFactory {+class BatchServersViewerFactory final : public TPanelFactory {public:BatchServersViewerFactory() : TPanelFactory("BatchServers") {}void initialize(TPanel *panel) override {@@ -1014,7 +1014,7 @@ public:} batchServersViewerFactory;#endif-class BrowserFactory : public TPanelFactory {+class BrowserFactory final : public TPanelFactory {public:BrowserFactory() : TPanelFactory("Browser") {}void initialize(TPanel *panel) override {@@ -1031,7 +1031,7 @@ public:// CastViewerFactory//------------------------------------------------------------------------------class CastViewerFactory : public TPanelFactory {+class CastViewerFactory final : public TPanelFactory {public:CastViewerFactory() : TPanelFactory("SceneCast") {}void initialize(TPanel *panel) override {@@ -1044,7 +1044,7 @@ public:// FilmStripFactory//------------------------------------------------------------------------------class FilmStripFactory : public TPanelFactory {+class FilmStripFactory final : public TPanelFactory {public:FilmStripFactory() : TPanelFactory("FilmStrip") {}void initialize(TPanel *panel) override {@@ -1058,7 +1058,7 @@ public://-----------------------------------------------------------------------------#ifdef LINETEST-class ExportFactory : public TPanelFactory {+class ExportFactory final : public TPanelFactory {public:ExportFactory() : TPanelFactory("Export") {}@@ -1082,7 +1082,7 @@ OpenFloatingPanel openExportPanelCommand(MI_OpenExport, "Export",#endif#ifndef LINETEST-class ColorModelViewerFactory : public TPanelFactory {+class ColorModelViewerFactory final : public TPanelFactory {public:ColorModelViewerFactory() : TPanelFactory("ColorModel") {}void initialize(TPanel *panel) override {@@ -1097,7 +1097,7 @@ public:// FunctionViewerFactory//------------------------------------------------------------------------------class FunctionViewerFactory : public TPanelFactory {+class FunctionViewerFactory final : public TPanelFactory {public:FunctionViewerFactory() : TPanelFactory("FunctionEditor") {}@@ -1120,7 +1120,7 @@ OpenFloatingPanel openFunctionViewerCommand(MI_OpenFunctionEditor,// TMessageViewerFactory//------------------------------------------------------------------------------class TMessageViewerFactory : public TPanelFactory {+class TMessageViewerFactory final : public TPanelFactory {public:TMessageViewerFactory() : TPanelFactory("TMessage") {}void initialize(TPanel *panel) override {@@ -1137,7 +1137,7 @@ OpenFloatingPanel openTMessageCommand(MI_OpenTMessage, "TMessage",// ScriptConsolePanelFactory//------------------------------------------------------------------------------class ScriptConsolePanelFactory : public TPanelFactory {+class ScriptConsolePanelFactory final : public TPanelFactory {public:ScriptConsolePanelFactory() : TPanelFactory("ScriptConsole") {}@@ -1164,7 +1164,7 @@ OpenFloatingPanel openTScriptConsoleCommand("MI_OpenScriptConsole",// LineTestViewer//------------------------------------------------------------------------------class LineTestFactory : public TPanelFactory {+class LineTestFactory final : public TPanelFactory {public:LineTestFactory() : TPanelFactory("LineTestViewer") {}@@ -1189,7 +1189,7 @@ OpenFloatingPanel openLineTestViewerCommand(MI_OpenLineTestView,// LineTestCapturePane//------------------------------------------------------------------------------class LineTestCaptureFactory : public TPanelFactory {+class LineTestCaptureFactory final : public TPanelFactory {public:LineTestCaptureFactory() : TPanelFactory("LineTestCapture") {}@@ -1216,7 +1216,7 @@ OpenFloatingPanel openLineTestCaptureCommand(MI_OpenLineTestCapture,// ComboViewer : Viewer + Toolbar + Tool Options//------------------------------------------------------------------------------class ComboViewerFactory : public TPanelFactory {+class ComboViewerFactory final : public TPanelFactory {public:ComboViewerFactory() : TPanelFactory("ComboViewer") {}TPanel *createPanel(QWidget *parent) override {@@ -1241,7 +1241,7 @@ OpenFloatingPanel openComboViewerCommand(MI_OpenComboViewer, "ComboViewer",// CleanupSettings DockWindow//------------------------------------------------------------------------------class CleanupSettingsFactory : public TPanelFactory {+class CleanupSettingsFactory final : public TPanelFactory {public:CleanupSettingsFactory() : TPanelFactory("CleanupSettings") {}@@ -1263,7 +1263,7 @@ OpenFloatingPanel openCleanupSettingsDockCommand(//------------------------------------------------------------------------------class HistoryPanelFactory : public TPanelFactory {+class HistoryPanelFactory final : public TPanelFactory {public:HistoryPanelFactory() : TPanelFactory("HistoryPanel") {}void initialize(TPanel *panel) override {diff --git a/toonz/sources/toonz/tpanels.h b/toonz/sources/toonz/tpanels.hindex 1f3694556..ed6cbf83f 100644--- a/toonz/sources/toonz/tpanels.h+++ b/toonz/sources/toonz/tpanels.h@@ -27,7 +27,7 @@ class ToolOptions;// PaletteViewerPanel//----------------------------------------------------------class PaletteViewerPanel : public TPanel {+class PaletteViewerPanel final : public TPanel {Q_OBJECTTPaletteHandle *m_paletteHandle;@@ -59,7 +59,7 @@ protected slots:// StudioPaletteViewerPanel//----------------------------------------------------------class StudioPaletteViewerPanel : public TPanel {+class StudioPaletteViewerPanel final : public TPanel {Q_OBJECTTPaletteHandle *m_studioPaletteHandle;@@ -79,7 +79,7 @@ protected slots:// StyleEditorPanel//----------------------------------------------------------class StyleEditorPanel : public TPanel {+class StyleEditorPanel final : public TPanel {Q_OBJECTStyleEditor *m_styleEditor;@@ -91,7 +91,7 @@ public:// ColorFieldEditorController//----------------------------------------------------------class ColorFieldEditorController+class ColorFieldEditorController final: public QObject,public DVGui::ColorField::ColorFieldEditorController {Q_OBJECT@@ -117,7 +117,7 @@ protected slots:// CleanupColorFieldEditorController//----------------------------------------------------------class CleanupColorFieldEditorController+class CleanupColorFieldEditorController final: public QObject,public DVGui::CleanupColorField::CleanupColorFieldEditorController {Q_OBJECT@@ -143,7 +143,7 @@ protected slots:// SchematicScenePanel//----------------------------------------------------------class SchematicScenePanel : public TPanel {+class SchematicScenePanel final : public TPanel {Q_OBJECTSchematicViewer *m_schematicViewer;@@ -171,7 +171,7 @@ protected slots:// FunctionViewerPanel//----------------------------------------------------------class FunctionViewerPanel : public TPanel {+class FunctionViewerPanel final : public TPanel {Q_OBJECTFunctionViewer *m_functionViewer;@@ -200,7 +200,7 @@ public slots:// ToolOptionPanel//----------------------------------------------------------class ToolOptionPanel : public TPanel {+class ToolOptionPanel final : public TPanel {Q_OBJECTToolOptions *m_toolOption;@@ -213,7 +213,7 @@ public:// FlipbookPanel//----------------------------------------------------------class FlipbookPanel : public TPanel {+class FlipbookPanel final : public TPanel {Q_OBJECTFlipBook *m_flipbook;diff --git a/toonz/sources/toonz/trackerpopup.h b/toonz/sources/toonz/trackerpopup.hindex 04cc1df90..900b88d14 100644--- a/toonz/sources/toonz/trackerpopup.h+++ b/toonz/sources/toonz/trackerpopup.h@@ -42,7 +42,7 @@ class CheckBox;/*!Consente di cambiare modalita' di vettorizzazione e quindi in funzionedi questa di cambiare i parametri da settare.*/-class TrackerPopup : public DVGui::Dialog {+class TrackerPopup final : public DVGui::Dialog {Q_OBJECTDVGui::DoubleField *m_threshold;@@ -134,7 +134,7 @@ private:QString getErrorMessage(int errorCode);};-class MyThread : public QThread {+class MyThread final : public QThread {Tracker *m_tracker;public:diff --git a/toonz/sources/toonz/vcrcommand.cpp b/toonz/sources/toonz/vcrcommand.cppindex c716b596e..5b848b328 100644--- a/toonz/sources/toonz/vcrcommand.cpp+++ b/toonz/sources/toonz/vcrcommand.cpp@@ -20,7 +20,7 @@// Commands definition//**********************************************************************************-class LinkToggleCommand : public MenuItemHandler {+class LinkToggleCommand final : public MenuItemHandler {public:LinkToggleCommand() : MenuItemHandler("MI_Link") {}void execute() override { FlipConsole::toggleLinked(); }@@ -28,7 +28,7 @@ public://------------------------------------------------------------------------------class VcrCommand : public MenuItemHandler {+class VcrCommand final : public MenuItemHandler {FlipConsole::EGadget m_buttonId;public:@@ -42,7 +42,7 @@ public://------------------------------------------------------------------------------class NextDrawingCommand : public MenuItemHandler {+class NextDrawingCommand final : public MenuItemHandler {public:NextDrawingCommand() : MenuItemHandler(MI_NextDrawing) {}@@ -65,7 +65,7 @@ public://------------------------------------------------------------------------------class PrevDrawingCommand : public MenuItemHandler {+class PrevDrawingCommand final : public MenuItemHandler {public:PrevDrawingCommand() : MenuItemHandler(MI_PrevDrawing) {}@@ -96,7 +96,7 @@ public://------------------------------------------------------------------------------class NextStepCommand : public MenuItemHandler {+class NextStepCommand final : public MenuItemHandler {public:NextStepCommand() : MenuItemHandler(MI_NextStep) {}@@ -110,7 +110,7 @@ public://------------------------------------------------------------------------------class PrevStepCommand : public MenuItemHandler {+class PrevStepCommand final : public MenuItemHandler {public:PrevStepCommand() : MenuItemHandler(MI_PrevStep) {}diff --git a/toonz/sources/toonz/vectorizerpopup.h b/toonz/sources/toonz/vectorizerpopup.hindex 5140a7b00..a0fb0627d 100644--- a/toonz/sources/toonz/vectorizerpopup.h+++ b/toonz/sources/toonz/vectorizerpopup.h@@ -84,7 +84,7 @@ class CheckBox;classes.*/-class VectorizerPopup : public DVGui::Dialog {+class VectorizerPopup final : public DVGui::Dialog {Q_OBJECTpublic:@@ -262,7 +262,7 @@ private slots:classes.*/-class Vectorizer : public QThread {+class Vectorizer final : public QThread {Q_OBJECTpublic:@@ -314,7 +314,7 @@ protected:be called before invoking run(). */void run() override; //!< Starts the vectorization thread (see QThread- //!documentation).+ //! documentation).private:TXshSimpleLevelP m_level; //!< Input level to vectorize (only one level at adiff --git a/toonz/sources/toonz/vectorizerswatch.cpp b/toonz/sources/toonz/vectorizerswatch.cppindex 49e02cbac..bf65f8acc 100644--- a/toonz/sources/toonz/vectorizerswatch.cpp+++ b/toonz/sources/toonz/vectorizerswatch.cpp@@ -100,7 +100,7 @@ namespace {VectorizationSwatchData is the 'server' singleton data class used tovectorize within swatch areas.*/-struct VectorizationBuilder : public TThread::Executor {+struct VectorizationBuilder final : public TThread::Executor {int m_row, m_col;bool m_done, m_submitted;diff --git a/toonz/sources/toonz/vectorizerswatch.h b/toonz/sources/toonz/vectorizerswatch.hindex 6a49b9fc2..576c8d5d3 100644--- a/toonz/sources/toonz/vectorizerswatch.h+++ b/toonz/sources/toonz/vectorizerswatch.h@@ -19,7 +19,7 @@// VectorizerSwatchArea declaration//*****************************************************************************-class VectorizerSwatchArea : public QFrame {+class VectorizerSwatchArea final : public QFrame {Q_OBJECTpublic:@@ -60,7 +60,7 @@ public slots:// VectorizerSwatchArea::Swatch declaration//*****************************************************************************-class VectorizerSwatchArea::Swatch : public PlaneViewer {+class VectorizerSwatchArea::Swatch final : public PlaneViewer {TImageP m_img;VectorizerSwatchArea *m_area;@@ -87,7 +87,7 @@ protected:// VectorizationSwatchTask declaration - Private class//*****************************************************************************-class VectorizationSwatchTask : public TThread::Runnable {+class VectorizationSwatchTask final : public TThread::Runnable {Q_OBJECTint m_row, m_col;diff --git a/toonz/sources/toonz/versioncontrol.h b/toonz/sources/toonz/versioncontrol.hindex 46ac697e0..35607f8a4 100644--- a/toonz/sources/toonz/versioncontrol.h+++ b/toonz/sources/toonz/versioncontrol.h@@ -19,7 +19,7 @@ class TLevelSet;//------------------------------------------------------------------------------class VersionControlThread : public QThread {+class VersionControlThread final : public QThread {Q_OBJECTbool m_abort;@@ -66,7 +66,7 @@ signals://------------------------------------------------------------------------------class VersionControlManager : public QObject {+class VersionControlManager final : public QObject {Q_OBJECTVersionControlThread m_thread;@@ -91,7 +91,7 @@ protected slots://------------------------------------------------------------------------------class VersionControl : public QObject {+class VersionControl final : public QObject {Q_OBJECTQString m_userName;diff --git a/toonz/sources/toonz/versioncontroltimeline.h b/toonz/sources/toonz/versioncontroltimeline.hindex 1413a14db..9f5dffc2a 100644--- a/toonz/sources/toonz/versioncontroltimeline.h+++ b/toonz/sources/toonz/versioncontroltimeline.h@@ -17,7 +17,7 @@ class QTimer;//------------------------------------------------------------------------------class TimelineWidget : public QWidget {+class TimelineWidget final : public QWidget {Q_OBJECTQListWidget *m_listWidget;@@ -31,7 +31,7 @@ public://------------------------------------------------------------------------------class SVNTimeline : public DVGui::Dialog {+class SVNTimeline final : public DVGui::Dialog {Q_OBJECTTimelineWidget *m_timelineWidget;diff --git a/toonz/sources/toonz/versioncontrolwidget.h b/toonz/sources/toonz/versioncontrolwidget.hindex 921fc0953..bb7d2dd08 100644--- a/toonz/sources/toonz/versioncontrolwidget.h+++ b/toonz/sources/toonz/versioncontrolwidget.h@@ -18,7 +18,7 @@ class DoubleRadioWidget;//------------------------------------------------------------------------------class DateChooserWidget : public QWidget {+class DateChooserWidget final : public QWidget {Q_OBJECTint m_selectedRadioIndex;@@ -45,7 +45,7 @@ protected slots://------------------------------------------------------------------------------class ConflictWidget : public QWidget {+class ConflictWidget final : public QWidget {Q_OBJECTQVBoxLayout *m_mainLayout;@@ -72,7 +72,7 @@ signals://------------------------------------------------------------------------------class DoubleRadioWidget : public QWidget {+class DoubleRadioWidget final : public QWidget {Q_OBJECTQLabel *m_label;diff --git a/toonz/sources/toonz/versioncontrolxmlreader.h b/toonz/sources/toonz/versioncontrolxmlreader.hindex 5e18bff63..7c2901cc2 100644--- a/toonz/sources/toonz/versioncontrolxmlreader.h+++ b/toonz/sources/toonz/versioncontrolxmlreader.h@@ -25,7 +25,7 @@ struct SVNPartialLock {//------------------------------------------------------------------------------class SVNPartialLockReader : public QXmlStreamReader {+class SVNPartialLockReader final : public QXmlStreamReader {QList<SVNPartialLock> m_partialLock;QString m_data;@@ -56,7 +56,7 @@ struct SVNRepository {//------------------------------------------------------------------------------class SVNConfigReader : public QXmlStreamReader {+class SVNConfigReader final : public QXmlStreamReader {QList<SVNRepository> m_repositories;QString m_data;@@ -98,7 +98,7 @@ struct SVNStatus {//------------------------------------------------------------------------------class SVNStatusReader : public QXmlStreamReader {+class SVNStatusReader final : public QXmlStreamReader {QList<SVNStatus> m_status;QString m_data;@@ -141,7 +141,7 @@ struct SVNLog {//------------------------------------------------------------------------------class SVNLogReader : public QXmlStreamReader {+class SVNLogReader final : public QXmlStreamReader {QList<SVNLog> m_log;QString m_data;@@ -163,7 +163,7 @@ protected://------------------------------------------------------------------------------class SVNInfoReader : public QXmlStreamReader {+class SVNInfoReader final : public QXmlStreamReader {QString m_data;QString m_revision;@@ -189,7 +189,7 @@ struct SVNListInfo {//------------------------------------------------------------------------------class SVNListReader : public QXmlStreamReader {+class SVNListReader final : public QXmlStreamReader {QString m_data;QList<SVNListInfo> m_listInfo;diff --git a/toonz/sources/toonz/viewerpane.h b/toonz/sources/toonz/viewerpane.hindex 46044368d..5ed1a307e 100644--- a/toonz/sources/toonz/viewerpane.h+++ b/toonz/sources/toonz/viewerpane.h@@ -25,7 +25,7 @@ class Ruler;class FlipConsole;class TXshLevel;-class SceneViewerPanel : public TPanel, public FlipConsoleOwner {+class SceneViewerPanel final : public TPanel, public FlipConsoleOwner {Q_OBJECTfriend class SceneViewer;diff --git a/toonz/sources/toonz/viewerpopup.h b/toonz/sources/toonz/viewerpopup.hindex 3ab88f681..2d714bbbf 100644--- a/toonz/sources/toonz/viewerpopup.h+++ b/toonz/sources/toonz/viewerpopup.h@@ -15,7 +15,7 @@// \///-----------------------------------------------------------------------------/*-class ViewerPopup : public FlipBook+class ViewerPopup final : public FlipBook{Q_OBJECTpublic:diff --git a/toonz/sources/toonz/xshcellmover.cpp b/toonz/sources/toonz/xshcellmover.cppindex 29c06647e..89052c650 100644--- a/toonz/sources/toonz/xshcellmover.cpp+++ b/toonz/sources/toonz/xshcellmover.cpp@@ -242,7 +242,7 @@ TXshColumn::ColumnType CellsMover::getColumnTypeFromCell(int index) const {//=============================================================================-class LevelMoverUndo : public TUndo {+class LevelMoverUndo final : public TUndo {CellsMover m_cellsMover;public:diff --git a/toonz/sources/toonz/xshcellviewer.cpp b/toonz/sources/toonz/xshcellviewer.cppindex 22599e250..a02b533fd 100644--- a/toonz/sources/toonz/xshcellviewer.cpp+++ b/toonz/sources/toonz/xshcellviewer.cpp@@ -444,7 +444,7 @@ void setParamStep(int indexKeyframe, int step, TDoubleParam *param) {// RenameCellUndo//------------------------------------------------------------------------------class RenameCellUndo : public TUndo {+class RenameCellUndo final : public TUndo {int m_row;int m_col;const TXshCell m_oldCell;@@ -1572,7 +1572,7 @@ void CellArea::paintEvent(QPaintEvent *event) {//------------------------------------------------------------------------------class CycleUndo : public TUndo {+class CycleUndo final : public TUndo {TStageObject *m_pegbar;CellArea *m_area;diff --git a/toonz/sources/toonz/xshcellviewer.h b/toonz/sources/toonz/xshcellviewer.hindex e88f8da13..31d24b4b6 100644--- a/toonz/sources/toonz/xshcellviewer.h+++ b/toonz/sources/toonz/xshcellviewer.h@@ -16,7 +16,7 @@ namespace XsheetGUI {class NoteWidget;class DragTool;-class RenameCellField : public QLineEdit {+class RenameCellField final : public QLineEdit {Q_OBJECTint m_row;@@ -44,7 +44,7 @@ protected slots://-----------------------------------------------------------------------------//! La classe si occupa della visualizzazione delle celle nel viewer.-class CellArea : public QWidget {+class CellArea final : public QWidget {Q_OBJECTXsheetViewer *m_viewer;diff --git a/toonz/sources/toonz/xshcolumnviewer.h b/toonz/sources/toonz/xshcolumnviewer.hindex 5b1303c0e..282ef9b4b 100644--- a/toonz/sources/toonz/xshcolumnviewer.h+++ b/toonz/sources/toonz/xshcolumnviewer.h@@ -23,7 +23,7 @@ class DragTool;// MotionPathMenu//------------------------------------------------------------------------------class MotionPathMenu : public QWidget {+class MotionPathMenu final : public QWidget {Q_OBJECTQRect m_mDeleteRect;@@ -84,7 +84,7 @@ protected slots:// ChangeObjectParent//------------------------------------------------------------------------------class ChangeObjectParent : public ChangeObjectWidget {+class ChangeObjectParent final : public ChangeObjectWidget {Q_OBJECTpublic:@@ -101,7 +101,7 @@ protected slots:// ChangeObjectHandle//------------------------------------------------------------------------------class ChangeObjectHandle : public ChangeObjectWidget {+class ChangeObjectHandle final : public ChangeObjectWidget {Q_OBJECTpublic:@@ -118,7 +118,7 @@ protected slots:// RenameColumnField//------------------------------------------------------------------------------class RenameColumnField : public QLineEdit {+class RenameColumnField final : public QLineEdit {Q_OBJECTint m_col;@@ -146,7 +146,7 @@ protected slots:// ColumnArea//------------------------------------------------------------------------------class ColumnTransparencyPopup : public QWidget {+class ColumnTransparencyPopup final : public QWidget {Q_OBJECTQSlider *m_slider;@@ -169,7 +169,7 @@ protected slots:};//! La classe si occupa della visualizzazione dell'area che gestisce le colonne.-class ColumnArea : public QWidget {+class ColumnArea final : public QWidget {Q_OBJECTenum { ToggleTransparency = 1, TogglePreviewVisible, ToggleLock };diff --git a/toonz/sources/toonz/xsheetcmd.cpp b/toonz/sources/toonz/xsheetcmd.cppindex a73895f5c..00493be69 100644--- a/toonz/sources/toonz/xsheetcmd.cpp+++ b/toonz/sources/toonz/xsheetcmd.cpp@@ -212,7 +212,7 @@ void insertSceneFrame(int frame) {//=============================================================================-class InsertSceneFrameCommand : public MenuItemHandler {+class InsertSceneFrameCommand final : public MenuItemHandler {public:InsertSceneFrameCommand() : MenuItemHandler(MI_InsertSceneFrame) {}void execute() override {@@ -225,7 +225,7 @@ public:// RemoveSceneFrame command//*****************************************************************************-class RemoveSceneFrameUndo : public InsertSceneFrameUndo {+class RemoveSceneFrameUndo final : public InsertSceneFrameUndo {std::vector<TXshCell> m_cells;std::vector<TStageObject::Keyframe> m_keyframes;@@ -307,7 +307,7 @@ void removeSceneFrame(int frame) {//=============================================================================-class RemoveSceneFrameCommand : public MenuItemHandler {+class RemoveSceneFrameCommand final : public MenuItemHandler {public:RemoveSceneFrameCommand() : MenuItemHandler(MI_RemoveSceneFrame) {}void execute() override {@@ -411,7 +411,7 @@ void GlobalKeyframeUndo::doRemoveGlobalKeyframes(// InsertGlobalKeyframe command//*****************************************************************************-class InsertGlobalKeyframeUndo : public GlobalKeyframeUndo {+class InsertGlobalKeyframeUndo final : public GlobalKeyframeUndo {public:InsertGlobalKeyframeUndo(int frame, const std::vector<int> &columns): GlobalKeyframeUndo(frame) {@@ -457,7 +457,7 @@ void insertGlobalKeyframe(int frame) {//=============================================================================-class InsertGlobalKeyframeCommand : public MenuItemHandler {+class InsertGlobalKeyframeCommand final : public MenuItemHandler {public:InsertGlobalKeyframeCommand() : MenuItemHandler(MI_InsertGlobalKeyframe) {}void execute() override {@@ -470,7 +470,7 @@ public:// RemoveGlobalKeyframe command//*****************************************************************************-class RemoveGlobalKeyframeUndo : public GlobalKeyframeUndo {+class RemoveGlobalKeyframeUndo final : public GlobalKeyframeUndo {std::vector<TStageObject::Keyframe> m_keyframes;public:@@ -550,7 +550,7 @@ void removeGlobalKeyframe(int frame) {//=============================================================================-class RemoveGlobalKeyframeCommand : public MenuItemHandler {+class RemoveGlobalKeyframeCommand final : public MenuItemHandler {public:RemoveGlobalKeyframeCommand() : MenuItemHandler(MI_RemoveGlobalKeyframe) {}void execute() override {@@ -562,7 +562,7 @@ public://============================================================// Drawing Substitution//============================================================-class DrawingSubtitutionUndo : public TUndo {+class DrawingSubtitutionUndo final : public TUndo {private:int m_direction, m_row, m_col;TCellSelection::Range m_range;@@ -635,7 +635,7 @@ protected://============================================================-class DrawingSubtitutionGroupUndo : public TUndo {+class DrawingSubtitutionGroupUndo final : public TUndo {private:int m_direction;int m_row;@@ -728,6 +728,8 @@ bool DrawingSubtitutionUndo::changeDrawing(int delta, int row, int col) {index = (index + delta) % n;setDrawing(fids[index], row, col, cell);++ return true;}void DrawingSubtitutionUndo::setDrawing(const TFrameId &fid, int row, int col,@@ -778,7 +780,7 @@ void drawingSubstituionGroup(int dir) {//=============================================================================-class DrawingSubstitutionForwardCommand : public MenuItemHandler {+class DrawingSubstitutionForwardCommand final : public MenuItemHandler {public:DrawingSubstitutionForwardCommand() : MenuItemHandler(MI_DrawingSubForward) {}void execute() override { XshCmd::drawingSubstituion(1); }@@ -786,7 +788,7 @@ public://============================================================-class DrawingSubstitutionBackwardCommand : public MenuItemHandler {+class DrawingSubstitutionBackwardCommand final : public MenuItemHandler {public:DrawingSubstitutionBackwardCommand(): MenuItemHandler(MI_DrawingSubBackward) {}@@ -795,7 +797,7 @@ public://=============================================================================-class DrawingSubstitutionGroupForwardCommand : public MenuItemHandler {+class DrawingSubstitutionGroupForwardCommand final : public MenuItemHandler {public:DrawingSubstitutionGroupForwardCommand(): MenuItemHandler(MI_DrawingSubGroupForward) {}@@ -804,7 +806,7 @@ public://============================================================-class DrawingSubstitutionGroupBackwardCommand : public MenuItemHandler {+class DrawingSubstitutionGroupBackwardCommand final : public MenuItemHandler {public:DrawingSubstitutionGroupBackwardCommand(): MenuItemHandler(MI_DrawingSubGroupBackward) {}@@ -819,7 +821,7 @@ public:// Selection commands//*****************************************************************************-class SelectRowKeyframesCommand : public MenuItemHandler {+class SelectRowKeyframesCommand final : public MenuItemHandler {public:SelectRowKeyframesCommand() : MenuItemHandler(MI_SelectRowKeyframes) {}@@ -852,7 +854,7 @@ public://------------------------------------------------------------------------------class SelectColumnKeyframesCommand : public MenuItemHandler {+class SelectColumnKeyframesCommand final : public MenuItemHandler {public:SelectColumnKeyframesCommand() : MenuItemHandler(MI_SelectColumnKeyframes) {}@@ -883,7 +885,7 @@ public://------------------------------------------------------------------------------class SelectAllKeyframesCommand : public MenuItemHandler {+class SelectAllKeyframesCommand final : public MenuItemHandler {public:SelectAllKeyframesCommand() : MenuItemHandler(MI_SelectAllKeyframes) {}@@ -922,7 +924,7 @@ public://------------------------------------------------------------------------------class SelectAllKeyframesBeforeCommand : public MenuItemHandler {+class SelectAllKeyframesBeforeCommand final : public MenuItemHandler {public:SelectAllKeyframesBeforeCommand(): MenuItemHandler(MI_SelectAllKeyframesNotBefore) {}@@ -963,7 +965,7 @@ public://------------------------------------------------------------------------------class SelectAllKeyframesAfterCommand : public MenuItemHandler {+class SelectAllKeyframesAfterCommand final : public MenuItemHandler {public:SelectAllKeyframesAfterCommand(): MenuItemHandler(MI_SelectAllKeyframesNotAfter) {}@@ -1005,7 +1007,7 @@ public://------------------------------------------------------------------------------class SelectPreviousKeysInColumnCommand : public MenuItemHandler {+class SelectPreviousKeysInColumnCommand final : public MenuItemHandler {public:SelectPreviousKeysInColumnCommand(): MenuItemHandler(MI_SelectPreviousKeysInColumn) {}@@ -1043,7 +1045,7 @@ public://------------------------------------------------------------------------------class SelectFollowingKeysInColumnCommand : public MenuItemHandler {+class SelectFollowingKeysInColumnCommand final : public MenuItemHandler {public:SelectFollowingKeysInColumnCommand(): MenuItemHandler(MI_SelectFollowingKeysInColumn) {}@@ -1080,7 +1082,7 @@ public://------------------------------------------------------------------------------class SelectPreviousKeysInRowCommand : public MenuItemHandler {+class SelectPreviousKeysInRowCommand final : public MenuItemHandler {public:SelectPreviousKeysInRowCommand(): MenuItemHandler(MI_SelectPreviousKeysInRow) {}@@ -1124,7 +1126,7 @@ public://------------------------------------------------------------------------------class SelectFollowingKeysInRowCommand : public MenuItemHandler {+class SelectFollowingKeysInRowCommand final : public MenuItemHandler {public:SelectFollowingKeysInRowCommand(): MenuItemHandler(MI_SelectFollowingKeysInRow) {}@@ -1170,7 +1172,7 @@ public://------------------------------------------------------------------------------class InvertKeyframeSelectionCommand : public MenuItemHandler {+class InvertKeyframeSelectionCommand final : public MenuItemHandler {public:InvertKeyframeSelectionCommand(): MenuItemHandler(MI_InvertKeyframeSelection) {}@@ -1215,7 +1217,7 @@ public:namespace {-class KeyFrameHandleCommandUndo : public TUndo {+class KeyFrameHandleCommandUndo final : public TUndo {TStageObjectId m_objId;int m_rowFirst, m_rowSecond;@@ -1278,7 +1280,7 @@ public://------------------------------------------------------------------------------class SetAccelerationCommand : public MenuItemHandler {+class SetAccelerationCommand final : public MenuItemHandler {public:SetAccelerationCommand() : MenuItemHandler(MI_SetAcceleration) {}@@ -1325,7 +1327,7 @@ public://------------------------------------------------------------------------------class SetDecelerationCommand : public MenuItemHandler {+class SetDecelerationCommand final : public MenuItemHandler {public:SetDecelerationCommand() : MenuItemHandler(MI_SetDeceleration) {}@@ -1368,7 +1370,7 @@ public://------------------------------------------------------------------------------class SetConstantSpeedCommand : public MenuItemHandler {+class SetConstantSpeedCommand final : public MenuItemHandler {public:SetConstantSpeedCommand() : MenuItemHandler(MI_SetConstantSpeed) {}@@ -1409,7 +1411,7 @@ public://------------------------------------------------------------------------------class ResetArrowCommand : public MenuItemHandler {+class ResetArrowCommand final : public MenuItemHandler {public:ResetArrowCommand() : MenuItemHandler(MI_ResetInterpolation) {}@@ -1453,7 +1455,7 @@ public:// To Be Reworked//===========================================================-class NewOutputFx : public MenuItemHandler {+class NewOutputFx final : public MenuItemHandler {public:NewOutputFx() : MenuItemHandler(MI_NewOutputFx) {}@@ -1806,7 +1808,7 @@ void makeHtml(TFilePath fp) {os << "</body></html>" << endl;}-class PrintXsheetCommand : public MenuItemHandler {+class PrintXsheetCommand final : public MenuItemHandler {public:PrintXsheetCommand() : MenuItemHandler(MI_PrintXsheet) {}void execute() override;diff --git a/toonz/sources/toonz/xsheetdragtool.cpp b/toonz/sources/toonz/xsheetdragtool.cppindex ef2c46230..582477e0a 100644--- a/toonz/sources/toonz/xsheetdragtool.cpp+++ b/toonz/sources/toonz/xsheetdragtool.cpp@@ -108,7 +108,7 @@ void XsheetGUI::DragTool::onRelease(const QMouseEvent *event) {// XsheetSelection DragTool//------------------------------------------------------------------------------class XsheetSelectionDragTool : public XsheetGUI::DragTool {+class XsheetSelectionDragTool final : public XsheetGUI::DragTool {int m_firstRow, m_firstCol;Qt::KeyboardModifiers m_modifier;@@ -199,7 +199,7 @@ XsheetGUI::DragTool *XsheetGUI::DragTool::makeSelectionTool(//-----------------------------------------------------------------------------namespace {-class UndoPlayRangeModifier : public TUndo {+class UndoPlayRangeModifier final : public TUndo {int m_oldR0, m_oldR1, m_newR0, m_newR1, m_newStep, m_oldStep;public:@@ -310,7 +310,7 @@ namespace {// LevelExtenderUndo//------------------------------------------------------------------------------class LevelExtenderUndo : public TUndo {+class LevelExtenderUndo final : public TUndo {int m_colCount;int m_rowCount;int m_col, m_row, m_deltaRow;@@ -609,7 +609,7 @@ public:// LevelExtenderTool//------------------------------------------------------------------------------class LevelExtenderTool : public XsheetGUI::DragTool {+class LevelExtenderTool final : public XsheetGUI::DragTool {int m_colCount;int m_rowCount;int m_c0, m_r0, m_r1;@@ -779,7 +779,7 @@ namespace {// SoundLevelModifierUndo//------------------------------------------------------------------------------class SoundLevelModifierUndo : public TUndo {+class SoundLevelModifierUndo final : public TUndo {int m_col;TXshSoundColumnP m_newSoundColumn;TXshSoundColumnP m_oldSoundColumn;@@ -835,7 +835,7 @@ public:// SoundLevelModifierTool//------------------------------------------------------------------------------class SoundLevelModifierTool : public XsheetGUI::DragTool {+class SoundLevelModifierTool final : public XsheetGUI::DragTool {int m_col;int m_firstRow;TXshSoundColumnP m_oldColumn;@@ -962,7 +962,7 @@ XsheetGUI::DragTool *XsheetGUI::DragTool::makeKeyframeMoverTool(// Cell KeyFrame Mover DragTool//------------------------------------------------------------------------------class CellKeyframeMoverTool : public LevelMoverTool {+class CellKeyframeMoverTool final : public LevelMoverTool {KeyframeMoverTool *m_keyframeMoverTool;protected:@@ -1016,7 +1016,7 @@ namespace {// KeyFrameHandleUndo//------------------------------------------------------------------------------class KeyFrameHandleUndo : public TUndo {+class KeyFrameHandleUndo final : public TUndo {TStageObjectId m_objId;int m_row;TStageObject::Keyframe m_oldKeyframe, m_newKeyframe;@@ -1064,7 +1064,7 @@ public:// KeyFrameHandleMoverTool//------------------------------------------------------------------------------class KeyFrameHandleMoverTool : public XsheetGUI::DragTool {+class KeyFrameHandleMoverTool final : public XsheetGUI::DragTool {public:enum HandleType { EaseOut = 0, EaseIn = 1 };@@ -1160,7 +1160,7 @@ namespace {// OnionSkinMaskModifierTool//------------------------------------------------------------------------------class NoteMoveTool : public XsheetGUI::DragTool {+class NoteMoveTool final : public XsheetGUI::DragTool {TPointD m_startPos, m_delta;int m_startRow, m_startCol;@@ -1241,7 +1241,7 @@ namespace {// OnionSkinMaskModifierTool//------------------------------------------------------------------------------class OnionSkinMaskModifierTool : public XsheetGUI::DragTool {+class OnionSkinMaskModifierTool final : public XsheetGUI::DragTool {OnionSkinMaskModifier m_modifier;bool m_isFos;@@ -1298,7 +1298,7 @@ namespace {// CurrentFrameModifier//------------------------------------------------------------------------------class CurrentFrameModifier : public XsheetGUI::DragTool {+class CurrentFrameModifier final : public XsheetGUI::DragTool {public:CurrentFrameModifier(XsheetViewer *viewer) : DragTool(viewer) {}@@ -1346,7 +1346,7 @@ namespace {// PlayRangeModifier//------------------------------------------------------------------------------class PlayRangeModifier : public XsheetGUI::DragTool {+class PlayRangeModifier final : public XsheetGUI::DragTool {bool m_movingFirst;int m_oldR0, m_oldR1, m_oldStep;@@ -1418,7 +1418,7 @@ XsheetGUI::DragTool *XsheetGUI::DragTool::makePlayRangeModifierTool(namespace {-class ColumnSelectionTool : public XsheetGUI::DragTool {+class ColumnSelectionTool final : public XsheetGUI::DragTool {int m_firstColumn;bool m_enabled;@@ -1508,7 +1508,7 @@ void moveColumns(const std::set<int> &indices, int delta) {//------------------------------------------------------------------------------class ColumnMoveUndo : public TUndo {+class ColumnMoveUndo final : public TUndo {std::set<int> m_indices;int m_delta;@@ -1549,7 +1549,7 @@ public://------------------------------------------------------------------------------class ColumnMoveDragTool : public XsheetGUI::DragTool {+class ColumnMoveDragTool final : public XsheetGUI::DragTool {int m_offset, m_firstCol, m_lastCol;public:@@ -1617,7 +1617,7 @@ XsheetGUI::DragTool *XsheetGUI::DragTool::makeColumnMoveTool(// Parent Change//------------------------------------------------------------------------------class ChangePegbarParentUndo : public TUndo {+class ChangePegbarParentUndo final : public TUndo {TStageObjectId m_oldParentId;TStageObjectId m_newParentId;TStageObjectId m_child;@@ -1650,7 +1650,7 @@ public://------------------------------------------------------------------------------class ChangePegbarParentDragTool : public XsheetGUI::DragTool {+class ChangePegbarParentDragTool final : public XsheetGUI::DragTool {int m_firstCol, m_lastCol;public:@@ -1709,7 +1709,7 @@ XsheetGUI::DragTool *XsheetGUI::DragTool::makeColumnLinkTool(namespace {-class VolumeDragTool : public XsheetGUI::DragTool {+class VolumeDragTool final : public XsheetGUI::DragTool {int m_index;bool m_enabled;@@ -1765,7 +1765,7 @@ XsheetGUI::DragTool *XsheetGUI::DragTool::makeVolumeDragTool(namespace {-class SoundScrubTool : public XsheetGUI::DragTool {+class SoundScrubTool final : public XsheetGUI::DragTool {TXshSoundColumn *m_soundColumn;int m_startRow;std::pair<int, int> m_playRange;@@ -1867,7 +1867,7 @@ public:enum CellMovementType { NO_MOVEMENT, INSERT_CELLS, OVERWRITE_CELLS };-class DataDragTool : public XsheetGUI::DragTool {+class DataDragTool final : public XsheetGUI::DragTool {DragAndDropData *m_data;bool m_valid;TPoint m_curPos;diff --git a/toonz/sources/toonz/xsheetviewer.h b/toonz/sources/toonz/xsheetviewer.hindex 21b30890d..83a7b4c8d 100644--- a/toonz/sources/toonz/xsheetviewer.h+++ b/toonz/sources/toonz/xsheetviewer.h@@ -127,7 +127,7 @@ const QColor CurrentFrameBGColor(210, 210, 210);// XsheetScrollArea//------------------------------------------------------------------------------class XsheetScrollArea : public QScrollArea {+class XsheetScrollArea final : public QScrollArea {Q_OBJECTpublic:@@ -154,7 +154,7 @@ protected://! Note: some refactoring is needed. XsheetViewer is going to derive from//! SpreadsheetViewer.-class XsheetViewer : public QFrame, public Spreadsheet::FrameScroller {+class XsheetViewer final : public QFrame, public Spreadsheet::FrameScroller {Q_OBJECTQColor m_lightLightBgColor;diff --git a/toonz/sources/toonz/xshnoteviewer.h b/toonz/sources/toonz/xshnoteviewer.hindex a465a0d13..d2d4cc4e1 100644--- a/toonz/sources/toonz/xshnoteviewer.h+++ b/toonz/sources/toonz/xshnoteviewer.h@@ -31,7 +31,7 @@ namespace XsheetGUI {// NotePopup//------------------------------------------------------------------------------class NotePopup : public DVGui::Dialog {+class NotePopup final : public DVGui::Dialog {Q_OBJECTXsheetViewer *m_viewer;int m_noteIndex;@@ -83,7 +83,7 @@ protected slots:// NoteWidget//------------------------------------------------------------------------------class NoteWidget : public QWidget {+class NoteWidget final : public QWidget {Q_OBJECTXsheetViewer *m_viewer;int m_noteIndex;@@ -111,7 +111,7 @@ protected:// NoteArea//------------------------------------------------------------------------------class NoteArea : public QFrame {+class NoteArea final : public QFrame {Q_OBJECTstd::unique_ptr<NotePopup> m_newNotePopup; // Popup used to create new notediff --git a/toonz/sources/toonz/xshrowviewer.h b/toonz/sources/toonz/xshrowviewer.hindex 038c92de0..a486a22c1 100644--- a/toonz/sources/toonz/xshrowviewer.h+++ b/toonz/sources/toonz/xshrowviewer.h@@ -18,7 +18,7 @@ class DragTool;//-----------------------------------------------------------------------------//! La classe si occupa della visualizzazione dell'area che gestisce le righe.-class RowArea : public QWidget {+class RowArea final : public QWidget {Q_OBJECTXsheetViewer *m_viewer;int m_xa;diff --git a/toonz/sources/toonzfarm/include/tfarmproxy.h b/toonz/sources/toonzfarm/include/tfarmproxy.hindex f1edd1fb7..4a3b7ad03 100644--- a/toonz/sources/toonzfarm/include/tfarmproxy.h+++ b/toonz/sources/toonzfarm/include/tfarmproxy.h@@ -67,7 +67,7 @@ protected://-------------------------------------------------------------------------------class CantConnectToStub : public TFarmProxyException {+class CantConnectToStub final : public TFarmProxyException {public:CantConnectToStub(const QString &hostname, const QString &addr, int port): TFarmProxyException(hostname, addr, port, "") {}diff --git a/toonz/sources/toonzfarm/tfarm/tfarmcontroller_c.cpp b/toonz/sources/toonzfarm/tfarm/tfarmcontroller_c.cppindex e0b7a3b30..6490fe1ea 100644--- a/toonz/sources/toonzfarm/tfarm/tfarmcontroller_c.cpp+++ b/toonz/sources/toonzfarm/tfarm/tfarmcontroller_c.cpp@@ -14,7 +14,7 @@ namespace {//-------------------------------------------------------------------------------class Controller : public TFarmController, public TFarmProxy {+class Controller final : public TFarmController, public TFarmProxy {public:Controller(const QString &hostName, const QString &addr, int port): TFarmProxy(hostName, addr, port) {}diff --git a/toonz/sources/toonzfarm/tfarm/tfarmserver_c.cpp b/toonz/sources/toonzfarm/tfarm/tfarmserver_c.cppindex b83627224..5d731b4e2 100644--- a/toonz/sources/toonzfarm/tfarm/tfarmserver_c.cpp+++ b/toonz/sources/toonzfarm/tfarm/tfarmserver_c.cpp@@ -9,7 +9,7 @@ namespace {//-------------------------------------------------------------------------------class FarmServerProxy : public TFarmServer, public TFarmProxy {+class FarmServerProxy final : public TFarmServer, public TFarmProxy {public:FarmServerProxy(const QString &hostName, const QString &addr, int port): TFarmProxy(hostName, addr, port) {}diff --git a/toonz/sources/toonzfarm/tfarm/tfarmserverstub.cpp b/toonz/sources/toonzfarm/tfarm/tfarmserverstub.cppindex 9f5012f45..3f4de3fa0 100644--- a/toonz/sources/toonzfarm/tfarm/tfarmserverstub.cpp+++ b/toonz/sources/toonzfarm/tfarm/tfarmserverstub.cpp@@ -11,7 +11,7 @@ using namespace std;//-------------------------------------------------------------------------------class TFarmServerStub::Imp : public TFarmExecutor {+class TFarmServerStub::Imp final : public TFarmExecutor {public:Imp(TFarmServer *server, int port) : TFarmExecutor(port), m_server(server) {assert(m_server);diff --git a/toonz/sources/toonzfarm/tfarm/tfarmtask.cpp b/toonz/sources/toonzfarm/tfarm/tfarmtask.cppindex 4a6f854f0..7897e2477 100644--- a/toonz/sources/toonzfarm/tfarm/tfarmtask.cpp+++ b/toonz/sources/toonzfarm/tfarm/tfarmtask.cpp@@ -534,7 +534,7 @@ QString TFarmTask::getCommandLine(bool isFarmTask) const {namespace {-class TFarmTaskDeclaration : public TPersistDeclaration {+class TFarmTaskDeclaration final : public TPersistDeclaration {public:TFarmTaskDeclaration(const std::string &id) : TPersistDeclaration(id) {}@@ -748,7 +748,7 @@ void TFarmTaskGroup::saveData(TOStream &os) {namespace {-class TFarmTaskGroupDeclaration : public TPersistDeclaration {+class TFarmTaskGroupDeclaration final : public TPersistDeclaration {public:TFarmTaskGroupDeclaration(const std::string &id) : TPersistDeclaration(id) {}diff --git a/toonz/sources/toonzfarm/tfarm/ttcpipserver.cpp b/toonz/sources/toonzfarm/tfarm/ttcpipserver.cppindex a6e75cd25..80fffe0d7 100644--- a/toonz/sources/toonzfarm/tfarm/ttcpipserver.cpp+++ b/toonz/sources/toonzfarm/tfarm/ttcpipserver.cpp@@ -267,7 +267,7 @@ static void shutdown_cb(int) { Sthutdown = true; }//----------------------------------------------------------------------class DataReader : public TThread::Runnable {+class DataReader final : public TThread::Runnable {public:DataReader(int clientSocket, std::shared_ptr<TTcpIpServerImp> serverImp): m_clientSocket(clientSocket), m_serverImp(std::move(serverImp)) {}@@ -296,7 +296,7 @@ void DataReader::run() {//----------------------------------------------------------------------class DataReceiver : public TThread::Runnable {+class DataReceiver final : public TThread::Runnable {public:DataReceiver(int clientSocket, const QString &data,std::shared_ptr<TTcpIpServerImp> serverImp)diff --git a/toonz/sources/toonzfarm/tfarmcontroller/tfarmcontroller.cpp b/toonz/sources/toonzfarm/tfarmcontroller/tfarmcontroller.cppindex 3f0c56a61..9f219aad9 100644--- a/toonz/sources/toonzfarm/tfarmcontroller/tfarmcontroller.cpp+++ b/toonz/sources/toonzfarm/tfarmcontroller/tfarmcontroller.cpp@@ -170,7 +170,7 @@ bool isAScript(TFarmTask *task) {//==============================================================================-class CtrlFarmTask : public TFarmTask {+class CtrlFarmTask final : public TFarmTask {public:CtrlFarmTask() : m_toBeDeleted(false), m_failureCount(0) {}@@ -206,7 +206,7 @@ public:namespace {-class TFarmTaskDeclaration : public TPersistDeclaration {+class TFarmTaskDeclaration final : public TPersistDeclaration {public:TFarmTaskDeclaration(const std::string &id) : TPersistDeclaration(id) {}@@ -442,7 +442,7 @@ bool doTestConnection(const QString &hostName, const QString &addr, int port) {//------------------------------------------------------------------------------#ifdef _WIN32-class ConnectionTest : public TThread::Runnable {+class ConnectionTest final : public TThread::Runnable {public:ConnectionTest(const FarmServerProxy *server, HANDLE hEvent): m_server(server), m_hEvent(hEvent) {}@@ -553,7 +553,7 @@ public://==============================================================================-class FarmController : public TFarmExecutor, public TFarmController {+class FarmController final : public TFarmExecutor, public TFarmController {public:FarmController(const QString &hostName, const QString &addr, int port,TUserLog *log);@@ -1326,7 +1326,7 @@ ServerState FarmController::getServerState(FarmServerProxy *server,//-------------------------------------------------------------------------------class ServerInitializer : public TThread::Runnable {+class ServerInitializer final : public TThread::Runnable {public:ServerInitializer(FarmServerProxy *server) : m_server(server) {}@@ -1381,7 +1381,7 @@ QString FarmController::addTask(const QString &name, const QString &cmdline,//-------------------------------------------------------------------------------class TaskStarter : public TThread::Runnable {+class TaskStarter final : public TThread::Runnable {public:TaskStarter(FarmController *controller, CtrlFarmTask *task,FarmServerProxy *server = 0)@@ -2176,7 +2176,7 @@ void FarmController::activateReadyServers() {//==============================================================================-class ControllerService : public TService {+class ControllerService final : public TService {public:ControllerService(): TService("ToonzFarmController", "ToonzFarm Controller")diff --git a/toonz/sources/toonzfarm/tfarmserver/tfarmserver.cpp b/toonz/sources/toonzfarm/tfarmserver/tfarmserver.cppindex d55d361c2..51cd4f943 100644--- a/toonz/sources/toonzfarm/tfarmserver/tfarmserver.cpp+++ b/toonz/sources/toonzfarm/tfarmserver/tfarmserver.cpp@@ -171,7 +171,7 @@ inline bool isBlank(char c) { return c == ' ' || c == '\t' || c == '\n'; }//==============================================================================//==============================================================================-class FarmServerService : public TService {+class FarmServerService final : public TService {public:FarmServerService(std::ostream &os): TService("ToonzFarm Server", "ToonzFarm Server")@@ -208,7 +208,7 @@ FarmServerService service(std::cout);//==============================================================================//==============================================================================-class FarmControllerProxy : public TSmartObject {+class FarmControllerProxy final : public TSmartObject {TFarmController *m_controller;public:@@ -259,7 +259,7 @@ public://==============================================================================//==============================================================================-class FarmServer : public TFarmExecutor, public TFarmServer {+class FarmServer final : public TFarmExecutor, public TFarmServer {public:FarmServer(int port, TUserLog *log);~FarmServer();@@ -326,7 +326,7 @@ private://===================================================================//===================================================================-class Task : public TThread::Runnable {+class Task final : public TThread::Runnable {public:Task(const QString &id, const QString &cmdline, TUserLog *log,FarmServer *server, const FarmControllerProxyP &controller)diff --git a/toonz/sources/toonzlib/cleanupcommon.h b/toonz/sources/toonzlib/cleanupcommon.hindex bcac017c8..12361ed42 100644--- a/toonz/sources/toonzlib/cleanupcommon.h+++ b/toonz/sources/toonzlib/cleanupcommon.h@@ -11,7 +11,7 @@ inline double mmToPixel(double val, double dpi) {return (val * dpi) * (1.0 / 25.4);}-class TCleanupException : public TException {+class TCleanupException final : public TException {public:TCleanupException(const char *msg) : TException(msg) {}~TCleanupException() {}diff --git a/toonz/sources/toonzlib/doubleparamcmd.cpp b/toonz/sources/toonzlib/doubleparamcmd.cppindex 16ebef048..90016cccd 100644--- a/toonz/sources/toonzlib/doubleparamcmd.cpp+++ b/toonz/sources/toonzlib/doubleparamcmd.cpp@@ -19,7 +19,7 @@ DV_IMPORT_API void splitSpeedInOutSegment(TDoubleKeyframe &k,////------------------------------------------------------------------------------class KeyframesUndo : public TUndo {+class KeyframesUndo final : public TUndo {TDoubleParamP m_param;typedef std::map<int, TDoubleKeyframe> Keyframes;Keyframes m_oldKeyframes;@@ -802,7 +802,7 @@ void KeyframeSetter::setAllParams(//=============================================================================-class RemoveKeyframeUndo : public TUndo {+class RemoveKeyframeUndo final : public TUndo {TDoubleParam *m_param;TDoubleKeyframe m_keyframe;@@ -832,7 +832,7 @@ void KeyframeSetter::removeKeyframeAt(TDoubleParam *curve, double frame) {//=============================================================================-class EnableCycleUndo : public TUndo {+class EnableCycleUndo final : public TUndo {TDoubleParam *m_param;public:diff --git a/toonz/sources/toonzlib/fxcommand.cpp b/toonz/sources/toonzlib/fxcommand.cppindex 1f91c7aa0..73cca2296 100644--- a/toonz/sources/toonzlib/fxcommand.cpp+++ b/toonz/sources/toonzlib/fxcommand.cpp@@ -690,7 +690,7 @@ std::vector<TFxCommand::Link> FxCommandUndo::outputLinks(TXsheet *xsh,// Insert Fx command//**********************************************************************-class InsertFxUndo : public FxCommandUndo {+class InsertFxUndo final : public FxCommandUndo {QList<TFxP> m_selectedFxs;QList<TFxCommand::Link> m_selectedLinks;@@ -949,7 +949,7 @@ void TFxCommand::addFx(TFx *newFx, const QList<TFxP> &fxs, TApplication *app,// Duplicate Fx command//**********************************************************************-class DuplicateFxUndo : public FxCommandUndo {+class DuplicateFxUndo final : public FxCommandUndo {TFxP m_fx, m_dupFx;TXshColumnP m_column;int m_colIdx;@@ -1080,7 +1080,7 @@ void TFxCommand::duplicateFx(TFx *src, TXsheetHandle *xshHandle,// Replace Fx command//**********************************************************************-class ReplaceFxUndo : public FxCommandUndo {+class ReplaceFxUndo final : public FxCommandUndo {TFxP m_fx, m_repFx, m_linkedFx;TXshColumnP m_column, m_repColumn;int m_colIdx, m_repColIdx;@@ -1314,7 +1314,7 @@ void TFxCommand::replaceFx(TFx *newFx, const QList<TFxP> &fxs,// Unlink Fx command//**********************************************************************-class UnlinkFxUndo : public FxCommandUndo {+class UnlinkFxUndo final : public FxCommandUndo {TFxP m_fx, m_linkedFx;TXsheetHandle *m_xshHandle;@@ -1509,7 +1509,7 @@ void TFxCommand::makeMacroFx(const std::vector<TFxP> &fxs, TApplication *app) {// Explode Macro Fx command//**********************************************************************-class ExplodeMacroUndo : public MakeMacroUndo {+class ExplodeMacroUndo final : public MakeMacroUndo {public:ExplodeMacroUndo(TMacroFx *macro, TApplication *app): MakeMacroUndo(macro, app) {@@ -1553,7 +1553,7 @@ void TFxCommand::explodeMacroFx(TMacroFx *macroFx, TApplication *app) {// Create Output Fx command//**********************************************************************-class CreateOutputFxUndo : public FxCommandUndo {+class CreateOutputFxUndo final : public FxCommandUndo {TFxP m_outputFx;TXsheetHandle *m_xshHandle;@@ -1723,7 +1723,7 @@ void TFxCommand::connectNodesToXsheet(const std::list<TFxP> &fxs,// Disconnect Nodes From Xsheet command//**********************************************************************-class DisconnectNodesFromXsheetUndo : public ConnectNodesToXsheetUndo {+class DisconnectNodesFromXsheetUndo final : public ConnectNodesToXsheetUndo {public:DisconnectNodesFromXsheetUndo(const std::list<TFxP> &fxs,TXsheetHandle *xshHandle)@@ -2049,7 +2049,7 @@ void deleteLinks(const std::list<TFxCommand::Link> &links,// Delete Fx command//******************************************************-class DeleteFxOrColumnUndo : public DeleteLinksUndo {+class DeleteFxOrColumnUndo final : public DeleteLinksUndo {protected:TFxP m_fx;TXshColumnP m_column;@@ -2829,7 +2829,7 @@ void TFxCommand::addPasteFxs(TFx *inFx, const std::list<TFxP> &fxs,// Insert Paste Fxs command//**********************************************************************-class UndoInsertPasteFxs : public UndoAddPasteFxs {+class UndoInsertPasteFxs final : public UndoAddPasteFxs {TFxCommand::Link m_linkOut; //!< Output link to be re-established//!< on redopublic:@@ -2919,7 +2919,7 @@ void TFxCommand::insertPasteFxs(const Link &link, const std::list<TFxP> &fxs,// Replace Paste Fxs command//**********************************************************************-class UndoReplacePasteFxs : public UndoAddPasteFxs {+class UndoReplacePasteFxs final : public UndoAddPasteFxs {std::auto_ptr<DeleteFxOrColumnUndo> m_deleteFxUndo;TFx *m_fx, *m_rightmostFx;@@ -3211,7 +3211,7 @@ void TFxCommand::disconnectFxs(const std::list<TFxP> &fxs,// Connect Fxs command//**********************************************************************-class UndoConnectFxs : public UndoDisconnectFxs {+class UndoConnectFxs final : public UndoDisconnectFxs {struct GroupData;private:@@ -3355,7 +3355,7 @@ void TFxCommand::connectFxs(const Link &link, const std::list<TFxP> &fxs,// Set Parent command//**********************************************************************-class SetParentUndo : public FxCommandUndo {+class SetParentUndo final : public FxCommandUndo {TFxP m_oldFx, m_newFx, m_parentFx;int m_parentPort;@@ -3483,7 +3483,7 @@ void TFxCommand::setParent(TFx *fx, TFx *parentFx, int parentFxPort,// Rename Fx command//**********************************************************************-class UndoRenameFx : public FxCommandUndo {+class UndoRenameFx final : public FxCommandUndo {TFxP m_fx;std::wstring m_newName, m_oldName;@@ -3661,7 +3661,7 @@ void TFxCommand::groupFxs(const std::list<TFxP> &fxs,// Ungroup Fxs command//**********************************************************************-class UndoUngroupFxs : public UndoGroupFxs {+class UndoUngroupFxs final : public UndoGroupFxs {public:UndoUngroupFxs(int groupId, TXsheetHandle *xshHandle): UndoGroupFxs(groupId, xshHandle) {@@ -3748,7 +3748,7 @@ void TFxCommand::ungroupFxs(int groupId, TXsheetHandle *xshHandle) {// Rename Group command//**********************************************************************-class UndoRenameGroup : public FxCommandUndo {+class UndoRenameGroup final : public FxCommandUndo {std::vector<UndoGroupFxs::GroupData> m_groupData;std::wstring m_oldGroupName, m_newGroupName;diff --git a/toonz/sources/toonzlib/ikjacobian.cpp b/toonz/sources/toonzlib/ikjacobian.cppindex 61316aaca..94f9bea16 100644--- a/toonz/sources/toonzlib/ikjacobian.cpp+++ b/toonz/sources/toonzlib/ikjacobian.cpp@@ -533,7 +533,7 @@ void MatrixRmn::PostApplyGivens(double c, double s, long idx1, long idx2) {// Diagonal entries have all non-zero entries before all zero entries, but are// not// necessarily sorted. (Someday, I will write ComputedSortedSVD-//that+// that// handles// sorting the eigenvalues by magnitude.)// ********************************************************************************************@@ -717,7 +717,7 @@ void MatrixRmn::SvdHouseholder(double *basePt, long colLength, long numCols,// colStride, rowStride: Householder xforms are stored in "columns"// numZerosSkipped is the number of implicit zeros on the front each// Householder transformation vector (only values supported-//are+// are// 0 and 1).void MatrixRmn::ExpandHouseholders(long numXforms, int numZerosSkipped,const double *basePt, long colStride,diff --git a/toonz/sources/toonzlib/imagebuilders.h b/toonz/sources/toonzlib/imagebuilders.hindex 1e6a0b3ac..93fab9238 100644--- a/toonz/sources/toonzlib/imagebuilders.h+++ b/toonz/sources/toonzlib/imagebuilders.h@@ -28,7 +28,7 @@ class TXshSimpleLevel;forimage loading.*/-class ImageLoader : public ImageBuilder {+class ImageLoader final : public ImageBuilder {public:struct BuildExtData {const TXshSimpleLevel *m_sl; //!< TXshSimpleLevel instance associated to an@@ -78,7 +78,7 @@ private://------------------------------------------------------------------------------class ImageRasterizer : public ImageBuilder {+class ImageRasterizer final : public ImageBuilder {public:ImageRasterizer() {}~ImageRasterizer() {}@@ -92,7 +92,7 @@ protected://------------------------------------------------------------------------------class ImageFiller : public ImageBuilder {+class ImageFiller final : public ImageBuilder {public:ImageFiller() {}~ImageFiller() {}diff --git a/toonz/sources/toonzlib/movierenderer.cpp b/toonz/sources/toonzlib/movierenderer.cppindex 59534fe8a..35c6e30ff 100644--- a/toonz/sources/toonzlib/movierenderer.cpp+++ b/toonz/sources/toonzlib/movierenderer.cpp@@ -96,7 +96,7 @@ QString getPreviewName(unsigned long renderSessionId) {// MovieRenderer::Imp definition//**************************************************************************-class MovieRenderer::Imp : public TRenderPort, public TSmartObject {+class MovieRenderer::Imp final : public TRenderPort, public TSmartObject {public:ToonzScene *m_scene;TRenderer m_renderer;diff --git a/toonz/sources/toonzlib/multimediarenderer.cpp b/toonz/sources/toonzlib/multimediarenderer.cppindex 888b08fb9..a27aea8b7 100644--- a/toonz/sources/toonzlib/multimediarenderer.cpp+++ b/toonz/sources/toonzlib/multimediarenderer.cpp@@ -41,8 +41,8 @@ std::wstring removeSpaces(const std::wstring &str) {////----------------------------------------------------------class MultimediaRenderer::Imp : public MovieRenderer::Listener,- public TSmartObject {+class MultimediaRenderer::Imp final : public MovieRenderer::Listener,+ public TSmartObject {public:ToonzScene *m_scene;TFilePath m_fp;diff --git a/toonz/sources/toonzlib/palettecmd.cpp b/toonz/sources/toonzlib/palettecmd.cppindex 0c5b68c92..30a03904b 100644--- a/toonz/sources/toonzlib/palettecmd.cpp+++ b/toonz/sources/toonzlib/palettecmd.cpp@@ -162,7 +162,7 @@ bool areStylesUsed(const set<TXshSimpleLevel *> levels,namespace {-class ArrangeStylesUndo : public TUndo {+class ArrangeStylesUndo final : public TUndo {TPaletteHandle *m_paletteHandle;TPaletteP m_palette;int m_dstPageIndex;@@ -276,7 +276,7 @@ void PaletteCmd::arrangeStyles(TPaletteHandle *paletteHandle, int dstPageIndex,namespace {//------------------------------------------------------------------------------class CreateStyleUndo : public TUndo {+class CreateStyleUndo final : public TUndo {TPaletteHandle *m_paletteHandle;TPaletteP m_palette;int m_pageIndex;@@ -394,7 +394,7 @@ namespace {// AddStylesUndo//------------------------------------------------------------------------------class AddStylesUndo : public TUndo {+class AddStylesUndo final : public TUndo {TPaletteP m_palette;int m_pageIndex;int m_indexInPage;@@ -523,7 +523,7 @@ void PaletteCmd::eraseStyles(const std::set<TXshSimpleLevel *> &levels,typedef std::pair<const TXshSimpleLevelP, std::vector<TVectorImageP>>LevelImages;- struct Undo : public TUndo {+ struct Undo final : public TUndo {std::set<TXshSimpleLevel *> m_levels;std::vector<int> m_styleIds;@@ -616,7 +616,7 @@ void PaletteCmd::eraseStyles(const std::set<TXshSimpleLevel *> &levels,namespace {-class AddPageUndo : public TUndo {+class AddPageUndo final : public TUndo {TPaletteHandle *m_paletteHandle;TPaletteP m_palette;int m_pageIndex;@@ -699,7 +699,7 @@ void PaletteCmd::addPage(TPaletteHandle *paletteHandle, std::wstring name,namespace {-class DestroyPageUndo : public TUndo {+class DestroyPageUndo final : public TUndo {TPaletteHandle *m_paletteHandle;TPaletteP m_palette;int m_pageIndex;@@ -765,7 +765,7 @@ namespace {// SetReferenceImageUndo//--------------------------------------------------------------------class SetReferenceImageUndo : public TUndo {+class SetReferenceImageUndo final : public TUndo {TPaletteP m_palette;TPaletteP m_oldPalette, m_newPalette;@@ -1004,7 +1004,7 @@ void PaletteCmd::removeReferenceImage(TPaletteHandle *paletteHandle) {namespace {-class MovePageUndo : public TUndo {+class MovePageUndo final : public TUndo {TPaletteHandle *m_paletteHandle;TPaletteP m_palette;int m_srcIndex;@@ -1047,7 +1047,7 @@ void PaletteCmd::movePalettePage(TPaletteHandle *paletteHandle, int srcIndex,namespace {-class RenamePageUndo : public TUndo {+class RenamePageUndo final : public TUndo {TPaletteHandle *m_paletteHandle;TPaletteP m_palette;int m_pageIndex;@@ -1108,7 +1108,7 @@ void PaletteCmd::renamePalettePage(TPaletteHandle *paletteHandle, int pageIndex,namespace {-class RenamePaletteStyleUndo : public TUndo {+class RenamePaletteStyleUndo final : public TUndo {TPaletteHandle *m_paletteHandle; // Usato nell'undo e nel redo per lanciare// la notifica di cambiamentoint m_styleId;diff --git a/toonz/sources/toonzlib/sandor_fxs/SError.h b/toonz/sources/toonzlib/sandor_fxs/SError.hindex e80f67d9e..527fade74 100644--- a/toonz/sources/toonzlib/sandor_fxs/SError.h+++ b/toonz/sources/toonzlib/sandor_fxs/SError.h@@ -28,7 +28,7 @@ public:}};-class SMemAllocError : public SError {+class SMemAllocError final : public SError {public:SMemAllocError() : SError(""){};SMemAllocError(const char *s) : SError(s){};@@ -41,7 +41,7 @@ public:}};-class SWriteRasterError : public SError {+class SWriteRasterError final : public SError {public:SWriteRasterError() : SError(""){};SWriteRasterError(const char *s) : SError(s){};@@ -54,7 +54,7 @@ public:}};-class SBlurMatrixError : public SError {+class SBlurMatrixError final : public SError {public:SBlurMatrixError() : SError(""){};SBlurMatrixError(const char *s) : SError(s){};@@ -67,7 +67,7 @@ public:}};-class SFileReadError : public SError {+class SFileReadError final : public SError {public:SFileReadError() : SError(""){};SFileReadError(const char *s) : SError(s){};diff --git a/toonz/sources/toonzlib/sandor_fxs/STColSelPic.h b/toonz/sources/toonzlib/sandor_fxs/STColSelPic.hindex ef4fa04bf..7c1995935 100644--- a/toonz/sources/toonzlib/sandor_fxs/STColSelPic.h+++ b/toonz/sources/toonzlib/sandor_fxs/STColSelPic.h@@ -27,7 +27,7 @@#include "SError.h"template <class P>-class CSTColSelPic : public CSTPic<P> {+class CSTColSelPic final : public CSTPic<P> {public:std::shared_ptr<UCHAR> m_sel;diff --git a/toonz/sources/toonzlib/sandor_fxs/YOMBInputParam.h b/toonz/sources/toonzlib/sandor_fxs/YOMBInputParam.hindex 609fa3ee1..5a56e4aa1 100644--- a/toonz/sources/toonzlib/sandor_fxs/YOMBInputParam.h+++ b/toonz/sources/toonzlib/sandor_fxs/YOMBInputParam.h@@ -18,7 +18,7 @@ typedef struct color_index_list {unsigned short ci[MAXNBCIL];} COLOR_INDEX_LIST;-class CYOMBInputParam : public CInputParam {+class CYOMBInputParam final : public CInputParam {public:bool m_isRandomSampling;bool m_isShowSelection;diff --git a/toonz/sources/toonzlib/sandor_fxs/YOMBParam.h b/toonz/sources/toonzlib/sandor_fxs/YOMBParam.hindex 9125bb5b0..f049c86f6 100644--- a/toonz/sources/toonzlib/sandor_fxs/YOMBParam.h+++ b/toonz/sources/toonzlib/sandor_fxs/YOMBParam.h@@ -85,7 +85,7 @@ public:// void blurPixel(CSTColSelPic<UC_PIXEL>& pic, const int xx, const int yy,// const CBlurMatrix& bm, UC_PIXEL& col,const- //UCHAR+ // UCHAR// osel);// bool isContourOnPath(const int xx, const int yy,// std::vector<BLURSECTION>::const_iteratordiff --git a/toonz/sources/toonzlib/scenefx.cpp b/toonz/sources/toonzlib/scenefx.cppindex c838aac6b..2c429d307 100644--- a/toonz/sources/toonzlib/scenefx.cpp+++ b/toonz/sources/toonzlib/scenefx.cpp@@ -58,7 +58,7 @@ is developed fromis fixed, a sub-xsheet can be seen as a <I> frame setter <\I> fx.*/-class TimeShuffleFx : public TRasterFx {+class TimeShuffleFx final : public TRasterFx {FX_DECLARATION(TimeShuffleFx)private:@@ -151,7 +151,7 @@ FX_IDENTIFIER_IS_HIDDEN(TimeShuffleFx, "timeShuffleFx")\b not resolved during the rendering-tree expansion procedure.*/-class AffineFx : public TGeometryFx {+class AffineFx final : public TGeometryFx {FX_DECLARATION(AffineFx)private:diff --git a/toonz/sources/toonzlib/scriptbinding_renderer.cpp b/toonz/sources/toonzlib/scriptbinding_renderer.cppindex 3556c0ce8..be966893f 100644--- a/toonz/sources/toonzlib/scriptbinding_renderer.cpp+++ b/toonz/sources/toonzlib/scriptbinding_renderer.cpp@@ -43,7 +43,7 @@ void valueToIntList(const QScriptValue &arr, QList<int> &list) {//=======================================================-class Renderer::Imp : public TRenderPort {+class Renderer::Imp final : public TRenderPort {public:TScriptBinding::Image *m_outputImage;TScriptBinding::Level *m_outputLevel;diff --git a/toonz/sources/toonzlib/scriptengine.cpp b/toonz/sources/toonzlib/scriptengine.cppindex 02b0c6e69..b266a9d0c 100644--- a/toonz/sources/toonzlib/scriptengine.cpp+++ b/toonz/sources/toonzlib/scriptengine.cpp@@ -132,7 +132,7 @@ QScriptValue runFunction(QScriptContext *context, QScriptEngine *engine) {//=========================================================-class ScriptEngine::Executor : public QThread {+class ScriptEngine::Executor final : public QThread {ScriptEngine *m_engine;QString m_cmd;diff --git a/toonz/sources/toonzlib/studiopalette.cpp b/toonz/sources/toonzlib/studiopalette.cppindex 9378806ec..54c05587c 100644--- a/toonz/sources/toonzlib/studiopalette.cpp+++ b/toonz/sources/toonzlib/studiopalette.cpp@@ -202,7 +202,6 @@ StudioPalette *StudioPalette::instance() {//--------------------------------------------------------------------TFilePath StudioPalette::getLevelPalettesRoot() {return m_root + "Global Palettes";}diff --git a/toonz/sources/toonzlib/studiopalettecmd.cpp b/toonz/sources/toonzlib/studiopalettecmd.cppindex 232b67551..8cf07e951 100644--- a/toonz/sources/toonzlib/studiopalettecmd.cpp+++ b/toonz/sources/toonzlib/studiopalettecmd.cpp@@ -35,7 +35,7 @@ namespace {//=============================================================================// PaletteAssignUndo : Undo for the "Load into Current Palette" command.-class PaletteAssignUndo : public TUndo {+class PaletteAssignUndo final : public TUndo {TPaletteP m_targetPalette, m_oldPalette, m_newPalette;TPaletteHandle *m_paletteHandle;@@ -74,7 +74,7 @@ public:// StudioPaletteAssignUndo : Undo for the "Replace with Current Palette"// command.-class StudioPaletteAssignUndo : public TUndo {+class StudioPaletteAssignUndo final : public TUndo {TPaletteP m_oldPalette, m_newPalette;TFilePath m_fp;TPaletteHandle *m_paletteHandle;@@ -116,7 +116,7 @@ public://=============================================================================// DeletePaletteUndo-class DeletePaletteUndo : public TUndo {+class DeletePaletteUndo final : public TUndo {TFilePath m_palettePath;TPaletteP m_palette;@@ -143,7 +143,7 @@ public://=============================================================================// CreatePaletteUndo-class CreatePaletteUndo : public TUndo {+class CreatePaletteUndo final : public TUndo {TFilePath m_palettePath;TPaletteP m_palette;@@ -170,7 +170,7 @@ public://=============================================================================// DeleteFolderUndo-class DeleteFolderUndo : public TUndo {+class DeleteFolderUndo final : public TUndo {TFilePath m_path;TFilePathSet m_pathSet;QList<TPaletteP> m_paletteList;@@ -215,7 +215,7 @@ public://=============================================================================// CreateFolderUndo-class CreateFolderUndo : public TUndo {+class CreateFolderUndo final : public TUndo {TFilePath m_folderPath;public:@@ -239,7 +239,7 @@ public://=============================================================================// MovePaletteUndo-class MovePaletteUndo : public TUndo {+class MovePaletteUndo final : public TUndo {TFilePath m_dstPath, m_srcPath;public:@@ -267,7 +267,7 @@ void adaptLevelToPalette(TXshLevelHandle *currentLevelHandle,TPaletteHandle *paletteHandle, TPalette *plt,int tolerance, bool noUndo);-class AdjustIntoCurrentPaletteUndo : public TUndo {+class AdjustIntoCurrentPaletteUndo final : public TUndo {TXshLevelHandle *m_currentLevelHandle;TPaletteHandle *m_paletteHandle;TPaletteP m_oldPalette, m_newPalette;diff --git a/toonz/sources/toonzlib/stylemanager.cpp b/toonz/sources/toonzlib/stylemanager.cppindex a045244a4..35781c35b 100644--- a/toonz/sources/toonzlib/stylemanager.cpp+++ b/toonz/sources/toonzlib/stylemanager.cpp@@ -46,7 +46,7 @@ void convertRaster32ToImage(TRaster32P ras, QImage *image) {// StyleLoaderTask definition//********************************************************************************-class CustomStyleManager::StyleLoaderTask : public TThread::Runnable {+class CustomStyleManager::StyleLoaderTask final : public TThread::Runnable {CustomStyleManager *m_manager;TFilePath m_fp;PatternData m_data;diff --git a/toonz/sources/toonzlib/tcenterlineadjustments.cpp b/toonz/sources/toonzlib/tcenterlineadjustments.cppindex 612463244..2ca46b781 100644--- a/toonz/sources/toonzlib/tcenterlineadjustments.cpp+++ b/toonz/sources/toonzlib/tcenterlineadjustments.cpp@@ -288,7 +288,7 @@ void findRoads(const JointSequenceGraph &JSGraph) {//----------------------------------// Entering point of a Sequence inside a Junction Area-class EnteringSequence : public Sequence {+class EnteringSequence final : public Sequence {public:TPointD m_direction; // In this case, we keepdouble m_height; // separated (x,y) and z coords.diff --git a/toonz/sources/toonzlib/tcenterlinepolygonizer.cpp b/toonz/sources/toonzlib/tcenterlinepolygonizer.cppindex 34691ccba..d8b0319ca 100644--- a/toonz/sources/toonzlib/tcenterlinepolygonizer.cpp+++ b/toonz/sources/toonzlib/tcenterlinepolygonizer.cpp@@ -36,7 +36,7 @@ public://---------------------------------------------------------------------------class RawBorder : public std::vector<RawBorderPoint> {+class RawBorder final : public std::vector<RawBorderPoint> {int m_xExternal; // x coordinate of a specific vertex in the outer// RawBorder which contains this inner one.TPointD *m_coordinateSums;diff --git a/toonz/sources/toonzlib/tcenterlineskeletonizer.cpp b/toonz/sources/toonzlib/tcenterlineskeletonizer.cppindex 4b06e4a49..798eb3d4a 100644--- a/toonz/sources/toonzlib/tcenterlineskeletonizer.cpp+++ b/toonz/sources/toonzlib/tcenterlineskeletonizer.cpp@@ -43,7 +43,7 @@ struct VectorizationContext;#include <QMouseEvent>#include <QWheelEvent>-class SSDebugger : public QWidget {+class SSDebugger final : public QWidget {public:VectorizationContext &m_context;@@ -194,7 +194,7 @@ struct EventGreater {}};-class Timeline+class Timeline final: public std::priority_queue<Event, std::vector<Event>, EventGreater> {public:Timeline() {}diff --git a/toonz/sources/toonzlib/tcenterlinevectP.h b/toonz/sources/toonzlib/tcenterlinevectP.hindex eda5f7c17..8a8324fbc 100644--- a/toonz/sources/toonzlib/tcenterlinevectP.h+++ b/toonz/sources/toonzlib/tcenterlinevectP.h@@ -430,7 +430,7 @@ public://---------------------------------------------------------------------------class JointSequenceGraph : public Graph<UINT, Sequence> {+class JointSequenceGraph final : public Graph<UINT, Sequence> {public:JointSequenceGraph() {}~JointSequenceGraph() {}diff --git a/toonz/sources/toonzlib/tcenterlinevectorizerOld.cpp b/toonz/sources/toonzlib/tcenterlinevectorizerOld.cppindex 9387d02ab..e991366e5 100644--- a/toonz/sources/toonzlib/tcenterlinevectorizerOld.cpp+++ b/toonz/sources/toonzlib/tcenterlinevectorizerOld.cpp@@ -1928,7 +1928,7 @@ currNode);*otherNode = *currNode;*currNode = tempNode;// it_temp =- //std::find(junction->m_nodes.begin(),+ // std::find(junction->m_nodes.begin(),// junction->m_nodes.end(), currNode);// assert(it_temp !=// junction->m_nodes.end());diff --git a/toonz/sources/toonzlib/tcolumnfx.cpp b/toonz/sources/toonzlib/tcolumnfx.cppindex 6e17deea3..99820e86a 100644--- a/toonz/sources/toonzlib/tcolumnfx.cpp+++ b/toonz/sources/toonzlib/tcolumnfx.cpp@@ -713,7 +713,7 @@ void applyCmappedFx(TVectorImageP &vi,// LevelFxResourceBuilder definition//****************************************************************************************-class LevelFxBuilder : public ResourceBuilder {+class LevelFxBuilder final : public ResourceBuilder {TRasterP m_loadedRas;TPaletteP m_palette;diff --git a/toonz/sources/toonzlib/tnewoutlinevectorize.cpp b/toonz/sources/toonzlib/tnewoutlinevectorize.cppindex 99bd52aee..c40d03eb6 100644--- a/toonz/sources/toonzlib/tnewoutlinevectorize.cpp+++ b/toonz/sources/toonzlib/tnewoutlinevectorize.cpp@@ -62,7 +62,7 @@ inline TPixelGR16 transparent<TPixelGR16>() {// Mesh stuff//===========================================================-class Edge : public tcg::Edge {+class Edge final : public tcg::Edge {TPoint m_dirs[2];TStroke *m_s;@@ -282,7 +282,7 @@ public://************************************************************************template <typename Pix>-class BordersReader : public TRop::borders::BordersReader {+class BordersReader final : public TRop::borders::BordersReader {public:typedef Pix pixel_type;diff --git a/toonz/sources/toonzlib/tproject.cpp b/toonz/sources/toonzlib/tproject.cppindex 6a73a33fd..ec9ef5a3a 100644--- a/toonz/sources/toonzlib/tproject.cpp+++ b/toonz/sources/toonzlib/tproject.cpp@@ -674,7 +674,7 @@ bool TProject::isAProjectPath(const TFilePath &fp) {namespace {/*-class SimpleProject : public TProject {+class SimpleProject final : public TProject {public:SimpleProject() : TProject(TFilePath("___simpleProject")) {}diff --git a/toonz/sources/toonzlib/tstageobjectcmd.cpp b/toonz/sources/toonzlib/tstageobjectcmd.cppindex a1e8f524f..103fc3654 100644--- a/toonz/sources/toonzlib/tstageobjectcmd.cpp+++ b/toonz/sources/toonzlib/tstageobjectcmd.cpp@@ -46,7 +46,7 @@ bool canRemoveFx(const std::set<TFx *> &leaves, TFx *fx) {////----------------------------------------------------------class NewCameraUndo : public TUndo {+class NewCameraUndo final : public TUndo {TStageObjectId m_cameraId, m_oldCurrentId;TStageObject *m_stageObject;TXsheetHandle *m_xshHandle;@@ -99,7 +99,7 @@ private:////----------------------------------------------------------class NewPegbarUndo : public TUndo {+class NewPegbarUndo final : public TUndo {TStageObjectId m_id, m_oldCurrentId;TStageObject *m_stageObject;TXsheetHandle *m_xshHandle;@@ -155,7 +155,7 @@ private:////--------------------------------------------------------------------class SetActiveCameraUndo : public TUndo {+class SetActiveCameraUndo final : public TUndo {TStageObjectId m_oldCameraId, m_newCameraId;TXsheetHandle *m_xshHandle;@@ -198,7 +198,7 @@ public:////--------------------------------------------------------------------class RemoveSplineUndo : public TUndo {+class RemoveSplineUndo final : public TUndo {TStageObjectId m_id;TStageObjectSpline *m_spline;std::vector<TStageObjectId> m_ids;@@ -255,7 +255,7 @@ public:////--------------------------------------------------------------------class NewSplineUndo : public TUndo {+class NewSplineUndo final : public TUndo {TStageObjectId m_id;TStageObjectSpline *m_spline;TXsheetHandle *m_xshHandle;@@ -300,7 +300,7 @@ public:////--------------------------------------------------------------------class SplineLinkUndo : public TUndo {+class SplineLinkUndo final : public TUndo {TStageObjectId m_id;TStageObjectSpline *m_spline;TXsheetHandle *m_xshHandle;@@ -344,7 +344,7 @@ public:////--------------------------------------------------------------------class RemoveSplineLinkUndo : public TUndo {+class RemoveSplineLinkUndo final : public TUndo {TStageObjectId m_id;TStageObjectSpline *m_spline;TXsheetHandle *m_xshHandle;@@ -393,7 +393,7 @@ public:////--------------------------------------------------------------------class RemovePegbarNodeUndo : public TUndo {+class RemovePegbarNodeUndo final : public TUndo {TStageObjectId m_objId;TXshColumnP m_column;TStageObjectParams *m_params;@@ -468,7 +468,7 @@ public:////--------------------------------------------------------------------class RemoveColumnsUndo : public TUndo {+class RemoveColumnsUndo final : public TUndo {std::vector<TFx *> m_deletedFx;std::vector<TFx *> m_terminalFx;QMap<TStageObjectId, QList<TFxPort *>> m_columnFxConnections;@@ -561,7 +561,7 @@ public:////--------------------------------------------------------------------class UndoGroup : public TUndo {+class UndoGroup final : public TUndo {QList<TStageObjectId> m_ids;int m_groupId;QList<int> m_positions;@@ -615,7 +615,7 @@ public:////--------------------------------------------------------------------class UndoUngroup : public TUndo {+class UndoUngroup final : public TUndo {QList<TStageObjectId> m_objsId;QList<int> m_positions;int m_groupId;@@ -679,7 +679,7 @@ public:////--------------------------------------------------------------------class UndoRenameGroup : public TUndo {+class UndoRenameGroup final : public TUndo {QList<TStageObject *> m_objs;QList<int> m_positions;std::wstring m_oldGroupName;@@ -734,7 +734,7 @@ public:////--------------------------------------------------------------------class UndoStatusChange : public TUndo {+class UndoStatusChange final : public TUndo {TStageObject *m_obj;TStageObject::Status m_oldStatus, m_newStatus;TXsheetHandle *m_xshHandle;@@ -1006,7 +1006,7 @@ public://--------------------------------------------------------------------class StageObjectRenameUndo : public SetAttributeUndo<std::string> {+class StageObjectRenameUndo final : public SetAttributeUndo<std::string> {public:StageObjectRenameUndo(const TStageObjectId &id, TXsheetHandle *xshHandle,std::string oldName, std::string newName)@@ -1022,7 +1022,7 @@ public://--------------------------------------------------------------------class ResetOffsetUndo : public SetAttributeUndo<TPointD> {+class ResetOffsetUndo final : public SetAttributeUndo<TPointD> {public:ResetOffsetUndo(const TStageObjectId &id, TXsheetHandle *xshHandle,const TPointD &oldOffset)@@ -1040,7 +1040,7 @@ public://--------------------------------------------------------------------class ResetCenterAndOffsetUndo : public SetAttributeUndo<TPointD> {+class ResetCenterAndOffsetUndo final : public SetAttributeUndo<TPointD> {public:ResetCenterAndOffsetUndo(const TStageObjectId &id, TXsheetHandle *xshHandle,const TPointD &oldOffset)@@ -1058,7 +1058,7 @@ public://--------------------------------------------------------------------class SetHandleUndo : public SetAttributeUndo<std::string> {+class SetHandleUndo final : public SetAttributeUndo<std::string> {TPointD m_center, m_offset;TXsheetHandle *m_xshHandle;@@ -1087,7 +1087,7 @@ public://--------------------------------------------------------------------class SetParentHandleUndo : public SetAttributeUndo<std::string> {+class SetParentHandleUndo final : public SetAttributeUndo<std::string> {public:SetParentHandleUndo(const TStageObjectId &id, TXsheetHandle *xshHandle,std::string oldHandle, std::string newHandle)@@ -1105,7 +1105,7 @@ public:typedef std::pair<TStageObjectId, std::string> ParentIdAndHandle;-class SetParentUndo : public SetAttributeUndo<ParentIdAndHandle> {+class SetParentUndo final : public SetAttributeUndo<ParentIdAndHandle> {public:SetParentUndo(const TStageObjectId &id, TXsheetHandle *xshHandle,TStageObjectId oldParentId, std::string oldParentHandle,@@ -1128,7 +1128,7 @@ public://--------------------------------------------------------------------class ResetPositionUndo : public TUndo {+class ResetPositionUndo final : public TUndo {TXsheetHandle *m_xshHandle;TStageObjectId m_id;TPointD m_center, m_offset;diff --git a/toonz/sources/toonzlib/txsheetexpr.cpp b/toonz/sources/toonzlib/txsheetexpr.cppindex c3e56619a..fe7d917ef 100644--- a/toonz/sources/toonzlib/txsheetexpr.cpp+++ b/toonz/sources/toonzlib/txsheetexpr.cpp@@ -41,7 +41,7 @@ namespace {//===================================================================-class ParamDependencyFinder : public TSyntax::CalculatorNodeVisitor {+class ParamDependencyFinder final : public TSyntax::CalculatorNodeVisitor {TDoubleParam *m_possiblyDependentParam;bool m_found;@@ -62,9 +62,9 @@ public:////--------------------------------------------------------------------class ParamCalculatorNode : public CalculatorNode,- public TParamObserver,- public boost::noncopyable {+class ParamCalculatorNode final : public CalculatorNode,+ public TParamObserver,+ public boost::noncopyable {TDoubleParamP m_param;std::auto_ptr<CalculatorNode> m_frame;@@ -117,8 +117,8 @@ public://--------------------------------------------------------------------class XsheetDrawingCalculatorNode : public CalculatorNode,- public boost::noncopyable {+class XsheetDrawingCalculatorNode final : public CalculatorNode,+ public boost::noncopyable {TXsheet *m_xsh;int m_columnIndex;@@ -154,7 +154,7 @@ public:////--------------------------------------------------------------------class XsheetReferencePattern : public Pattern {+class XsheetReferencePattern final : public Pattern {TXsheet *m_xsh;public:@@ -288,7 +288,7 @@ public://--------------------------------------------------------------------class FxReferencePattern : public Pattern {+class FxReferencePattern final : public Pattern {TXsheet *m_xsh;public:@@ -415,7 +415,7 @@ public://--------------------------------------------------------------------class PlasticVertexPattern : public Pattern {+class PlasticVertexPattern final : public Pattern {TXsheet *m_xsh;/*diff --git a/toonz/sources/toonzlib/xshhandlemanager.h b/toonz/sources/toonzlib/xshhandlemanager.hindex b00a5a4c3..a27d62d60 100644--- a/toonz/sources/toonzlib/xshhandlemanager.h+++ b/toonz/sources/toonzlib/xshhandlemanager.h@@ -18,7 +18,7 @@ class ToonzScene;// XshHandleManager declaration//*********************************************************************************-class XshHandleManager : public HandleManager {+class XshHandleManager final : public HandleManager {TXsheet *m_xsh;public:diff --git a/toonz/sources/toonzqt/docklayout.cpp b/toonz/sources/toonzqt/docklayout.cppindex d505ecee1..c8de5f4c0 100644--- a/toonz/sources/toonzqt/docklayout.cpp+++ b/toonz/sources/toonzqt/docklayout.cpp@@ -113,11 +113,11 @@ DockLayout::~DockLayout() {//--------------------------------------inline int DockLayout::count() const { return m_items.size(); }+int DockLayout::count() const { return m_items.size(); }//--------------------------------------inline void DockLayout::addItem(QLayoutItem *item) {+void DockLayout::addItem(QLayoutItem *item) {DockWidget *addedItem = dynamic_cast<DockWidget *>(item->widget());// Ensure that added item is effectively a DockWidget type;@@ -145,7 +145,7 @@ inline void DockLayout::addItem(QLayoutItem *item) {//--------------------------------------inline QLayoutItem *DockLayout::takeAt(int idx) {+QLayoutItem *DockLayout::takeAt(int idx) {if (idx < 0 || idx >= (int)m_items.size()) return 0;QLayoutItem *item = m_items[idx];@@ -164,7 +164,7 @@ inline QLayoutItem *DockLayout::takeAt(int idx) {//--------------------------------------inline QLayoutItem *DockLayout::itemAt(int idx) const {+QLayoutItem *DockLayout::itemAt(int idx) const {if (idx >= (int)m_items.size()) return 0;return m_items[idx];}@@ -175,7 +175,7 @@ QWidget *DockLayout::widgetAt(int idx) const { return itemAt(idx)->widget(); }//--------------------------------------inline QSize DockLayout::minimumSize() const {+QSize DockLayout::minimumSize() const {if (!m_regions.empty()) {Region *r = m_regions.front();r->calculateExtremalSizes();@@ -187,7 +187,7 @@ inline QSize DockLayout::minimumSize() const {//--------------------------------------inline QSize DockLayout::maximumSize() const {+QSize DockLayout::maximumSize() const {if (!m_regions.empty()) {Region *r = m_regions.front();r->calculateExtremalSizes();@@ -199,7 +199,7 @@ inline QSize DockLayout::maximumSize() const {//--------------------------------------inline QSize DockLayout::sizeHint() const {+QSize DockLayout::sizeHint() const {QSize s(0, 0);int n = m_items.size();if (n > 0) s = QSize(100, 70); // start with a nice default size@@ -242,7 +242,7 @@ QWidget *DockLayout::containerOf(QPoint point) const {//--------------------------------------inline void DockLayout::setMaximized(DockWidget *item, bool state) {+void DockLayout::setMaximized(DockWidget *item, bool state) {if (item && state != item->m_maximized) {if (state) {// Maximize@@ -311,7 +311,7 @@ void DockLayout::setGeometry(const QRect &rect) {//! Defines cursors for separators of the layout: if it is not possible to//! move a separator, its cursor must be an arrow.-inline void DockLayout::updateSeparatorCursors() {+void DockLayout::updateSeparatorCursors() {Region *r, *child;unsigned int i, j;@@ -464,21 +464,21 @@ Region::~Region() {//------------------------------------------------------//! Inserts DockSeparator \b sep in \b this Region-inline void Region::insertSeparator(DockSeparator *sep) {+void Region::insertSeparator(DockSeparator *sep) {m_separators.push_back(sep);}//------------------------------------------------------//! Removes a DockSeparator from \b this Region-inline void Region::removeSeparator() {+void Region::removeSeparator() {delete m_separators.back();m_separators.pop_back();}//-------------------------------------------------------inline void Region::insertSubRegion(Region *subRegion, int idx) {+void Region::insertSubRegion(Region *subRegion, int idx) {m_childList.insert(m_childList.begin() + idx, subRegion);subRegion->m_parent = this;subRegion->m_orientation = !m_orientation;@@ -487,7 +487,7 @@ inline void Region::insertSubRegion(Region *subRegion, int idx) {//------------------------------------------------------//! Inserts input \b item before position \b idx. Returns associated new region.-inline Region *Region::insertItem(DockWidget *item, int idx) {+Region *Region::insertItem(DockWidget *item, int idx) {Region *newRegion = new Region(m_owner, item);if (this) insertSubRegion(newRegion, idx);@@ -682,7 +682,7 @@ Region *DockLayout::dockItem(DockWidget *item, Region *r, int idx) {// which may slow down a bit - should be done only after a redistribute() and a// repaint() on// real-time docking.-inline Region *DockLayout::dockItemPrivate(DockWidget *item, Region *r,+Region *DockLayout::dockItemPrivate(DockWidget *item, Region *r,int idx) {// hide minimize button in FlipboolPanelitem->onDock(true);@@ -731,7 +731,7 @@ inline Region *DockLayout::dockItemPrivate(DockWidget *item, Region *r,//------------------------------------------------------//! A region is empty, if contains no item and no children.-inline bool isEmptyRegion(Region *r) {+bool isEmptyRegion(Region *r) {if ((!r->getItem()) && (r->getChildList().size() == 0)) {delete r; // Be', e' un po' improprio, ma funziona...return true;@@ -742,7 +742,7 @@ inline bool isEmptyRegion(Region *r) {//------------------------------------------------------//! Removes input item from region-inline void Region::removeItem(DockWidget *item) {+void Region::removeItem(DockWidget *item) {if (item == 0) return;unsigned int i;@@ -864,10 +864,10 @@ bool DockLayout::undockItem(DockWidget *item) {//! Search for the \b nearest n-ple from a \b target one, under conditions://!\b 1) nearest elements belong to \b fixed \b intervals; \b 2) their \b sum is//!\b fixed too.-inline void calculateNearest(std::vector<double> target,- std::vector<double> &nearest,- std::vector<std::pair<int, int>> intervals,- double sum) {+void calculateNearest(std::vector<double> target,+ std::vector<double> &nearest,+ std::vector<std::pair<int, int>> intervals,+ double sum) {// Solving a small Lagrange multipliers problem to find solution on constraint// (2)assert(target.size() == intervals.size());@@ -1095,7 +1095,7 @@ int Region::calculateMaximumSize(bool direction, bool recalcChildren) {//-------------------------------------------------------inline bool Region::addItemSize(DockWidget *item) {+bool Region::addItemSize(DockWidget *item) {int sepWidth = m_owner->spacing();if (m_orientation == horizontal) {@@ -1146,7 +1146,7 @@ inline bool Region::addItemSize(DockWidget *item) {//-------------------------------------------------------inline bool Region::subItemSize(DockWidget *item) {+bool Region::subItemSize(DockWidget *item) {int sepWidth = m_owner->spacing();if (m_orientation == horizontal) {@@ -1208,9 +1208,9 @@ inline bool Region::subItemSize(DockWidget *item) {//! Checks insertion validity of \b item inside \b parentRegion at position \b//! insertionIdx.-inline bool DockLayout::isPossibleInsertion(DockWidget *item,- Region *parentRegion,- int insertionIdx) {+bool DockLayout::isPossibleInsertion(DockWidget *item,+ Region *parentRegion,+ int insertionIdx) {const int inf = 1000000;int mainWindowWidth = contentsRect().width();@@ -1266,9 +1266,9 @@ inline bool DockLayout::isPossibleInsertion(DockWidget *item,//! Checks insertion validity of \b item inside \b parentRegion at position \b//! insertionIdx.-inline bool DockLayout::isPossibleRemoval(DockWidget *item,- Region *parentRegion,- int removalIdx) {+bool DockLayout::isPossibleRemoval(DockWidget *item,+ Region *parentRegion,+ int removalIdx) {// NOTE: parentRegion is necessarily !=0 or there's no need to check anythingif (!parentRegion) return true;@@ -1587,9 +1587,9 @@ void Region::restoreGeometry() {//! Allocates a new DockSeparator with input parameters. This function can be//! re-implemented//! to allocate derived DockSeparator classes.-inline DockSeparator *DockDecoAllocator::newSeparator(DockLayout *owner,- bool orientation,- Region *parentRegion) {+DockSeparator *DockDecoAllocator::newSeparator(DockLayout *owner,+ bool orientation,+ Region *parentRegion) {return new DockSeparator(owner, orientation, parentRegion);}@@ -1597,9 +1597,9 @@ inline DockSeparator *DockDecoAllocator::newSeparator(DockLayout *owner,//! When inheriting a DockLayout class, new custom placeholders gets allocated//! by this method.-inline DockPlaceholder *DockDecoAllocator::newPlaceholder(DockWidget *owner,- Region *r, int idx,- int attributes) {+DockPlaceholder *DockDecoAllocator::newPlaceholder(DockWidget *owner,+ Region *r, int idx,+ int attributes) {return new DockPlaceholder(owner, r, idx, attributes);}@@ -1608,9 +1608,9 @@ inline DockPlaceholder *DockDecoAllocator::newPlaceholder(DockWidget *owner,// BuildGeometry() method should not be called inside the base contructor -// because it's a virtual method.// So we provide this little inline...-inline DockPlaceholder *DockDecoAllocator::newPlaceBuilt(DockWidget *owner,- Region *r, int idx,- int attributes) {+DockPlaceholder *DockDecoAllocator::newPlaceBuilt(DockWidget *owner,+ Region *r, int idx,+ int attributes) {DockPlaceholder *res = newPlaceholder(owner, r, idx, attributes);res->buildGeometry();return res;diff --git a/toonz/sources/toonzqt/docklayout.h b/toonz/sources/toonzqt/docklayout.hindex acb327038..9867b5a4a 100644--- a/toonz/sources/toonzqt/docklayout.h+++ b/toonz/sources/toonzqt/docklayout.h@@ -70,7 +70,7 @@ public:\sa DockWidget and DockSeparator classes.*/-class DVAPI DockLayout : public QLayout {+class DVAPI DockLayout final : public QLayout {std::vector<QLayoutItem *> m_items;std::deque<Region *> m_regions;diff --git a/toonz/sources/toonzqt/dockwidget.cpp b/toonz/sources/toonzqt/dockwidget.cppindex 74510c96c..3f28c258b 100644--- a/toonz/sources/toonzqt/dockwidget.cpp+++ b/toonz/sources/toonzqt/dockwidget.cpp@@ -39,7 +39,7 @@ void DockingCheck::setIsEnabled(bool on) {//========================================================-class DockingToggleCommand : public MenuItemHandler {+class DockingToggleCommand final : public MenuItemHandler {public:DockingToggleCommand() : MenuItemHandler("MI_DockingCheck") {}diff --git a/toonz/sources/toonzqt/dvdialog.cpp b/toonz/sources/toonzqt/dvdialog.cppindex aee0eca3d..c36ee1805 100644--- a/toonz/sources/toonzqt/dvdialog.cpp+++ b/toonz/sources/toonzqt/dvdialog.cpp@@ -125,7 +125,7 @@ void Separator::paintEvent(QPaintEvent *) {p.drawText(contents.left(), 10, m_name);- //make the line semi-transparent+ // make the line semi-transparentQColor lineColor = palette().alternateBase().color();lineColor.setAlpha(128);diff --git a/toonz/sources/toonzqt/dvscrollwidget.cpp b/toonz/sources/toonzqt/dvscrollwidget.cppindex 070c3468d..1b5ad01f6 100644--- a/toonz/sources/toonzqt/dvscrollwidget.cpp+++ b/toonz/sources/toonzqt/dvscrollwidget.cpp@@ -22,7 +22,7 @@namespace {-class ScrollLayout : public DummyLayout {+class ScrollLayout final : public DummyLayout {DvScrollWidget *m_scrollWidget;public:diff --git a/toonz/sources/toonzqt/expressionfield.cpp b/toonz/sources/toonzqt/expressionfield.cppindex b60141f71..c0816dfa7 100644--- a/toonz/sources/toonzqt/expressionfield.cpp+++ b/toonz/sources/toonzqt/expressionfield.cpp@@ -22,7 +22,7 @@ using namespace TSyntax;//=============================================================================-class ExpressionField::SyntaxHighlighter : public QSyntaxHighlighter {+class ExpressionField::SyntaxHighlighter final : public QSyntaxHighlighter {const Grammar *m_grammar;public:@@ -95,7 +95,7 @@ public://=============================================================================-class MyListView : public QListView {+class MyListView final : public QListView {QLabel *m_tooltip;public:diff --git a/toonz/sources/toonzqt/flipconsole.cpp b/toonz/sources/toonzqt/flipconsole.cppindex 6febdfcc2..706bb6edc 100644--- a/toonz/sources/toonzqt/flipconsole.cpp+++ b/toonz/sources/toonzqt/flipconsole.cpp@@ -577,7 +577,7 @@ void FlipConsole::setActive(bool active) {#define LX 21#define LY 17-class DoubleButton : public QToolButton {+class DoubleButton final : public QToolButton {QAction *m_firstAction, *m_secondAction;QIcon::Mode m_firstMode, m_secondMode;QIcon::State m_firstState, m_secondState;diff --git a/toonz/sources/toonzqt/functionpanel.cpp b/toonz/sources/toonzqt/functionpanel.cppindex ff75f045d..fd00d881e 100644--- a/toonz/sources/toonzqt/functionpanel.cpp+++ b/toonz/sources/toonzqt/functionpanel.cpp@@ -52,7 +52,7 @@ void drawRoundedSquare(QPainter &painter, const QPointF &p, double r) {double norm2(const QPointF &p) { return p.x() * p.x() + p.y() * p.y(); }-class FunctionPanelZoomer : public ImageUtils::ShortcutZoomer {+class FunctionPanelZoomer final : public ImageUtils::ShortcutZoomer {FunctionPanel *m_panel;public:diff --git a/toonz/sources/toonzqt/functionpaneltools.h b/toonz/sources/toonzqt/functionpaneltools.hindex 020e7c9b8..3beea2a3d 100644--- a/toonz/sources/toonzqt/functionpaneltools.h+++ b/toonz/sources/toonzqt/functionpaneltools.h@@ -22,7 +22,7 @@ public:virtual void draw(QPainter &p) {}};-class MoveFrameDragTool : public FunctionPanel::DragTool {+class MoveFrameDragTool final : public FunctionPanel::DragTool {FunctionPanel *m_panel;TFrameHandle *m_frameHandle;@@ -31,7 +31,7 @@ public:void drag(QMouseEvent *e) override;};-class PanDragTool : public FunctionPanel::DragTool {+class PanDragTool final : public FunctionPanel::DragTool {FunctionPanel *m_panel;QPoint m_oldPos;bool m_xLocked, m_yLocked;@@ -42,7 +42,7 @@ public:void drag(QMouseEvent *e) override;};-class ZoomDragTool : public FunctionPanel::DragTool {+class ZoomDragTool final : public FunctionPanel::DragTool {FunctionPanel *m_panel;QPoint m_startPos, m_oldPos;int m_zoomType;@@ -57,7 +57,7 @@ public:void release(QMouseEvent *e) override;};-class RectSelectTool : public FunctionPanel::DragTool {+class RectSelectTool final : public FunctionPanel::DragTool {FunctionPanel *m_panel;TDoubleParam *m_curve;QPoint m_startPos;@@ -74,7 +74,7 @@ public:void draw(QPainter &painter) override;};-class MovePointDragTool : public FunctionPanel::DragTool {+class MovePointDragTool final : public FunctionPanel::DragTool {FunctionPanel *m_panel;QPoint m_startPos, m_oldPos;double m_deltaFrame;@@ -104,7 +104,7 @@ public:void release(QMouseEvent *e) override;};-class MoveHandleDragTool : public FunctionPanel::DragTool {+class MoveHandleDragTool final : public FunctionPanel::DragTool {public:typedef FunctionPanel::Handle Handle;@@ -131,7 +131,7 @@ public:void release(QMouseEvent *e) override;};-class MoveGroupHandleDragTool : public FunctionPanel::DragTool {+class MoveGroupHandleDragTool final : public FunctionPanel::DragTool {public:typedef FunctionPanel::Handle Handle;diff --git a/toonz/sources/toonzqt/functionsegmentviewer.cpp b/toonz/sources/toonzqt/functionsegmentviewer.cppindex f1213ed53..eeac2b798 100644--- a/toonz/sources/toonzqt/functionsegmentviewer.cpp+++ b/toonz/sources/toonzqt/functionsegmentviewer.cpp@@ -60,7 +60,7 @@ FunctionSegmentPage::~FunctionSegmentPage() {}//=============================================================================-class FunctionEmptySegmentPage : public FunctionSegmentPage {+class FunctionEmptySegmentPage final : public FunctionSegmentPage {public:FunctionEmptySegmentPage(FunctionSegmentViewer *parent = 0): FunctionSegmentPage(parent) {}@@ -657,7 +657,7 @@ bool FunctionExpressionSegmentPage::getGuiValues(std::string &expressionText,//=============================================================================-class FileSegmentPage : public FunctionSegmentPage {+class FileSegmentPage final : public FunctionSegmentPage {DVGui::FileField *m_fileFld;LineEdit *m_fieldIndexFld;LineEdit *m_measureFld;diff --git a/toonz/sources/toonzqt/functionselection.cpp b/toonz/sources/toonzqt/functionselection.cppindex fd11213bd..da5bf8ea5 100644--- a/toonz/sources/toonzqt/functionselection.cpp+++ b/toonz/sources/toonzqt/functionselection.cpp@@ -29,7 +29,7 @@////------------------------------------------------------------------------------class KeyframesCopyUndo : public TUndo {+class KeyframesCopyUndo final : public TUndo {QMimeData *m_oldData, *m_newData;public:@@ -54,7 +54,7 @@ public://------------------------------------------------------------------------------class KeyframesPasteUndo : public TUndo {+class KeyframesPasteUndo final : public TUndo {struct Column {TDoubleParam *m_param;std::map<int, TDoubleKeyframe> m_oldKeyframes;@@ -124,7 +124,7 @@ public://------------------------------------------------------------------------------class KeyframesDeleteUndo : public TUndo {+class KeyframesDeleteUndo final : public TUndo {public:struct ColumnKeyframes {TDoubleParam *m_param;@@ -175,7 +175,7 @@ private://------------------------------------------------------------------------------class KeyframesMoveUndo : public TUndo {+class KeyframesMoveUndo final : public TUndo {public:KeyframesMoveUndo() {}~KeyframesMoveUndo() {diff --git a/toonz/sources/toonzqt/functionsheet.cpp b/toonz/sources/toonzqt/functionsheet.cppindex 94634e694..5294fcb16 100644--- a/toonz/sources/toonzqt/functionsheet.cpp+++ b/toonz/sources/toonzqt/functionsheet.cpp@@ -46,7 +46,7 @@ const int cColHeadersEndY = 87; //!< End of column headers y pos//********************************************************************************/*--- NumericalColumnsのセグメントの左側のバーをクリックしたとき ---*/-class MoveChannelsDragTool : public Spreadsheet::DragTool {+class MoveChannelsDragTool final : public Spreadsheet::DragTool {FunctionSheet *m_sheet;std::vector<KeyframeSetter *> m_setters;int m_oldRow;@@ -125,7 +125,7 @@ public://-----------------------------------------------------------------------------/*--- NumericalColumnsのセル部分をクリックしたとき ---*/-class FunctionSheetSelectionTool : public Spreadsheet::DragTool {+class FunctionSheetSelectionTool final : public Spreadsheet::DragTool {int m_firstRow, m_firstCol;FunctionSheet *m_sheet;@@ -897,7 +897,7 @@ void FunctionSheetCellViewer::openContextMenu(QMouseEvent *e) {// FunctionSheetColumnToCurveMapper implementation//********************************************************************************-class FunctionSheetColumnToCurveMapper : public ColumnToCurveMapper {+class FunctionSheetColumnToCurveMapper final : public ColumnToCurveMapper {FunctionSheet *m_sheet;public:diff --git a/toonz/sources/toonzqt/functiontreeviewer.cpp b/toonz/sources/toonzqt/functiontreeviewer.cppindex 68a9e020f..bcfcd2c8a 100644--- a/toonz/sources/toonzqt/functiontreeviewer.cpp+++ b/toonz/sources/toonzqt/functiontreeviewer.cpp@@ -52,8 +52,8 @@namespace {-class ParamChannelGroup : public FunctionTreeModel::ParamWrapper,- public FunctionTreeModel::ChannelGroup {+class ParamChannelGroup final : public FunctionTreeModel::ParamWrapper,+ public FunctionTreeModel::ChannelGroup {public:ParamChannelGroup(TParam *param, const std::wstring &fxId,std::string ¶mName);@@ -64,7 +64,7 @@ public://=============================================================================-class StageObjectChannelGroup : public FunctionTreeModel::ChannelGroup {+class StageObjectChannelGroup final : public FunctionTreeModel::ChannelGroup {public:TStageObject *m_stageObject; //!< (not owned) Referenced stage objectFunctionTreeModel::ChannelGroup@@ -89,7 +89,7 @@ public://=============================================================================-class SkVDChannelGroup : public FunctionTreeModel::ChannelGroup {+class SkVDChannelGroup final : public FunctionTreeModel::ChannelGroup {public:StageObjectChannelGroup *m_stageObjectGroup; //!< Parent stage object groupconst QString *m_vxName; //!< The associated vertex name@@ -1182,7 +1182,7 @@ void FunctionTreeModel::onChange(const TParamChange &tpc) {if (!m_paramsChanged) {m_paramsChanged = true;- struct Func : public TFunctorInvoker::BaseFunctor {+ struct Func final : public TFunctorInvoker::BaseFunctor {FunctionTreeModel *m_obj;const TParamChange *m_tpc;diff --git a/toonz/sources/toonzqt/fxdata.h b/toonz/sources/toonzqt/fxdata.hindex 9d226b03b..ed4790bf4 100644--- a/toonz/sources/toonzqt/fxdata.h+++ b/toonz/sources/toonzqt/fxdata.h@@ -24,7 +24,7 @@ using namespace TFxCommand;// FxsData declaration//**********************************************************************-class FxsData : public DvMimeData {+class FxsData final : public DvMimeData {QList<TFxP> m_fxs;QMap<TFx *, bool> m_visitedFxs;QMap<TFx *, int> m_zeraryFxColumnSize;diff --git a/toonz/sources/toonzqt/icongenerator.cpp b/toonz/sources/toonzqt/icongenerator.cppindex ec2b0fb83..23e539321 100644--- a/toonz/sources/toonzqt/icongenerator.cpp+++ b/toonz/sources/toonzqt/icongenerator.cpp@@ -491,7 +491,7 @@ IconRenderer::~IconRenderer() {}// VectorImageIconRenderer class//---------------------------------------class VectorImageIconRenderer : public IconRenderer {+class VectorImageIconRenderer final : public IconRenderer {TVectorImageP m_vimage;TXshSimpleLevelP m_sl;TFrameId m_fid;@@ -561,7 +561,7 @@ void VectorImageIconRenderer::run() {// SplineImageIconRenderer class//---------------------------------------class SplineIconRenderer : public IconRenderer {+class SplineIconRenderer final : public IconRenderer {TStageObjectSpline *m_spline;public:@@ -622,7 +622,7 @@ void SplineIconRenderer::run() {// RasterImageIconRenderer class//---------------------------------------class RasterImageIconRenderer : public IconRenderer {+class RasterImageIconRenderer final : public IconRenderer {TXshSimpleLevelP m_sl;TFrameId m_fid;@@ -656,7 +656,7 @@ void RasterImageIconRenderer::run() {// ToonzImageIconRenderer class//---------------------------------------class ToonzImageIconRenderer : public IconRenderer {+class ToonzImageIconRenderer final : public IconRenderer {TXshSimpleLevelP m_sl;TFrameId m_fid;IconGenerator::Settings m_settings;@@ -761,7 +761,7 @@ void ToonzImageIconRenderer::run() {// MeshImageIconRenderer class//---------------------------------------class MeshImageIconRenderer : public IconRenderer {+class MeshImageIconRenderer final : public IconRenderer {TMeshImageP m_image;TXshSimpleLevelP m_sl;TFrameId m_fid;@@ -833,7 +833,7 @@ void MeshImageIconRenderer::run() {// XsheetIconRenderer class//-----------------------------------class XsheetIconRenderer : public IconRenderer {+class XsheetIconRenderer final : public IconRenderer {TXsheet *m_xsheet;int m_row;@@ -894,7 +894,7 @@ void XsheetIconRenderer::run() {// FileIconRenderer class//---------------------------------class FileIconRenderer : public IconRenderer {+class FileIconRenderer final : public IconRenderer {TFilePath m_path;TFrameId m_fid;@@ -1227,7 +1227,7 @@ void FileIconRenderer::run() {// SceneIconRenderer class//---------------------------------class SceneIconRenderer : public IconRenderer {+class SceneIconRenderer final : public IconRenderer {ToonzScene *m_toonzScene;public:diff --git a/toonz/sources/toonzqt/keyframenavigator.cpp b/toonz/sources/toonzqt/keyframenavigator.cppindex bd42c7234..8bc430bca 100644--- a/toonz/sources/toonzqt/keyframenavigator.cpp+++ b/toonz/sources/toonzqt/keyframenavigator.cpp@@ -263,7 +263,7 @@ void ViewerKeyframeNavigator::hideEvent(QHideEvent *e) {namespace {//------------------------------------------------------------------------------class UndoPaletteSetKeyFrame : public TUndo {+class UndoPaletteSetKeyFrame final : public TUndo {int m_frame;int m_styleId;TPaletteHandle *m_paletteHandle;diff --git a/toonz/sources/toonzqt/palettedata.h b/toonz/sources/toonzqt/palettedata.hindex 241fef456..9e0cf1e4d 100644--- a/toonz/sources/toonzqt/palettedata.h+++ b/toonz/sources/toonzqt/palettedata.h@@ -15,7 +15,7 @@ class TPalette;//-----------------------------------------------------------------------------/*! Useful to set data in drag and drop event styles or palette.*/-class PaletteData : public DvMimeData {+class PaletteData final : public DvMimeData {TPalette *m_palette;std::set<int> m_styleIndicesInPage;int m_pageIndex;diff --git a/toonz/sources/toonzqt/palettesscanpopup.h b/toonz/sources/toonzqt/palettesscanpopup.hindex b6f597599..8fd87e947 100644--- a/toonz/sources/toonzqt/palettesscanpopup.h+++ b/toonz/sources/toonzqt/palettesscanpopup.h@@ -22,7 +22,7 @@// PalettesScanPopup//------------------------------------------------------------------------------class DVAPI PalettesScanPopup : public DVGui::Dialog {+class DVAPI PalettesScanPopup final : public DVGui::Dialog {Q_OBJECTDVGui::FileField *m_field;diff --git a/toonz/sources/toonzqt/paletteviewergui.cpp b/toonz/sources/toonzqt/paletteviewergui.cppindex e4ee342fc..84e7bae08 100644--- a/toonz/sources/toonzqt/paletteviewergui.cpp+++ b/toonz/sources/toonzqt/paletteviewergui.cpp@@ -770,9 +770,9 @@ void PageViewer::paintEvent(QPaintEvent *e) {p.drawRect(indexRect);p.drawText(indexRect, Qt::AlignCenter, QString().setNum(styleIndex));- //draw "Autopaint for lines" indicator+ // draw "Autopaint for lines" indicatorif (style->getFlags() != 0) {- QRect aflRect(chipRect.bottomLeft() + QPoint(0,-14), QSize(12,15));+ QRect aflRect(chipRect.bottomLeft() + QPoint(0, -14), QSize(12, 15));p.drawRect(aflRect);p.drawText(aflRect, Qt::AlignCenter, "A");}diff --git a/toonz/sources/toonzqt/paramfield.cpp b/toonz/sources/toonzqt/paramfield.cppindex 13aee99cc..ecfdd97d8 100644--- a/toonz/sources/toonzqt/paramfield.cpp+++ b/toonz/sources/toonzqt/paramfield.cpp@@ -61,7 +61,7 @@ public://-----------------------------------------------------------------------------/*! MeasuredDoubleParamField Undo*/-class MeasuredDoubleParamFieldUndo : public AnimatableFxSettingsUndo {+class MeasuredDoubleParamFieldUndo final : public AnimatableFxSettingsUndo {TDoubleParamP m_param;double m_oldValue, m_newValue;@@ -99,7 +99,7 @@ public://-----------------------------------------------------------------------------/*! RangeParamField Undo*/-class RangeParamFieldUndo : public AnimatableFxSettingsUndo {+class RangeParamFieldUndo final : public AnimatableFxSettingsUndo {TRangeParamP m_param;DoublePair m_oldValue, m_newValue;@@ -137,7 +137,7 @@ public://-----------------------------------------------------------------------------/*! PixelParamField Undo*/-class PixelParamFieldUndo : public AnimatableFxSettingsUndo {+class PixelParamFieldUndo final : public AnimatableFxSettingsUndo {TPixelParamP m_param;TPixel32 m_oldValue, m_newValue;@@ -175,7 +175,7 @@ public://-----------------------------------------------------------------------------/*! PointParamField Undo*/-class PointParamFieldUndo : public AnimatableFxSettingsUndo {+class PointParamFieldUndo final : public AnimatableFxSettingsUndo {TPointParamP m_param;TPointD m_oldValue, m_newValue;@@ -211,7 +211,7 @@ public://-----------------------------------------------------------------------------/*! EnumParamField Undo*/-class EnumParamFieldUndo : public FxSettingsUndo {+class EnumParamFieldUndo final : public FxSettingsUndo {TIntEnumParamP m_param;std::string m_oldString, m_newString;@@ -245,7 +245,7 @@ public://-----------------------------------------------------------------------------/*! IntParamFieldのUndo*/-class IntParamFieldUndo : public FxSettingsUndo {+class IntParamFieldUndo final : public FxSettingsUndo {TIntParamP m_param;int m_oldValue, m_newValue;@@ -280,7 +280,7 @@ public://-----------------------------------------------------------------------------/*! BoolParamFieldのUndo*/-class BoolParamFieldUndo : public FxSettingsUndo {+class BoolParamFieldUndo final : public FxSettingsUndo {TBoolParamP m_param;bool m_newState;@@ -313,7 +313,7 @@ public://-----------------------------------------------------------------------------/*! SpectrumParamFieldのUndo*/-class SpectrumParamFieldUndo : public AnimatableFxSettingsUndo {+class SpectrumParamFieldUndo final : public AnimatableFxSettingsUndo {TSpectrumParamP m_param;TSpectrum m_oldSpectrum, m_newSpectrum;@@ -354,7 +354,7 @@ public:SpectrumParamFieldは、表示更新時にactualParamとcurrentParamのKeyの数が一致していなくてはならないので、2つ同時に変更する必要が有る。*/-class SpectrumParamFieldAddRemoveKeyUndo : public FxSettingsUndo {+class SpectrumParamFieldAddRemoveKeyUndo final : public FxSettingsUndo {TSpectrumParamP m_actualParam;TSpectrumParamP m_currentParam;TSpectrum::ColorKey m_key;@@ -414,7 +414,7 @@ public://-----------------------------------------------------------------------------/*! StringParamField Undo*/-class StringParamFieldUndo : public FxSettingsUndo {+class StringParamFieldUndo final : public FxSettingsUndo {TStringParamP m_param;std::wstring m_oldValue, m_newValue;@@ -450,7 +450,7 @@ public://-----------------------------------------------------------------------------/*! ToneCurveParamField Undo*/-class ToneCurveParamFieldUndo : public AnimatableFxSettingsUndo {+class ToneCurveParamFieldUndo final : public AnimatableFxSettingsUndo {TToneCurveParamP m_param;QList<TPointD> m_oldPoints, m_newPoints;@@ -490,7 +490,7 @@ public:一致していなくてはならないので、2つ同時に変更する必要が有る。*/-class ToneCurveParamFieldAddRemovePointUndo : public FxSettingsUndo {+class ToneCurveParamFieldAddRemovePointUndo final : public FxSettingsUndo {TToneCurveParamP m_actualParam;TToneCurveParamP m_currentParam;QList<TPointD> m_value;@@ -550,7 +550,7 @@ public://-----------------------------------------------------------------------------/*! ToneCurveParamField Undo (Linearのトグル)*/-class ToneCurveParamFieldToggleLinearUndo : public FxSettingsUndo {+class ToneCurveParamFieldToggleLinearUndo final : public FxSettingsUndo {TToneCurveParamP m_actualParam;TToneCurveParamP m_currentParam;bool m_newState;diff --git a/toonz/sources/toonzqt/planeviewer.cpp b/toonz/sources/toonzqt/planeviewer.cppindex 400879b71..76b28c8b8 100644--- a/toonz/sources/toonzqt/planeviewer.cpp+++ b/toonz/sources/toonzqt/planeviewer.cpp@@ -32,7 +32,7 @@namespace {-struct PlaneViewerZoomer : public ImageUtils::ShortcutZoomer {+struct PlaneViewerZoomer final : public ImageUtils::ShortcutZoomer {PlaneViewerZoomer(PlaneViewer *planeViewer) : ShortcutZoomer(planeViewer) {}private:diff --git a/toonz/sources/toonzqt/pluginhost.cpp b/toonz/sources/toonzqt/pluginhost.cppindex 42215da3a..faec52f3d 100644--- a/toonz/sources/toonzqt/pluginhost.cpp+++ b/toonz/sources/toonzqt/pluginhost.cpp@@ -102,7 +102,7 @@ std::map<std::string, QTreeWidgetItem *> PluginLoader::create_menu_items(static bool copy_rendering_setting(toonz_rendering_setting_t *dst,const TRenderSettings &src);-class PluginSetupMessage : public TThread::Message {+class PluginSetupMessage final : public TThread::Message {PluginInformation *pi_;public:diff --git a/toonz/sources/toonzqt/pluginhost.h b/toonz/sources/toonzqt/pluginhost.hindex e0fe77d3d..a1b60e036 100644--- a/toonz/sources/toonzqt/pluginhost.h+++ b/toonz/sources/toonzqt/pluginhost.h@@ -45,7 +45,7 @@ public:class PluginInformation;/* エフェクトのインスタンスを構築するためのクラス */-struct PluginDeclaration : public TFxDeclaration {+struct PluginDeclaration final : public TFxDeclaration {PluginDeclaration(PluginInformation *pi);TPersist *create() const final override;@@ -117,7 +117,7 @@ public:void release();};-class Loader : public QObject {+class Loader final : public QObject {Q_OBJECT;public:@@ -134,7 +134,7 @@ signals:void fixup();};-class PluginLoadController : public QObject {+class PluginLoadController final : public QObject {Q_OBJECT;QThread work_entity;@@ -149,7 +149,7 @@ signals:void start(const QString &filepath);};-class RasterFxPluginHost : public TZeraryFx, public TPluginInterface {+class RasterFxPluginHost final : public TZeraryFx, public TPluginInterface {PluginInformation *pi_;std::vector<std::shared_ptr<TFxPort>> inputs_;diff --git a/toonz/sources/toonzqt/schematicviewer.cpp b/toonz/sources/toonzqt/schematicviewer.cppindex be3959589..9c434478f 100644--- a/toonz/sources/toonzqt/schematicviewer.cpp+++ b/toonz/sources/toonzqt/schematicviewer.cpp@@ -46,7 +46,7 @@namespace {-class SchematicZoomer : public ImageUtils::ShortcutZoomer {+class SchematicZoomer final : public ImageUtils::ShortcutZoomer {public:SchematicZoomer(QWidget *parent) : ShortcutZoomer(parent) {}diff --git a/toonz/sources/toonzqt/screenboard.cpp b/toonz/sources/toonzqt/screenboard.cppindex 564d81882..df45844c9 100644--- a/toonz/sources/toonzqt/screenboard.cpp+++ b/toonz/sources/toonzqt/screenboard.cpp@@ -19,7 +19,7 @@ using namespace DVGui;namespace {-class MouseTrackerDrawing : public ScreenBoard::Drawing {+class MouseTrackerDrawing final : public ScreenBoard::Drawing {public:bool acceptScreenEvents(const QRect &rect) const override {return rect.contains(QCursor::pos());@@ -54,7 +54,7 @@ public:// ScreenWidget implementation//***********************************************************************************-class ScreenBoard::ScreenWidget : public QWidget {+class ScreenBoard::ScreenWidget final : public QWidget {QList<ScreenBoard::Drawing *>m_drawings; //!< Drawings intersecting the screenbool m_mouseOnScreen; //!< Whether the mouse is inside this screendiff --git a/toonz/sources/toonzqt/stageobjectsdata.cpp b/toonz/sources/toonzqt/stageobjectsdata.cppindex 4e5bd6c4f..96635a411 100644--- a/toonz/sources/toonzqt/stageobjectsdata.cpp+++ b/toonz/sources/toonzqt/stageobjectsdata.cpp@@ -189,7 +189,7 @@ TStageObjectId TStageObjectDataElement::restoreObject(TXsheet *xsh,//! Class used to clone a column stage object's relational data inside the stage//! schematic.-class TColumnDataElement : public TStageObjectDataElement {+class TColumnDataElement final : public TStageObjectDataElement {friend class StageObjectsData;TXshColumnP m_column; //!< Column associated with the stage object@@ -341,7 +341,7 @@ TStageObjectId TColumnDataElement::restoreColumn(TXsheet *xsh, int index,//! Class used to clone a camera stage object's relational data inside the stage//! schematic.-class TCameraDataElement : public TStageObjectDataElement {+class TCameraDataElement final : public TStageObjectDataElement {TCamera m_camera; //!< The object's camerapublic:diff --git a/toonz/sources/toonzqt/stageobjectselection.cpp b/toonz/sources/toonzqt/stageobjectselection.cppindex 2a30315c3..dff2bed9b 100644--- a/toonz/sources/toonzqt/stageobjectselection.cpp+++ b/toonz/sources/toonzqt/stageobjectselection.cpp@@ -21,7 +21,7 @@#include <QClipboard>namespace {-class TPasteSelectionUndo : public TUndo {+class TPasteSelectionUndo final : public TUndo {StageObjectsData *m_objData;int m_index;std::vector<TStageObjectId> m_pastedId;diff --git a/toonz/sources/toonzqt/stageobjectselection.h b/toonz/sources/toonzqt/stageobjectselection.hindex 20f207ad9..4560da77d 100644--- a/toonz/sources/toonzqt/stageobjectselection.h+++ b/toonz/sources/toonzqt/stageobjectselection.h@@ -23,7 +23,7 @@ class SchematicPort;////----------------------------------------------------------class StageObjectSelection : public QObject, public TSelection {+class StageObjectSelection final : public QObject, public TSelection {Q_OBJECTQList<QPair<TStageObjectId, TStageObjectId>> m_selectedLinks;diff --git a/toonz/sources/toonzqt/studiopaletteviewer.cpp b/toonz/sources/toonzqt/studiopaletteviewer.cppindex 81fe127bf..052335e77 100644--- a/toonz/sources/toonzqt/studiopaletteviewer.cpp+++ b/toonz/sources/toonzqt/studiopaletteviewer.cpp@@ -645,7 +645,7 @@ void StudioPaletteTreeViewer::searchForPalette() {//------------------------------------------------------------------------------class InvalidateIconsUndo : public TUndo {+class InvalidateIconsUndo final : public TUndo {TPaletteP m_targetPalette, m_oldPalette, m_newPalette;TXshLevelHandle *m_levelHandle;@@ -670,7 +670,7 @@ public://------------------------------------------------------------------------------class AdjustPaletteDialog : public DVGui::Dialog {+class AdjustPaletteDialog final : public DVGui::Dialog {private:IntField *m_tolerance;diff --git a/toonz/sources/toonzqt/styledata.h b/toonz/sources/toonzqt/styledata.hindex 61ab89d33..bbbd0f03a 100644--- a/toonz/sources/toonzqt/styledata.h+++ b/toonz/sources/toonzqt/styledata.h@@ -14,7 +14,7 @@ class TColorStyle;// StyleData//------------------------------------------------------------------------------class StyleData : public DvMimeData {+class StyleData final : public DvMimeData {std::vector<std::pair<int, TColorStyle *>> m_styles;public:diff --git a/toonz/sources/toonzqt/styleeditor.cpp b/toonz/sources/toonzqt/styleeditor.cppindex 809a6d657..8d58968cb 100644--- a/toonz/sources/toonzqt/styleeditor.cpp+++ b/toonz/sources/toonzqt/styleeditor.cpp@@ -61,7 +61,7 @@ using namespace StyleEditorGUI;namespace {-class UndoPaletteChange : public TUndo {+class UndoPaletteChange final : public TUndo {TPaletteHandle *m_paletteHandle;TPaletteP m_palette;@@ -1856,7 +1856,7 @@ void StyleChooserPage::setRootPath(const TFilePath &rootPath) {// CustomStyleChooser definition//*****************************************************************************-class CustomStyleChooserPage : public StyleChooserPage {+class CustomStyleChooserPage final : public StyleChooserPage {public:CustomStyleChooserPage(QWidget *parent = 0) : StyleChooserPage(parent) {}@@ -1943,7 +1943,7 @@ void CustomStyleChooserPage::onSelect(int index) {// VectorBrushStyleChooser definition//*****************************************************************************-class VectorBrushStyleChooserPage : public StyleChooserPage {+class VectorBrushStyleChooserPage final : public StyleChooserPage {public:VectorBrushStyleChooserPage(QWidget *parent = 0) : StyleChooserPage(parent) {m_chipSize = QSize(60, 25);@@ -2051,7 +2051,7 @@ struct Texture {//------------------------------------------------------------------------------class TextureStyleChooserPage : public StyleChooserPage {+class TextureStyleChooserPage final : public StyleChooserPage {static std::vector<Texture> m_textures;static bool m_loaded;@@ -2183,7 +2183,7 @@ bool TextureStyleChooserPage::event(QEvent *e) {// SpecialStyleChooser definition//*****************************************************************************-class SpecialStyleChooserPage : public StyleChooserPage {+class SpecialStyleChooserPage final : public StyleChooserPage {static std::vector<std::pair<int, QImage *>> m_customStyles;static bool m_loaded;diff --git a/toonz/sources/toonzqt/styleindexlineedit.cpp b/toonz/sources/toonzqt/styleindexlineedit.cppindex 2d5ec12b1..fc509298e 100644--- a/toonz/sources/toonzqt/styleindexlineedit.cpp+++ b/toonz/sources/toonzqt/styleindexlineedit.cpp@@ -13,8 +13,8 @@ using namespace DVGui;//--------------------------------------------------------------------StyleIndexLineEdit::StyleIndexLineEdit() : m_pltHandle(0) {- // style index will not be more than 4096, but a longer text- // "current" may be input instead of style id + chip width + margin+ // style index will not be more than 4096, but a longer text+ // "current" may be input instead of style id + chip width + marginsetMaximumWidth(fontMetrics().width("current") + 30);setFixedHeight(20);}diff --git a/toonz/sources/toonzqt/styleselection.cpp b/toonz/sources/toonzqt/styleselection.cppindex d029f138f..81e823b94 100644--- a/toonz/sources/toonzqt/styleselection.cpp+++ b/toonz/sources/toonzqt/styleselection.cpp@@ -261,7 +261,7 @@ void insertStylesWithoutUndo(TPalette *palette, TPaletteHandle *pltHandle,// PasteStylesUndo//------------------------------------------------------------------------------class PasteStylesUndo : public TUndo {+class PasteStylesUndo final : public TUndo {TStyleSelection *m_selection;int m_oldStyleIndex;int m_pageIndex;@@ -333,7 +333,7 @@ public:// DeleteStylesUndo//------------------------------------------------------------------------------class DeleteStylesUndo : public TUndo {+class DeleteStylesUndo final : public TUndo {TStyleSelection *m_selection;int m_pageIndex;std::set<int> m_styleIndicesInPage;@@ -409,7 +409,7 @@ public:// CutStylesUndo//------------------------------------------------------------------------------class CutStylesUndo : public TUndo {+class CutStylesUndo final : public TUndo {TStyleSelection *m_selection;int m_pageIndex;std::set<int> m_styleIndicesInPage;@@ -771,7 +771,7 @@ namespace {// UndoPasteValues//------------------------------------------------------------------------------class UndoPasteValues : public TUndo {+class UndoPasteValues final : public TUndo {TStyleSelection *m_selection;TPaletteHandle *m_paletteHandle;int m_pageIndex;@@ -1198,7 +1198,7 @@ namespace {// UndoBlendColor//------------------------------------------------------------------------------class UndoBlendColor : public TUndo {+class UndoBlendColor final : public TUndo {TPaletteHandle *m_paletteHandle;TPaletteP m_palette;int m_pageIndex;@@ -1327,7 +1327,7 @@ namespace {// UndoLinkToStudioPalette//------------------------------------------------------------------------------class UndoLinkToStudioPalette : public TUndo {+class UndoLinkToStudioPalette final : public TUndo {TPaletteHandle *m_paletteHandle;TPaletteP m_palette;int m_pageIndex;@@ -1515,7 +1515,7 @@ void TStyleSelection::toggleKeyframe(int frame) {//------------------------------------------------------------------------------class UndoRemoveLink : public TUndo {+class UndoRemoveLink final : public TUndo {TPaletteHandle *m_paletteHandle;TPaletteP m_palette;int m_pageIndex;@@ -1623,7 +1623,7 @@ bool TStyleSelection::removeLink() {}//=============================================================================-class getBackOriginalStyleUndo : public TUndo {+class getBackOriginalStyleUndo final : public TUndo {TStyleSelection m_selection;std::vector<TPixel32> m_oldColors, m_newColors;diff --git a/toonz/sources/toonzqt/swatchviewer.cpp b/toonz/sources/toonzqt/swatchviewer.cppindex 7e4bdbeee..a58286e72 100644--- a/toonz/sources/toonzqt/swatchviewer.cpp+++ b/toonz/sources/toonzqt/swatchviewer.cpp@@ -66,7 +66,7 @@ a swatch pointer to its associated cache data - the advantage being that cacheresources are shared at thesame scene zoom.*/-class SwatchCacheManager : public TFxCacheManagerDelegate {+class SwatchCacheManager final : public TFxCacheManagerDelegate {T_RENDER_RESOURCE_MANAGERunsigned long m_setFxId;@@ -102,7 +102,8 @@ public:// Manager generator//*****************************************************************************************-class SwatchCacheManagerGenerator : public TRenderResourceManagerGenerator {+class SwatchCacheManagerGenerator final+ : public TRenderResourceManagerGenerator {TRenderResourceManager *operator()(void) override {// return new TPassiveCacheManager;return SwatchCacheManager::instance();diff --git a/toonz/sources/toonzqt/tdockwindows.cpp b/toonz/sources/toonzqt/tdockwindows.cppindex 7f91e4dad..6f1ff7b30 100644--- a/toonz/sources/toonzqt/tdockwindows.cpp+++ b/toonz/sources/toonzqt/tdockwindows.cpp@@ -17,7 +17,7 @@// Decorations//--------------------class TDockDecoAllocator : public DockDecoAllocator {+class TDockDecoAllocator final : public DockDecoAllocator {DockSeparator *newSeparator(DockLayout *owner, bool orientation,Region *parentRegion) override;DockPlaceholder *newPlaceholder(DockWidget *owner, Region *r, int idx,@@ -326,7 +326,7 @@ QSize TDockWidget::getDockedMaximumSize() {// Custom Decorations//---------------------------class TDockSeparator : public DockSeparator {+class TDockSeparator final : public DockSeparator {public:TDockSeparator(DockLayout *owner, bool orientation, Region *parentRegion): DockSeparator(owner, orientation, parentRegion) {}@@ -336,7 +336,7 @@ public://-----------------------------------------class TDockPlaceholder : public DockPlaceholder {+class TDockPlaceholder final : public DockPlaceholder {QWidget *m_associated[3];public:diff --git a/toonz/sources/toonzqt/tmessageviewer.cpp b/toonz/sources/toonzqt/tmessageviewer.cppindex 1e7bbb927..70b0ef690 100644--- a/toonz/sources/toonzqt/tmessageviewer.cpp+++ b/toonz/sources/toonzqt/tmessageviewer.cpp@@ -18,7 +18,7 @@ QIcon gYellowIcon;//--------------------------------------------------------------------------class MyQListView : public QListView {+class MyQListView final : public QListView {public:MyQListView(QWidget *parent) : QListView(parent) {}@@ -33,7 +33,7 @@ protected:} // namespace-class MySortFilterProxyModel : public QSortFilterProxyModel {+class MySortFilterProxyModel final : public QSortFilterProxyModel {public:MySortFilterProxyModel(QObject *parent) : QSortFilterProxyModel(parent) {}diff --git a/toonz/sources/toonzqt/tonecurvefield.cpp b/toonz/sources/toonzqt/tonecurvefield.cppindex 5c93fa536..5ea3f421e 100644--- a/toonz/sources/toonzqt/tonecurvefield.cpp+++ b/toonz/sources/toonzqt/tonecurvefield.cpp@@ -353,8 +353,10 @@ void ChennelCurveEditor::moveCentralControlPoint(int index,double precDistance = (p.x() + d.x()) - precP.x();// Caso particolare: Punto di controllo corrente == primo visibile,- // Punto di controllo successivo ==- //l'ultimo+ // Punto di controllo+ //successivo+ //==+ // l'ultimo// visibileif (index == 3 && index + 3 == pointCount - 4) {setPoint(index + 1,@@ -364,8 +366,10 @@ void ChennelCurveEditor::moveCentralControlPoint(int index,if (nextDistance < 0) d = QPointF(nextP.x() - p.x(), d.y());}// Caso particolare: Punto di controllo corrente == ultimo visibile,- // Punto di controllo precedente ==- //primo+ // Punto di controllo+ //precedente+ //==+ // primo// visibileelse if (index - 3 == 3 && index == pointCount - 4) {setPoint(index - 2,