[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [okteta/kf5-port] parts/kbytesedit: bring back the enums from the deleted interface
From:       Alex Richardson <arichardson.kde () googlemail ! com>
Date:       2013-11-30 23:51:37
Message-ID: E1VmuK1-00063G-BW () scm ! kde ! org
[Download RAW message or body]

Git commit 4923b36d1d95512e38290dd0e4181ea8631c9edf by Alex Richardson.
Committed on 30/11/2013 at 23:51.
Pushed by arichardson into branch 'kf5-port'.

bring back the enums from the deleted interface

M  +48   -0    parts/kbytesedit/kbytearrayedit.h

http://commits.kde.org/okteta/4923b36d1d95512e38290dd0e4181ea8631c9edf

diff --git a/parts/kbytesedit/kbytearrayedit.h b/parts/kbytesedit/kbytearrayedit.h
index 9c08fd9..268e777 100644
--- a/parts/kbytesedit/kbytearrayedit.h
+++ b/parts/kbytesedit/kbytearrayedit.h
@@ -49,6 +49,54 @@ class KByteArrayEdit : public QWidget
   Q_PROPERTY( bool AutoDelete READ isAutoDelete WRITE setAutoDelete DESIGNABLE false )
 
   public:
+
+    /** collection of ids for the different numeric codings of a byte */
+    enum KCoding
+    {
+        /** hexadecimal encoding */
+        HexadecimalCoding=0,
+        /** decimal encoding */
+        DecimalCoding=1,
+        /** octal encoding */
+        OctalCoding=2,
+        /** bit by bit coding */
+        BinaryCoding=3,
+        /** @internal enables extension without breaking binary compatibility */
+        MaxCodingId=0xFFFF
+    };
+
+    /** collection of ids for the fitting of the layout into the available widget's width */
+    enum KResizeStyle
+    {
+        /** we don't care about the actual sizing of the widget
+          * but stick to the given NoOfBytesPerLine
+          */
+        NoResize=0,
+        /** we try to fit the layout to the available width
+          * but only with full groups like set in NoOfGroupedBytes
+          * with minimum of one full group
+          */
+        LockGrouping=1,
+        /** we try to fit as many bytes into the width as possible, with minimum of 1 byte
+          */
+        FullSizeUsage=2,
+        /** @internal enables extension without breaking binary compatibility */
+        MaxResizeStyleId=0xFF
+    };
+
+    /** encoding used to display the symbols in the text column */
+    enum KEncoding
+    {
+        /** the encoding of your shell. If that is a multibyte encoding this will default to Latin1. */
+        LocalEncoding=0,
+        /** extended ASCII encoding, also known as Latin1 */
+        ISO8859_1Encoding=1,
+        /** @internal not implemented: the most common EBCDIC codepage */
+        CECP1047Encoding=2,
+        /** @internal enables extension without breaking binary compatibility */
+        MaxEncodingId=0xFFFF
+    };
+
     /** constructor API as demanded by KPluginFactory */
     explicit KByteArrayEdit( QWidget* parent, const QList<QVariant>& = QList<QVariant>() );
     virtual ~KByteArrayEdit();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic