From kde-commits Sat Nov 30 23:51:37 2013 From: Alex Richardson Date: Sat, 30 Nov 2013 23:51:37 +0000 To: kde-commits Subject: [okteta/kf5-port] parts/kbytesedit: bring back the enums from the deleted interface Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=138585551011944 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/kbytearra= yedit.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 DESIGN= ABLE false ) = public: + + /** collection of ids for the different numeric codings of a byte */ + enum KCoding + { + /** hexadecimal encoding */ + HexadecimalCoding=3D0, + /** decimal encoding */ + DecimalCoding=3D1, + /** octal encoding */ + OctalCoding=3D2, + /** bit by bit coding */ + BinaryCoding=3D3, + /** @internal enables extension without breaking binary compatibil= ity */ + MaxCodingId=3D0xFFFF + }; + + /** 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=3D0, + /** 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=3D1, + /** we try to fit as many bytes into the width as possible, with m= inimum of 1 byte + */ + FullSizeUsage=3D2, + /** @internal enables extension without breaking binary compatibil= ity */ + MaxResizeStyleId=3D0xFF + }; + + /** encoding used to display the symbols in the text column */ + enum KEncoding + { + /** the encoding of your shell. If that is a multibyte encoding th= is will default to Latin1. */ + LocalEncoding=3D0, + /** extended ASCII encoding, also known as Latin1 */ + ISO8859_1Encoding=3D1, + /** @internal not implemented: the most common EBCDIC codepage */ + CECP1047Encoding=3D2, + /** @internal enables extension without breaking binary compatibil= ity */ + MaxEncodingId=3D0xFFFF + }; + /** constructor API as demanded by KPluginFactory */ explicit KByteArrayEdit( QWidget* parent, const QList& =3D Q= List() ); virtual ~KByteArrayEdit();