]> sigrok.org Git - pulseview.git/blobdiff - pv/signal.h
Moved LabelPadding into View
[pulseview.git] / pv / signal.h
index b4c4244ca3fc438f7a71441bfc0a7de80fec0674..951ae3172bc576cd12e76dd9ccf349d937584cd4 100644 (file)
@@ -18,6 +18,9 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#ifndef PULSEVIEW_PV_SIGNAL_H
+#define PULSEVIEW_PV_SIGNAL_H
+
 #include <boost/shared_ptr.hpp>
 
 #include <QPainter>
@@ -33,15 +36,22 @@ class SignalData;
 class Signal
 {
 private:
-       static const QSizeF LabelPadding;
        static const int LabelHitPadding;
 
 protected:
        Signal(QString name);
 
 public:
+       /**
+        * Gets the name of this signal.
+        */
        QString get_name() const;
 
+       /**
+        * Sets the name of the signal.
+        */
+       void set_name(QString name);
+
        /**
         * Paints the signal with a QPainter
         * @param p the QPainter to paint into.
@@ -103,3 +113,5 @@ protected:
 };
 
 } // namespace pv
+
+#endif // PULSEVIEW_PV_SIGNAL_H