diff Framework/Widgets/WidgetBase.h @ 373:d6136a7e914d

making branch am-2 the new mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 05 Nov 2018 10:06:18 +0100
parents 7a364e44fbb4
children 6cc3ce74dc05
line wrap: on
line diff
--- a/Framework/Widgets/WidgetBase.h	Mon Nov 05 10:04:56 2018 +0100
+++ b/Framework/Widgets/WidgetBase.h	Mon Nov 05 10:06:18 2018 +0100
@@ -36,6 +36,7 @@
     bool         backgroundCleared_;
     uint8_t      backgroundColor_[3];
     bool         transmitMouseOver_;
+    std::string  name_;
 
   protected:
     void ClearBackgroundOrthanc(Orthanc::ImageAccessor& target) const;
@@ -52,9 +53,9 @@
     }
 
   public:
-    WidgetBase();
+    WidgetBase(const std::string& name);
 
-    virtual void SetDefaultView()
+    virtual void FitContent()
     {
     }
   
@@ -104,6 +105,12 @@
       return transmitMouseOver_;
     }
 
-    virtual void NotifyChange();
+    virtual void NotifyContentChanged();
+
+    const std::string& GetName() const
+    {
+      return name_;
+    }
+
   };
 }