summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-07-07 12:37:21 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-07-07 12:37:21 +0200
commit004b73ed7ef33cb407897f7eccbec5f3861f99d7 (patch)
tree590f4a80bb66fcc74452c9ae0ac824b7d4bc5871
Squashed 'qhexedit2/' content from commit 7f22526
git-subtree-dir: qhexedit2 git-subtree-split: 7f22526a86685aec1c5722154b8a7422d5037b77
-rw-r--r--.gitignore1
-rw-r--r--.vscode/c_cpp_properties.json20
-rw-r--r--.vscode/launch.json30
-rw-r--r--.vscode/tasks.json48
-rw-r--r--appveyor.yml47
-rwxr-xr-xbuild-example.sh10
-rwxr-xr-xbuild-python-bindings.sh22
-rwxr-xr-xdelete.sh13
-rw-r--r--deploy.nsi167
-rw-r--r--doc/Doxyfile2342
-rw-r--r--doc/doxygen_sqlite3.dbbin0 -> 44032 bytes
-rw-r--r--doc/howtorelease.txt18
-rw-r--r--doc/html/.directory9
-rw-r--r--doc/html/_q_hex_edit_plugin_8h_source.html78
-rw-r--r--doc/html/annotated.html79
-rw-r--r--doc/html/arrowdown.pngbin0 -> 246 bytes
-rw-r--r--doc/html/arrowright.pngbin0 -> 229 bytes
-rw-r--r--doc/html/bc_s.pngbin0 -> 676 bytes
-rw-r--r--doc/html/bdwn.pngbin0 -> 147 bytes
-rw-r--r--doc/html/chunks_8h_source.html77
-rw-r--r--doc/html/class_q_hex_edit-members.html116
-rw-r--r--doc/html/class_q_hex_edit.html1237
-rw-r--r--doc/html/class_q_hex_edit.pngbin0 -> 533 bytes
-rw-r--r--doc/html/class_q_hex_edit_plugin-members.html88
-rw-r--r--doc/html/class_q_hex_edit_plugin.html127
-rw-r--r--doc/html/class_q_hex_edit_plugin.pngbin0 -> 1040 bytes
-rw-r--r--doc/html/classes.html82
-rw-r--r--doc/html/closed.pngbin0 -> 132 bytes
-rw-r--r--doc/html/commands_8h_source.html77
-rw-r--r--doc/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html77
-rw-r--r--doc/html/doc.pngbin0 -> 746 bytes
-rw-r--r--doc/html/doxygen.css1596
-rw-r--r--doc/html/doxygen.pngbin0 -> 3779 bytes
-rw-r--r--doc/html/dynsections.js97
-rw-r--r--doc/html/files.html82
-rw-r--r--doc/html/folderclosed.pngbin0 -> 616 bytes
-rw-r--r--doc/html/folderopen.pngbin0 -> 597 bytes
-rw-r--r--doc/html/functions.html244
-rw-r--r--doc/html/functions_func.html137
-rw-r--r--doc/html/functions_prop.html119
-rw-r--r--doc/html/hierarchy.html83
-rw-r--r--doc/html/index.html78
-rw-r--r--doc/html/jquery.js87
-rw-r--r--doc/html/menu.js26
-rw-r--r--doc/html/menudata.js27
-rw-r--r--doc/html/nav_f.pngbin0 -> 153 bytes
-rw-r--r--doc/html/nav_g.pngbin0 -> 95 bytes
-rw-r--r--doc/html/nav_h.pngbin0 -> 98 bytes
-rw-r--r--doc/html/open.pngbin0 -> 123 bytes
-rw-r--r--doc/html/qhexedit.pngbin0 -> 100293 bytes
-rw-r--r--doc/html/qhexedit_8h_source.html78
-rw-r--r--doc/html/search/all_0.html26
-rw-r--r--doc/html/search/all_0.js8
-rw-r--r--doc/html/search/all_1.html26
-rw-r--r--doc/html/search/all_1.js4
-rw-r--r--doc/html/search/all_2.html26
-rw-r--r--doc/html/search/all_2.js6
-rw-r--r--doc/html/search/all_3.html26
-rw-r--r--doc/html/search/all_3.js7
-rw-r--r--doc/html/search/all_4.html26
-rw-r--r--doc/html/search/all_4.js4
-rw-r--r--doc/html/search/all_5.html26
-rw-r--r--doc/html/search/all_5.js4
-rw-r--r--doc/html/search/all_6.html26
-rw-r--r--doc/html/search/all_6.js6
-rw-r--r--doc/html/search/all_7.html26
-rw-r--r--doc/html/search/all_7.js6
-rw-r--r--doc/html/search/all_8.html26
-rw-r--r--doc/html/search/all_8.js4
-rw-r--r--doc/html/search/all_9.html26
-rw-r--r--doc/html/search/all_9.js5
-rw-r--r--doc/html/search/all_a.html26
-rw-r--r--doc/html/search/all_a.js5
-rw-r--r--doc/html/search/all_b.html26
-rw-r--r--doc/html/search/all_b.js7
-rw-r--r--doc/html/search/all_c.html26
-rw-r--r--doc/html/search/all_c.js8
-rw-r--r--doc/html/search/all_d.html26
-rw-r--r--doc/html/search/all_d.js4
-rw-r--r--doc/html/search/all_e.html26
-rw-r--r--doc/html/search/all_e.js4
-rw-r--r--doc/html/search/all_f.html26
-rw-r--r--doc/html/search/all_f.js4
-rw-r--r--doc/html/search/classes_0.html26
-rw-r--r--doc/html/search/classes_0.js5
-rw-r--r--doc/html/search/close.pngbin0 -> 273 bytes
-rw-r--r--doc/html/search/functions_0.html26
-rw-r--r--doc/html/search/functions_0.js6
-rw-r--r--doc/html/search/functions_1.html26
-rw-r--r--doc/html/search/functions_1.js5
-rw-r--r--doc/html/search/functions_2.html26
-rw-r--r--doc/html/search/functions_2.js4
-rw-r--r--doc/html/search/functions_3.html26
-rw-r--r--doc/html/search/functions_3.js6
-rw-r--r--doc/html/search/functions_4.html26
-rw-r--r--doc/html/search/functions_4.js4
-rw-r--r--doc/html/search/functions_5.html26
-rw-r--r--doc/html/search/functions_5.js4
-rw-r--r--doc/html/search/functions_6.html26
-rw-r--r--doc/html/search/functions_6.js4
-rw-r--r--doc/html/search/functions_7.html26
-rw-r--r--doc/html/search/functions_7.js6
-rw-r--r--doc/html/search/functions_8.html26
-rw-r--r--doc/html/search/functions_8.js7
-rw-r--r--doc/html/search/functions_9.html26
-rw-r--r--doc/html/search/functions_9.js4
-rw-r--r--doc/html/search/functions_a.html26
-rw-r--r--doc/html/search/functions_a.js4
-rw-r--r--doc/html/search/functions_b.html26
-rw-r--r--doc/html/search/functions_b.js4
-rw-r--r--doc/html/search/mag_sel.pngbin0 -> 563 bytes
-rw-r--r--doc/html/search/nomatches.html12
-rw-r--r--doc/html/search/properties_0.html26
-rw-r--r--doc/html/search/properties_0.js8
-rw-r--r--doc/html/search/properties_1.html26
-rw-r--r--doc/html/search/properties_1.js4
-rw-r--r--doc/html/search/properties_2.html26
-rw-r--r--doc/html/search/properties_2.js4
-rw-r--r--doc/html/search/properties_3.html26
-rw-r--r--doc/html/search/properties_3.js5
-rw-r--r--doc/html/search/properties_4.html26
-rw-r--r--doc/html/search/properties_4.js4
-rw-r--r--doc/html/search/properties_5.html26
-rw-r--r--doc/html/search/properties_5.js6
-rw-r--r--doc/html/search/properties_6.html26
-rw-r--r--doc/html/search/properties_6.js4
-rw-r--r--doc/html/search/properties_7.html26
-rw-r--r--doc/html/search/properties_7.js4
-rw-r--r--doc/html/search/properties_8.html26
-rw-r--r--doc/html/search/properties_8.js4
-rw-r--r--doc/html/search/search.css271
-rw-r--r--doc/html/search/search.js791
-rw-r--r--doc/html/search/search_l.pngbin0 -> 604 bytes
-rw-r--r--doc/html/search/search_m.pngbin0 -> 158 bytes
-rw-r--r--doc/html/search/search_r.pngbin0 -> 612 bytes
-rw-r--r--doc/html/search/searchdata.js24
-rw-r--r--doc/html/splitbar.pngbin0 -> 314 bytes
-rw-r--r--doc/html/sync_off.pngbin0 -> 853 bytes
-rw-r--r--doc/html/sync_on.pngbin0 -> 845 bytes
-rw-r--r--doc/html/tab_a.pngbin0 -> 142 bytes
-rw-r--r--doc/html/tab_b.pngbin0 -> 169 bytes
-rw-r--r--doc/html/tab_h.pngbin0 -> 177 bytes
-rw-r--r--doc/html/tab_s.pngbin0 -> 184 bytes
-rw-r--r--doc/html/tabs.css1
-rw-r--r--doc/release.txt210
-rw-r--r--example/images/find.pngbin0 -> 1944 bytes
-rw-r--r--example/images/open.pngbin0 -> 2073 bytes
-rw-r--r--example/images/qhexedit.icobin0 -> 22382 bytes
-rw-r--r--example/images/qhexedit.svg157
-rw-r--r--example/images/qhexedit16.pngbin0 -> 760 bytes
-rw-r--r--example/images/qhexedit32.pngbin0 -> 2020 bytes
-rw-r--r--example/images/qhexedit64.pngbin0 -> 4830 bytes
-rw-r--r--example/images/redo.pngbin0 -> 985 bytes
-rw-r--r--example/images/save.pngbin0 -> 1187 bytes
-rw-r--r--example/images/undo.pngbin0 -> 962 bytes
-rw-r--r--example/main.cpp30
-rw-r--r--example/mainwindow.cpp433
-rw-r--r--example/mainwindow.h98
-rw-r--r--example/optionsdialog.cpp147
-rw-r--r--example/optionsdialog.h40
-rw-r--r--example/optionsdialog.ui449
-rw-r--r--example/qhexedit.pro45
-rw-r--r--example/qhexedit.qrc10
-rw-r--r--example/searchdialog.cpp115
-rw-r--r--example/searchdialog.h34
-rw-r--r--example/searchdialog.ui200
-rw-r--r--example/translations/qhexedit_cs.qmbin0 -> 4257 bytes
-rw-r--r--example/translations/qhexedit_cs.ts460
-rw-r--r--example/translations/qhexedit_de.qmbin0 -> 7319 bytes
-rw-r--r--example/translations/qhexedit_de.ts468
-rw-r--r--example/translations/qhexedit_ru.qmbin0 -> 7256 bytes
-rw-r--r--example/translations/qhexedit_ru.ts432
-rw-r--r--project.py29
-rw-r--r--pyproject.toml14
-rw-r--r--python/python2_pyqt4/Ui_optionsdialog.py150
-rw-r--r--python/python2_pyqt4/Ui_searchdialog.py132
-rw-r--r--python/python2_pyqt4/images/open.pngbin0 -> 2073 bytes
-rw-r--r--python/python2_pyqt4/images/save.pngbin0 -> 1187 bytes
-rw-r--r--python/python2_pyqt4/mainwindow.py295
-rw-r--r--python/python2_pyqt4/optionsdialog.py107
-rw-r--r--python/python2_pyqt4/optionsdialog.ui286
-rw-r--r--python/python2_pyqt4/qhexedit.qrc6
-rw-r--r--python/python2_pyqt4/qhexedit_rc.py252
-rw-r--r--python/python2_pyqt4/searchdialog.py84
-rw-r--r--python/python2_pyqt4/searchdialog.ui200
-rw-r--r--python/python3_pyqt5/mainwindow.py23
-rw-r--r--readme.md39
-rw-r--r--setup.py138
-rw-r--r--src/QHexEditPlugin.cpp89
-rw-r--r--src/QHexEditPlugin.h40
-rw-r--r--src/chunks.cpp323
-rw-r--r--src/chunks.h77
-rw-r--r--src/commands.cpp168
-rw-r--r--src/commands.h47
-rw-r--r--src/license.txt502
-rw-r--r--src/qhexedit.cpp1206
-rw-r--r--src/qhexedit.h459
-rw-r--r--src/qhexedit.pro27
-rw-r--r--src/qhexedit.sip94
-rw-r--r--src/qhexeditplugin.pro40
-rw-r--r--test/chunks.pro18
-rw-r--r--test/main.cpp63
-rw-r--r--test/testchunks.cpp123
-rw-r--r--test/testchunks.h32
-rw-r--r--test/testdata/1.bin1
-rw-r--r--test/testdata/16.binbin0 -> 16 bytes
-rw-r--r--test/testdata/32.binbin0 -> 32 bytes
-rw-r--r--test/testdata/33.binbin0 -> 33 bytes
-rw-r--r--test/testdata/4.binbin0 -> 4 bytes
209 files changed, 18090 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/build \ No newline at end of file
diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json
new file mode 100644
index 0000000..1f9c3c5
--- /dev/null
+++ b/.vscode/c_cpp_properties.json
@@ -0,0 +1,20 @@
+{
+ "configurations": [
+ {
+ "name": "Linux",
+ "includePath": [
+ "${workspaceFolder}/**",
+ "/usr/include/x86_64-linux-gnu/qt5/QtCore/",
+ "/usr/include/x86_64-linux-gnu/qt5/QtGui/",
+ "/usr/include/x86_64-linux-gnu/qt5/QtWidgets/",
+ "/usr/include/x86_64-linux-gnu/qt5/"
+ ],
+ "defines": [],
+ "compilerPath": "/usr/bin/gcc",
+ "cStandard": "gnu17",
+ "cppStandard": "gnu++14",
+ "intelliSenseMode": "linux-gcc-x64"
+ }
+ ],
+ "version": 4
+} \ No newline at end of file
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..805c237
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,30 @@
+{
+ // Use IntelliSense to learn about possible attributes.
+ // Hover to view descriptions of existing attributes.
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": "(gdb) Starten",
+ "type": "cppdbg",
+ "request": "launch",
+ "program": "${workspaceFolder}/build/qhexedit",
+ "args": [],
+ "cwd": "${workspaceFolder}",
+ "environment": [],
+ "externalConsole": false,
+ "linux": {
+ "MIMode": "gdb",
+ "miDebuggerPath": "/usr/bin/gdb"
+ },
+ "setupCommands": [
+ {
+ "description": "Automatische Strukturierung und Einrückung für \"gdb\" aktivieren",
+ "text": "-enable-pretty-printing",
+ "ignoreFailures": true
+ }
+ ],
+ "stopAtEntry": false,
+ }
+ ]
+} \ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 0000000..7117c12
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,48 @@
+{
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
+ // for the documentation about the tasks.json format
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "label": "qmake",
+ "type": "shell",
+ "command": "qmake",
+ "args": [
+ "CONFIG+=debug",
+ "../example/qhexedit.pro"
+ ],
+ "options": {
+ "cwd": "${workspaceFolder}/build"
+ }
+ },
+ {
+ "label": "make",
+ "type": "shell",
+ "command": "make",
+ "args": ["-j", "12"],
+ "problemMatcher": [
+ "$gcc"
+ ],
+ "options": {
+ "cwd": "${workspaceFolder}/build"
+ }
+ },
+ {
+ "label": "make clean",
+ "type": "shell",
+ "command": "make",
+ "args": ["clean"],
+ "options": {
+ "cwd": "${workspaceFolder}/build"
+ }
+ },
+ {
+ "label": "Build",
+ "dependsOn": ["qmake", "make"],
+ "group": {
+ "kind": "build",
+ "isDefault": true
+ }
+ }
+ ]
+} \ No newline at end of file
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..9134e3c
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,47 @@
+version: build{build}
+
+environment:
+ matrix:
+ - QT: C:\Qt\5.11\msvc2015
+ GENERATOR: Visual Studio 14 2015
+ PLATFORM: X86
+ - QT: C:\Qt\5.11\msvc2015_64
+ GENERATOR: Visual Studio 14 2015 Win64
+ PLATFORM: X64
+
+clone_folder: c:\dev\qhexedit
+clone_depth: 5
+
+install:
+ - set PATH=%QT%\bin\;C:\Qt\Tools\QtCreator\bin\;%PATH%
+
+before_build:
+ - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
+ - qmake --version
+ - echo %PLATFORM%
+ - cd c:\dev\qhexedit
+ - md build
+ - cd build
+ - if "%PLATFORM%" EQU "X64" (qmake -r -spec win32-msvc CONFIG+=x86_64 CONFIG-=debug CONFIG+=release ..\example\qhexedit.pro)
+ - if "%PLATFORM%" EQU "X86" (qmake -r -spec win32-msvc CONFIG+=Win32 CONFIG-=debug CONFIG+=release ..\example\qhexedit.pro)
+
+build_script:
+ - nmake
+ - windeployqt.exe release\qhexedit.exe
+ - makensis ..\deploy.nsi
+ - copy QHexEdit.exe ..\QHexEdit_%PLATFORM%.exe
+
+artifacts:
+ - path: QHexEdit_%PLATFORM%.exe
+
+deploy:
+ description: 'Latest QHexEdit Release'
+ provider: GitHub
+ auth_token:
+ secure: Euv9RAaww/SGWvmRycorKeh4t/BxsGCb176uhe23YTmyhkxn0nZlMcyFR+5s+R1z
+ draft: false
+ prerelease: false
+ force_update: true
+ on:
+ branch: master # release from master branch only
+ appveyor_repo_tag: true # deploy on tag push only
diff --git a/build-example.sh b/build-example.sh
new file mode 100755
index 0000000..6779e58
--- /dev/null
+++ b/build-example.sh
@@ -0,0 +1,10 @@
+if [ ! -d build ];then
+ mkdir build
+else
+ rm -rf build/*
+fi
+
+cd build
+qmake ../example/qhexedit.pro
+make
+cd ..
diff --git a/build-python-bindings.sh b/build-python-bindings.sh
new file mode 100755
index 0000000..7ef939f
--- /dev/null
+++ b/build-python-bindings.sh
@@ -0,0 +1,22 @@
+if [ ! -d build ];then
+ mkdir build
+else
+ rm -rf build/*
+fi
+
+cd build
+
+# for Qt4 use qt4-qmake
+# /usr/share/qt4/bin/qmake ../src/qhexedit.pro
+
+# for Qt5 use qt5-qmake
+/usr/lib/x86_64-linux-gnu/qt5/bin/qmake ../src/qhexedit.pro
+
+sudo make
+cd ..
+
+# for PyQt4 use python2 and PyQt4
+# sudo python2 setup.py install
+
+# for PyQt5 use python3 and PyQt5
+sudo python3 setup.py install
diff --git a/delete.sh b/delete.sh
new file mode 100755
index 0000000..8914a85
--- /dev/null
+++ b/delete.sh
@@ -0,0 +1,13 @@
+sudo rm -f /usr/lib/libqhexedit*
+
+# Python 2
+sudo rm -f /usr/local/lib/python2.7/dist-packages/qhexedit*
+sudo rm -f /usr/local/lib/python2.7/dist-packages/QHexEdit*
+
+# Python 3
+sudo rm -f /usr/local/lib/python3.4/dist-packages/qhexedit.cpython-34m.so
+sudo rm -f /usr/local/lib/python3.4/dist-packages/QHexEdit-0.7.2.egg-info
+
+sudo rm -f -R build
+
+mkdir build
diff --git a/deploy.nsi b/deploy.nsi
new file mode 100644
index 0000000..1238fea
--- /dev/null
+++ b/deploy.nsi
@@ -0,0 +1,167 @@
+#!define VERSION "0.0.1"
+!define QT "C:\Qt\5.5\mingw492_32\bin\"
+!define BUILD_DIR "C:\dev\qhexedit\build\release\"
+!define TRANS_DIR "C:\dev\qhexedit\example\translations\"
+!define OUTFILE_NAME "C:\dev\qhexedit\build\QHexEdit.exe"
+!define INSTALLATIONNAME "QHexEdit"
+
+;--------------------------------
+;Include Modern UI
+
+ !include "MUI2.nsh"
+
+;--------------------------------
+;General
+
+ ;Name and file
+ Name ${INSTALLATIONNAME}
+ OutFile ${OUTFILE_NAME}
+
+ SetCompressor lzma
+
+ ;Default installation folder
+ InstallDir "$PROGRAMFILES\QHexEdit"
+
+ ;Get installation folder from registry if available
+ InstallDirRegKey HKCU "Software\${INSTALLATIONNAME}" ""
+
+ ;Request application privileges for Windows Vista
+ !define MULTIUSER_EXECUTIONLEVEL Highest
+ !define MULTIUSER_MUI
+ !define MULTIUSER_INSTALLMODE_COMMANDLINE
+ !include MultiUser.nsh
+
+;--------------------------------
+;Interface Settings
+
+# !define MUI_HEADERIMAGE
+# !define MUI_HEADERIMAGE_BITMAP "cm_header.bmp"
+# !define MUI_HEADERIMAGE_UNBITMAP "cm_un-header.bmp"
+# !define MUI_WELCOMEFINISHPAGE_BITMAP "cm_wizard.bmp"
+# !define MUI_UNWELCOMEFINISHPAGE_BITMAP "cm_un-wizard.bmp"
+# !define MUI_ICON "myIcons.ico"
+# !define MUI_UNICON "unicon.ico"
+
+ !define MUI_ABORTWARNING
+
+ ;Show all languages, despite user's codepage
+# !define MUI_LANGDLL_ALLLANGUAGES
+
+;--------------------------------
+;Language Selection Dialog Settings
+
+ ;Remember the installer language
+ !define MUI_LANGDLL_REGISTRY_ROOT "SHCTX"
+ !define MUI_LANGDLL_REGISTRY_KEY "Software\${INSTALLATIONNAME}"
+ !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
+
+ ;Start Menu Folder Page Configuration
+ !define MUI_STARTMENUPAGE_REGISTRY_ROOT "SHCTX"
+ !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\${INSTALLATIONNAME}"
+ !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
+
+;--------------------------------
+;Pages
+ !insertmacro MUI_PAGE_WELCOME
+# !insertmacro MUI_PAGE_LICENSE $(license)
+ !insertmacro MUI_PAGE_COMPONENTS
+ !insertmacro MULTIUSER_PAGE_INSTALLMODE
+ !insertmacro MUI_PAGE_DIRECTORY
+ !insertmacro MUI_PAGE_INSTFILES
+ !insertmacro MUI_PAGE_FINISH
+
+ !insertmacro MUI_UNPAGE_WELCOME
+ !insertmacro MUI_UNPAGE_CONFIRM
+ !insertmacro MUI_UNPAGE_INSTFILES
+ !insertmacro MUI_UNPAGE_FINISH
+
+;--------------------------------
+;Languages
+
+ !insertmacro MUI_LANGUAGE "English" ;first language is the default Language
+ !insertmacro MUI_LANGUAGE "German"
+
+;--------------------------------
+;Reserve Files
+
+ ;If you are using solid compression, files that are required before
+ ;the actual installation should be stored first in the data block,
+ ;because this will make your installer start faster.
+
+ !insertmacro MUI_RESERVEFILE_LANGDLL
+
+;--------------------------------
+;Installer Sections
+
+Section ""
+ SetOutPath $INSTDIR
+ File ${BUILD_DIR}qhexedit.exe
+ File /r ${BUILD_DIR}*.dll
+ File ${TRANS_DIR}*.qm
+ WriteUninstaller $INSTDIR\uninstall.exe
+ WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${INSTALLATIONNAME}" "DisplayName" "QHexEdit Installer"
+ WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${INSTALLATIONNAME}" "UninstallString" '"$INSTDIR\uninstall.exe"'
+ WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${INSTALLATIONNAME}" "NoModify" 1
+ WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${INSTALLATIONNAME}" "NoRepair" 1
+ WriteRegStr SHCTX "Software\${INSTALLATIONNAME}" "" $INSTDIR
+SectionEnd
+
+Section $(startmenu) Startmenu
+ CreateDirectory "$SMPROGRAMS\${INSTALLATIONNAME}"
+ CreateShortCut "$SMPROGRAMS\${INSTALLATIONNAME}\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
+ CreateShortCut "$SMPROGRAMS\${INSTALLATIONNAME}\QHexEdit.lnk" "$INSTDIR\qhexedit.exe" "" "$INSTDIR\qhexedit.exe" 0
+SectionEnd
+
+Section /o $(desktop) Desktop
+ CreateShortCut "$DESKTOP\QHexEdit.lnk" "$INSTDIR\qhexedit.exe" "" "$INSTDIR\qhexedit.exe" 0
+SectionEnd
+
+;--------------------------------
+;Installer Functions
+
+Function .onInit
+ !insertmacro MULTIUSER_INIT
+ !insertmacro MUI_LANGDLL_DISPLAY
+FunctionEnd
+
+;--------------------------------
+;Descriptions
+
+#LicenseLangString license ${LANG_ENGLISH} license.rtf
+#LicenseLangString license ${LANG_GERMAN} license_de.rtf
+
+LangString startmenu ${LANG_ENGLISH} "Add to Start Menu"
+LangString startmenu ${LANG_GERMAN} "Eintrag ins Startmenü"
+LangString DESC_Startmenu ${LANG_ENGLISH} "Add an Entry to the Start Menu"
+LangString DESC_Startmenu ${LANG_GERMAN} "Einen Eintrag ins Startmenü hinzufügen"
+
+LangString desktop ${LANG_ENGLISH} "Add a Desktop Icon"
+LangString desktop ${LANG_GERMAN} "Zum Desktop hinzufügen"
+LangString DESC_Desktop ${LANG_ENGLISH} "Add an Icon to the Desktop"
+LangString DESC_Desktop ${LANG_GERMAN} "Einen Eintrag zum Desktop hinzufügen"
+
+!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
+ !insertmacro MUI_DESCRIPTION_TEXT ${Startmenu} $(DESC_Startmenu)
+ !insertmacro MUI_DESCRIPTION_TEXT ${Desktop} $(DESC_Desktop)
+!insertmacro MUI_FUNCTION_DESCRIPTION_END
+
+;--------------------------------
+;Uninstaller Section
+
+Section "Uninstall"
+ DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${INSTALLATIONNAME}"
+ DeleteRegKey SHCTX "Software\${INSTALLATIONNAME}"
+ RMDir /r $INSTDIR
+ Delete "$SMPROGRAMS\${INSTALLATIONNAME}\Uninstall.lnk"
+ Delete "$SMPROGRAMS\${INSTALLATIONNAME}\QHexEdit.lnk"
+ Delete "$DESKTOP\QHexEdit.lnk"
+ RMDir "$SMPROGRAMS\${INSTALLATIONNAME}"
+SectionEnd
+
+;--------------------------------
+;Uninstaller Functions
+
+Function un.onInit
+ !insertmacro MULTIUSER_UNINIT
+ !insertmacro MUI_UNGETLANGUAGE
+FunctionEnd
diff --git a/doc/Doxyfile b/doc/Doxyfile
new file mode 100644
index 0000000..e35cca2
--- /dev/null
+++ b/doc/Doxyfile
@@ -0,0 +1,2342 @@
+# Doxyfile 1.8.6
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project.
+#
+# All text after a double hash (##) is considered a comment and is placed in
+# front of the TAG it is preceding.
+#
+# All text after a single hash (#) is considered a comment and will be ignored.
+# The format is:
+# TAG = value [value, ...]
+# For lists, items can also be appended using:
+# TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (\" \").
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the config file
+# that follow. The default is UTF-8 which is also the encoding used for all text
+# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv
+# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv
+# for the list of possible encodings.
+# The default value is: UTF-8.
+
+DOXYFILE_ENCODING = UTF-8
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
+# double-quotes, unless you are using Doxywizard) that should identify the
+# project for which the documentation is generated. This name is used in the
+# title of most generated pages and in a few other places.
+# The default value is: My Project.
+
+PROJECT_NAME = QHexEdit
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
+# could be handy for archiving the generated documentation or if some version
+# control system is used.
+
+PROJECT_NUMBER =
+
+# Using the PROJECT_BRIEF tag one can provide an optional one line description
+# for a project that appears at the top of each page and should give viewer a
+# quick idea about the purpose of the project. Keep the description short.
+
+PROJECT_BRIEF =
+
+# With the PROJECT_LOGO tag one can specify an logo or icon that is included in
+# the documentation. The maximum height of the logo should not exceed 55 pixels
+# and the maximum width should not exceed 200 pixels. Doxygen will copy the logo
+# to the output directory.
+
+PROJECT_LOGO =
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
+# into which the generated documentation will be written. If a relative path is
+# entered, it will be relative to the location where doxygen was started. If
+# left blank the current directory will be used.
+
+OUTPUT_DIRECTORY =
+
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub-
+# directories (in 2 levels) under the output directory of each output format and
+# will distribute the generated files over these directories. Enabling this
+# option can be useful when feeding doxygen a huge amount of source files, where
+# putting all generated files in the same directory would otherwise causes
+# performance problems for the file system.
+# The default value is: NO.
+
+CREATE_SUBDIRS = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,
+# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
+# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,
+# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),
+# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,
+# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,
+# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,
+# Ukrainian and Vietnamese.
+# The default value is: English.
+
+OUTPUT_LANGUAGE = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES doxygen will include brief member
+# descriptions after the members that are listed in the file and class
+# documentation (similar to Javadoc). Set to NO to disable this.
+# The default value is: YES.
+
+BRIEF_MEMBER_DESC = YES
+
+# If the REPEAT_BRIEF tag is set to YES doxygen will prepend the brief
+# description of a member or function before the detailed description
+#
+# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# brief descriptions will be completely suppressed.
+# The default value is: YES.
+
+REPEAT_BRIEF = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator that is
+# used to form the text in various listings. Each string in this list, if found
+# as the leading text of the brief description, will be stripped from the text
+# and the result, after processing the whole list, is used as the annotated
+# text. Otherwise, the brief description is used as-is. If left blank, the
+# following values are used ($name is automatically replaced with the name of
+# the entity):The $name class, The $name widget, The $name file, is, provides,
+# specifies, contains, represents, a, an and the.
+
+ABBREVIATE_BRIEF = "The $name class" \
+ "The $name widget" \
+ "The $name file" \
+ is \
+ provides \
+ specifies \
+ contains \
+ represents \
+ a \
+ an \
+ the
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# doxygen will generate a detailed section even if there is only a brief
+# description.
+# The default value is: NO.
+
+ALWAYS_DETAILED_SEC = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
+# operators of the base classes will not be shown.
+# The default value is: NO.
+
+INLINE_INHERITED_MEMB = NO
+
+# If the FULL_PATH_NAMES tag is set to YES doxygen will prepend the full path
+# before files name in the file list and in the header files. If set to NO the
+# shortest path that makes the file name unique will be used
+# The default value is: YES.
+
+FULL_PATH_NAMES = YES
+
+# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
+# Stripping is only done if one of the specified strings matches the left-hand
+# part of the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the path to
+# strip.
+#
+# Note that you can specify absolute paths here, but also relative paths, which
+# will be relative from the directory where doxygen is started.
+# This tag requires that the tag FULL_PATH_NAMES is set to YES.
+
+STRIP_FROM_PATH =
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
+# path mentioned in the documentation of a class, which tells the reader which
+# header file to include in order to use a class. If left blank only the name of
+# the header file containing the class definition is used. Otherwise one should
+# specify the list of include paths that are normally passed to the compiler
+# using the -I flag.
+
+STRIP_FROM_INC_PATH =
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
+# less readable) file names. This can be useful is your file systems doesn't
+# support long names like on DOS, Mac, or CD-ROM.
+# The default value is: NO.
+
+SHORT_NAMES = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the
+# first line (until the first dot) of a Javadoc-style comment as the brief
+# description. If set to NO, the Javadoc-style will behave just like regular Qt-
+# style comments (thus requiring an explicit @brief command for a brief
+# description.)
+# The default value is: NO.
+
+JAVADOC_AUTOBRIEF = NO
+
+# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first
+# line (until the first dot) of a Qt-style comment as the brief description. If
+# set to NO, the Qt-style will behave just like regular Qt-style comments (thus
+# requiring an explicit \brief command for a brief description.)
+# The default value is: NO.
+
+QT_AUTOBRIEF = NO
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
+# multi-line C++ special comment block (i.e. a block of //! or /// comments) as
+# a brief description. This used to be the default behavior. The new default is
+# to treat a multi-line C++ comment block as a detailed description. Set this
+# tag to YES if you prefer the old behavior instead.
+#
+# Note that setting this tag to YES also means that rational rose comments are
+# not recognized any more.
+# The default value is: NO.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
+# documentation from any documented member that it re-implements.
+# The default value is: YES.
+
+INHERIT_DOCS = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce a
+# new page for each member. If set to NO, the documentation of a member will be
+# part of the file/class/namespace that contains it.
+# The default value is: NO.
+
+SEPARATE_MEMBER_PAGES = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen
+# uses this value to replace tabs by spaces in code fragments.
+# Minimum value: 1, maximum value: 16, default value: 4.
+
+TAB_SIZE = 8
+
+# This tag can be used to specify a number of aliases that act as commands in
+# the documentation. An alias has the form:
+# name=value
+# For example adding
+# "sideeffect=@par Side Effects:\n"
+# will allow you to put the command \sideeffect (or @sideeffect) in the
+# documentation, which will result in a user-defined paragraph with heading
+# "Side Effects:". You can put \n's in the value part of an alias to insert
+# newlines.
+
+ALIASES =
+
+# This tag can be used to specify a number of word-keyword mappings (TCL only).
+# A mapping has the form "name=value". For example adding "class=itcl::class"
+# will allow you to use the command class in the itcl::class meaning.
+
+TCL_SUBST =
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
+# only. Doxygen will then generate output that is more tailored for C. For
+# instance, some of the names that are used will be different. The list of all
+# members will be omitted, etc.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_FOR_C = NO
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or
+# Python sources only. Doxygen will then generate output that is more tailored
+# for that language. For instance, namespaces will be presented as packages,
+# qualified scopes will look different, etc.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_JAVA = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
+# sources. Doxygen will then generate output that is tailored for Fortran.
+# The default value is: NO.
+
+OPTIMIZE_FOR_FORTRAN = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
+# sources. Doxygen will then generate output that is tailored for VHDL.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_VHDL = NO
+
+# Doxygen selects the parser to use depending on the extension of the files it
+# parses. With this tag you can assign which parser to use for a given
+# extension. Doxygen has a built-in mapping, but you can override or extend it
+# using this tag. The format is ext=language, where ext is a file extension, and
+# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
+# C#, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL. For instance to make
+# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C
+# (default is Fortran), use: inc=Fortran f=C.
+#
+# Note For files without extension you can use no_extension as a placeholder.
+#
+# Note that for custom extensions you also need to set FILE_PATTERNS otherwise
+# the files are not read by doxygen.
+
+EXTENSION_MAPPING =
+
+# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
+# according to the Markdown format, which allows for more readable
+# documentation. See http://daringfireball.net/projects/markdown/ for details.
+# The output of markdown processing is further processed by doxygen, so you can
+# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in
+# case of backward compatibilities issues.
+# The default value is: YES.
+
+MARKDOWN_SUPPORT = YES
+
+# When enabled doxygen tries to link words that correspond to documented
+# classes, or namespaces to their corresponding documentation. Such a link can
+# be prevented in individual cases by by putting a % sign in front of the word
+# or globally by setting AUTOLINK_SUPPORT to NO.
+# The default value is: YES.
+
+AUTOLINK_SUPPORT = YES
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+# to include (a tag file for) the STL sources as input, then you should set this
+# tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string);
+# versus func(std::string) {}). This also make the inheritance and collaboration
+# diagrams that involve STL classes more complete and accurate.
+# The default value is: NO.
+
+BUILTIN_STL_SUPPORT = NO
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to
+# enable parsing support.
+# The default value is: NO.
+
+CPP_CLI_SUPPORT = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:
+# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen
+# will parse them like normal C++ but will assume all classes use public instead
+# of private inheritance when no explicit protection keyword is present.
+# The default value is: NO.
+
+SIP_SUPPORT = NO
+
+# For Microsoft's IDL there are propget and propput attributes to indicate
+# getter and setter methods for a property. Setting this option to YES will make
+# doxygen to replace the get and set methods by a property in the documentation.
+# This will only work if the methods are indeed getting or setting a simple
+# type. If this is not the case, or you want to show the methods anyway, you
+# should set this option to NO.
+# The default value is: YES.
+
+IDL_PROPERTY_SUPPORT = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES, then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
+# all members of a group must be documented explicitly.
+# The default value is: NO.
+
+DISTRIBUTE_GROUP_DOC = NO
+
+# Set the SUBGROUPING tag to YES to allow class member groups of the same type
+# (for instance a group of public functions) to be put as a subgroup of that
+# type (e.g. under the Public Functions section). Set it to NO to prevent
+# subgrouping. Alternatively, this can be done per class using the
+# \nosubgrouping command.
+# The default value is: YES.
+
+SUBGROUPING = YES
+
+# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions
+# are shown inside the group in which they are included (e.g. using \ingroup)
+# instead of on a separate page (for HTML and Man pages) or section (for LaTeX
+# and RTF).
+#
+# Note that this feature does not work in combination with
+# SEPARATE_MEMBER_PAGES.
+# The default value is: NO.
+
+INLINE_GROUPED_CLASSES = NO
+
+# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions
+# with only public data fields or simple typedef fields will be shown inline in
+# the documentation of the scope in which they are defined (i.e. file,
+# namespace, or group documentation), provided this scope is documented. If set
+# to NO, structs, classes, and unions are shown on a separate page (for HTML and
+# Man pages) or section (for LaTeX and RTF).
+# The default value is: NO.
+
+INLINE_SIMPLE_STRUCTS = NO
+
+# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or
+# enum is documented as struct, union, or enum with the name of the typedef. So
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+# with name TypeT. When disabled the typedef will appear as a member of a file,
+# namespace, or class. And the struct will be named TypeS. This can typically be
+# useful for C code in case the coding convention dictates that all compound
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+# The default value is: NO.
+
+TYPEDEF_HIDES_STRUCT = NO
+
+# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
+# cache is used to resolve symbols given their name and scope. Since this can be
+# an expensive process and often the same symbol appears multiple times in the
+# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small
+# doxygen will become slower. If the cache is too large, memory is wasted. The
+# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range
+# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536
+# symbols. At the end of a run doxygen will report the cache usage and suggest
+# the optimal cache size from a speed point of view.
+# Minimum value: 0, maximum value: 9, default value: 0.
+
+LOOKUP_CACHE_SIZE = 0
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+# documentation are documented, even if no documentation was available. Private
+# class members and static file members will be hidden unless the
+# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.
+# Note: This will also disable the warnings about undocumented members that are
+# normally produced when WARNINGS is set to YES.
+# The default value is: NO.
+
+EXTRACT_ALL = NO
+
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class will
+# be included in the documentation.
+# The default value is: NO.
+
+EXTRACT_PRIVATE = NO
+
+# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal
+# scope will be included in the documentation.
+# The default value is: NO.
+
+EXTRACT_PACKAGE = NO
+
+# If the EXTRACT_STATIC tag is set to YES all static members of a file will be
+# included in the documentation.
+# The default value is: NO.
+
+EXTRACT_STATIC = NO
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) defined
+# locally in source files will be included in the documentation. If set to NO
+# only classes defined in header files are included. Does not have any effect
+# for Java sources.
+# The default value is: YES.
+
+EXTRACT_LOCAL_CLASSES = YES
+
+# This flag is only useful for Objective-C code. When set to YES local methods,
+# which are defined in the implementation section but not in the interface are
+# included in the documentation. If set to NO only methods in the interface are
+# included.
+# The default value is: NO.
+
+EXTRACT_LOCAL_METHODS = NO
+
+# If this flag is set to YES, the members of anonymous namespaces will be
+# extracted and appear in the documentation as a namespace called
+# 'anonymous_namespace{file}', where file will be replaced with the base name of
+# the file that contains the anonymous namespace. By default anonymous namespace
+# are hidden.
+# The default value is: NO.
+
+EXTRACT_ANON_NSPACES = NO
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all
+# undocumented members inside documented classes or files. If set to NO these
+# members will be included in the various overviews, but no documentation
+# section is generated. This option has no effect if EXTRACT_ALL is enabled.
+# The default value is: NO.
+
+HIDE_UNDOC_MEMBERS = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy. If set
+# to NO these classes will be included in the various overviews. This option has
+# no effect if EXTRACT_ALL is enabled.
+# The default value is: NO.
+
+HIDE_UNDOC_CLASSES = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
+# (class|struct|union) declarations. If set to NO these declarations will be
+# included in the documentation.
+# The default value is: NO.
+
+HIDE_FRIEND_COMPOUNDS = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
+# documentation blocks found inside the body of a function. If set to NO these
+# blocks will be appended to the function's detailed documentation block.
+# The default value is: NO.
+
+HIDE_IN_BODY_DOCS = NO
+
+# The INTERNAL_DOCS tag determines if documentation that is typed after a
+# \internal command is included. If the tag is set to NO then the documentation
+# will be excluded. Set it to YES to include the internal documentation.
+# The default value is: NO.
+
+INTERNAL_DOCS = NO
+
+# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file
+# names in lower-case letters. If set to YES upper-case letters are also
+# allowed. This is useful if you have classes or files whose names only differ
+# in case and if your file system supports case sensitive file names. Windows
+# and Mac users are advised to set this option to NO.
+# The default value is: system dependent.
+
+CASE_SENSE_NAMES = NO
+
+# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with
+# their full class and namespace scopes in the documentation. If set to YES the
+# scope will be hidden.
+# The default value is: NO.
+
+HIDE_SCOPE_NAMES = NO
+
+# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of
+# the files that are included by a file in the documentation of that file.
+# The default value is: YES.
+
+SHOW_INCLUDE_FILES = YES
+
+# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
+# grouped member an include statement to the documentation, telling the reader
+# which file to include in order to use the member.
+# The default value is: NO.
+
+SHOW_GROUPED_MEMB_INC = NO
+
+# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
+# files with double quotes in the documentation rather than with sharp brackets.
+# The default value is: NO.
+
+FORCE_LOCAL_INCLUDES = NO
+
+# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the
+# documentation for inline members.
+# The default value is: YES.
+
+INLINE_INFO = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the
+# (detailed) documentation of file and class members alphabetically by member
+# name. If set to NO the members will appear in declaration order.
+# The default value is: YES.
+
+SORT_MEMBER_DOCS = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
+# descriptions of file, namespace and class members alphabetically by member
+# name. If set to NO the members will appear in declaration order. Note that
+# this will also influence the order of the classes in the class list.
+# The default value is: NO.
+
+SORT_BRIEF_DOCS = NO
+
+# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the
+# (brief and detailed) documentation of class members so that constructors and
+# destructors are listed first. If set to NO the constructors will appear in the
+# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.
+# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief
+# member documentation.
+# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting
+# detailed member documentation.
+# The default value is: NO.
+
+SORT_MEMBERS_CTORS_1ST = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy
+# of group names into alphabetical order. If set to NO the group names will
+# appear in their defined order.
+# The default value is: NO.
+
+SORT_GROUP_NAMES = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by
+# fully-qualified names, including namespaces. If set to NO, the class list will
+# be sorted only by class name, not including the namespace part.
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+# Note: This option applies only to the class list, not to the alphabetical
+# list.
+# The default value is: NO.
+
+SORT_BY_SCOPE_NAME = NO
+
+# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper
+# type resolution of all parameters of a function it will reject a match between
+# the prototype and the implementation of a member function even if there is
+# only one candidate or it is obvious which candidate to choose by doing a
+# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still
+# accept a match between prototype and implementation in such cases.
+# The default value is: NO.
+
+STRICT_PROTO_MATCHING = NO
+
+# The GENERATE_TODOLIST tag can be used to enable ( YES) or disable ( NO) the
+# todo list. This list is created by putting \todo commands in the
+# documentation.
+# The default value is: YES.
+
+GENERATE_TODOLIST = YES
+
+# The GENERATE_TESTLIST tag can be used to enable ( YES) or disable ( NO) the
+# test list. This list is created by putting \test commands in the
+# documentation.
+# The default value is: YES.
+
+GENERATE_TESTLIST = YES
+
+# The GENERATE_BUGLIST tag can be used to enable ( YES) or disable ( NO) the bug
+# list. This list is created by putting \bug commands in the documentation.
+# The default value is: YES.
+
+GENERATE_BUGLIST = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable ( YES) or disable ( NO)
+# the deprecated list. This list is created by putting \deprecated commands in
+# the documentation.
+# The default value is: YES.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional documentation
+# sections, marked by \if <section_label> ... \endif and \cond <section_label>
+# ... \endcond blocks.
+
+ENABLED_SECTIONS =
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the
+# initial value of a variable or macro / define can have for it to appear in the
+# documentation. If the initializer consists of more lines than specified here
+# it will be hidden. Use a value of 0 to hide initializers completely. The
+# appearance of the value of individual variables and macros / defines can be
+# controlled using \showinitializer or \hideinitializer command in the
+# documentation regardless of this setting.
+# Minimum value: 0, maximum value: 10000, default value: 30.
+
+MAX_INITIALIZER_LINES = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at
+# the bottom of the documentation of classes and structs. If set to YES the list
+# will mention the files that were used to generate the documentation.
+# The default value is: YES.
+
+SHOW_USED_FILES = YES
+
+# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This
+# will remove the Files entry from the Quick Index and from the Folder Tree View
+# (if specified).
+# The default value is: YES.
+
+SHOW_FILES = YES
+
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces
+# page. This will remove the Namespaces entry from the Quick Index and from the
+# Folder Tree View (if specified).
+# The default value is: YES.
+
+SHOW_NAMESPACES = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from
+# the version control system). Doxygen will invoke the program by executing (via
+# popen()) the command command input-file, where command is the value of the
+# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
+# by doxygen. Whatever the program writes to standard output is used as the file
+# version. For an example see the documentation.
+
+FILE_VERSION_FILTER =
+
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
+# by doxygen. The layout file controls the global structure of the generated
+# output files in an output format independent way. To create the layout file
+# that represents doxygen's defaults, run doxygen with the -l option. You can
+# optionally specify a file name after the option, if omitted DoxygenLayout.xml
+# will be used as the name of the layout file.
+#
+# Note that if you run doxygen from a directory containing a file called
+# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
+# tag is left empty.
+
+LAYOUT_FILE =
+
+# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
+# the reference definitions. This must be a list of .bib files. The .bib
+# extension is automatically appended if omitted. This requires the bibtex tool
+# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info.
+# For LaTeX the style of the bibliography can be controlled using
+# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the
+# search path. Do not use file names with spaces, bibtex cannot handle them. See
+# also \cite for info how to create references.
+
+CITE_BIB_FILES =
+
+#---------------------------------------------------------------------------
+# Configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated to
+# standard output by doxygen. If QUIET is set to YES this implies that the
+# messages are off.
+# The default value is: NO.
+
+QUIET = NO
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated to standard error ( stderr) by doxygen. If WARNINGS is set to YES
+# this implies that the warnings are on.
+#
+# Tip: Turn warnings on while writing the documentation.
+# The default value is: YES.
+
+WARNINGS = YES
+
+# If the WARN_IF_UNDOCUMENTED tag is set to YES, then doxygen will generate
+# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag
+# will automatically be disabled.
+# The default value is: YES.
+
+WARN_IF_UNDOCUMENTED = YES
+
+# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as not documenting some parameters
+# in a documented function, or documenting parameters that don't exist or using
+# markup commands wrongly.
+# The default value is: YES.
+
+WARN_IF_DOC_ERROR = YES
+
+# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that
+# are documented, but have no documentation for their parameters or return
+# value. If set to NO doxygen will only warn about wrong or incomplete parameter
+# documentation, but not about the absence of documentation.
+# The default value is: NO.
+
+WARN_NO_PARAMDOC = NO
+
+# The WARN_FORMAT tag determines the format of the warning messages that doxygen
+# can produce. The string should contain the $file, $line, and $text tags, which
+# will be replaced by the file and line number from which the warning originated
+# and the warning text. Optionally the format may contain $version, which will
+# be replaced by the version of the file (if it could be obtained via
+# FILE_VERSION_FILTER)
+# The default value is: $file:$line: $text.
+
+WARN_FORMAT = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning and error
+# messages should be written. If left blank the output is written to standard
+# error (stderr).
+
+WARN_LOGFILE =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag is used to specify the files and/or directories that contain
+# documented source files. You may enter file names like myfile.cpp or
+# directories like /usr/src/myproject. Separate the files or directories with
+# spaces.
+# Note: If this tag is empty the current directory is searched.
+
+INPUT = ../src
+
+# This tag can be used to specify the character encoding of the source files
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
+# libiconv (or the iconv built into libc) for the transcoding. See the libiconv
+# documentation (see: http://www.gnu.org/software/libiconv) for the list of
+# possible encodings.
+# The default value is: UTF-8.
+
+INPUT_ENCODING = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and
+# *.h) to filter out the source-files in the directories. If left blank the
+# following patterns are tested:*.c, *.cc, *.cxx, *.cpp, *.c++, *.java, *.ii,
+# *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp,
+# *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown,
+# *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf,
+# *.qsf, *.as and *.js.
+
+FILE_PATTERNS = *.c \
+ *.cc \
+ *.cxx \
+ *.c++ \
+ *.d \
+ *.java \
+ *.ii \
+ *.ixx \
+ *.ipp \
+ *.i++ \
+ *.inl \
+ *.h \
+ *.hh \
+ *.hxx \
+ *.hpp \
+ *.h++ \
+ *.idl \
+ *.odl \
+ *.cs \
+ *.php \
+ *.php3 \
+ *.inc \
+ *.m \
+ *.mm \
+ *.dox \
+ *.py \
+ *.f90 \
+ *.f \
+ *.vhd \
+ *.vhdl
+
+# The RECURSIVE tag can be used to specify whether or not subdirectories should
+# be searched for input files as well.
+# The default value is: NO.
+
+RECURSIVE = YES
+
+# The EXCLUDE tag can be used to specify files and/or directories that should be
+# excluded from the INPUT source files. This way you can easily exclude a
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+#
+# Note that relative paths are relative to the directory from which doxygen is
+# run.
+
+EXCLUDE =
+
+# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
+# directories that are symbolic links (a Unix file system feature) are excluded
+# from the input.
+# The default value is: NO.
+
+EXCLUDE_SYMLINKS = NO
+
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories.
+#
+# Note that the wildcards are matched against the file with absolute path, so to
+# exclude all test directories for example use the pattern */test/*
+
+EXCLUDE_PATTERNS =
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+# (namespaces, classes, functions, etc.) that should be excluded from the
+# output. The symbol name can be a fully qualified name, a word, or if the
+# wildcard * is used, a substring. Examples: ANamespace, AClass,
+# AClass::ANamespace, ANamespace::*Test
+#
+# Note that the wildcards are matched against the file with absolute path, so to
+# exclude all test directories use the pattern */test/*
+
+EXCLUDE_SYMBOLS =
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or directories
+# that contain example code fragments that are included (see the \include
+# command).
+
+EXAMPLE_PATH =
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
+# *.h) to filter out the source-files in the directories. If left blank all
+# files are included.
+
+EXAMPLE_PATTERNS = *
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude commands
+# irrespective of the value of the RECURSIVE tag.
+# The default value is: NO.
+
+EXAMPLE_RECURSIVE = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or directories
+# that contain images that are to be included in the documentation (see the
+# \image command).
+
+IMAGE_PATH = pics
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command:
+#
+# <filter> <input-file>
+#
+# where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the
+# name of an input file. Doxygen will then use the output that the filter
+# program writes to standard output. If FILTER_PATTERNS is specified, this tag
+# will be ignored.
+#
+# Note that the filter must not add or remove lines; it is applied before the
+# code is scanned, but not when the output code is generated. If lines are added
+# or removed, the anchors will not be placed correctly.
+
+INPUT_FILTER =
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis. Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match. The filters are a list of the form: pattern=filter
+# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how
+# filters are used. If the FILTER_PATTERNS tag is empty or if none of the
+# patterns match the file name, INPUT_FILTER is applied.
+
+FILTER_PATTERNS =
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER ) will also be used to filter the input files that are used for
+# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).
+# The default value is: NO.
+
+FILTER_SOURCE_FILES = NO
+
+# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
+# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and
+# it is also possible to disable source filtering for a specific pattern using
+# *.ext= (so without naming a filter).
+# This tag requires that the tag FILTER_SOURCE_FILES is set to YES.
+
+FILTER_SOURCE_PATTERNS =
+
+# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that
+# is part of the input, its contents will be placed on the main page
+# (index.html). This can be useful if you have a project on for instance GitHub
+# and want to reuse the introduction page also for the doxygen output.
+
+USE_MDFILE_AS_MAINPAGE =
+
+#---------------------------------------------------------------------------
+# Configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will be
+# generated. Documented entities will be cross-referenced with these sources.
+#
+# Note: To get rid of all source code in the generated output, make sure that
+# also VERBATIM_HEADERS is set to NO.
+# The default value is: NO.
+
+SOURCE_BROWSER = NO
+
+# Setting the INLINE_SOURCES tag to YES will include the body of functions,
+# classes and enums directly into the documentation.
+# The default value is: NO.
+
+INLINE_SOURCES = NO
+
+# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any
+# special comment blocks from generated source code fragments. Normal C, C++ and
+# Fortran comments will always remain visible.
+# The default value is: YES.
+
+STRIP_CODE_COMMENTS = YES
+
+# If the REFERENCED_BY_RELATION tag is set to YES then for each documented
+# function all documented functions referencing it will be listed.
+# The default value is: NO.
+
+REFERENCED_BY_RELATION = NO
+
+# If the REFERENCES_RELATION tag is set to YES then for each documented function
+# all documented entities called/used by that function will be listed.
+# The default value is: NO.
+
+REFERENCES_RELATION = NO
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set
+# to YES, then the hyperlinks from functions in REFERENCES_RELATION and
+# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will
+# link to the documentation.
+# The default value is: YES.
+
+REFERENCES_LINK_SOURCE = YES
+
+# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the
+# source code will show a tooltip with additional information such as prototype,
+# brief description and links to the definition and documentation. Since this
+# will make the HTML file larger and loading of large files a bit slower, you
+# can opt to disable this feature.
+# The default value is: YES.
+# This tag requires that the tag SOURCE_BROWSER is set to YES.
+
+SOURCE_TOOLTIPS = YES
+
+# If the USE_HTAGS tag is set to YES then the references to source code will
+# point to the HTML generated by the htags(1) tool instead of doxygen built-in
+# source browser. The htags tool is part of GNU's global source tagging system
+# (see http://www.gnu.org/software/global/global.html). You will need version
+# 4.8.6 or higher.
+#
+# To use it do the following:
+# - Install the latest version of global
+# - Enable SOURCE_BROWSER and USE_HTAGS in the config file
+# - Make sure the INPUT points to the root of the source tree
+# - Run doxygen as normal
+#
+# Doxygen will invoke htags (and that will in turn invoke gtags), so these
+# tools must be available from the command line (i.e. in the search path).
+#
+# The result: instead of the source browser generated by doxygen, the links to
+# source code will now point to the output of htags.
+# The default value is: NO.
+# This tag requires that the tag SOURCE_BROWSER is set to YES.
+
+USE_HTAGS = NO
+
+# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a
+# verbatim copy of the header file for each class for which an include is
+# specified. Set to NO to disable this.
+# See also: Section \class.
+# The default value is: YES.
+
+VERBATIM_HEADERS = YES
+
+#---------------------------------------------------------------------------
+# Configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all
+# compounds will be generated. Enable this if the project contains a lot of
+# classes, structs, unions or interfaces.
+# The default value is: YES.
+
+ALPHABETICAL_INDEX = NO
+
+# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in
+# which the alphabetical index list will be split.
+# Minimum value: 1, maximum value: 20, default value: 5.
+# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
+
+COLS_IN_ALPHA_INDEX = 5
+
+# In case all classes in a project start with a common prefix, all classes will
+# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
+# can be used to specify a prefix (or a list of prefixes) that should be ignored
+# while generating the index headers.
+# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
+
+IGNORE_PREFIX =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES doxygen will generate HTML output
+# The default value is: YES.
+
+GENERATE_HTML = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: html.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_OUTPUT = html
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
+# generated HTML page (for example: .htm, .php, .asp).
+# The default value is: .html.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FILE_EXTENSION = .html
+
+# The HTML_HEADER tag can be used to specify a user-defined HTML header file for
+# each generated HTML page. If the tag is left blank doxygen will generate a
+# standard header.
+#
+# To get valid HTML the header file that includes any scripts and style sheets
+# that doxygen needs, which is dependent on the configuration options used (e.g.
+# the setting GENERATE_TREEVIEW). It is highly recommended to start with a
+# default header using
+# doxygen -w html new_header.html new_footer.html new_stylesheet.css
+# YourConfigFile
+# and then modify the file new_header.html. See also section "Doxygen usage"
+# for information on how to generate the default header that doxygen normally
+# uses.
+# Note: The header is subject to change so you typically have to regenerate the
+# default header when upgrading to a newer version of doxygen. For a description
+# of the possible markers and block names see the documentation.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_HEADER =
+
+# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
+# generated HTML page. If the tag is left blank doxygen will generate a standard
+# footer. See HTML_HEADER for more information on how to generate a default
+# footer and what special commands can be used inside the footer. See also
+# section "Doxygen usage" for information on how to generate the default footer
+# that doxygen normally uses.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FOOTER =
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
+# sheet that is used by each HTML page. It can be used to fine-tune the look of
+# the HTML output. If left blank doxygen will generate a default style sheet.
+# See also section "Doxygen usage" for information on how to generate the style
+# sheet that doxygen normally uses.
+# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as
+# it is more robust and this tag (HTML_STYLESHEET) will in the future become
+# obsolete.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_STYLESHEET =
+
+# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional user-
+# defined cascading style sheet that is included after the standard style sheets
+# created by doxygen. Using this option one can overrule certain style aspects.
+# This is preferred over using HTML_STYLESHEET since it does not replace the
+# standard style sheet and is therefor more robust against future updates.
+# Doxygen will copy the style sheet file to the output directory. For an example
+# see the documentation.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_EXTRA_STYLESHEET =
+
+# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
+# other source files which should be copied to the HTML output directory. Note
+# that these files will be copied to the base HTML output directory. Use the
+# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
+# files. In the HTML_STYLESHEET file, use the file name only. Also note that the
+# files will be copied as-is; there are no commands or markers available.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_EXTRA_FILES =
+
+# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
+# will adjust the colors in the stylesheet and background images according to
+# this color. Hue is specified as an angle on a colorwheel, see
+# http://en.wikipedia.org/wiki/Hue for more information. For instance the value
+# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300
+# purple, and 360 is red again.
+# Minimum value: 0, maximum value: 359, default value: 220.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_COLORSTYLE_HUE = 220
+
+# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors
+# in the HTML output. For a value of 0 the output will use grayscales only. A
+# value of 255 will produce the most vivid colors.
+# Minimum value: 0, maximum value: 255, default value: 100.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_COLORSTYLE_SAT = 100
+
+# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the
+# luminance component of the colors in the HTML output. Values below 100
+# gradually make the output lighter, whereas values above 100 make the output
+# darker. The value divided by 100 is the actual gamma applied, so 80 represents
+# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not
+# change the gamma.
+# Minimum value: 40, maximum value: 240, default value: 80.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_COLORSTYLE_GAMMA = 80
+
+# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
+# page will contain the date and time when the page was generated. Setting this
+# to NO can help when comparing the output of multiple runs.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_TIMESTAMP = YES
+
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+# documentation will contain sections that can be hidden and shown after the
+# page has loaded.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_DYNAMIC_SECTIONS = NO
+
+# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries
+# shown in the various tree structured indices initially; the user can expand
+# and collapse entries dynamically later on. Doxygen will expand the tree to
+# such a level that at most the specified number of entries are visible (unless
+# a fully collapsed tree already exceeds this amount). So setting the number of
+# entries 1 will produce a full collapsed tree by default. 0 is a special value
+# representing an infinite number of entries and will result in a full expanded
+# tree by default.
+# Minimum value: 0, maximum value: 9999, default value: 100.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_INDEX_NUM_ENTRIES = 100
+
+# If the GENERATE_DOCSET tag is set to YES, additional index files will be
+# generated that can be used as input for Apple's Xcode 3 integrated development
+# environment (see: http://developer.apple.com/tools/xcode/), introduced with
+# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a
+# Makefile in the HTML output directory. Running make will produce the docset in
+# that directory and running make install will install the docset in
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at
+# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
+# for more information.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_DOCSET = NO
+
+# This tag determines the name of the docset feed. A documentation feed provides
+# an umbrella under which multiple documentation sets from a single provider
+# (such as a company or product suite) can be grouped.
+# The default value is: Doxygen generated docs.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_FEEDNAME = "Doxygen generated docs"
+
+# This tag specifies a string that should uniquely identify the documentation
+# set bundle. This should be a reverse domain-name style string, e.g.
+# com.mycompany.MyDocSet. Doxygen will append .docset to the name.
+# The default value is: org.doxygen.Project.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_BUNDLE_ID = org.doxygen.Project
+
+# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify
+# the documentation publisher. This should be a reverse domain-name style
+# string, e.g. com.mycompany.MyDocSet.documentation.
+# The default value is: org.doxygen.Publisher.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_PUBLISHER_ID = org.doxygen.Publisher
+
+# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.
+# The default value is: Publisher.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_PUBLISHER_NAME = Publisher
+
+# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three
+# additional HTML index files: index.hhp, index.hhc, and index.hhk. The
+# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop
+# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on
+# Windows.
+#
+# The HTML Help Workshop contains a compiler that can convert all HTML output
+# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML
+# files are now used as the Windows 98 help format, and will replace the old
+# Windows help format (.hlp) on all Windows platforms in the future. Compressed
+# HTML files also contain an index, a table of contents, and you can search for
+# words in the documentation. The HTML workshop also contains a viewer for
+# compressed HTML files.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_HTMLHELP = NO
+
+# The CHM_FILE tag can be used to specify the file name of the resulting .chm
+# file. You can add a path in front of the file if the result should not be
+# written to the html output directory.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+CHM_FILE =
+
+# The HHC_LOCATION tag can be used to specify the location (absolute path
+# including file name) of the HTML help compiler ( hhc.exe). If non-empty
+# doxygen will try to run the HTML help compiler on the generated index.hhp.
+# The file has to be specified with full path.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+HHC_LOCATION =
+
+# The GENERATE_CHI flag controls if a separate .chi index file is generated (
+# YES) or that it should be included in the master .chm file ( NO).
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+GENERATE_CHI = NO
+
+# The CHM_INDEX_ENCODING is used to encode HtmlHelp index ( hhk), content ( hhc)
+# and project file content.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+CHM_INDEX_ENCODING =
+
+# The BINARY_TOC flag controls whether a binary table of contents is generated (
+# YES) or a normal table of contents ( NO) in the .chm file.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+BINARY_TOC = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members to
+# the table of contents of the HTML help documentation and to the tree view.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+TOC_EXPAND = NO
+
+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
+# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that
+# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help
+# (.qch) of the generated HTML documentation.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_QHP = NO
+
+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify
+# the file name of the resulting .qch file. The path specified is relative to
+# the HTML output folder.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QCH_FILE =
+
+# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help
+# Project output. For more information please see Qt Help Project / Namespace
+# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace).
+# The default value is: org.doxygen.Project.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_NAMESPACE = org.doxygen.Project
+
+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt
+# Help Project output. For more information please see Qt Help Project / Virtual
+# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual-
+# folders).
+# The default value is: doc.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_VIRTUAL_FOLDER = doc
+
+# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom
+# filter to add. For more information please see Qt Help Project / Custom
+# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
+# filters).
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_CUST_FILTER_NAME =
+
+# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the
+# custom filter to add. For more information please see Qt Help Project / Custom
+# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
+# filters).
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_CUST_FILTER_ATTRS =
+
+# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
+# project's filter section matches. Qt Help Project / Filter Attributes (see:
+# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes).
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_SECT_FILTER_ATTRS =
+
+# The QHG_LOCATION tag can be used to specify the location of Qt's
+# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the
+# generated .qhp file.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHG_LOCATION =
+
+# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be
+# generated, together with the HTML files, they form an Eclipse help plugin. To
+# install this plugin and make it available under the help contents menu in
+# Eclipse, the contents of the directory containing the HTML and XML files needs
+# to be copied into the plugins directory of eclipse. The name of the directory
+# within the plugins directory should be the same as the ECLIPSE_DOC_ID value.
+# After copying Eclipse needs to be restarted before the help appears.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_ECLIPSEHELP = NO
+
+# A unique identifier for the Eclipse help plugin. When installing the plugin
+# the directory name containing the HTML and XML files should also have this
+# name. Each documentation set should have its own identifier.
+# The default value is: org.doxygen.Project.
+# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES.
+
+ECLIPSE_DOC_ID = org.doxygen.Project
+
+# If you want full control over the layout of the generated HTML pages it might
+# be necessary to disable the index and replace it with your own. The
+# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top
+# of each HTML page. A value of NO enables the index and the value YES disables
+# it. Since the tabs in the index contain the same information as the navigation
+# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+DISABLE_INDEX = NO
+
+# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
+# structure should be generated to display hierarchical information. If the tag
+# value is set to YES, a side panel will be generated containing a tree-like
+# index structure (just like the one that is generated for HTML Help). For this
+# to work a browser that supports JavaScript, DHTML, CSS and frames is required
+# (i.e. any modern browser). Windows users are probably better off using the
+# HTML help feature. Via custom stylesheets (see HTML_EXTRA_STYLESHEET) one can
+# further fine-tune the look of the index. As an example, the default style
+# sheet generated by doxygen has an example that shows how to put an image at
+# the root of the tree instead of the PROJECT_NAME. Since the tree basically has
+# the same information as the tab index, you could consider setting
+# DISABLE_INDEX to YES when enabling this option.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_TREEVIEW = NO
+
+# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that
+# doxygen will group on one line in the generated HTML documentation.
+#
+# Note that a value of 0 will completely suppress the enum values from appearing
+# in the overview section.
+# Minimum value: 0, maximum value: 20, default value: 4.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+ENUM_VALUES_PER_LINE = 4
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used
+# to set the initial width (in pixels) of the frame in which the tree is shown.
+# Minimum value: 0, maximum value: 1500, default value: 250.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+TREEVIEW_WIDTH = 250
+
+# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open links to
+# external symbols imported via tag files in a separate window.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+EXT_LINKS_IN_WINDOW = NO
+
+# Use this tag to change the font size of LaTeX formulas included as images in
+# the HTML documentation. When you change the font size after a successful
+# doxygen run you need to manually remove any form_*.png images from the HTML
+# output directory to force them to be regenerated.
+# Minimum value: 8, maximum value: 50, default value: 10.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+FORMULA_FONTSIZE = 10
+
+# Use the FORMULA_TRANPARENT tag to determine whether or not the images
+# generated for formulas are transparent PNGs. Transparent PNGs are not
+# supported properly for IE 6.0, but are supported on all modern browsers.
+#
+# Note that when changing this option you need to delete any form_*.png files in
+# the HTML output directory before the changes have effect.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+FORMULA_TRANSPARENT = YES
+
+# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
+# http://www.mathjax.org) which uses client side Javascript for the rendering
+# instead of using prerendered bitmaps. Use this if you do not have LaTeX
+# installed or if you want to formulas look prettier in the HTML output. When
+# enabled you may also need to install MathJax separately and configure the path
+# to it using the MATHJAX_RELPATH option.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+USE_MATHJAX = NO
+
+# When MathJax is enabled you can set the default output format to be used for
+# the MathJax output. See the MathJax site (see:
+# http://docs.mathjax.org/en/latest/output.html) for more details.
+# Possible values are: HTML-CSS (which is slower, but has the best
+# compatibility), NativeMML (i.e. MathML) and SVG.
+# The default value is: HTML-CSS.
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_FORMAT = HTML-CSS
+
+# When MathJax is enabled you need to specify the location relative to the HTML
+# output directory using the MATHJAX_RELPATH option. The destination directory
+# should contain the MathJax.js script. For instance, if the mathjax directory
+# is located at the same level as the HTML output directory, then
+# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax
+# Content Delivery Network so you can quickly see the result without installing
+# MathJax. However, it is strongly recommended to install a local copy of
+# MathJax from http://www.mathjax.org before deployment.
+# The default value is: http://cdn.mathjax.org/mathjax/latest.
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
+
+# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
+# extension names that should be enabled during MathJax rendering. For example
+# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_EXTENSIONS =
+
+# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces
+# of code that will be used on startup of the MathJax code. See the MathJax site
+# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an
+# example see the documentation.
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_CODEFILE =
+
+# When the SEARCHENGINE tag is enabled doxygen will generate a search box for
+# the HTML output. The underlying search engine uses javascript and DHTML and
+# should work on any modern browser. Note that when using HTML help
+# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET)
+# there is already a search function so this one should typically be disabled.
+# For large projects the javascript based search engine can be slow, then
+# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to
+# search using the keyboard; to jump to the search box use <access key> + S
+# (what the <access key> is depends on the OS and browser, but it is typically
+# <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down
+# key> to jump into the search results window, the results can be navigated
+# using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel
+# the search. The filter options can be selected when the cursor is inside the
+# search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys>
+# to select a filter and <Enter> or <escape> to activate or cancel the filter
+# option.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+SEARCHENGINE = YES
+
+# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
+# implemented using a web server instead of a web client using Javascript. There
+# are two flavours of web server based searching depending on the
+# EXTERNAL_SEARCH setting. When disabled, doxygen will generate a PHP script for
+# searching and an index file used by the script. When EXTERNAL_SEARCH is
+# enabled the indexing and searching needs to be provided by external tools. See
+# the section "External Indexing and Searching" for details.
+# The default value is: NO.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+SERVER_BASED_SEARCH = NO
+
+# When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP
+# script for searching. Instead the search results are written to an XML file
+# which needs to be processed by an external indexer. Doxygen will invoke an
+# external search engine pointed to by the SEARCHENGINE_URL option to obtain the
+# search results.
+#
+# Doxygen ships with an example indexer ( doxyindexer) and search engine
+# (doxysearch.cgi) which are based on the open source search engine library
+# Xapian (see: http://xapian.org/).
+#
+# See the section "External Indexing and Searching" for details.
+# The default value is: NO.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+EXTERNAL_SEARCH = NO
+
+# The SEARCHENGINE_URL should point to a search engine hosted by a web server
+# which will return the search results when EXTERNAL_SEARCH is enabled.
+#
+# Doxygen ships with an example indexer ( doxyindexer) and search engine
+# (doxysearch.cgi) which are based on the open source search engine library
+# Xapian (see: http://xapian.org/). See the section "External Indexing and
+# Searching" for details.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+SEARCHENGINE_URL =
+
+# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
+# search data is written to a file for indexing by an external tool. With the
+# SEARCHDATA_FILE tag the name of this file can be specified.
+# The default file is: searchdata.xml.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+SEARCHDATA_FILE = searchdata.xml
+
+# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the
+# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
+# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
+# projects and redirect the results back to the right project.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+EXTERNAL_SEARCH_ID =
+
+# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
+# projects other than the one defined by this configuration file, but that are
+# all added to the same external search index. Each project needs to have a
+# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of
+# to a relative location where the documentation can be found. The format is:
+# EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ...
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+EXTRA_SEARCH_MAPPINGS =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES doxygen will generate LaTeX output.
+# The default value is: YES.
+
+GENERATE_LATEX = NO
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: latex.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_OUTPUT = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+# invoked.
+#
+# Note that when enabling USE_PDFLATEX this option is only used for generating
+# bitmaps for formulas in the HTML output, but not in the Makefile that is
+# written to the output directory.
+# The default file is: latex.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_CMD_NAME = latex
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate
+# index for LaTeX.
+# The default file is: makeindex.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+MAKEINDEX_CMD_NAME = makeindex
+
+# If the COMPACT_LATEX tag is set to YES doxygen generates more compact LaTeX
+# documents. This may be useful for small projects and may help to save some
+# trees in general.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+COMPACT_LATEX = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used by the
+# printer.
+# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x
+# 14 inches) and executive (7.25 x 10.5 inches).
+# The default value is: a4.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+PAPER_TYPE = a4wide
+
+# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names
+# that should be included in the LaTeX output. To get the times font for
+# instance you can specify
+# EXTRA_PACKAGES=times
+# If left blank no extra packages will be included.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+EXTRA_PACKAGES =
+
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for the
+# generated LaTeX document. The header should contain everything until the first
+# chapter. If it is left blank doxygen will generate a standard header. See
+# section "Doxygen usage" for information on how to let doxygen write the
+# default header to a separate file.
+#
+# Note: Only use a user-defined header if you know what you are doing! The
+# following commands have a special meaning inside the header: $title,
+# $datetime, $date, $doxygenversion, $projectname, $projectnumber. Doxygen will
+# replace them by respectively the title of the page, the current date and time,
+# only the current date, the version number of doxygen, the project name (see
+# PROJECT_NAME), or the project number (see PROJECT_NUMBER).
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_HEADER =
+
+# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the
+# generated LaTeX document. The footer should contain everything after the last
+# chapter. If it is left blank doxygen will generate a standard footer.
+#
+# Note: Only use a user-defined footer if you know what you are doing!
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_FOOTER =
+
+# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or
+# other source files which should be copied to the LATEX_OUTPUT output
+# directory. Note that the files will be copied as-is; there are no commands or
+# markers available.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_EXTRA_FILES =
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is
+# prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will
+# contain links (just like the HTML output) instead of page references. This
+# makes the output suitable for online browsing using a PDF viewer.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+PDF_HYPERLINKS = YES
+
+# If the LATEX_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
+# the PDF file directly from the LaTeX files. Set this option to YES to get a
+# higher quality PDF documentation.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+USE_PDFLATEX = YES
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \batchmode
+# command to the generated LaTeX files. This will instruct LaTeX to keep running
+# if errors occur, instead of asking the user for help. This option is also used
+# when generating formulas in HTML.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_BATCHMODE = NO
+
+# If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the
+# index chapters (such as File Index, Compound Index, etc.) in the output.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_HIDE_INDICES = NO
+
+# If the LATEX_SOURCE_CODE tag is set to YES then doxygen will include source
+# code with syntax highlighting in the LaTeX output.
+#
+# Note that which sources are shown also depends on other settings such as
+# SOURCE_BROWSER.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_SOURCE_CODE = NO
+
+# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
+# bibliography, e.g. plainnat, or ieeetr. See
+# http://en.wikipedia.org/wiki/BibTeX and \cite for more info.
+# The default value is: plain.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_BIB_STYLE = plain
+
+#---------------------------------------------------------------------------
+# Configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES doxygen will generate RTF output. The
+# RTF output is optimized for Word 97 and may not look too pretty with other RTF
+# readers/editors.
+# The default value is: NO.
+
+GENERATE_RTF = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: rtf.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_OUTPUT = rtf
+
+# If the COMPACT_RTF tag is set to YES doxygen generates more compact RTF
+# documents. This may be useful for small projects and may help to save some
+# trees in general.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+COMPACT_RTF = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will
+# contain hyperlink fields. The RTF file will contain links (just like the HTML
+# output) instead of page references. This makes the output suitable for online
+# browsing using Word or some other Word compatible readers that support those
+# fields.
+#
+# Note: WordPad (write) and others do not support links.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_HYPERLINKS = NO
+
+# Load stylesheet definitions from file. Syntax is similar to doxygen's config
+# file, i.e. a series of assignments. You only have to provide replacements,
+# missing definitions are set to their default value.
+#
+# See also section "Doxygen usage" for information on how to generate the
+# default style sheet that doxygen normally uses.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_STYLESHEET_FILE =
+
+# Set optional variables used in the generation of an RTF document. Syntax is
+# similar to doxygen's config file. A template extensions file can be generated
+# using doxygen -e rtf extensionFile.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_EXTENSIONS_FILE =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES doxygen will generate man pages for
+# classes and files.
+# The default value is: NO.
+
+GENERATE_MAN = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it. A directory man3 will be created inside the directory specified by
+# MAN_OUTPUT.
+# The default directory is: man.
+# This tag requires that the tag GENERATE_MAN is set to YES.
+
+MAN_OUTPUT = man
+
+# The MAN_EXTENSION tag determines the extension that is added to the generated
+# man pages. In case the manual section does not start with a number, the number
+# 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is
+# optional.
+# The default value is: .3.
+# This tag requires that the tag GENERATE_MAN is set to YES.
+
+MAN_EXTENSION = .3
+
+# If the MAN_LINKS tag is set to YES and doxygen generates man output, then it
+# will generate one additional man file for each entity documented in the real
+# man page(s). These additional files only source the real man page, but without
+# them the man command would be unable to find the correct page.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_MAN is set to YES.
+
+MAN_LINKS = NO
+
+#---------------------------------------------------------------------------
+# Configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES doxygen will generate an XML file that
+# captures the structure of the code including all documentation.
+# The default value is: NO.
+
+GENERATE_XML = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: xml.
+# This tag requires that the tag GENERATE_XML is set to YES.
+
+XML_OUTPUT = xml
+
+# The XML_SCHEMA tag can be used to specify a XML schema, which can be used by a
+# validating XML parser to check the syntax of the XML files.
+# This tag requires that the tag GENERATE_XML is set to YES.
+
+XML_SCHEMA =
+
+# The XML_DTD tag can be used to specify a XML DTD, which can be used by a
+# validating XML parser to check the syntax of the XML files.
+# This tag requires that the tag GENERATE_XML is set to YES.
+
+XML_DTD =
+
+# If the XML_PROGRAMLISTING tag is set to YES doxygen will dump the program
+# listings (including syntax highlighting and cross-referencing information) to
+# the XML output. Note that enabling this will significantly increase the size
+# of the XML output.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_XML is set to YES.
+
+XML_PROGRAMLISTING = YES
+
+#---------------------------------------------------------------------------
+# Configuration options related to the DOCBOOK output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_DOCBOOK tag is set to YES doxygen will generate Docbook files
+# that can be used to generate PDF.
+# The default value is: NO.
+
+GENERATE_DOCBOOK = NO
+
+# The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in
+# front of it.
+# The default directory is: docbook.
+# This tag requires that the tag GENERATE_DOCBOOK is set to YES.
+
+DOCBOOK_OUTPUT = docbook
+
+#---------------------------------------------------------------------------
+# Configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES doxygen will generate an AutoGen
+# Definitions (see http://autogen.sf.net) file that captures the structure of
+# the code including all documentation. Note that this feature is still
+# experimental and incomplete at the moment.
+# The default value is: NO.
+
+GENERATE_AUTOGEN_DEF = NO
+
+#---------------------------------------------------------------------------
+# Configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES doxygen will generate a Perl module
+# file that captures the structure of the code including all documentation.
+#
+# Note that this feature is still experimental and incomplete at the moment.
+# The default value is: NO.
+
+GENERATE_PERLMOD = NO
+
+# If the PERLMOD_LATEX tag is set to YES doxygen will generate the necessary
+# Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI
+# output from the Perl module output.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_PERLMOD is set to YES.
+
+PERLMOD_LATEX = NO
+
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be nicely
+# formatted so it can be parsed by a human reader. This is useful if you want to
+# understand what is going on. On the other hand, if this tag is set to NO the
+# size of the Perl module output will be much smaller and Perl will parse it
+# just the same.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_PERLMOD is set to YES.
+
+PERLMOD_PRETTY = YES
+
+# The names of the make variables in the generated doxyrules.make file are
+# prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful
+# so different doxyrules.make files included by the same Makefile don't
+# overwrite each other's variables.
+# This tag requires that the tag GENERATE_PERLMOD is set to YES.
+
+PERLMOD_MAKEVAR_PREFIX =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES doxygen will evaluate all
+# C-preprocessor directives found in the sources and include files.
+# The default value is: YES.
+
+ENABLE_PREPROCESSING = YES
+
+# If the MACRO_EXPANSION tag is set to YES doxygen will expand all macro names
+# in the source code. If set to NO only conditional compilation will be
+# performed. Macro expansion can be done in a controlled way by setting
+# EXPAND_ONLY_PREDEF to YES.
+# The default value is: NO.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+MACRO_EXPANSION = NO
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
+# the macro expansion is limited to the macros specified with the PREDEFINED and
+# EXPAND_AS_DEFINED tags.
+# The default value is: NO.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+EXPAND_ONLY_PREDEF = NO
+
+# If the SEARCH_INCLUDES tag is set to YES the includes files in the
+# INCLUDE_PATH will be searched if a #include is found.
+# The default value is: YES.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+SEARCH_INCLUDES = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that
+# contain include files that are not input files but should be processed by the
+# preprocessor.
+# This tag requires that the tag SEARCH_INCLUDES is set to YES.
+
+INCLUDE_PATH =
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+# patterns (like *.h and *.hpp) to filter out the header-files in the
+# directories. If left blank, the patterns specified with FILE_PATTERNS will be
+# used.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+INCLUDE_FILE_PATTERNS =
+
+# The PREDEFINED tag can be used to specify one or more macro names that are
+# defined before the preprocessor is started (similar to the -D option of e.g.
+# gcc). The argument of the tag is a list of macros of the form: name or
+# name=definition (no spaces). If the definition and the "=" are omitted, "=1"
+# is assumed. To prevent a macro definition from being undefined via #undef or
+# recursively expanded use the := operator instead of the = operator.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+PREDEFINED =
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
+# tag can be used to specify a list of macro names that should be expanded. The
+# macro definition that is found in the sources will be used. Use the PREDEFINED
+# tag if you want to use a different macro definition that overrules the
+# definition found in the source code.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+EXPAND_AS_DEFINED =
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
+# remove all refrences to function-like macros that are alone on a line, have an
+# all uppercase name, and do not end with a semicolon. Such function macros are
+# typically used for boiler-plate code, and will confuse the parser if not
+# removed.
+# The default value is: YES.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+SKIP_FUNCTION_MACROS = YES
+
+#---------------------------------------------------------------------------
+# Configuration options related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES tag can be used to specify one or more tag files. For each tag
+# file the location of the external documentation should be added. The format of
+# a tag file without this location is as follows:
+# TAGFILES = file1 file2 ...
+# Adding location for the tag files is done as follows:
+# TAGFILES = file1=loc1 "file2 = loc2" ...
+# where loc1 and loc2 can be relative or absolute paths or URLs. See the
+# section "Linking to external documentation" for more information about the use
+# of tag files.
+# Note: Each tag file must have an unique name (where the name does NOT include
+# the path). If a tag file is not located in the directory in which doxygen is
+# run, you must also specify the path to the tagfile here.
+
+TAGFILES =
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create a
+# tag file that is based on the input files it reads. See section "Linking to
+# external documentation" for more information about the usage of tag files.
+
+GENERATE_TAGFILE =
+
+# If the ALLEXTERNALS tag is set to YES all external class will be listed in the
+# class index. If set to NO only the inherited external classes will be listed.
+# The default value is: NO.
+
+ALLEXTERNALS = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed in
+# the modules index. If set to NO, only the current project's groups will be
+# listed.
+# The default value is: YES.
+
+EXTERNAL_GROUPS = YES
+
+# If the EXTERNAL_PAGES tag is set to YES all external pages will be listed in
+# the related pages index. If set to NO, only the current project's pages will
+# be listed.
+# The default value is: YES.
+
+EXTERNAL_PAGES = YES
+
+# The PERL_PATH should be the absolute path and name of the perl script
+# interpreter (i.e. the result of 'which perl').
+# The default file (with absolute path) is: /usr/bin/perl.
+
+PERL_PATH = /usr/bin/perl
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES doxygen will generate a class diagram
+# (in HTML and LaTeX) for classes with base or super classes. Setting the tag to
+# NO turns the diagrams off. Note that this option also works with HAVE_DOT
+# disabled, but it is recommended to install and use dot, since it yields more
+# powerful graphs.
+# The default value is: YES.
+
+CLASS_DIAGRAMS = YES
+
+# You can define message sequence charts within doxygen comments using the \msc
+# command. Doxygen will then run the mscgen tool (see:
+# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the
+# documentation. The MSCGEN_PATH tag allows you to specify the directory where
+# the mscgen tool resides. If left empty the tool is assumed to be found in the
+# default search path.
+
+MSCGEN_PATH =
+
+# You can include diagrams made with dia in doxygen documentation. Doxygen will
+# then run dia to produce the diagram and insert it in the documentation. The
+# DIA_PATH tag allows you to specify the directory where the dia binary resides.
+# If left empty dia is assumed to be found in the default search path.
+
+DIA_PATH =
+
+# If set to YES, the inheritance and collaboration graphs will hide inheritance
+# and usage relations if the target is undocumented or is not a class.
+# The default value is: YES.
+
+HIDE_UNDOC_RELATIONS = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+# available from the path. This tool is part of Graphviz (see:
+# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent
+# Bell Labs. The other options in this section have no effect if this option is
+# set to NO
+# The default value is: NO.
+
+HAVE_DOT = NO
+
+# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed
+# to run in parallel. When set to 0 doxygen will base this on the number of
+# processors available in the system. You can set it explicitly to a value
+# larger than 0 to get control over the balance between CPU load and processing
+# speed.
+# Minimum value: 0, maximum value: 32, default value: 0.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_NUM_THREADS = 0
+
+# When you want a differently looking font n the dot files that doxygen
+# generates you can specify the font name using DOT_FONTNAME. You need to make
+# sure dot is able to find the font, which can be done by putting it in a
+# standard location or by setting the DOTFONTPATH environment variable or by
+# setting DOT_FONTPATH to the directory containing the font.
+# The default value is: Helvetica.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_FONTNAME = FreeSans
+
+# The DOT_FONTSIZE tag can be used to set the size (in points) of the font of
+# dot graphs.
+# Minimum value: 4, maximum value: 24, default value: 10.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_FONTSIZE = 10
+
+# By default doxygen will tell dot to use the default font as specified with
+# DOT_FONTNAME. If you specify a different font using DOT_FONTNAME you can set
+# the path where dot can find it using this tag.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_FONTPATH =
+
+# If the CLASS_GRAPH tag is set to YES then doxygen will generate a graph for
+# each documented class showing the direct and indirect inheritance relations.
+# Setting this tag to YES will force the CLASS_DIAGRAMS tag to NO.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+CLASS_GRAPH = YES
+
+# If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a
+# graph for each documented class showing the direct and indirect implementation
+# dependencies (inheritance, containment, and class references variables) of the
+# class with other documented classes.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+COLLABORATION_GRAPH = YES
+
+# If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for
+# groups, showing the direct groups dependencies.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+GROUP_GRAPHS = YES
+
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
+# Language.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+UML_LOOK = NO
+
+# If the UML_LOOK tag is enabled, the fields and methods are shown inside the
+# class node. If there are many fields or methods and many nodes the graph may
+# become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the
+# number of items for each type to make the size more manageable. Set this to 0
+# for no limit. Note that the threshold may be exceeded by 50% before the limit
+# is enforced. So when you set the threshold to 10, up to 15 fields may appear,
+# but if the number exceeds 15, the total amount of fields shown is limited to
+# 10.
+# Minimum value: 0, maximum value: 100, default value: 10.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+UML_LIMIT_NUM_FIELDS = 10
+
+# If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and
+# collaboration graphs will show the relations between templates and their
+# instances.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+TEMPLATE_RELATIONS = NO
+
+# If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to
+# YES then doxygen will generate a graph for each documented file showing the
+# direct and indirect include dependencies of the file with other documented
+# files.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+INCLUDE_GRAPH = YES
+
+# If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are
+# set to YES then doxygen will generate a graph for each documented file showing
+# the direct and indirect include dependencies of the file with other documented
+# files.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+INCLUDED_BY_GRAPH = YES
+
+# If the CALL_GRAPH tag is set to YES then doxygen will generate a call
+# dependency graph for every global function or class method.
+#
+# Note that enabling this option will significantly increase the time of a run.
+# So in most cases it will be better to enable call graphs for selected
+# functions only using the \callgraph command.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+CALL_GRAPH = NO
+
+# If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller
+# dependency graph for every global function or class method.
+#
+# Note that enabling this option will significantly increase the time of a run.
+# So in most cases it will be better to enable caller graphs for selected
+# functions only using the \callergraph command.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+CALLER_GRAPH = NO
+
+# If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical
+# hierarchy of all classes instead of a textual one.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+GRAPHICAL_HIERARCHY = YES
+
+# If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the
+# dependencies a directory has on other directories in a graphical way. The
+# dependency relations are determined by the #include relations between the
+# files in the directories.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DIRECTORY_GRAPH = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+# generated by dot.
+# Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order
+# to make the SVG files visible in IE 9+ (other browsers do not have this
+# requirement).
+# Possible values are: png, jpg, gif and svg.
+# The default value is: png.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_IMAGE_FORMAT = png
+
+# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
+# enable generation of interactive SVG images that allow zooming and panning.
+#
+# Note that this requires a modern browser other than Internet Explorer. Tested
+# and working are Firefox, Chrome, Safari, and Opera.
+# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make
+# the SVG files visible. Older versions of IE do not have SVG support.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+INTERACTIVE_SVG = NO
+
+# The DOT_PATH tag can be used to specify the path where the dot tool can be
+# found. If left blank, it is assumed the dot tool can be found in the path.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_PATH =
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that
+# contain dot files that are included in the documentation (see the \dotfile
+# command).
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOTFILE_DIRS =
+
+# The MSCFILE_DIRS tag can be used to specify one or more directories that
+# contain msc files that are included in the documentation (see the \mscfile
+# command).
+
+MSCFILE_DIRS =
+
+# The DIAFILE_DIRS tag can be used to specify one or more directories that
+# contain dia files that are included in the documentation (see the \diafile
+# command).
+
+DIAFILE_DIRS =
+
+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
+# that will be shown in the graph. If the number of nodes in a graph becomes
+# larger than this value, doxygen will truncate the graph, which is visualized
+# by representing a node as a red box. Note that doxygen if the number of direct
+# children of the root node in a graph is already larger than
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that
+# the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
+# Minimum value: 0, maximum value: 10000, default value: 50.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_GRAPH_MAX_NODES = 50
+
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
+# generated by dot. A depth value of 3 means that only nodes reachable from the
+# root by following a path via at most 3 edges will be shown. Nodes that lay
+# further from the root node will be omitted. Note that setting this option to 1
+# or 2 may greatly reduce the computation time needed for large code bases. Also
+# note that the size of a graph can be further restricted by
+# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
+# Minimum value: 0, maximum value: 1000, default value: 0.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+MAX_DOT_GRAPH_DEPTH = 0
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
+# background. This is disabled by default, because dot on Windows does not seem
+# to support this out of the box.
+#
+# Warning: Depending on the platform used, enabling this option may lead to
+# badly anti-aliased labels on the edges of a graph (i.e. they become hard to
+# read).
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_TRANSPARENT = NO
+
+# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
+# files in one run (i.e. multiple -o and -T options on the command line). This
+# makes dot run faster, but since only newer versions of dot (>1.8.10) support
+# this, this feature is disabled by default.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_MULTI_TARGETS = NO
+
+# If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page
+# explaining the meaning of the various boxes and arrows in the dot generated
+# graphs.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+GENERATE_LEGEND = YES
+
+# If the DOT_CLEANUP tag is set to YES doxygen will remove the intermediate dot
+# files that are used to generate the various graphs.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_CLEANUP = YES
diff --git a/doc/doxygen_sqlite3.db b/doc/doxygen_sqlite3.db
new file mode 100644
index 0000000..4104cfc
--- /dev/null
+++ b/doc/doxygen_sqlite3.db
Binary files differ
diff --git a/doc/howtorelease.txt b/doc/howtorelease.txt
new file mode 100644
index 0000000..722d4e4
--- /dev/null
+++ b/doc/howtorelease.txt
@@ -0,0 +1,18 @@
+How to make a release
+=====================
+1. Make changes, test them
+2. Edit qhexedit.h, version number
+3. Edit setup.py, version number
+4. Edit release.txt
+5. Make doxygen documentation and check it
+6. $ git add *
+7. $ git commit -m "v0.x.y"
+8. $ git push origin master
+
+How to update docs
+==================
+1. Copy doxygen html to ...github.io
+2. $ git add *
+3. $ git commit -m "v0.x.y"
+4. $ git push origin master
+5. Create new release on github webpage
diff --git a/doc/html/.directory b/doc/html/.directory
new file mode 100644
index 0000000..bd28845
--- /dev/null
+++ b/doc/html/.directory
@@ -0,0 +1,9 @@
+[Dolphin]
+SortRole=type
+Timestamp=2016,4,7,14,32,37
+Version=3
+ViewMode=1
+VisibleRoles=Details_text,Details_size,Details_date,Details_type,CustomizedDetails
+
+[Settings]
+HiddenFilesShown=true
diff --git a/doc/html/_q_hex_edit_plugin_8h_source.html b/doc/html/_q_hex_edit_plugin_8h_source.html
new file mode 100644
index 0000000..e5318bb
--- /dev/null
+++ b/doc/html/_q_hex_edit_plugin_8h_source.html
@@ -0,0 +1,78 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: /media/winni/sda8/working_copy/working_copy/hacking/c++/qhexedit2/src/QHexEditPlugin.h Source File</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div id="nav-path" class="navpath">
+ <ul>
+<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle">
+<div class="title">QHexEditPlugin.h</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef QHEXEDITPLUGIN_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define QHEXEDITPLUGIN_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;QObject&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#if QT_VERSION &lt; QT_VERSION_CHECK(5,0,0)</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &lt;QtDesigner/QDesignerCustomWidgetInterface&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &lt;QDesignerCustomWidgetInterface&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="class_q_hex_edit_plugin.html"> 12</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a> : <span class="keyword">public</span> QObject, <span class="keyword">public</span> QDesignerCustomWidgetInterface</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;{</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; Q_OBJECT</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; Q_INTERFACES(QDesignerCustomWidgetInterface)</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#if QT_VERSION &gt;= QT_VERSION_CHECK(5,0,0)</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; Q_PLUGIN_METADATA(IID <span class="stringliteral">&quot;com.qt-project.Qt.QHexEditPlugin&quot;</span>)</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <a class="code" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a>(QObject * parent = 0);</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; <span class="keywordtype">bool</span> isContainer() <span class="keyword">const</span>;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; <span class="keywordtype">bool</span> isInitialized() <span class="keyword">const</span>;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; QIcon icon() <span class="keyword">const</span>;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; QString domXml() <span class="keyword">const</span>;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; QString group() <span class="keyword">const</span>;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; QString includeFile() <span class="keyword">const</span>;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; QString name() <span class="keyword">const</span>;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; QString toolTip() <span class="keyword">const</span>;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; QString whatsThis() <span class="keyword">const</span>;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; QWidget *createWidget(QWidget *parent);</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; <span class="keywordtype">void</span> initialize(QDesignerFormEditorInterface *core);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="keywordtype">bool</span> initialized;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;};</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="class_q_hex_edit_plugin_html"><div class="ttname"><a href="class_q_hex_edit_plugin.html">QHexEditPlugin</a></div><div class="ttdef"><b>Definition:</b> QHexEditPlugin.h:12</div></div>
+</div><!-- fragment --></div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/annotated.html b/doc/html/annotated.html
new file mode 100644
index 0000000..2e97135
--- /dev/null
+++ b/doc/html/annotated.html
@@ -0,0 +1,79 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: Class List</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+</div><!-- top -->
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div class="header">
+ <div class="headertitle">
+<div class="title">Class List</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="textblock">Here are the classes, structs, unions and interfaces with brief descriptions:</div><div class="directory">
+<table class="directory">
+<tr id="row_0_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_q_hex_edit.html" target="_self">QHexEdit</a></td><td class="desc"></td></tr>
+<tr id="row_1_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_q_hex_edit_plugin.html" target="_self">QHexEditPlugin</a></td><td class="desc"></td></tr>
+</table>
+</div><!-- directory -->
+</div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/arrowdown.png b/doc/html/arrowdown.png
new file mode 100644
index 0000000..0b63f6d
--- /dev/null
+++ b/doc/html/arrowdown.png
Binary files differ
diff --git a/doc/html/arrowright.png b/doc/html/arrowright.png
new file mode 100644
index 0000000..c6ee22f
--- /dev/null
+++ b/doc/html/arrowright.png
Binary files differ
diff --git a/doc/html/bc_s.png b/doc/html/bc_s.png
new file mode 100644
index 0000000..224b29a
--- /dev/null
+++ b/doc/html/bc_s.png
Binary files differ
diff --git a/doc/html/bdwn.png b/doc/html/bdwn.png
new file mode 100644
index 0000000..940a0b9
--- /dev/null
+++ b/doc/html/bdwn.png
Binary files differ
diff --git a/doc/html/chunks_8h_source.html b/doc/html/chunks_8h_source.html
new file mode 100644
index 0000000..05db902
--- /dev/null
+++ b/doc/html/chunks_8h_source.html
@@ -0,0 +1,77 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: /media/winni/sda8/working_copy/working_copy/hacking/c++/qhexedit2/src/chunks.h Source File</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div id="nav-path" class="navpath">
+ <ul>
+<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle">
+<div class="title">chunks.h</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef CHUNKS_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define CHUNKS_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;QtCore&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="keyword">struct </span>Chunk</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;{</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; QByteArray data;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; QByteArray dataChanged;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; qint64 absPos;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;};</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="keyword">class </span>Chunks: <span class="keyword">public</span> QObject</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;{</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;Q_OBJECT</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; <span class="comment">// Constructors and file settings</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; Chunks(QObject *parent);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; Chunks(QIODevice &amp;ioDevice, QObject *parent);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="keywordtype">bool</span> setIODevice(QIODevice &amp;ioDevice);</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="comment">// Getting data out of Chunks</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; QByteArray data(qint64 pos=0, qint64 count=-1, QByteArray *highlighted=0);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keywordtype">bool</span> write(QIODevice &amp;iODevice, qint64 pos=0, qint64 count=-1);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="comment">// Set and get highlighting infos</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keywordtype">void</span> setDataChanged(qint64 pos, <span class="keywordtype">bool</span> dataChanged);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keywordtype">bool</span> dataChanged(qint64 pos);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="comment">// Search API</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; qint64 indexOf(<span class="keyword">const</span> QByteArray &amp;ba, qint64 from);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; qint64 lastIndexOf(<span class="keyword">const</span> QByteArray &amp;ba, qint64 from);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="comment">// Char manipulations</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordtype">bool</span> insert(qint64 pos, <span class="keywordtype">char</span> b);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keywordtype">bool</span> overwrite(qint64 pos, <span class="keywordtype">char</span> b);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keywordtype">bool</span> removeAt(qint64 pos);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="comment">// Utility functions</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keywordtype">char</span> operator[](qint64 pos);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; qint64 pos();</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; qint64 size();</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keywordtype">int</span> getChunkIndex(qint64 absPos);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; QIODevice * _ioDevice;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; qint64 _pos;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; qint64 _size;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; QList&lt;Chunk&gt; _chunks;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="preprocessor">#ifdef MODUL_TEST</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="keywordtype">int</span> chunkSize();</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;};</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="preprocessor">#endif // CHUNKS_H</span></div></div><!-- fragment --></div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/class_q_hex_edit-members.html b/doc/html/class_q_hex_edit-members.html
new file mode 100644
index 0000000..8cbb69e
--- /dev/null
+++ b/doc/html/class_q_hex_edit-members.html
@@ -0,0 +1,116 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: Member List</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle">
+<div class="title">QHexEdit Member List</div> </div>
+</div><!--header-->
+<div class="contents">
+
+<p>This is the complete list of members for <a class="el" href="class_q_hex_edit.html">QHexEdit</a>, including all inherited members.</p>
+<table class="directory">
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#aeaa9f3751f53b91df51cfd2863bf48ee">addressArea</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#a6e27b73514e243c0b8b2a3efafbb5e32">addressAreaColor</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#afe1e80827cacce84505f8b0ef6421a0a">addressOffset</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#a11b672fd38a7c48949ccce3228474b2f">addressWidth</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#a0e297a4a212a9d7addbbf82472e1acb2">asciiArea</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#afec14c7e26b2b98f250d4cc3df822972">bytesPerLine</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#a1cd8ece4fd9ea4aef38a9844184ae9bc">currentAddressChanged</a>(qint64 address)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#a4b3f87d1c50bc1570f191d93b7051359">currentSizeChanged</a>(qint64 size)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#aa50b3ebe0d22133891dce0c8237846c7">cursorPosition</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#a1d833c6a3957317f4daacc54e0c99919">cursorPosition</a>(QPoint point)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#a7f4e532611a6eff27b75d3cb88e91618">data</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#a83c0c585108cc204852ff2e30214253a">dataAt</a>(qint64 pos, qint64 count=-1)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#a4ea1551815031057e6b3297406f93a5d">dataChanged</a>()</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#a788d65f5556535a49879a3a052a9a313">dynamicBytesPerLine</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#a43b1af42e25e3beb48932f38aa4af46e">ensureVisible</a>()</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#a9579dc7273c48b89c9e4f26adda78671">font</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#a4edfedb78ed9ae52cd08436e7cca0285">hexCaps</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#ae3669260a4d5c2fad5651893a17258fd">highlighting</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#a9e8ed54e47fec94cfd64b14ea1f7cee8">highlightingColor</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#a183ec73d5ef567770dc4860e9d33e239">indexOf</a>(const QByteArray &amp;ba, qint64 from)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#a1593f2dee03be5738df96da67c9c83d9">insert</a>(qint64 pos, char ch)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#ad118039ab31828956c7ecf034f4496cc">insert</a>(qint64 pos, const QByteArray &amp;ba)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#ad8339ee39adf7863e46a9c57a7f9db0a">isModified</a>()</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#aac57ef2e0e73af21e33413a166a94e7a">lastIndexOf</a>(const QByteArray &amp;ba, qint64 from)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#a941a91c36eb8429c41096bfcd45f38c1">overwriteMode</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#a15abf5af9aa3a91d18ec17cc33b8e4a1">overwriteModeChanged</a>(bool state)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#aec1f1e5b7652e7e39a8ca5e73ed63373">QHexEdit</a>(QWidget *parent=0)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#acb3044d1bb0c99876ddfa33772e91209">readOnly</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#a9c9650f363859e42a0ebf4ed6a1c4ae0">redo</a>()</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#a6fee4dba9a2eaeeccccbd84111f8bf2c">remove</a>(qint64 pos, qint64 len=1)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#a386bff35c7453caaf547d203026fb462">replace</a>(qint64 pos, char ch)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#a79dbbeaf7ddbb358730bed763d05a959">replace</a>(qint64 pos, qint64 len, const QByteArray &amp;ba)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#ac1f9ac4d3ec5bedabd3aeedda3191b20">selectedData</a>()</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#ac0b628f34316aff9e18fc73a738250d7">selectionColor</a></td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#a2ada1230ace92da4e1f006b88ab3b503">selectionToReadableString</a>()</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#ab5221718179da17cbcd9db3bf6574df7">setData</a>(QIODevice &amp;iODevice)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#a57221461a9c9e1b2c0e1882788ac9911">setFont</a>(const QFont &amp;font)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#a43c6db0509fee9b10198bef48d8eaa2e">toReadableString</a>()</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+ <tr class="even"><td class="entry"><a class="el" href="class_q_hex_edit.html#a57a6f775cd612f901567cc005988c6de">undo</a>()</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
+ <tr><td class="entry"><a class="el" href="class_q_hex_edit.html#acc71d91a132a7cf6504d3f20de0ef4ce">write</a>(QIODevice &amp;iODevice, qint64 pos=0, qint64 count=-1)</td><td class="entry"><a class="el" href="class_q_hex_edit.html">QHexEdit</a></td><td class="entry"></td></tr>
+</table></div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/class_q_hex_edit.html b/doc/html/class_q_hex_edit.html
new file mode 100644
index 0000000..913d940
--- /dev/null
+++ b/doc/html/class_q_hex_edit.html
@@ -0,0 +1,1237 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: QHexEdit Class Reference</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+</div><!-- top -->
+<div class="header">
+ <div class="summary">
+<a href="#pub-slots">Public Slots</a> &#124;
+<a href="#signals">Signals</a> &#124;
+<a href="#pub-methods">Public Member Functions</a> &#124;
+<a href="#properties">Properties</a> &#124;
+<a href="class_q_hex_edit-members.html">List of all members</a> </div>
+ <div class="headertitle">
+<div class="title">QHexEdit Class Reference</div> </div>
+</div><!--header-->
+<div class="contents">
+
+<p><code>#include &lt;<a class="el" href="qhexedit_8h_source.html">qhexedit.h</a>&gt;</code></p>
+<div class="dynheader">
+Inheritance diagram for QHexEdit:</div>
+<div class="dyncontent">
+ <div class="center">
+ <img src="class_q_hex_edit.png" usemap="#QHexEdit_map" alt=""/>
+ <map id="QHexEdit_map" name="QHexEdit_map">
+</map>
+ </div></div>
+<table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
+Public Slots</h2></td></tr>
+<tr class="memitem:a9c9650f363859e42a0ebf4ed6a1c4ae0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a9c9650f363859e42a0ebf4ed6a1c4ae0">redo</a> ()</td></tr>
+<tr class="separator:a9c9650f363859e42a0ebf4ed6a1c4ae0"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a57a6f775cd612f901567cc005988c6de"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a57a6f775cd612f901567cc005988c6de">undo</a> ()</td></tr>
+<tr class="separator:a57a6f775cd612f901567cc005988c6de"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table><table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
+Signals</h2></td></tr>
+<tr class="memitem:a1cd8ece4fd9ea4aef38a9844184ae9bc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a1cd8ece4fd9ea4aef38a9844184ae9bc">currentAddressChanged</a> (qint64 address)</td></tr>
+<tr class="separator:a1cd8ece4fd9ea4aef38a9844184ae9bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a4b3f87d1c50bc1570f191d93b7051359"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a4b3f87d1c50bc1570f191d93b7051359">currentSizeChanged</a> (qint64 size)</td></tr>
+<tr class="separator:a4b3f87d1c50bc1570f191d93b7051359"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a4ea1551815031057e6b3297406f93a5d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a4ea1551815031057e6b3297406f93a5d">dataChanged</a> ()</td></tr>
+<tr class="separator:a4ea1551815031057e6b3297406f93a5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a15abf5af9aa3a91d18ec17cc33b8e4a1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a15abf5af9aa3a91d18ec17cc33b8e4a1">overwriteModeChanged</a> (bool state)</td></tr>
+<tr class="separator:a15abf5af9aa3a91d18ec17cc33b8e4a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table><table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
+Public Member Functions</h2></td></tr>
+<tr class="memitem:aec1f1e5b7652e7e39a8ca5e73ed63373"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#aec1f1e5b7652e7e39a8ca5e73ed63373">QHexEdit</a> (QWidget *parent=0)</td></tr>
+<tr class="separator:aec1f1e5b7652e7e39a8ca5e73ed63373"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:ab5221718179da17cbcd9db3bf6574df7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#ab5221718179da17cbcd9db3bf6574df7">setData</a> (QIODevice &amp;iODevice)</td></tr>
+<tr class="separator:ab5221718179da17cbcd9db3bf6574df7"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a83c0c585108cc204852ff2e30214253a"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a83c0c585108cc204852ff2e30214253a">dataAt</a> (qint64 pos, qint64 count=-1)</td></tr>
+<tr class="separator:a83c0c585108cc204852ff2e30214253a"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:acc71d91a132a7cf6504d3f20de0ef4ce"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#acc71d91a132a7cf6504d3f20de0ef4ce">write</a> (QIODevice &amp;iODevice, qint64 pos=0, qint64 count=-1)</td></tr>
+<tr class="separator:acc71d91a132a7cf6504d3f20de0ef4ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a1593f2dee03be5738df96da67c9c83d9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a1593f2dee03be5738df96da67c9c83d9">insert</a> (qint64 pos, char ch)</td></tr>
+<tr class="separator:a1593f2dee03be5738df96da67c9c83d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a6fee4dba9a2eaeeccccbd84111f8bf2c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a6fee4dba9a2eaeeccccbd84111f8bf2c">remove</a> (qint64 pos, qint64 len=1)</td></tr>
+<tr class="separator:a6fee4dba9a2eaeeccccbd84111f8bf2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a386bff35c7453caaf547d203026fb462"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a386bff35c7453caaf547d203026fb462">replace</a> (qint64 pos, char ch)</td></tr>
+<tr class="separator:a386bff35c7453caaf547d203026fb462"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:ad118039ab31828956c7ecf034f4496cc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#ad118039ab31828956c7ecf034f4496cc">insert</a> (qint64 pos, const QByteArray &amp;ba)</td></tr>
+<tr class="separator:ad118039ab31828956c7ecf034f4496cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a79dbbeaf7ddbb358730bed763d05a959"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a79dbbeaf7ddbb358730bed763d05a959">replace</a> (qint64 pos, qint64 len, const QByteArray &amp;ba)</td></tr>
+<tr class="separator:a79dbbeaf7ddbb358730bed763d05a959"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a1d833c6a3957317f4daacc54e0c99919"><td class="memItemLeft" align="right" valign="top">qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a1d833c6a3957317f4daacc54e0c99919">cursorPosition</a> (QPoint point)</td></tr>
+<tr class="separator:a1d833c6a3957317f4daacc54e0c99919"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a43b1af42e25e3beb48932f38aa4af46e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a43b1af42e25e3beb48932f38aa4af46e">ensureVisible</a> ()</td></tr>
+<tr class="separator:a43b1af42e25e3beb48932f38aa4af46e"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a183ec73d5ef567770dc4860e9d33e239"><td class="memItemLeft" align="right" valign="top">qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a183ec73d5ef567770dc4860e9d33e239">indexOf</a> (const QByteArray &amp;ba, qint64 from)</td></tr>
+<tr class="separator:a183ec73d5ef567770dc4860e9d33e239"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:ad8339ee39adf7863e46a9c57a7f9db0a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#ad8339ee39adf7863e46a9c57a7f9db0a">isModified</a> ()</td></tr>
+<tr class="separator:ad8339ee39adf7863e46a9c57a7f9db0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:aac57ef2e0e73af21e33413a166a94e7a"><td class="memItemLeft" align="right" valign="top">qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#aac57ef2e0e73af21e33413a166a94e7a">lastIndexOf</a> (const QByteArray &amp;ba, qint64 from)</td></tr>
+<tr class="separator:aac57ef2e0e73af21e33413a166a94e7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a2ada1230ace92da4e1f006b88ab3b503"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a2ada1230ace92da4e1f006b88ab3b503">selectionToReadableString</a> ()</td></tr>
+<tr class="separator:a2ada1230ace92da4e1f006b88ab3b503"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:ac1f9ac4d3ec5bedabd3aeedda3191b20"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#ac1f9ac4d3ec5bedabd3aeedda3191b20">selectedData</a> ()</td></tr>
+<tr class="separator:ac1f9ac4d3ec5bedabd3aeedda3191b20"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a57221461a9c9e1b2c0e1882788ac9911"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a57221461a9c9e1b2c0e1882788ac9911">setFont</a> (const QFont &amp;<a class="el" href="class_q_hex_edit.html#a9579dc7273c48b89c9e4f26adda78671">font</a>)</td></tr>
+<tr class="separator:a57221461a9c9e1b2c0e1882788ac9911"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a43c6db0509fee9b10198bef48d8eaa2e"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a43c6db0509fee9b10198bef48d8eaa2e">toReadableString</a> ()</td></tr>
+<tr class="separator:a43c6db0509fee9b10198bef48d8eaa2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table><table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
+Properties</h2></td></tr>
+<tr class="memitem:aeaa9f3751f53b91df51cfd2863bf48ee"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#aeaa9f3751f53b91df51cfd2863bf48ee">addressArea</a></td></tr>
+<tr class="separator:aeaa9f3751f53b91df51cfd2863bf48ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a6e27b73514e243c0b8b2a3efafbb5e32"><td class="memItemLeft" align="right" valign="top">QColor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a6e27b73514e243c0b8b2a3efafbb5e32">addressAreaColor</a></td></tr>
+<tr class="separator:a6e27b73514e243c0b8b2a3efafbb5e32"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:afe1e80827cacce84505f8b0ef6421a0a"><td class="memItemLeft" align="right" valign="top">qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#afe1e80827cacce84505f8b0ef6421a0a">addressOffset</a></td></tr>
+<tr class="separator:afe1e80827cacce84505f8b0ef6421a0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a11b672fd38a7c48949ccce3228474b2f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a11b672fd38a7c48949ccce3228474b2f">addressWidth</a></td></tr>
+<tr class="separator:a11b672fd38a7c48949ccce3228474b2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a0e297a4a212a9d7addbbf82472e1acb2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a0e297a4a212a9d7addbbf82472e1acb2">asciiArea</a></td></tr>
+<tr class="separator:a0e297a4a212a9d7addbbf82472e1acb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:afec14c7e26b2b98f250d4cc3df822972"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#afec14c7e26b2b98f250d4cc3df822972">bytesPerLine</a></td></tr>
+<tr class="separator:afec14c7e26b2b98f250d4cc3df822972"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:aa50b3ebe0d22133891dce0c8237846c7"><td class="memItemLeft" align="right" valign="top">qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#aa50b3ebe0d22133891dce0c8237846c7">cursorPosition</a></td></tr>
+<tr class="separator:aa50b3ebe0d22133891dce0c8237846c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a7f4e532611a6eff27b75d3cb88e91618"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a7f4e532611a6eff27b75d3cb88e91618">data</a></td></tr>
+<tr class="separator:a7f4e532611a6eff27b75d3cb88e91618"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a4edfedb78ed9ae52cd08436e7cca0285"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a4edfedb78ed9ae52cd08436e7cca0285">hexCaps</a></td></tr>
+<tr class="separator:a4edfedb78ed9ae52cd08436e7cca0285"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a788d65f5556535a49879a3a052a9a313"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a788d65f5556535a49879a3a052a9a313">dynamicBytesPerLine</a></td></tr>
+<tr class="separator:a788d65f5556535a49879a3a052a9a313"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:ae3669260a4d5c2fad5651893a17258fd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#ae3669260a4d5c2fad5651893a17258fd">highlighting</a></td></tr>
+<tr class="separator:ae3669260a4d5c2fad5651893a17258fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a9e8ed54e47fec94cfd64b14ea1f7cee8"><td class="memItemLeft" align="right" valign="top">QColor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a9e8ed54e47fec94cfd64b14ea1f7cee8">highlightingColor</a></td></tr>
+<tr class="separator:a9e8ed54e47fec94cfd64b14ea1f7cee8"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a941a91c36eb8429c41096bfcd45f38c1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a941a91c36eb8429c41096bfcd45f38c1">overwriteMode</a></td></tr>
+<tr class="separator:a941a91c36eb8429c41096bfcd45f38c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:ac0b628f34316aff9e18fc73a738250d7"><td class="memItemLeft" align="right" valign="top">QColor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#ac0b628f34316aff9e18fc73a738250d7">selectionColor</a></td></tr>
+<tr class="separator:ac0b628f34316aff9e18fc73a738250d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:acb3044d1bb0c99876ddfa33772e91209"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#acb3044d1bb0c99876ddfa33772e91209">readOnly</a></td></tr>
+<tr class="separator:acb3044d1bb0c99876ddfa33772e91209"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a9579dc7273c48b89c9e4f26adda78671"><td class="memItemLeft" align="right" valign="top">QFont&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_hex_edit.html#a9579dc7273c48b89c9e4f26adda78671">font</a></td></tr>
+<tr class="separator:a9579dc7273c48b89c9e4f26adda78671"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table>
+<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
+<div class="textblock"><p><a class="el" href="class_q_hex_edit.html">QHexEdit</a> is a hex editor widget written in C++ for the Qt (Qt4, Qt5) framework. It is a simple editor for binary data, just like QPlainTextEdit is for text data. There are sip configuration files included, so it is easy to create bindings for PyQt and you can use this widget also in python 2 and 3.</p>
+<p><a class="el" href="class_q_hex_edit.html">QHexEdit</a> takes the data of a QByteArray (<a class="el" href="class_q_hex_edit.html#ab5221718179da17cbcd9db3bf6574df7">setData()</a>) and shows it. You can use the mouse or the keyboard to navigate inside the widget. If you hit the keys (0..9, a..f) you will change the data. Changed data is highlighted and can be accessed via <a class="el" href="class_q_hex_edit.html#a7f4e532611a6eff27b75d3cb88e91618">data()</a>.</p>
+<p>Normally <a class="el" href="class_q_hex_edit.html">QHexEdit</a> works in the overwrite mode. You can set overwrite mode(false) and insert data. In this case the size of <a class="el" href="class_q_hex_edit.html#a7f4e532611a6eff27b75d3cb88e91618">data()</a> increases. It is also possible to delete bytes (del or backspace), here the size of data decreases.</p>
+<p>You can select data with keyboard hits or mouse movements. The copy-key will copy the selected data into the clipboard. The cut-key copies also but deletes it afterwards. In overwrite mode, the paste function overwrites the content of the (does not change the length) data. In insert mode, clipboard data will be inserted. The clipboard content is expected in ASCII Hex notation. Unknown characters will be ignored.</p>
+<p><a class="el" href="class_q_hex_edit.html">QHexEdit</a> comes with undo/redo functionality. All changes can be undone, by pressing the undo-key (usually ctr-z). They can also be redone afterwards. The undo/redo framework is cleared, when <a class="el" href="class_q_hex_edit.html#ab5221718179da17cbcd9db3bf6574df7">setData()</a> sets up a new content for the editor. You can search data inside the content with <a class="el" href="class_q_hex_edit.html#a183ec73d5ef567770dc4860e9d33e239">indexOf()</a> and <a class="el" href="class_q_hex_edit.html#aac57ef2e0e73af21e33413a166a94e7a">lastIndexOf()</a>. The <a class="el" href="class_q_hex_edit.html#a386bff35c7453caaf547d203026fb462">replace()</a> function is to change located subdata. This 'replaced' data can also be undone by the undo/redo framework.</p>
+<p><a class="el" href="class_q_hex_edit.html">QHexEdit</a> is based on QIODevice, that's why <a class="el" href="class_q_hex_edit.html">QHexEdit</a> can handle big amounts of data. The size of edited data can be more then two gigabytes without any restrictions. </p>
+</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
+<a id="aec1f1e5b7652e7e39a8ca5e73ed63373"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#aec1f1e5b7652e7e39a8ca5e73ed63373">&#9670;&nbsp;</a></span>QHexEdit()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">QHexEdit::QHexEdit </td>
+ <td>(</td>
+ <td class="paramtype">QWidget *&#160;</td>
+ <td class="paramname"><em>parent</em> = <code>0</code></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Creates an instance of <a class="el" href="class_q_hex_edit.html">QHexEdit</a>. </p><dl class="params"><dt>Parameters</dt><dd>
+ <table class="params">
+ <tr><td class="paramname">parent</td><td>Parent widget of <a class="el" href="class_q_hex_edit.html">QHexEdit</a>. </td></tr>
+ </table>
+ </dd>
+</dl>
+
+</div>
+</div>
+<h2 class="groupheader">Member Function Documentation</h2>
+<a id="a1cd8ece4fd9ea4aef38a9844184ae9bc"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a1cd8ece4fd9ea4aef38a9844184ae9bc">&#9670;&nbsp;</a></span>currentAddressChanged</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">void QHexEdit::currentAddressChanged </td>
+ <td>(</td>
+ <td class="paramtype">qint64&#160;</td>
+ <td class="paramname"><em>address</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">signal</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Contains the address, where the cursor is located. </p>
+
+</div>
+</div>
+<a id="a4b3f87d1c50bc1570f191d93b7051359"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a4b3f87d1c50bc1570f191d93b7051359">&#9670;&nbsp;</a></span>currentSizeChanged</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">void QHexEdit::currentSizeChanged </td>
+ <td>(</td>
+ <td class="paramtype">qint64&#160;</td>
+ <td class="paramname"><em>size</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">signal</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Contains the size of the data to edit. </p>
+
+</div>
+</div>
+<a id="a1d833c6a3957317f4daacc54e0c99919"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a1d833c6a3957317f4daacc54e0c99919">&#9670;&nbsp;</a></span>cursorPosition()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">qint64 QHexEdit::cursorPosition </td>
+ <td>(</td>
+ <td class="paramtype">QPoint&#160;</td>
+ <td class="paramname"><em>point</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Calc cursor position from graphics position </p><dl class="params"><dt>Parameters</dt><dd>
+ <table class="params">
+ <tr><td class="paramname">point</td><td>from where the cursor position should be calculated </td></tr>
+ </table>
+ </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>Cursor position </dd></dl>
+
+</div>
+</div>
+<a id="a83c0c585108cc204852ff2e30214253a"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a83c0c585108cc204852ff2e30214253a">&#9670;&nbsp;</a></span>dataAt()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">QByteArray QHexEdit::dataAt </td>
+ <td>(</td>
+ <td class="paramtype">qint64&#160;</td>
+ <td class="paramname"><em>pos</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">qint64&#160;</td>
+ <td class="paramname"><em>count</em> = <code>-1</code>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Gives back the data as a QByteArray starting at position </p><dl class="params"><dt>Parameters</dt><dd>
+ <table class="params">
+ <tr><td class="paramname">pos</td><td>and delivering </td></tr>
+ <tr><td class="paramname">count</td><td>bytes. </td></tr>
+ </table>
+ </dd>
+</dl>
+
+</div>
+</div>
+<a id="a4ea1551815031057e6b3297406f93a5d"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a4ea1551815031057e6b3297406f93a5d">&#9670;&nbsp;</a></span>dataChanged</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">void QHexEdit::dataChanged </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">signal</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>The signal is emitted every time, the data is changed. </p>
+
+</div>
+</div>
+<a id="a43b1af42e25e3beb48932f38aa4af46e"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a43b1af42e25e3beb48932f38aa4af46e">&#9670;&nbsp;</a></span>ensureVisible()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">void QHexEdit::ensureVisible </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Ensure the cursor to be visbile </p>
+
+</div>
+</div>
+<a id="a183ec73d5ef567770dc4860e9d33e239"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a183ec73d5ef567770dc4860e9d33e239">&#9670;&nbsp;</a></span>indexOf()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">qint64 QHexEdit::indexOf </td>
+ <td>(</td>
+ <td class="paramtype">const QByteArray &amp;&#160;</td>
+ <td class="paramname"><em>ba</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">qint64&#160;</td>
+ <td class="paramname"><em>from</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Find first occurrence of ba in <a class="el" href="class_q_hex_edit.html">QHexEdit</a> data </p><dl class="params"><dt>Parameters</dt><dd>
+ <table class="params">
+ <tr><td class="paramname">ba</td><td>Data to find </td></tr>
+ <tr><td class="paramname">from</td><td>Point where the search starts </td></tr>
+ </table>
+ </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>pos if fond, else -1 </dd></dl>
+
+</div>
+</div>
+<a id="a1593f2dee03be5738df96da67c9c83d9"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a1593f2dee03be5738df96da67c9c83d9">&#9670;&nbsp;</a></span>insert() <span class="overload">[1/2]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">void QHexEdit::insert </td>
+ <td>(</td>
+ <td class="paramtype">qint64&#160;</td>
+ <td class="paramname"><em>pos</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">char&#160;</td>
+ <td class="paramname"><em>ch</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Inserts a char. </p><dl class="params"><dt>Parameters</dt><dd>
+ <table class="params">
+ <tr><td class="paramname">pos</td><td>Index position, where to insert </td></tr>
+ <tr><td class="paramname">ch</td><td>Char, which is to insert The char will be inserted and size of data grows. </td></tr>
+ </table>
+ </dd>
+</dl>
+
+</div>
+</div>
+<a id="ad118039ab31828956c7ecf034f4496cc"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#ad118039ab31828956c7ecf034f4496cc">&#9670;&nbsp;</a></span>insert() <span class="overload">[2/2]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">void QHexEdit::insert </td>
+ <td>(</td>
+ <td class="paramtype">qint64&#160;</td>
+ <td class="paramname"><em>pos</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const QByteArray &amp;&#160;</td>
+ <td class="paramname"><em>ba</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Inserts a byte array. </p><dl class="params"><dt>Parameters</dt><dd>
+ <table class="params">
+ <tr><td class="paramname">pos</td><td>Index position, where to insert </td></tr>
+ <tr><td class="paramname">ba</td><td>QByteArray, which is to insert The QByteArray will be inserted and size of data grows. </td></tr>
+ </table>
+ </dd>
+</dl>
+
+</div>
+</div>
+<a id="ad8339ee39adf7863e46a9c57a7f9db0a"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#ad8339ee39adf7863e46a9c57a7f9db0a">&#9670;&nbsp;</a></span>isModified()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool QHexEdit::isModified </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Returns if any changes where done on document </p><dl class="section return"><dt>Returns</dt><dd>true when document is modified else false </dd></dl>
+
+</div>
+</div>
+<a id="aac57ef2e0e73af21e33413a166a94e7a"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#aac57ef2e0e73af21e33413a166a94e7a">&#9670;&nbsp;</a></span>lastIndexOf()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">qint64 QHexEdit::lastIndexOf </td>
+ <td>(</td>
+ <td class="paramtype">const QByteArray &amp;&#160;</td>
+ <td class="paramname"><em>ba</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">qint64&#160;</td>
+ <td class="paramname"><em>from</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Find last occurrence of ba in <a class="el" href="class_q_hex_edit.html">QHexEdit</a> data </p><dl class="params"><dt>Parameters</dt><dd>
+ <table class="params">
+ <tr><td class="paramname">ba</td><td>Data to find </td></tr>
+ <tr><td class="paramname">from</td><td>Point where the search starts </td></tr>
+ </table>
+ </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>pos if fond, else -1 </dd></dl>
+
+</div>
+</div>
+<a id="a15abf5af9aa3a91d18ec17cc33b8e4a1"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a15abf5af9aa3a91d18ec17cc33b8e4a1">&#9670;&nbsp;</a></span>overwriteModeChanged</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">void QHexEdit::overwriteModeChanged </td>
+ <td>(</td>
+ <td class="paramtype">bool&#160;</td>
+ <td class="paramname"><em>state</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">signal</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>The signal is emitted every time, the overwrite mode is changed. </p>
+
+</div>
+</div>
+<a id="a9c9650f363859e42a0ebf4ed6a1c4ae0"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a9c9650f363859e42a0ebf4ed6a1c4ae0">&#9670;&nbsp;</a></span>redo</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">void QHexEdit::redo </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">slot</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Redoes the last operation. If there is no operation to redo, i.e. there is no redo step in the undo/redo history, nothing happens. </p>
+
+</div>
+</div>
+<a id="a6fee4dba9a2eaeeccccbd84111f8bf2c"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a6fee4dba9a2eaeeccccbd84111f8bf2c">&#9670;&nbsp;</a></span>remove()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">void QHexEdit::remove </td>
+ <td>(</td>
+ <td class="paramtype">qint64&#160;</td>
+ <td class="paramname"><em>pos</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">qint64&#160;</td>
+ <td class="paramname"><em>len</em> = <code>1</code>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Removes len bytes from the content. </p><dl class="params"><dt>Parameters</dt><dd>
+ <table class="params">
+ <tr><td class="paramname">pos</td><td>Index position, where to remove </td></tr>
+ <tr><td class="paramname">len</td><td>Amount of bytes to remove </td></tr>
+ </table>
+ </dd>
+</dl>
+
+</div>
+</div>
+<a id="a386bff35c7453caaf547d203026fb462"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a386bff35c7453caaf547d203026fb462">&#9670;&nbsp;</a></span>replace() <span class="overload">[1/2]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">void QHexEdit::replace </td>
+ <td>(</td>
+ <td class="paramtype">qint64&#160;</td>
+ <td class="paramname"><em>pos</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">char&#160;</td>
+ <td class="paramname"><em>ch</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Replaces a char. </p><dl class="params"><dt>Parameters</dt><dd>
+ <table class="params">
+ <tr><td class="paramname">pos</td><td>Index position, where to overwrite </td></tr>
+ <tr><td class="paramname">ch</td><td>Char, which is to insert The char will be overwritten and size remains constant. </td></tr>
+ </table>
+ </dd>
+</dl>
+
+</div>
+</div>
+<a id="a79dbbeaf7ddbb358730bed763d05a959"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a79dbbeaf7ddbb358730bed763d05a959">&#9670;&nbsp;</a></span>replace() <span class="overload">[2/2]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">void QHexEdit::replace </td>
+ <td>(</td>
+ <td class="paramtype">qint64&#160;</td>
+ <td class="paramname"><em>pos</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">qint64&#160;</td>
+ <td class="paramname"><em>len</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const QByteArray &amp;&#160;</td>
+ <td class="paramname"><em>ba</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Replaces </p><dl class="params"><dt>Parameters</dt><dd>
+ <table class="params">
+ <tr><td class="paramname">len</td><td>bytes with a byte array </td></tr>
+ <tr><td class="paramname">ba</td><td></td></tr>
+ <tr><td class="paramname">pos</td><td>Index position, where to overwrite </td></tr>
+ <tr><td class="paramname">ba</td><td>QByteArray, which is inserted </td></tr>
+ <tr><td class="paramname">len</td><td>count of bytes to overwrite The data is overwritten and size of data may change. </td></tr>
+ </table>
+ </dd>
+</dl>
+
+</div>
+</div>
+<a id="ac1f9ac4d3ec5bedabd3aeedda3191b20"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#ac1f9ac4d3ec5bedabd3aeedda3191b20">&#9670;&nbsp;</a></span>selectedData()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">QString QHexEdit::selectedData </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Return the selected content of <a class="el" href="class_q_hex_edit.html">QHexEdit</a> as QByteArray </p>
+
+</div>
+</div>
+<a id="a2ada1230ace92da4e1f006b88ab3b503"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a2ada1230ace92da4e1f006b88ab3b503">&#9670;&nbsp;</a></span>selectionToReadableString()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">QString QHexEdit::selectionToReadableString </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Gives back a formatted image of the selected content of <a class="el" href="class_q_hex_edit.html">QHexEdit</a> </p>
+
+</div>
+</div>
+<a id="ab5221718179da17cbcd9db3bf6574df7"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#ab5221718179da17cbcd9db3bf6574df7">&#9670;&nbsp;</a></span>setData()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool QHexEdit::setData </td>
+ <td>(</td>
+ <td class="paramtype">QIODevice &amp;&#160;</td>
+ <td class="paramname"><em>iODevice</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Sets the data of <a class="el" href="class_q_hex_edit.html">QHexEdit</a>. The QIODevice will be opened just before reading and closed immediately afterwards. This is to allow other programs to rewrite the file while editing it. </p>
+
+</div>
+</div>
+<a id="a57221461a9c9e1b2c0e1882788ac9911"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a57221461a9c9e1b2c0e1882788ac9911">&#9670;&nbsp;</a></span>setFont()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">void QHexEdit::setFont </td>
+ <td>(</td>
+ <td class="paramtype">const QFont &amp;&#160;</td>
+ <td class="paramname"><em>font</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Set Font of <a class="el" href="class_q_hex_edit.html">QHexEdit</a> </p><dl class="params"><dt>Parameters</dt><dd>
+ <table class="params">
+ <tr><td class="paramname">font</td><td></td></tr>
+ </table>
+ </dd>
+</dl>
+
+</div>
+</div>
+<a id="a43c6db0509fee9b10198bef48d8eaa2e"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a43c6db0509fee9b10198bef48d8eaa2e">&#9670;&nbsp;</a></span>toReadableString()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">QString QHexEdit::toReadableString </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Gives back a formatted image of the content of <a class="el" href="class_q_hex_edit.html">QHexEdit</a> </p>
+
+</div>
+</div>
+<a id="a57a6f775cd612f901567cc005988c6de"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a57a6f775cd612f901567cc005988c6de">&#9670;&nbsp;</a></span>undo</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">void QHexEdit::undo </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">slot</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Undoes the last operation. If there is no operation to undo, i.e. there is no undo step in the undo/redo history, nothing happens. </p>
+
+</div>
+</div>
+<a id="acc71d91a132a7cf6504d3f20de0ef4ce"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#acc71d91a132a7cf6504d3f20de0ef4ce">&#9670;&nbsp;</a></span>write()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool QHexEdit::write </td>
+ <td>(</td>
+ <td class="paramtype">QIODevice &amp;&#160;</td>
+ <td class="paramname"><em>iODevice</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">qint64&#160;</td>
+ <td class="paramname"><em>pos</em> = <code>0</code>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">qint64&#160;</td>
+ <td class="paramname"><em>count</em> = <code>-1</code>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>Gives back the data into a </p><dl class="params"><dt>Parameters</dt><dd>
+ <table class="params">
+ <tr><td class="paramname">iODevice</td><td>starting at position </td></tr>
+ <tr><td class="paramname">pos</td><td>and delivering </td></tr>
+ <tr><td class="paramname">count</td><td>bytes. </td></tr>
+ </table>
+ </dd>
+</dl>
+
+</div>
+</div>
+<h2 class="groupheader">Property Documentation</h2>
+<a id="aeaa9f3751f53b91df51cfd2863bf48ee"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#aeaa9f3751f53b91df51cfd2863bf48ee">&#9670;&nbsp;</a></span>addressArea</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool QHexEdit::addressArea</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Property address area switch the address area on or off. Set addressArea true (show it), false (hide it). </p>
+
+</div>
+</div>
+<a id="a6e27b73514e243c0b8b2a3efafbb5e32"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a6e27b73514e243c0b8b2a3efafbb5e32">&#9670;&nbsp;</a></span>addressAreaColor</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">QColor QHexEdit::addressAreaColor</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Property address area color sets (setAddressAreaColor()) the background color of address areas. You can also read the color (addressaAreaColor()). </p>
+
+</div>
+</div>
+<a id="afe1e80827cacce84505f8b0ef6421a0a"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#afe1e80827cacce84505f8b0ef6421a0a">&#9670;&nbsp;</a></span>addressOffset</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">qint64 QHexEdit::addressOffset</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Property addressOffset is added to the Numbers of the Address Area. A offset in the address area (left side) is sometimes useful, whe you show only a segment of a complete memory picture. With setAddressOffset() you set this property - with <a class="el" href="class_q_hex_edit.html#afe1e80827cacce84505f8b0ef6421a0a">addressOffset()</a> you get the current value. </p>
+
+</div>
+</div>
+<a id="a11b672fd38a7c48949ccce3228474b2f"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a11b672fd38a7c48949ccce3228474b2f">&#9670;&nbsp;</a></span>addressWidth</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">int QHexEdit::addressWidth</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Set and get the minimum width of the address area, width in characters. </p>
+
+</div>
+</div>
+<a id="a0e297a4a212a9d7addbbf82472e1acb2"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a0e297a4a212a9d7addbbf82472e1acb2">&#9670;&nbsp;</a></span>asciiArea</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool QHexEdit::asciiArea</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Switch the ascii area on (true, show it) or off (false, hide it). </p>
+
+</div>
+</div>
+<a id="afec14c7e26b2b98f250d4cc3df822972"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#afec14c7e26b2b98f250d4cc3df822972">&#9670;&nbsp;</a></span>bytesPerLine</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">int QHexEdit::bytesPerLine</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Set and get bytes number per line. </p>
+
+</div>
+</div>
+<a id="aa50b3ebe0d22133891dce0c8237846c7"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#aa50b3ebe0d22133891dce0c8237846c7">&#9670;&nbsp;</a></span>cursorPosition</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">qint64 QHexEdit::cursorPosition</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Property cursorPosition sets or gets the position of the editor cursor in <a class="el" href="class_q_hex_edit.html">QHexEdit</a>. Every byte in data has two cursor positions: the lower and upper Nibble. Maximum cursor position is factor two of data.size(). </p>
+
+</div>
+</div>
+<a id="a7f4e532611a6eff27b75d3cb88e91618"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a7f4e532611a6eff27b75d3cb88e91618">&#9670;&nbsp;</a></span>data</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">QByteArray QHexEdit::data</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Property data holds the content of <a class="el" href="class_q_hex_edit.html">QHexEdit</a>. Call <a class="el" href="class_q_hex_edit.html#ab5221718179da17cbcd9db3bf6574df7">setData()</a> to set the content of <a class="el" href="class_q_hex_edit.html">QHexEdit</a>, <a class="el" href="class_q_hex_edit.html#a7f4e532611a6eff27b75d3cb88e91618">data()</a> returns the actual content. When calling <a class="el" href="class_q_hex_edit.html#ab5221718179da17cbcd9db3bf6574df7">setData()</a> with a QByteArray as argument, <a class="el" href="class_q_hex_edit.html">QHexEdit</a> creates a internal copy of the data If you want to edit big files please use <a class="el" href="class_q_hex_edit.html#ab5221718179da17cbcd9db3bf6574df7">setData()</a>, based on QIODevice. </p>
+
+</div>
+</div>
+<a id="a788d65f5556535a49879a3a052a9a313"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a788d65f5556535a49879a3a052a9a313">&#9670;&nbsp;</a></span>dynamicBytesPerLine</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool QHexEdit::dynamicBytesPerLine</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Property defines the dynamic calculation of bytesPerLine parameter depends of width of widget. set this property true to avoid horizontal scrollbars and show the maximal possible data. defalut value is false </p>
+
+</div>
+</div>
+<a id="a9579dc7273c48b89c9e4f26adda78671"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a9579dc7273c48b89c9e4f26adda78671">&#9670;&nbsp;</a></span>font</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">QFont QHexEdit::font</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Set the font of the widget. Please use fixed width fonts like Mono or Courier. </p>
+
+</div>
+</div>
+<a id="a4edfedb78ed9ae52cd08436e7cca0285"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a4edfedb78ed9ae52cd08436e7cca0285">&#9670;&nbsp;</a></span>hexCaps</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool QHexEdit::hexCaps</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>That property defines if the hex values looks as a-f if the value is false(default) or A-F if value is true. </p>
+
+</div>
+</div>
+<a id="ae3669260a4d5c2fad5651893a17258fd"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#ae3669260a4d5c2fad5651893a17258fd">&#9670;&nbsp;</a></span>highlighting</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool QHexEdit::highlighting</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Switch the highlighting feature on or of: true (show it), false (hide it). </p>
+
+</div>
+</div>
+<a id="a9e8ed54e47fec94cfd64b14ea1f7cee8"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a9e8ed54e47fec94cfd64b14ea1f7cee8">&#9670;&nbsp;</a></span>highlightingColor</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">QColor QHexEdit::highlightingColor</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Property highlighting color sets (setHighlightingColor()) the background color of highlighted text areas. You can also read the color (<a class="el" href="class_q_hex_edit.html#a9e8ed54e47fec94cfd64b14ea1f7cee8">highlightingColor()</a>). </p>
+
+</div>
+</div>
+<a id="a941a91c36eb8429c41096bfcd45f38c1"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a941a91c36eb8429c41096bfcd45f38c1">&#9670;&nbsp;</a></span>overwriteMode</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool QHexEdit::overwriteMode</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Property overwrite mode sets (setOverwriteMode()) or gets (<a class="el" href="class_q_hex_edit.html#a941a91c36eb8429c41096bfcd45f38c1">overwriteMode()</a>) the mode in which the editor works. In overwrite mode the user will overwrite existing data. The size of data will be constant. In insert mode the size will grow, when inserting new data. </p>
+
+</div>
+</div>
+<a id="acb3044d1bb0c99876ddfa33772e91209"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#acb3044d1bb0c99876ddfa33772e91209">&#9670;&nbsp;</a></span>readOnly</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool QHexEdit::readOnly</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Property readOnly sets (setReadOnly()) or gets (isReadOnly) the mode in which the editor works. In readonly mode the the user can only navigate through the data and select data; modifying is not possible. This property's default is false. </p>
+
+</div>
+</div>
+<a id="ac0b628f34316aff9e18fc73a738250d7"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#ac0b628f34316aff9e18fc73a738250d7">&#9670;&nbsp;</a></span>selectionColor</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">QColor QHexEdit::selectionColor</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+<p>Property selection color sets (setSelectionColor()) the background color of selected text areas. You can also read the color (<a class="el" href="class_q_hex_edit.html#ac0b628f34316aff9e18fc73a738250d7">selectionColor()</a>). </p>
+
+</div>
+</div>
+<hr/>The documentation for this class was generated from the following file:<ul>
+<li>/media/winni/sda8/working_copy/working_copy/hacking/c++/qhexedit2/src/<a class="el" href="qhexedit_8h_source.html">qhexedit.h</a></li>
+</ul>
+</div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/class_q_hex_edit.png b/doc/html/class_q_hex_edit.png
new file mode 100644
index 0000000..c7db8a7
--- /dev/null
+++ b/doc/html/class_q_hex_edit.png
Binary files differ
diff --git a/doc/html/class_q_hex_edit_plugin-members.html b/doc/html/class_q_hex_edit_plugin-members.html
new file mode 100644
index 0000000..5d9a5db
--- /dev/null
+++ b/doc/html/class_q_hex_edit_plugin-members.html
@@ -0,0 +1,88 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: Member List</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle">
+<div class="title">QHexEditPlugin Member List</div> </div>
+</div><!--header-->
+<div class="contents">
+
+<p>This is the complete list of members for <a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a>, including all inherited members.</p>
+<table class="directory">
+ <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>createWidget</b>(QWidget *parent) (defined in <a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a>)</td><td class="entry"><a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a></td><td class="entry"></td></tr>
+ <tr bgcolor="#f0f0f0"><td class="entry"><b>domXml</b>() const (defined in <a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a>)</td><td class="entry"><a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a></td><td class="entry"></td></tr>
+ <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>group</b>() const (defined in <a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a>)</td><td class="entry"><a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a></td><td class="entry"></td></tr>
+ <tr bgcolor="#f0f0f0"><td class="entry"><b>icon</b>() const (defined in <a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a>)</td><td class="entry"><a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a></td><td class="entry"></td></tr>
+ <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>includeFile</b>() const (defined in <a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a>)</td><td class="entry"><a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a></td><td class="entry"></td></tr>
+ <tr bgcolor="#f0f0f0"><td class="entry"><b>initialize</b>(QDesignerFormEditorInterface *core) (defined in <a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a>)</td><td class="entry"><a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a></td><td class="entry"></td></tr>
+ <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>isContainer</b>() const (defined in <a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a>)</td><td class="entry"><a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a></td><td class="entry"></td></tr>
+ <tr bgcolor="#f0f0f0"><td class="entry"><b>isInitialized</b>() const (defined in <a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a>)</td><td class="entry"><a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a></td><td class="entry"></td></tr>
+ <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>name</b>() const (defined in <a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a>)</td><td class="entry"><a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a></td><td class="entry"></td></tr>
+ <tr bgcolor="#f0f0f0"><td class="entry"><b>QHexEditPlugin</b>(QObject *parent=0) (defined in <a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a>)</td><td class="entry"><a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a></td><td class="entry"></td></tr>
+ <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>toolTip</b>() const (defined in <a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a>)</td><td class="entry"><a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a></td><td class="entry"></td></tr>
+ <tr bgcolor="#f0f0f0"><td class="entry"><b>whatsThis</b>() const (defined in <a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a>)</td><td class="entry"><a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a></td><td class="entry"></td></tr>
+</table></div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/class_q_hex_edit_plugin.html b/doc/html/class_q_hex_edit_plugin.html
new file mode 100644
index 0000000..eb4ef3b
--- /dev/null
+++ b/doc/html/class_q_hex_edit_plugin.html
@@ -0,0 +1,127 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: QHexEditPlugin Class Reference</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+</div><!-- top -->
+<div class="header">
+ <div class="summary">
+<a href="#pub-methods">Public Member Functions</a> &#124;
+<a href="class_q_hex_edit_plugin-members.html">List of all members</a> </div>
+ <div class="headertitle">
+<div class="title">QHexEditPlugin Class Reference</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="dynheader">
+Inheritance diagram for QHexEditPlugin:</div>
+<div class="dyncontent">
+ <div class="center">
+ <img src="class_q_hex_edit_plugin.png" usemap="#QHexEditPlugin_map" alt=""/>
+ <map id="QHexEditPlugin_map" name="QHexEditPlugin_map">
+</map>
+ </div></div>
+<table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
+Public Member Functions</h2></td></tr>
+<tr class="memitem:a7836afad492f1bf08f596829f7e7efbd"><td class="memItemLeft" align="right" valign="top"><a id="a7836afad492f1bf08f596829f7e7efbd"></a>
+&#160;</td><td class="memItemRight" valign="bottom"><b>QHexEditPlugin</b> (QObject *parent=0)</td></tr>
+<tr class="separator:a7836afad492f1bf08f596829f7e7efbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a9b0256349a9aa7db3c3a22badc64c333"><td class="memItemLeft" align="right" valign="top"><a id="a9b0256349a9aa7db3c3a22badc64c333"></a>
+bool&#160;</td><td class="memItemRight" valign="bottom"><b>isContainer</b> () const</td></tr>
+<tr class="separator:a9b0256349a9aa7db3c3a22badc64c333"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a19564009dbca57393f7abe9cf82e6f89"><td class="memItemLeft" align="right" valign="top"><a id="a19564009dbca57393f7abe9cf82e6f89"></a>
+bool&#160;</td><td class="memItemRight" valign="bottom"><b>isInitialized</b> () const</td></tr>
+<tr class="separator:a19564009dbca57393f7abe9cf82e6f89"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a4f61949b7120f7a271e765acb05b015c"><td class="memItemLeft" align="right" valign="top"><a id="a4f61949b7120f7a271e765acb05b015c"></a>
+QIcon&#160;</td><td class="memItemRight" valign="bottom"><b>icon</b> () const</td></tr>
+<tr class="separator:a4f61949b7120f7a271e765acb05b015c"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:afb8542fc8cf36cdc382b22aadcc3dd50"><td class="memItemLeft" align="right" valign="top"><a id="afb8542fc8cf36cdc382b22aadcc3dd50"></a>
+QString&#160;</td><td class="memItemRight" valign="bottom"><b>domXml</b> () const</td></tr>
+<tr class="separator:afb8542fc8cf36cdc382b22aadcc3dd50"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a12442cd796942b64637ab33c229a47b5"><td class="memItemLeft" align="right" valign="top"><a id="a12442cd796942b64637ab33c229a47b5"></a>
+QString&#160;</td><td class="memItemRight" valign="bottom"><b>group</b> () const</td></tr>
+<tr class="separator:a12442cd796942b64637ab33c229a47b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:afe30ee7c6942e64dc3e856f9b077d9a5"><td class="memItemLeft" align="right" valign="top"><a id="afe30ee7c6942e64dc3e856f9b077d9a5"></a>
+QString&#160;</td><td class="memItemRight" valign="bottom"><b>includeFile</b> () const</td></tr>
+<tr class="separator:afe30ee7c6942e64dc3e856f9b077d9a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a61ed6127fdefd44be3a1a6460b1602cc"><td class="memItemLeft" align="right" valign="top"><a id="a61ed6127fdefd44be3a1a6460b1602cc"></a>
+QString&#160;</td><td class="memItemRight" valign="bottom"><b>name</b> () const</td></tr>
+<tr class="separator:a61ed6127fdefd44be3a1a6460b1602cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a510766000196de2eca9dea080037211e"><td class="memItemLeft" align="right" valign="top"><a id="a510766000196de2eca9dea080037211e"></a>
+QString&#160;</td><td class="memItemRight" valign="bottom"><b>toolTip</b> () const</td></tr>
+<tr class="separator:a510766000196de2eca9dea080037211e"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a2bee3f8ed774aadb966a038a426732fa"><td class="memItemLeft" align="right" valign="top"><a id="a2bee3f8ed774aadb966a038a426732fa"></a>
+QString&#160;</td><td class="memItemRight" valign="bottom"><b>whatsThis</b> () const</td></tr>
+<tr class="separator:a2bee3f8ed774aadb966a038a426732fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:aa643ca5e3165be7a4aa318555d2b6191"><td class="memItemLeft" align="right" valign="top"><a id="aa643ca5e3165be7a4aa318555d2b6191"></a>
+QWidget *&#160;</td><td class="memItemRight" valign="bottom"><b>createWidget</b> (QWidget *parent)</td></tr>
+<tr class="separator:aa643ca5e3165be7a4aa318555d2b6191"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:aad5a5bf837ef07999d08225e4bb88a99"><td class="memItemLeft" align="right" valign="top"><a id="aad5a5bf837ef07999d08225e4bb88a99"></a>
+void&#160;</td><td class="memItemRight" valign="bottom"><b>initialize</b> (QDesignerFormEditorInterface *core)</td></tr>
+<tr class="separator:aad5a5bf837ef07999d08225e4bb88a99"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table>
+<hr/>The documentation for this class was generated from the following file:<ul>
+<li>/media/winni/sda8/working_copy/working_copy/hacking/c++/qhexedit2/src/<a class="el" href="_q_hex_edit_plugin_8h_source.html">QHexEditPlugin.h</a></li>
+</ul>
+</div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/class_q_hex_edit_plugin.png b/doc/html/class_q_hex_edit_plugin.png
new file mode 100644
index 0000000..c8bc479
--- /dev/null
+++ b/doc/html/class_q_hex_edit_plugin.png
Binary files differ
diff --git a/doc/html/classes.html b/doc/html/classes.html
new file mode 100644
index 0000000..66ea522
--- /dev/null
+++ b/doc/html/classes.html
@@ -0,0 +1,82 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: Class Index</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+</div><!-- top -->
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div class="header">
+ <div class="headertitle">
+<div class="title">Class Index</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="qindex"><a class="qindex" href="#letter_q">q</a></div>
+<table class="classindex">
+<tr><td rowspan="2" valign="bottom"><a name="letter_q"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;q&#160;&#160;</div></td></tr></table>
+</td><td valign="top"><a class="el" href="class_q_hex_edit_plugin.html">QHexEditPlugin</a>&#160;&#160;&#160;</td><td></td></tr>
+<tr><td></td><td></td></tr>
+<tr><td valign="top"><a class="el" href="class_q_hex_edit.html">QHexEdit</a>&#160;&#160;&#160;</td><td></td><td></td></tr>
+<tr><td></td><td></td><td></td></tr>
+</table>
+<div class="qindex"><a class="qindex" href="#letter_q">q</a></div>
+</div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/closed.png b/doc/html/closed.png
new file mode 100644
index 0000000..98cc2c9
--- /dev/null
+++ b/doc/html/closed.png
Binary files differ
diff --git a/doc/html/commands_8h_source.html b/doc/html/commands_8h_source.html
new file mode 100644
index 0000000..a7328e6
--- /dev/null
+++ b/doc/html/commands_8h_source.html
@@ -0,0 +1,77 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: /media/winni/sda8/working_copy/working_copy/hacking/c++/qhexedit2/src/commands.h Source File</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div id="nav-path" class="navpath">
+ <ul>
+<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle">
+<div class="title">commands.h</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef COMMANDS_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define COMMANDS_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#include &lt;QUndoStack&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#include &quot;chunks.h&quot;</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="keyword">class </span>UndoStack : <span class="keyword">public</span> QUndoStack</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;{</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; Q_OBJECT</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; UndoStack(Chunks *chunks, QObject * parent=0);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <span class="keywordtype">void</span> insert(qint64 pos, <span class="keywordtype">char</span> c);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="keywordtype">void</span> insert(qint64 pos, <span class="keyword">const</span> QByteArray &amp;ba);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="keywordtype">void</span> removeAt(qint64 pos, qint64 len=1);</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keywordtype">void</span> overwrite(qint64 pos, <span class="keywordtype">char</span> c);</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keywordtype">void</span> overwrite(qint64 pos, <span class="keywordtype">int</span> len, <span class="keyword">const</span> QByteArray &amp;ba);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; Chunks * _chunks;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; QObject * _parent;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;};</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor">#endif // COMMANDS_H</span></div></div><!-- fragment --></div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html b/doc/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html
new file mode 100644
index 0000000..aef7c36
--- /dev/null
+++ b/doc/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html
@@ -0,0 +1,77 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: /media/winni/sda8/working_copy/working_copy/hacking/c++/qhexedit2/src Directory Reference</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div id="nav-path" class="navpath">
+ <ul>
+<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle">
+<div class="title">src Directory Reference</div> </div>
+</div><!--header-->
+<div class="contents">
+</div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/doc.png b/doc/html/doc.png
new file mode 100644
index 0000000..17edabf
--- /dev/null
+++ b/doc/html/doc.png
Binary files differ
diff --git a/doc/html/doxygen.css b/doc/html/doxygen.css
new file mode 100644
index 0000000..4f1ab91
--- /dev/null
+++ b/doc/html/doxygen.css
@@ -0,0 +1,1596 @@
+/* The standard CSS for doxygen 1.8.13 */
+
+body, table, div, p, dl {
+ font: 400 14px/22px Roboto,sans-serif;
+}
+
+p.reference, p.definition {
+ font: 400 14px/22px Roboto,sans-serif;
+}
+
+/* @group Heading Levels */
+
+h1.groupheader {
+ font-size: 150%;
+}
+
+.title {
+ font: 400 14px/28px Roboto,sans-serif;
+ font-size: 150%;
+ font-weight: bold;
+ margin: 10px 2px;
+}
+
+h2.groupheader {
+ border-bottom: 1px solid #879ECB;
+ color: #354C7B;
+ font-size: 150%;
+ font-weight: normal;
+ margin-top: 1.75em;
+ padding-top: 8px;
+ padding-bottom: 4px;
+ width: 100%;
+}
+
+h3.groupheader {
+ font-size: 100%;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ -webkit-transition: text-shadow 0.5s linear;
+ -moz-transition: text-shadow 0.5s linear;
+ -ms-transition: text-shadow 0.5s linear;
+ -o-transition: text-shadow 0.5s linear;
+ transition: text-shadow 0.5s linear;
+ margin-right: 15px;
+}
+
+h1.glow, h2.glow, h3.glow, h4.glow, h5.glow, h6.glow {
+ text-shadow: 0 0 15px cyan;
+}
+
+dt {
+ font-weight: bold;
+}
+
+div.multicol {
+ -moz-column-gap: 1em;
+ -webkit-column-gap: 1em;
+ -moz-column-count: 3;
+ -webkit-column-count: 3;
+}
+
+p.startli, p.startdd {
+ margin-top: 2px;
+}
+
+p.starttd {
+ margin-top: 0px;
+}
+
+p.endli {
+ margin-bottom: 0px;
+}
+
+p.enddd {
+ margin-bottom: 4px;
+}
+
+p.endtd {
+ margin-bottom: 2px;
+}
+
+/* @end */
+
+caption {
+ font-weight: bold;
+}
+
+span.legend {
+ font-size: 70%;
+ text-align: center;
+}
+
+h3.version {
+ font-size: 90%;
+ text-align: center;
+}
+
+div.qindex, div.navtab{
+ background-color: #EBEFF6;
+ border: 1px solid #A3B4D7;
+ text-align: center;
+}
+
+div.qindex, div.navpath {
+ width: 100%;
+ line-height: 140%;
+}
+
+div.navtab {
+ margin-right: 15px;
+}
+
+/* @group Link Styling */
+
+a {
+ color: #3D578C;
+ font-weight: normal;
+ text-decoration: none;
+}
+
+.contents a:visited {
+ color: #4665A2;
+}
+
+a:hover {
+ text-decoration: underline;
+}
+
+a.qindex {
+ font-weight: bold;
+}
+
+a.qindexHL {
+ font-weight: bold;
+ background-color: #9CAFD4;
+ color: #ffffff;
+ border: 1px double #869DCA;
+}
+
+.contents a.qindexHL:visited {
+ color: #ffffff;
+}
+
+a.el {
+ font-weight: bold;
+}
+
+a.elRef {
+}
+
+a.code, a.code:visited, a.line, a.line:visited {
+ color: #4665A2;
+}
+
+a.codeRef, a.codeRef:visited, a.lineRef, a.lineRef:visited {
+ color: #4665A2;
+}
+
+/* @end */
+
+dl.el {
+ margin-left: -1cm;
+}
+
+pre.fragment {
+ border: 1px solid #C4CFE5;
+ background-color: #FBFCFD;
+ padding: 4px 6px;
+ margin: 4px 8px 4px 2px;
+ overflow: auto;
+ word-wrap: break-word;
+ font-size: 9pt;
+ line-height: 125%;
+ font-family: monospace, fixed;
+ font-size: 105%;
+}
+
+div.fragment {
+ padding: 0px;
+ margin: 4px 8px 4px 2px;
+ background-color: #FBFCFD;
+ border: 1px solid #C4CFE5;
+}
+
+div.line {
+ font-family: monospace, fixed;
+ font-size: 13px;
+ min-height: 13px;
+ line-height: 1.0;
+ text-wrap: unrestricted;
+ white-space: -moz-pre-wrap; /* Moz */
+ white-space: -pre-wrap; /* Opera 4-6 */
+ white-space: -o-pre-wrap; /* Opera 7 */
+ white-space: pre-wrap; /* CSS3 */
+ word-wrap: break-word; /* IE 5.5+ */
+ text-indent: -53px;
+ padding-left: 53px;
+ padding-bottom: 0px;
+ margin: 0px;
+ -webkit-transition-property: background-color, box-shadow;
+ -webkit-transition-duration: 0.5s;
+ -moz-transition-property: background-color, box-shadow;
+ -moz-transition-duration: 0.5s;
+ -ms-transition-property: background-color, box-shadow;
+ -ms-transition-duration: 0.5s;
+ -o-transition-property: background-color, box-shadow;
+ -o-transition-duration: 0.5s;
+ transition-property: background-color, box-shadow;
+ transition-duration: 0.5s;
+}
+
+div.line:after {
+ content:"\000A";
+ white-space: pre;
+}
+
+div.line.glow {
+ background-color: cyan;
+ box-shadow: 0 0 10px cyan;
+}
+
+
+span.lineno {
+ padding-right: 4px;
+ text-align: right;
+ border-right: 2px solid #0F0;
+ background-color: #E8E8E8;
+ white-space: pre;
+}
+span.lineno a {
+ background-color: #D8D8D8;
+}
+
+span.lineno a:hover {
+ background-color: #C8C8C8;
+}
+
+.lineno {
+ -webkit-touch-callout: none;
+ -webkit-user-select: none;
+ -khtml-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+
+div.ah, span.ah {
+ background-color: black;
+ font-weight: bold;
+ color: #ffffff;
+ margin-bottom: 3px;
+ margin-top: 3px;
+ padding: 0.2em;
+ border: solid thin #333;
+ border-radius: 0.5em;
+ -webkit-border-radius: .5em;
+ -moz-border-radius: .5em;
+ box-shadow: 2px 2px 3px #999;
+ -webkit-box-shadow: 2px 2px 3px #999;
+ -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px;
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444));
+ background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000 110%);
+}
+
+div.classindex ul {
+ list-style: none;
+ padding-left: 0;
+}
+
+div.classindex span.ai {
+ display: inline-block;
+}
+
+div.groupHeader {
+ margin-left: 16px;
+ margin-top: 12px;
+ font-weight: bold;
+}
+
+div.groupText {
+ margin-left: 16px;
+ font-style: italic;
+}
+
+body {
+ background-color: white;
+ color: black;
+ margin: 0;
+}
+
+div.contents {
+ margin-top: 10px;
+ margin-left: 12px;
+ margin-right: 8px;
+}
+
+td.indexkey {
+ background-color: #EBEFF6;
+ font-weight: bold;
+ border: 1px solid #C4CFE5;
+ margin: 2px 0px 2px 0;
+ padding: 2px 10px;
+ white-space: nowrap;
+ vertical-align: top;
+}
+
+td.indexvalue {
+ background-color: #EBEFF6;
+ border: 1px solid #C4CFE5;
+ padding: 2px 10px;
+ margin: 2px 0px;
+}
+
+tr.memlist {
+ background-color: #EEF1F7;
+}
+
+p.formulaDsp {
+ text-align: center;
+}
+
+img.formulaDsp {
+
+}
+
+img.formulaInl {
+ vertical-align: middle;
+}
+
+div.center {
+ text-align: center;
+ margin-top: 0px;
+ margin-bottom: 0px;
+ padding: 0px;
+}
+
+div.center img {
+ border: 0px;
+}
+
+address.footer {
+ text-align: right;
+ padding-right: 12px;
+}
+
+img.footer {
+ border: 0px;
+ vertical-align: middle;
+}
+
+/* @group Code Colorization */
+
+span.keyword {
+ color: #008000
+}
+
+span.keywordtype {
+ color: #604020
+}
+
+span.keywordflow {
+ color: #e08000
+}
+
+span.comment {
+ color: #800000
+}
+
+span.preprocessor {
+ color: #806020
+}
+
+span.stringliteral {
+ color: #002080
+}
+
+span.charliteral {
+ color: #008080
+}
+
+span.vhdldigit {
+ color: #ff00ff
+}
+
+span.vhdlchar {
+ color: #000000
+}
+
+span.vhdlkeyword {
+ color: #700070
+}
+
+span.vhdllogic {
+ color: #ff0000
+}
+
+blockquote {
+ background-color: #F7F8FB;
+ border-left: 2px solid #9CAFD4;
+ margin: 0 24px 0 4px;
+ padding: 0 12px 0 16px;
+}
+
+/* @end */
+
+/*
+.search {
+ color: #003399;
+ font-weight: bold;
+}
+
+form.search {
+ margin-bottom: 0px;
+ margin-top: 0px;
+}
+
+input.search {
+ font-size: 75%;
+ color: #000080;
+ font-weight: normal;
+ background-color: #e8eef2;
+}
+*/
+
+td.tiny {
+ font-size: 75%;
+}
+
+.dirtab {
+ padding: 4px;
+ border-collapse: collapse;
+ border: 1px solid #A3B4D7;
+}
+
+th.dirtab {
+ background: #EBEFF6;
+ font-weight: bold;
+}
+
+hr {
+ height: 0px;
+ border: none;
+ border-top: 1px solid #4A6AAA;
+}
+
+hr.footer {
+ height: 1px;
+}
+
+/* @group Member Descriptions */
+
+table.memberdecls {
+ border-spacing: 0px;
+ padding: 0px;
+}
+
+.memberdecls td, .fieldtable tr {
+ -webkit-transition-property: background-color, box-shadow;
+ -webkit-transition-duration: 0.5s;
+ -moz-transition-property: background-color, box-shadow;
+ -moz-transition-duration: 0.5s;
+ -ms-transition-property: background-color, box-shadow;
+ -ms-transition-duration: 0.5s;
+ -o-transition-property: background-color, box-shadow;
+ -o-transition-duration: 0.5s;
+ transition-property: background-color, box-shadow;
+ transition-duration: 0.5s;
+}
+
+.memberdecls td.glow, .fieldtable tr.glow {
+ background-color: cyan;
+ box-shadow: 0 0 15px cyan;
+}
+
+.mdescLeft, .mdescRight,
+.memItemLeft, .memItemRight,
+.memTemplItemLeft, .memTemplItemRight, .memTemplParams {
+ background-color: #F9FAFC;
+ border: none;
+ margin: 4px;
+ padding: 1px 0 0 8px;
+}
+
+.mdescLeft, .mdescRight {
+ padding: 0px 8px 4px 8px;
+ color: #555;
+}
+
+.memSeparator {
+ border-bottom: 1px solid #DEE4F0;
+ line-height: 1px;
+ margin: 0px;
+ padding: 0px;
+}
+
+.memItemLeft, .memTemplItemLeft {
+ white-space: nowrap;
+}
+
+.memItemRight {
+ width: 100%;
+}
+
+.memTemplParams {
+ color: #4665A2;
+ white-space: nowrap;
+ font-size: 80%;
+}
+
+/* @end */
+
+/* @group Member Details */
+
+/* Styles for detailed member documentation */
+
+.memtitle {
+ padding: 8px;
+ border-top: 1px solid #A8B8D9;
+ border-left: 1px solid #A8B8D9;
+ border-right: 1px solid #A8B8D9;
+ border-top-right-radius: 4px;
+ border-top-left-radius: 4px;
+ margin-bottom: -1px;
+ background-image: url('nav_f.png');
+ background-repeat: repeat-x;
+ background-color: #E2E8F2;
+ line-height: 1.25;
+ font-weight: 300;
+ float:left;
+}
+
+.permalink
+{
+ font-size: 65%;
+ display: inline-block;
+ vertical-align: middle;
+}
+
+.memtemplate {
+ font-size: 80%;
+ color: #4665A2;
+ font-weight: normal;
+ margin-left: 9px;
+}
+
+.memnav {
+ background-color: #EBEFF6;
+ border: 1px solid #A3B4D7;
+ text-align: center;
+ margin: 2px;
+ margin-right: 15px;
+ padding: 2px;
+}
+
+.mempage {
+ width: 100%;
+}
+
+.memitem {
+ padding: 0;
+ margin-bottom: 10px;
+ margin-right: 5px;
+ -webkit-transition: box-shadow 0.5s linear;
+ -moz-transition: box-shadow 0.5s linear;
+ -ms-transition: box-shadow 0.5s linear;
+ -o-transition: box-shadow 0.5s linear;
+ transition: box-shadow 0.5s linear;
+ display: table !important;
+ width: 100%;
+}
+
+.memitem.glow {
+ box-shadow: 0 0 15px cyan;
+}
+
+.memname {
+ font-weight: 400;
+ margin-left: 6px;
+}
+
+.memname td {
+ vertical-align: bottom;
+}
+
+.memproto, dl.reflist dt {
+ border-top: 1px solid #A8B8D9;
+ border-left: 1px solid #A8B8D9;
+ border-right: 1px solid #A8B8D9;
+ padding: 6px 0px 6px 0px;
+ color: #253555;
+ font-weight: bold;
+ text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
+ background-color: #DFE5F1;
+ /* opera specific markup */
+ box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
+ border-top-right-radius: 4px;
+ /* firefox specific markup */
+ -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px;
+ -moz-border-radius-topright: 4px;
+ /* webkit specific markup */
+ -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
+ -webkit-border-top-right-radius: 4px;
+
+}
+
+.overload {
+ font-family: "courier new",courier,monospace;
+ font-size: 65%;
+}
+
+.memdoc, dl.reflist dd {
+ border-bottom: 1px solid #A8B8D9;
+ border-left: 1px solid #A8B8D9;
+ border-right: 1px solid #A8B8D9;
+ padding: 6px 10px 2px 10px;
+ background-color: #FBFCFD;
+ border-top-width: 0;
+ background-image:url('nav_g.png');
+ background-repeat:repeat-x;
+ background-color: #FFFFFF;
+ /* opera specific markup */
+ border-bottom-left-radius: 4px;
+ border-bottom-right-radius: 4px;
+ box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
+ /* firefox specific markup */
+ -moz-border-radius-bottomleft: 4px;
+ -moz-border-radius-bottomright: 4px;
+ -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px;
+ /* webkit specific markup */
+ -webkit-border-bottom-left-radius: 4px;
+ -webkit-border-bottom-right-radius: 4px;
+ -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
+}
+
+dl.reflist dt {
+ padding: 5px;
+}
+
+dl.reflist dd {
+ margin: 0px 0px 10px 0px;
+ padding: 5px;
+}
+
+.paramkey {
+ text-align: right;
+}
+
+.paramtype {
+ white-space: nowrap;
+}
+
+.paramname {
+ color: #602020;
+ white-space: nowrap;
+}
+.paramname em {
+ font-style: normal;
+}
+.paramname code {
+ line-height: 14px;
+}
+
+.params, .retval, .exception, .tparams {
+ margin-left: 0px;
+ padding-left: 0px;
+}
+
+.params .paramname, .retval .paramname {
+ font-weight: bold;
+ vertical-align: top;
+}
+
+.params .paramtype {
+ font-style: italic;
+ vertical-align: top;
+}
+
+.params .paramdir {
+ font-family: "courier new",courier,monospace;
+ vertical-align: top;
+}
+
+table.mlabels {
+ border-spacing: 0px;
+}
+
+td.mlabels-left {
+ width: 100%;
+ padding: 0px;
+}
+
+td.mlabels-right {
+ vertical-align: bottom;
+ padding: 0px;
+ white-space: nowrap;
+}
+
+span.mlabels {
+ margin-left: 8px;
+}
+
+span.mlabel {
+ background-color: #728DC1;
+ border-top:1px solid #5373B4;
+ border-left:1px solid #5373B4;
+ border-right:1px solid #C4CFE5;
+ border-bottom:1px solid #C4CFE5;
+ text-shadow: none;
+ color: white;
+ margin-right: 4px;
+ padding: 2px 3px;
+ border-radius: 3px;
+ font-size: 7pt;
+ white-space: nowrap;
+ vertical-align: middle;
+}
+
+
+
+/* @end */
+
+/* these are for tree view inside a (index) page */
+
+div.directory {
+ margin: 10px 0px;
+ border-top: 1px solid #9CAFD4;
+ border-bottom: 1px solid #9CAFD4;
+ width: 100%;
+}
+
+.directory table {
+ border-collapse:collapse;
+}
+
+.directory td {
+ margin: 0px;
+ padding: 0px;
+ vertical-align: top;
+}
+
+.directory td.entry {
+ white-space: nowrap;
+ padding-right: 6px;
+ padding-top: 3px;
+}
+
+.directory td.entry a {
+ outline:none;
+}
+
+.directory td.entry a img {
+ border: none;
+}
+
+.directory td.desc {
+ width: 100%;
+ padding-left: 6px;
+ padding-right: 6px;
+ padding-top: 3px;
+ border-left: 1px solid rgba(0,0,0,0.05);
+}
+
+.directory tr.even {
+ padding-left: 6px;
+ background-color: #F7F8FB;
+}
+
+.directory img {
+ vertical-align: -30%;
+}
+
+.directory .levels {
+ white-space: nowrap;
+ width: 100%;
+ text-align: right;
+ font-size: 9pt;
+}
+
+.directory .levels span {
+ cursor: pointer;
+ padding-left: 2px;
+ padding-right: 2px;
+ color: #3D578C;
+}
+
+.arrow {
+ color: #9CAFD4;
+ -webkit-user-select: none;
+ -khtml-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ cursor: pointer;
+ font-size: 80%;
+ display: inline-block;
+ width: 16px;
+ height: 22px;
+}
+
+.icon {
+ font-family: Arial, Helvetica;
+ font-weight: bold;
+ font-size: 12px;
+ height: 14px;
+ width: 16px;
+ display: inline-block;
+ background-color: #728DC1;
+ color: white;
+ text-align: center;
+ border-radius: 4px;
+ margin-left: 2px;
+ margin-right: 2px;
+}
+
+.icona {
+ width: 24px;
+ height: 22px;
+ display: inline-block;
+}
+
+.iconfopen {
+ width: 24px;
+ height: 18px;
+ margin-bottom: 4px;
+ background-image:url('folderopen.png');
+ background-position: 0px -4px;
+ background-repeat: repeat-y;
+ vertical-align:top;
+ display: inline-block;
+}
+
+.iconfclosed {
+ width: 24px;
+ height: 18px;
+ margin-bottom: 4px;
+ background-image:url('folderclosed.png');
+ background-position: 0px -4px;
+ background-repeat: repeat-y;
+ vertical-align:top;
+ display: inline-block;
+}
+
+.icondoc {
+ width: 24px;
+ height: 18px;
+ margin-bottom: 4px;
+ background-image:url('doc.png');
+ background-position: 0px -4px;
+ background-repeat: repeat-y;
+ vertical-align:top;
+ display: inline-block;
+}
+
+table.directory {
+ font: 400 14px Roboto,sans-serif;
+}
+
+/* @end */
+
+div.dynheader {
+ margin-top: 8px;
+ -webkit-touch-callout: none;
+ -webkit-user-select: none;
+ -khtml-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+
+address {
+ font-style: normal;
+ color: #2A3D61;
+}
+
+table.doxtable caption {
+ caption-side: top;
+}
+
+table.doxtable {
+ border-collapse:collapse;
+ margin-top: 4px;
+ margin-bottom: 4px;
+}
+
+table.doxtable td, table.doxtable th {
+ border: 1px solid #2D4068;
+ padding: 3px 7px 2px;
+}
+
+table.doxtable th {
+ background-color: #374F7F;
+ color: #FFFFFF;
+ font-size: 110%;
+ padding-bottom: 4px;
+ padding-top: 5px;
+}
+
+table.fieldtable {
+ /*width: 100%;*/
+ margin-bottom: 10px;
+ border: 1px solid #A8B8D9;
+ border-spacing: 0px;
+ -moz-border-radius: 4px;
+ -webkit-border-radius: 4px;
+ border-radius: 4px;
+ -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px;
+ -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15);
+ box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15);
+}
+
+.fieldtable td, .fieldtable th {
+ padding: 3px 7px 2px;
+}
+
+.fieldtable td.fieldtype, .fieldtable td.fieldname {
+ white-space: nowrap;
+ border-right: 1px solid #A8B8D9;
+ border-bottom: 1px solid #A8B8D9;
+ vertical-align: top;
+}
+
+.fieldtable td.fieldname {
+ padding-top: 3px;
+}
+
+.fieldtable td.fielddoc {
+ border-bottom: 1px solid #A8B8D9;
+ /*width: 100%;*/
+}
+
+.fieldtable td.fielddoc p:first-child {
+ margin-top: 0px;
+}
+
+.fieldtable td.fielddoc p:last-child {
+ margin-bottom: 2px;
+}
+
+.fieldtable tr:last-child td {
+ border-bottom: none;
+}
+
+.fieldtable th {
+ background-image:url('nav_f.png');
+ background-repeat:repeat-x;
+ background-color: #E2E8F2;
+ font-size: 90%;
+ color: #253555;
+ padding-bottom: 4px;
+ padding-top: 5px;
+ text-align:left;
+ font-weight: 400;
+ -moz-border-radius-topleft: 4px;
+ -moz-border-radius-topright: 4px;
+ -webkit-border-top-left-radius: 4px;
+ -webkit-border-top-right-radius: 4px;
+ border-top-left-radius: 4px;
+ border-top-right-radius: 4px;
+ border-bottom: 1px solid #A8B8D9;
+}
+
+
+.tabsearch {
+ top: 0px;
+ left: 10px;
+ height: 36px;
+ background-image: url('tab_b.png');
+ z-index: 101;
+ overflow: hidden;
+ font-size: 13px;
+}
+
+.navpath ul
+{
+ font-size: 11px;
+ background-image:url('tab_b.png');
+ background-repeat:repeat-x;
+ background-position: 0 -5px;
+ height:30px;
+ line-height:30px;
+ color:#8AA0CC;
+ border:solid 1px #C2CDE4;
+ overflow:hidden;
+ margin:0px;
+ padding:0px;
+}
+
+.navpath li
+{
+ list-style-type:none;
+ float:left;
+ padding-left:10px;
+ padding-right:15px;
+ background-image:url('bc_s.png');
+ background-repeat:no-repeat;
+ background-position:right;
+ color:#364D7C;
+}
+
+.navpath li.navelem a
+{
+ height:32px;
+ display:block;
+ text-decoration: none;
+ outline: none;
+ color: #283A5D;
+ font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif;
+ text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
+ text-decoration: none;
+}
+
+.navpath li.navelem a:hover
+{
+ color:#6884BD;
+}
+
+.navpath li.footer
+{
+ list-style-type:none;
+ float:right;
+ padding-left:10px;
+ padding-right:15px;
+ background-image:none;
+ background-repeat:no-repeat;
+ background-position:right;
+ color:#364D7C;
+ font-size: 8pt;
+}
+
+
+div.summary
+{
+ float: right;
+ font-size: 8pt;
+ padding-right: 5px;
+ width: 50%;
+ text-align: right;
+}
+
+div.summary a
+{
+ white-space: nowrap;
+}
+
+table.classindex
+{
+ margin: 10px;
+ white-space: nowrap;
+ margin-left: 3%;
+ margin-right: 3%;
+ width: 94%;
+ border: 0;
+ border-spacing: 0;
+ padding: 0;
+}
+
+div.ingroups
+{
+ font-size: 8pt;
+ width: 50%;
+ text-align: left;
+}
+
+div.ingroups a
+{
+ white-space: nowrap;
+}
+
+div.header
+{
+ background-image:url('nav_h.png');
+ background-repeat:repeat-x;
+ background-color: #F9FAFC;
+ margin: 0px;
+ border-bottom: 1px solid #C4CFE5;
+}
+
+div.headertitle
+{
+ padding: 5px 5px 5px 10px;
+}
+
+dl
+{
+ padding: 0 0 0 10px;
+}
+
+/* dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug */
+dl.section
+{
+ margin-left: 0px;
+ padding-left: 0px;
+}
+
+dl.note
+{
+ margin-left:-7px;
+ padding-left: 3px;
+ border-left:4px solid;
+ border-color: #D0C000;
+}
+
+dl.warning, dl.attention
+{
+ margin-left:-7px;
+ padding-left: 3px;
+ border-left:4px solid;
+ border-color: #FF0000;
+}
+
+dl.pre, dl.post, dl.invariant
+{
+ margin-left:-7px;
+ padding-left: 3px;
+ border-left:4px solid;
+ border-color: #00D000;
+}
+
+dl.deprecated
+{
+ margin-left:-7px;
+ padding-left: 3px;
+ border-left:4px solid;
+ border-color: #505050;
+}
+
+dl.todo
+{
+ margin-left:-7px;
+ padding-left: 3px;
+ border-left:4px solid;
+ border-color: #00C0E0;
+}
+
+dl.test
+{
+ margin-left:-7px;
+ padding-left: 3px;
+ border-left:4px solid;
+ border-color: #3030E0;
+}
+
+dl.bug
+{
+ margin-left:-7px;
+ padding-left: 3px;
+ border-left:4px solid;
+ border-color: #C08050;
+}
+
+dl.section dd {
+ margin-bottom: 6px;
+}
+
+
+#projectlogo
+{
+ text-align: center;
+ vertical-align: bottom;
+ border-collapse: separate;
+}
+
+#projectlogo img
+{
+ border: 0px none;
+}
+
+#projectalign
+{
+ vertical-align: middle;
+}
+
+#projectname
+{
+ font: 300% Tahoma, Arial,sans-serif;
+ margin: 0px;
+ padding: 2px 0px;
+}
+
+#projectbrief
+{
+ font: 120% Tahoma, Arial,sans-serif;
+ margin: 0px;
+ padding: 0px;
+}
+
+#projectnumber
+{
+ font: 50% Tahoma, Arial,sans-serif;
+ margin: 0px;
+ padding: 0px;
+}
+
+#titlearea
+{
+ padding: 0px;
+ margin: 0px;
+ width: 100%;
+ border-bottom: 1px solid #5373B4;
+}
+
+.image
+{
+ text-align: center;
+}
+
+.dotgraph
+{
+ text-align: center;
+}
+
+.mscgraph
+{
+ text-align: center;
+}
+
+.plantumlgraph
+{
+ text-align: center;
+}
+
+.diagraph
+{
+ text-align: center;
+}
+
+.caption
+{
+ font-weight: bold;
+}
+
+div.zoom
+{
+ border: 1px solid #90A5CE;
+}
+
+dl.citelist {
+ margin-bottom:50px;
+}
+
+dl.citelist dt {
+ color:#334975;
+ float:left;
+ font-weight:bold;
+ margin-right:10px;
+ padding:5px;
+}
+
+dl.citelist dd {
+ margin:2px 0;
+ padding:5px 0;
+}
+
+div.toc {
+ padding: 14px 25px;
+ background-color: #F4F6FA;
+ border: 1px solid #D8DFEE;
+ border-radius: 7px 7px 7px 7px;
+ float: right;
+ height: auto;
+ margin: 0 8px 10px 10px;
+ width: 200px;
+}
+
+div.toc li {
+ background: url("bdwn.png") no-repeat scroll 0 5px transparent;
+ font: 10px/1.2 Verdana,DejaVu Sans,Geneva,sans-serif;
+ margin-top: 5px;
+ padding-left: 10px;
+ padding-top: 2px;
+}
+
+div.toc h3 {
+ font: bold 12px/1.2 Arial,FreeSans,sans-serif;
+ color: #4665A2;
+ border-bottom: 0 none;
+ margin: 0;
+}
+
+div.toc ul {
+ list-style: none outside none;
+ border: medium none;
+ padding: 0px;
+}
+
+div.toc li.level1 {
+ margin-left: 0px;
+}
+
+div.toc li.level2 {
+ margin-left: 15px;
+}
+
+div.toc li.level3 {
+ margin-left: 30px;
+}
+
+div.toc li.level4 {
+ margin-left: 45px;
+}
+
+.inherit_header {
+ font-weight: bold;
+ color: gray;
+ cursor: pointer;
+ -webkit-touch-callout: none;
+ -webkit-user-select: none;
+ -khtml-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+
+.inherit_header td {
+ padding: 6px 0px 2px 5px;
+}
+
+.inherit {
+ display: none;
+}
+
+tr.heading h2 {
+ margin-top: 12px;
+ margin-bottom: 4px;
+}
+
+/* tooltip related style info */
+
+.ttc {
+ position: absolute;
+ display: none;
+}
+
+#powerTip {
+ cursor: default;
+ white-space: nowrap;
+ background-color: white;
+ border: 1px solid gray;
+ border-radius: 4px 4px 4px 4px;
+ box-shadow: 1px 1px 7px gray;
+ display: none;
+ font-size: smaller;
+ max-width: 80%;
+ opacity: 0.9;
+ padding: 1ex 1em 1em;
+ position: absolute;
+ z-index: 2147483647;
+}
+
+#powerTip div.ttdoc {
+ color: grey;
+ font-style: italic;
+}
+
+#powerTip div.ttname a {
+ font-weight: bold;
+}
+
+#powerTip div.ttname {
+ font-weight: bold;
+}
+
+#powerTip div.ttdeci {
+ color: #006318;
+}
+
+#powerTip div {
+ margin: 0px;
+ padding: 0px;
+ font: 12px/16px Roboto,sans-serif;
+}
+
+#powerTip:before, #powerTip:after {
+ content: "";
+ position: absolute;
+ margin: 0px;
+}
+
+#powerTip.n:after, #powerTip.n:before,
+#powerTip.s:after, #powerTip.s:before,
+#powerTip.w:after, #powerTip.w:before,
+#powerTip.e:after, #powerTip.e:before,
+#powerTip.ne:after, #powerTip.ne:before,
+#powerTip.se:after, #powerTip.se:before,
+#powerTip.nw:after, #powerTip.nw:before,
+#powerTip.sw:after, #powerTip.sw:before {
+ border: solid transparent;
+ content: " ";
+ height: 0;
+ width: 0;
+ position: absolute;
+}
+
+#powerTip.n:after, #powerTip.s:after,
+#powerTip.w:after, #powerTip.e:after,
+#powerTip.nw:after, #powerTip.ne:after,
+#powerTip.sw:after, #powerTip.se:after {
+ border-color: rgba(255, 255, 255, 0);
+}
+
+#powerTip.n:before, #powerTip.s:before,
+#powerTip.w:before, #powerTip.e:before,
+#powerTip.nw:before, #powerTip.ne:before,
+#powerTip.sw:before, #powerTip.se:before {
+ border-color: rgba(128, 128, 128, 0);
+}
+
+#powerTip.n:after, #powerTip.n:before,
+#powerTip.ne:after, #powerTip.ne:before,
+#powerTip.nw:after, #powerTip.nw:before {
+ top: 100%;
+}
+
+#powerTip.n:after, #powerTip.ne:after, #powerTip.nw:after {
+ border-top-color: #ffffff;
+ border-width: 10px;
+ margin: 0px -10px;
+}
+#powerTip.n:before {
+ border-top-color: #808080;
+ border-width: 11px;
+ margin: 0px -11px;
+}
+#powerTip.n:after, #powerTip.n:before {
+ left: 50%;
+}
+
+#powerTip.nw:after, #powerTip.nw:before {
+ right: 14px;
+}
+
+#powerTip.ne:after, #powerTip.ne:before {
+ left: 14px;
+}
+
+#powerTip.s:after, #powerTip.s:before,
+#powerTip.se:after, #powerTip.se:before,
+#powerTip.sw:after, #powerTip.sw:before {
+ bottom: 100%;
+}
+
+#powerTip.s:after, #powerTip.se:after, #powerTip.sw:after {
+ border-bottom-color: #ffffff;
+ border-width: 10px;
+ margin: 0px -10px;
+}
+
+#powerTip.s:before, #powerTip.se:before, #powerTip.sw:before {
+ border-bottom-color: #808080;
+ border-width: 11px;
+ margin: 0px -11px;
+}
+
+#powerTip.s:after, #powerTip.s:before {
+ left: 50%;
+}
+
+#powerTip.sw:after, #powerTip.sw:before {
+ right: 14px;
+}
+
+#powerTip.se:after, #powerTip.se:before {
+ left: 14px;
+}
+
+#powerTip.e:after, #powerTip.e:before {
+ left: 100%;
+}
+#powerTip.e:after {
+ border-left-color: #ffffff;
+ border-width: 10px;
+ top: 50%;
+ margin-top: -10px;
+}
+#powerTip.e:before {
+ border-left-color: #808080;
+ border-width: 11px;
+ top: 50%;
+ margin-top: -11px;
+}
+
+#powerTip.w:after, #powerTip.w:before {
+ right: 100%;
+}
+#powerTip.w:after {
+ border-right-color: #ffffff;
+ border-width: 10px;
+ top: 50%;
+ margin-top: -10px;
+}
+#powerTip.w:before {
+ border-right-color: #808080;
+ border-width: 11px;
+ top: 50%;
+ margin-top: -11px;
+}
+
+@media print
+{
+ #top { display: none; }
+ #side-nav { display: none; }
+ #nav-path { display: none; }
+ body { overflow:visible; }
+ h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
+ .summary { display: none; }
+ .memitem { page-break-inside: avoid; }
+ #doc-content
+ {
+ margin-left:0 !important;
+ height:auto !important;
+ width:auto !important;
+ overflow:inherit;
+ display:inline;
+ }
+}
+
+/* @group Markdown */
+
+/*
+table.markdownTable {
+ border-collapse:collapse;
+ margin-top: 4px;
+ margin-bottom: 4px;
+}
+
+table.markdownTable td, table.markdownTable th {
+ border: 1px solid #2D4068;
+ padding: 3px 7px 2px;
+}
+
+table.markdownTableHead tr {
+}
+
+table.markdownTableBodyLeft td, table.markdownTable th {
+ border: 1px solid #2D4068;
+ padding: 3px 7px 2px;
+}
+
+th.markdownTableHeadLeft th.markdownTableHeadRight th.markdownTableHeadCenter th.markdownTableHeadNone {
+ background-color: #374F7F;
+ color: #FFFFFF;
+ font-size: 110%;
+ padding-bottom: 4px;
+ padding-top: 5px;
+}
+
+th.markdownTableHeadLeft {
+ text-align: left
+}
+
+th.markdownTableHeadRight {
+ text-align: right
+}
+
+th.markdownTableHeadCenter {
+ text-align: center
+}
+*/
+
+table.markdownTable {
+ border-collapse:collapse;
+ margin-top: 4px;
+ margin-bottom: 4px;
+}
+
+table.markdownTable td, table.markdownTable th {
+ border: 1px solid #2D4068;
+ padding: 3px 7px 2px;
+}
+
+table.markdownTable tr {
+}
+
+th.markdownTableHeadLeft, th.markdownTableHeadRight, th.markdownTableHeadCenter, th.markdownTableHeadNone {
+ background-color: #374F7F;
+ color: #FFFFFF;
+ font-size: 110%;
+ padding-bottom: 4px;
+ padding-top: 5px;
+}
+
+th.markdownTableHeadLeft, td.markdownTableBodyLeft {
+ text-align: left
+}
+
+th.markdownTableHeadRight, td.markdownTableBodyRight {
+ text-align: right
+}
+
+th.markdownTableHeadCenter, td.markdownTableBodyCenter {
+ text-align: center
+}
+
+
+/* @end */
diff --git a/doc/html/doxygen.png b/doc/html/doxygen.png
new file mode 100644
index 0000000..3ff17d8
--- /dev/null
+++ b/doc/html/doxygen.png
Binary files differ
diff --git a/doc/html/dynsections.js b/doc/html/dynsections.js
new file mode 100644
index 0000000..85e1836
--- /dev/null
+++ b/doc/html/dynsections.js
@@ -0,0 +1,97 @@
+function toggleVisibility(linkObj)
+{
+ var base = $(linkObj).attr('id');
+ var summary = $('#'+base+'-summary');
+ var content = $('#'+base+'-content');
+ var trigger = $('#'+base+'-trigger');
+ var src=$(trigger).attr('src');
+ if (content.is(':visible')===true) {
+ content.hide();
+ summary.show();
+ $(linkObj).addClass('closed').removeClass('opened');
+ $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png');
+ } else {
+ content.show();
+ summary.hide();
+ $(linkObj).removeClass('closed').addClass('opened');
+ $(trigger).attr('src',src.substring(0,src.length-10)+'open.png');
+ }
+ return false;
+}
+
+function updateStripes()
+{
+ $('table.directory tr').
+ removeClass('even').filter(':visible:even').addClass('even');
+}
+
+function toggleLevel(level)
+{
+ $('table.directory tr').each(function() {
+ var l = this.id.split('_').length-1;
+ var i = $('#img'+this.id.substring(3));
+ var a = $('#arr'+this.id.substring(3));
+ if (l<level+1) {
+ i.removeClass('iconfopen iconfclosed').addClass('iconfopen');
+ a.html('&#9660;');
+ $(this).show();
+ } else if (l==level+1) {
+ i.removeClass('iconfclosed iconfopen').addClass('iconfclosed');
+ a.html('&#9658;');
+ $(this).show();
+ } else {
+ $(this).hide();
+ }
+ });
+ updateStripes();
+}
+
+function toggleFolder(id)
+{
+ // the clicked row
+ var currentRow = $('#row_'+id);
+
+ // all rows after the clicked row
+ var rows = currentRow.nextAll("tr");
+
+ var re = new RegExp('^row_'+id+'\\d+_$', "i"); //only one sub
+
+ // only match elements AFTER this one (can't hide elements before)
+ var childRows = rows.filter(function() { return this.id.match(re); });
+
+ // first row is visible we are HIDING
+ if (childRows.filter(':first').is(':visible')===true) {
+ // replace down arrow by right arrow for current row
+ var currentRowSpans = currentRow.find("span");
+ currentRowSpans.filter(".iconfopen").removeClass("iconfopen").addClass("iconfclosed");
+ currentRowSpans.filter(".arrow").html('&#9658;');
+ rows.filter("[id^=row_"+id+"]").hide(); // hide all children
+ } else { // we are SHOWING
+ // replace right arrow by down arrow for current row
+ var currentRowSpans = currentRow.find("span");
+ currentRowSpans.filter(".iconfclosed").removeClass("iconfclosed").addClass("iconfopen");
+ currentRowSpans.filter(".arrow").html('&#9660;');
+ // replace down arrows by right arrows for child rows
+ var childRowsSpans = childRows.find("span");
+ childRowsSpans.filter(".iconfopen").removeClass("iconfopen").addClass("iconfclosed");
+ childRowsSpans.filter(".arrow").html('&#9658;');
+ childRows.show(); //show all children
+ }
+ updateStripes();
+}
+
+
+function toggleInherit(id)
+{
+ var rows = $('tr.inherit.'+id);
+ var img = $('tr.inherit_header.'+id+' img');
+ var src = $(img).attr('src');
+ if (rows.filter(':first').is(':visible')===true) {
+ rows.css('display','none');
+ $(img).attr('src',src.substring(0,src.length-8)+'closed.png');
+ } else {
+ rows.css('display','table-row'); // using show() causes jump in firefox
+ $(img).attr('src',src.substring(0,src.length-10)+'open.png');
+ }
+}
+
diff --git a/doc/html/files.html b/doc/html/files.html
new file mode 100644
index 0000000..31767dc
--- /dev/null
+++ b/doc/html/files.html
@@ -0,0 +1,82 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: File List</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+</div><!-- top -->
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div class="header">
+ <div class="headertitle">
+<div class="title">File List</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="textblock">Here is a list of all documented files with brief descriptions:</div><div class="directory">
+<div class="levels">[detail level <span onclick="javascript:toggleLevel(1);">1</span><span onclick="javascript:toggleLevel(2);">2</span>]</div><table class="directory">
+<tr id="row_0_" class="even"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_0_" class="arrow" onclick="toggleFolder('0_')">&#9660;</span><span id="img_0_" class="iconfopen" onclick="toggleFolder('0_')">&#160;</span><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html" target="_self">src</a></td><td class="desc"></td></tr>
+<tr id="row_0_0_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="chunks_8h_source.html"><span class="icondoc"></span></a><b>chunks.h</b></td><td class="desc"></td></tr>
+<tr id="row_0_1_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="commands_8h_source.html"><span class="icondoc"></span></a><b>commands.h</b></td><td class="desc"></td></tr>
+<tr id="row_0_2_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="qhexedit_8h_source.html"><span class="icondoc"></span></a><b>qhexedit.h</b></td><td class="desc"></td></tr>
+<tr id="row_0_3_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="_q_hex_edit_plugin_8h_source.html"><span class="icondoc"></span></a><b>QHexEditPlugin.h</b></td><td class="desc"></td></tr>
+</table>
+</div><!-- directory -->
+</div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/folderclosed.png b/doc/html/folderclosed.png
new file mode 100644
index 0000000..bb8ab35
--- /dev/null
+++ b/doc/html/folderclosed.png
Binary files differ
diff --git a/doc/html/folderopen.png b/doc/html/folderopen.png
new file mode 100644
index 0000000..d6c7f67
--- /dev/null
+++ b/doc/html/folderopen.png
Binary files differ
diff --git a/doc/html/functions.html b/doc/html/functions.html
new file mode 100644
index 0000000..33b2772
--- /dev/null
+++ b/doc/html/functions.html
@@ -0,0 +1,244 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: Class Members</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+</div><!-- top -->
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div class="contents">
+<div class="textblock">Here is a list of all documented class members with links to the class documentation for each member:</div>
+
+<h3><a id="index_a"></a>- a -</h3><ul>
+<li>addressArea
+: <a class="el" href="class_q_hex_edit.html#aeaa9f3751f53b91df51cfd2863bf48ee">QHexEdit</a>
+</li>
+<li>addressAreaColor
+: <a class="el" href="class_q_hex_edit.html#a6e27b73514e243c0b8b2a3efafbb5e32">QHexEdit</a>
+</li>
+<li>addressOffset
+: <a class="el" href="class_q_hex_edit.html#afe1e80827cacce84505f8b0ef6421a0a">QHexEdit</a>
+</li>
+<li>addressWidth
+: <a class="el" href="class_q_hex_edit.html#a11b672fd38a7c48949ccce3228474b2f">QHexEdit</a>
+</li>
+<li>asciiArea
+: <a class="el" href="class_q_hex_edit.html#a0e297a4a212a9d7addbbf82472e1acb2">QHexEdit</a>
+</li>
+</ul>
+
+
+<h3><a id="index_b"></a>- b -</h3><ul>
+<li>bytesPerLine
+: <a class="el" href="class_q_hex_edit.html#afec14c7e26b2b98f250d4cc3df822972">QHexEdit</a>
+</li>
+</ul>
+
+
+<h3><a id="index_c"></a>- c -</h3><ul>
+<li>currentAddressChanged()
+: <a class="el" href="class_q_hex_edit.html#a1cd8ece4fd9ea4aef38a9844184ae9bc">QHexEdit</a>
+</li>
+<li>currentSizeChanged()
+: <a class="el" href="class_q_hex_edit.html#a4b3f87d1c50bc1570f191d93b7051359">QHexEdit</a>
+</li>
+<li>cursorPosition
+: <a class="el" href="class_q_hex_edit.html#aa50b3ebe0d22133891dce0c8237846c7">QHexEdit</a>
+</li>
+</ul>
+
+
+<h3><a id="index_d"></a>- d -</h3><ul>
+<li>data
+: <a class="el" href="class_q_hex_edit.html#a7f4e532611a6eff27b75d3cb88e91618">QHexEdit</a>
+</li>
+<li>dataAt()
+: <a class="el" href="class_q_hex_edit.html#a83c0c585108cc204852ff2e30214253a">QHexEdit</a>
+</li>
+<li>dataChanged()
+: <a class="el" href="class_q_hex_edit.html#a4ea1551815031057e6b3297406f93a5d">QHexEdit</a>
+</li>
+<li>dynamicBytesPerLine
+: <a class="el" href="class_q_hex_edit.html#a788d65f5556535a49879a3a052a9a313">QHexEdit</a>
+</li>
+</ul>
+
+
+<h3><a id="index_e"></a>- e -</h3><ul>
+<li>ensureVisible()
+: <a class="el" href="class_q_hex_edit.html#a43b1af42e25e3beb48932f38aa4af46e">QHexEdit</a>
+</li>
+</ul>
+
+
+<h3><a id="index_f"></a>- f -</h3><ul>
+<li>font
+: <a class="el" href="class_q_hex_edit.html#a9579dc7273c48b89c9e4f26adda78671">QHexEdit</a>
+</li>
+</ul>
+
+
+<h3><a id="index_h"></a>- h -</h3><ul>
+<li>hexCaps
+: <a class="el" href="class_q_hex_edit.html#a4edfedb78ed9ae52cd08436e7cca0285">QHexEdit</a>
+</li>
+<li>highlighting
+: <a class="el" href="class_q_hex_edit.html#ae3669260a4d5c2fad5651893a17258fd">QHexEdit</a>
+</li>
+<li>highlightingColor
+: <a class="el" href="class_q_hex_edit.html#a9e8ed54e47fec94cfd64b14ea1f7cee8">QHexEdit</a>
+</li>
+</ul>
+
+
+<h3><a id="index_i"></a>- i -</h3><ul>
+<li>indexOf()
+: <a class="el" href="class_q_hex_edit.html#a183ec73d5ef567770dc4860e9d33e239">QHexEdit</a>
+</li>
+<li>insert()
+: <a class="el" href="class_q_hex_edit.html#a1593f2dee03be5738df96da67c9c83d9">QHexEdit</a>
+</li>
+<li>isModified()
+: <a class="el" href="class_q_hex_edit.html#ad8339ee39adf7863e46a9c57a7f9db0a">QHexEdit</a>
+</li>
+</ul>
+
+
+<h3><a id="index_l"></a>- l -</h3><ul>
+<li>lastIndexOf()
+: <a class="el" href="class_q_hex_edit.html#aac57ef2e0e73af21e33413a166a94e7a">QHexEdit</a>
+</li>
+</ul>
+
+
+<h3><a id="index_o"></a>- o -</h3><ul>
+<li>overwriteMode
+: <a class="el" href="class_q_hex_edit.html#a941a91c36eb8429c41096bfcd45f38c1">QHexEdit</a>
+</li>
+<li>overwriteModeChanged()
+: <a class="el" href="class_q_hex_edit.html#a15abf5af9aa3a91d18ec17cc33b8e4a1">QHexEdit</a>
+</li>
+</ul>
+
+
+<h3><a id="index_q"></a>- q -</h3><ul>
+<li>QHexEdit()
+: <a class="el" href="class_q_hex_edit.html#aec1f1e5b7652e7e39a8ca5e73ed63373">QHexEdit</a>
+</li>
+</ul>
+
+
+<h3><a id="index_r"></a>- r -</h3><ul>
+<li>readOnly
+: <a class="el" href="class_q_hex_edit.html#acb3044d1bb0c99876ddfa33772e91209">QHexEdit</a>
+</li>
+<li>redo()
+: <a class="el" href="class_q_hex_edit.html#a9c9650f363859e42a0ebf4ed6a1c4ae0">QHexEdit</a>
+</li>
+<li>remove()
+: <a class="el" href="class_q_hex_edit.html#a6fee4dba9a2eaeeccccbd84111f8bf2c">QHexEdit</a>
+</li>
+<li>replace()
+: <a class="el" href="class_q_hex_edit.html#a386bff35c7453caaf547d203026fb462">QHexEdit</a>
+</li>
+</ul>
+
+
+<h3><a id="index_s"></a>- s -</h3><ul>
+<li>selectedData()
+: <a class="el" href="class_q_hex_edit.html#ac1f9ac4d3ec5bedabd3aeedda3191b20">QHexEdit</a>
+</li>
+<li>selectionColor
+: <a class="el" href="class_q_hex_edit.html#ac0b628f34316aff9e18fc73a738250d7">QHexEdit</a>
+</li>
+<li>selectionToReadableString()
+: <a class="el" href="class_q_hex_edit.html#a2ada1230ace92da4e1f006b88ab3b503">QHexEdit</a>
+</li>
+<li>setData()
+: <a class="el" href="class_q_hex_edit.html#ab5221718179da17cbcd9db3bf6574df7">QHexEdit</a>
+</li>
+<li>setFont()
+: <a class="el" href="class_q_hex_edit.html#a57221461a9c9e1b2c0e1882788ac9911">QHexEdit</a>
+</li>
+</ul>
+
+
+<h3><a id="index_t"></a>- t -</h3><ul>
+<li>toReadableString()
+: <a class="el" href="class_q_hex_edit.html#a43c6db0509fee9b10198bef48d8eaa2e">QHexEdit</a>
+</li>
+</ul>
+
+
+<h3><a id="index_u"></a>- u -</h3><ul>
+<li>undo()
+: <a class="el" href="class_q_hex_edit.html#a57a6f775cd612f901567cc005988c6de">QHexEdit</a>
+</li>
+</ul>
+
+
+<h3><a id="index_w"></a>- w -</h3><ul>
+<li>write()
+: <a class="el" href="class_q_hex_edit.html#acc71d91a132a7cf6504d3f20de0ef4ce">QHexEdit</a>
+</li>
+</ul>
+</div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/functions_func.html b/doc/html/functions_func.html
new file mode 100644
index 0000000..dfbdaeb
--- /dev/null
+++ b/doc/html/functions_func.html
@@ -0,0 +1,137 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: Class Members - Functions</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+</div><!-- top -->
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div class="contents">
+&#160;<ul>
+<li>currentAddressChanged()
+: <a class="el" href="class_q_hex_edit.html#a1cd8ece4fd9ea4aef38a9844184ae9bc">QHexEdit</a>
+</li>
+<li>currentSizeChanged()
+: <a class="el" href="class_q_hex_edit.html#a4b3f87d1c50bc1570f191d93b7051359">QHexEdit</a>
+</li>
+<li>cursorPosition()
+: <a class="el" href="class_q_hex_edit.html#a1d833c6a3957317f4daacc54e0c99919">QHexEdit</a>
+</li>
+<li>dataAt()
+: <a class="el" href="class_q_hex_edit.html#a83c0c585108cc204852ff2e30214253a">QHexEdit</a>
+</li>
+<li>dataChanged()
+: <a class="el" href="class_q_hex_edit.html#a4ea1551815031057e6b3297406f93a5d">QHexEdit</a>
+</li>
+<li>ensureVisible()
+: <a class="el" href="class_q_hex_edit.html#a43b1af42e25e3beb48932f38aa4af46e">QHexEdit</a>
+</li>
+<li>indexOf()
+: <a class="el" href="class_q_hex_edit.html#a183ec73d5ef567770dc4860e9d33e239">QHexEdit</a>
+</li>
+<li>insert()
+: <a class="el" href="class_q_hex_edit.html#a1593f2dee03be5738df96da67c9c83d9">QHexEdit</a>
+</li>
+<li>isModified()
+: <a class="el" href="class_q_hex_edit.html#ad8339ee39adf7863e46a9c57a7f9db0a">QHexEdit</a>
+</li>
+<li>lastIndexOf()
+: <a class="el" href="class_q_hex_edit.html#aac57ef2e0e73af21e33413a166a94e7a">QHexEdit</a>
+</li>
+<li>overwriteModeChanged()
+: <a class="el" href="class_q_hex_edit.html#a15abf5af9aa3a91d18ec17cc33b8e4a1">QHexEdit</a>
+</li>
+<li>QHexEdit()
+: <a class="el" href="class_q_hex_edit.html#aec1f1e5b7652e7e39a8ca5e73ed63373">QHexEdit</a>
+</li>
+<li>redo()
+: <a class="el" href="class_q_hex_edit.html#a9c9650f363859e42a0ebf4ed6a1c4ae0">QHexEdit</a>
+</li>
+<li>remove()
+: <a class="el" href="class_q_hex_edit.html#a6fee4dba9a2eaeeccccbd84111f8bf2c">QHexEdit</a>
+</li>
+<li>replace()
+: <a class="el" href="class_q_hex_edit.html#a386bff35c7453caaf547d203026fb462">QHexEdit</a>
+</li>
+<li>selectedData()
+: <a class="el" href="class_q_hex_edit.html#ac1f9ac4d3ec5bedabd3aeedda3191b20">QHexEdit</a>
+</li>
+<li>selectionToReadableString()
+: <a class="el" href="class_q_hex_edit.html#a2ada1230ace92da4e1f006b88ab3b503">QHexEdit</a>
+</li>
+<li>setData()
+: <a class="el" href="class_q_hex_edit.html#ab5221718179da17cbcd9db3bf6574df7">QHexEdit</a>
+</li>
+<li>setFont()
+: <a class="el" href="class_q_hex_edit.html#a57221461a9c9e1b2c0e1882788ac9911">QHexEdit</a>
+</li>
+<li>toReadableString()
+: <a class="el" href="class_q_hex_edit.html#a43c6db0509fee9b10198bef48d8eaa2e">QHexEdit</a>
+</li>
+<li>undo()
+: <a class="el" href="class_q_hex_edit.html#a57a6f775cd612f901567cc005988c6de">QHexEdit</a>
+</li>
+<li>write()
+: <a class="el" href="class_q_hex_edit.html#acc71d91a132a7cf6504d3f20de0ef4ce">QHexEdit</a>
+</li>
+</ul>
+</div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/functions_prop.html b/doc/html/functions_prop.html
new file mode 100644
index 0000000..1ebadec
--- /dev/null
+++ b/doc/html/functions_prop.html
@@ -0,0 +1,119 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: Class Members - Properties</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+</div><!-- top -->
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div class="contents">
+&#160;<ul>
+<li>addressArea
+: <a class="el" href="class_q_hex_edit.html#aeaa9f3751f53b91df51cfd2863bf48ee">QHexEdit</a>
+</li>
+<li>addressAreaColor
+: <a class="el" href="class_q_hex_edit.html#a6e27b73514e243c0b8b2a3efafbb5e32">QHexEdit</a>
+</li>
+<li>addressOffset
+: <a class="el" href="class_q_hex_edit.html#afe1e80827cacce84505f8b0ef6421a0a">QHexEdit</a>
+</li>
+<li>addressWidth
+: <a class="el" href="class_q_hex_edit.html#a11b672fd38a7c48949ccce3228474b2f">QHexEdit</a>
+</li>
+<li>asciiArea
+: <a class="el" href="class_q_hex_edit.html#a0e297a4a212a9d7addbbf82472e1acb2">QHexEdit</a>
+</li>
+<li>bytesPerLine
+: <a class="el" href="class_q_hex_edit.html#afec14c7e26b2b98f250d4cc3df822972">QHexEdit</a>
+</li>
+<li>cursorPosition
+: <a class="el" href="class_q_hex_edit.html#aa50b3ebe0d22133891dce0c8237846c7">QHexEdit</a>
+</li>
+<li>data
+: <a class="el" href="class_q_hex_edit.html#a7f4e532611a6eff27b75d3cb88e91618">QHexEdit</a>
+</li>
+<li>dynamicBytesPerLine
+: <a class="el" href="class_q_hex_edit.html#a788d65f5556535a49879a3a052a9a313">QHexEdit</a>
+</li>
+<li>font
+: <a class="el" href="class_q_hex_edit.html#a9579dc7273c48b89c9e4f26adda78671">QHexEdit</a>
+</li>
+<li>hexCaps
+: <a class="el" href="class_q_hex_edit.html#a4edfedb78ed9ae52cd08436e7cca0285">QHexEdit</a>
+</li>
+<li>highlighting
+: <a class="el" href="class_q_hex_edit.html#ae3669260a4d5c2fad5651893a17258fd">QHexEdit</a>
+</li>
+<li>highlightingColor
+: <a class="el" href="class_q_hex_edit.html#a9e8ed54e47fec94cfd64b14ea1f7cee8">QHexEdit</a>
+</li>
+<li>overwriteMode
+: <a class="el" href="class_q_hex_edit.html#a941a91c36eb8429c41096bfcd45f38c1">QHexEdit</a>
+</li>
+<li>readOnly
+: <a class="el" href="class_q_hex_edit.html#acb3044d1bb0c99876ddfa33772e91209">QHexEdit</a>
+</li>
+<li>selectionColor
+: <a class="el" href="class_q_hex_edit.html#ac0b628f34316aff9e18fc73a738250d7">QHexEdit</a>
+</li>
+</ul>
+</div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/hierarchy.html b/doc/html/hierarchy.html
new file mode 100644
index 0000000..0b689b9
--- /dev/null
+++ b/doc/html/hierarchy.html
@@ -0,0 +1,83 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: Class Hierarchy</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+</div><!-- top -->
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div class="header">
+ <div class="headertitle">
+<div class="title">Class Hierarchy</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="textblock">This inheritance list is sorted roughly, but not completely, alphabetically:</div><div class="directory">
+<div class="levels">[detail level <span onclick="javascript:toggleLevel(1);">1</span><span onclick="javascript:toggleLevel(2);">2</span>]</div><table class="directory">
+<tr id="row_0_" class="even"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_0_" class="arrow" onclick="toggleFolder('0_')">&#9660;</span><span class="icona"><span class="icon">C</span></span><b>QAbstractScrollArea</b></td><td class="desc"></td></tr>
+<tr id="row_0_0_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_q_hex_edit.html" target="_self">QHexEdit</a></td><td class="desc"></td></tr>
+<tr id="row_1_" class="even"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_1_" class="arrow" onclick="toggleFolder('1_')">&#9660;</span><span class="icona"><span class="icon">C</span></span><b>QDesignerCustomWidgetInterface</b></td><td class="desc"></td></tr>
+<tr id="row_1_0_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_q_hex_edit_plugin.html" target="_self">QHexEditPlugin</a></td><td class="desc"></td></tr>
+<tr id="row_2_" class="even"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_2_" class="arrow" onclick="toggleFolder('2_')">&#9660;</span><span class="icona"><span class="icon">C</span></span><b>QObject</b></td><td class="desc"></td></tr>
+<tr id="row_2_0_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_q_hex_edit_plugin.html" target="_self">QHexEditPlugin</a></td><td class="desc"></td></tr>
+</table>
+</div><!-- directory -->
+</div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/index.html b/doc/html/index.html
new file mode 100644
index 0000000..1af4e8c
--- /dev/null
+++ b/doc/html/index.html
@@ -0,0 +1,78 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: Main Page</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+</div><!-- top -->
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div class="header">
+ <div class="headertitle">
+<div class="title">QHexEdit Documentation</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="textblock"><p><a class="el" href="class_q_hex_edit.html">QHexEdit</a> is a binary editor widget for Qt.</p>
+<dl class="section version"><dt>Version</dt><dd>Version 0.8.6 <div class="image">
+<img src="qhexedit.png" alt="qhexedit.png"/>
+</div>
+ </dd></dl>
+</div></div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/jquery.js b/doc/html/jquery.js
new file mode 100644
index 0000000..f5343ed
--- /dev/null
+++ b/doc/html/jquery.js
@@ -0,0 +1,87 @@
+/*!
+ * jQuery JavaScript Library v1.7.1
+ * http://jquery.com/
+ *
+ * Copyright 2011, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2011, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Mon Nov 21 21:11:03 2011 -0500
+ */
+(function(bb,L){var av=bb.document,bu=bb.navigator,bl=bb.location;var b=(function(){var bF=function(b0,b1){return new bF.fn.init(b0,b1,bD)},bU=bb.jQuery,bH=bb.$,bD,bY=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bM=/\S/,bI=/^\s+/,bE=/\s+$/,bA=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bN=/^[\],:{}\s]*$/,bW=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bP=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bJ=/(?:^|:|,)(?:\s*\[)+/g,by=/(webkit)[ \/]([\w.]+)/,bR=/(opera)(?:.*version)?[ \/]([\w.]+)/,bQ=/(msie) ([\w.]+)/,bS=/(mozilla)(?:.*? rv:([\w.]+))?/,bB=/-([a-z]|[0-9])/ig,bZ=/^-ms-/,bT=function(b0,b1){return(b1+"").toUpperCase()},bX=bu.userAgent,bV,bC,e,bL=Object.prototype.toString,bG=Object.prototype.hasOwnProperty,bz=Array.prototype.push,bK=Array.prototype.slice,bO=String.prototype.trim,bv=Array.prototype.indexOf,bx={};bF.fn=bF.prototype={constructor:bF,init:function(b0,b4,b3){var b2,b5,b1,b6;if(!b0){return this}if(b0.nodeType){this.context=this[0]=b0;this.length=1;return this}if(b0==="body"&&!b4&&av.body){this.context=av;this[0]=av.body;this.selector=b0;this.length=1;return this}if(typeof b0==="string"){if(b0.charAt(0)==="<"&&b0.charAt(b0.length-1)===">"&&b0.length>=3){b2=[null,b0,null]}else{b2=bY.exec(b0)}if(b2&&(b2[1]||!b4)){if(b2[1]){b4=b4 instanceof bF?b4[0]:b4;b6=(b4?b4.ownerDocument||b4:av);b1=bA.exec(b0);if(b1){if(bF.isPlainObject(b4)){b0=[av.createElement(b1[1])];bF.fn.attr.call(b0,b4,true)}else{b0=[b6.createElement(b1[1])]}}else{b1=bF.buildFragment([b2[1]],[b6]);b0=(b1.cacheable?bF.clone(b1.fragment):b1.fragment).childNodes}return bF.merge(this,b0)}else{b5=av.getElementById(b2[2]);if(b5&&b5.parentNode){if(b5.id!==b2[2]){return b3.find(b0)}this.length=1;this[0]=b5}this.context=av;this.selector=b0;return this}}else{if(!b4||b4.jquery){return(b4||b3).find(b0)}else{return this.constructor(b4).find(b0)}}}else{if(bF.isFunction(b0)){return b3.ready(b0)}}if(b0.selector!==L){this.selector=b0.selector;this.context=b0.context}return bF.makeArray(b0,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return bK.call(this,0)},get:function(b0){return b0==null?this.toArray():(b0<0?this[this.length+b0]:this[b0])},pushStack:function(b1,b3,b0){var b2=this.constructor();if(bF.isArray(b1)){bz.apply(b2,b1)}else{bF.merge(b2,b1)}b2.prevObject=this;b2.context=this.context;if(b3==="find"){b2.selector=this.selector+(this.selector?" ":"")+b0}else{if(b3){b2.selector=this.selector+"."+b3+"("+b0+")"}}return b2},each:function(b1,b0){return bF.each(this,b1,b0)},ready:function(b0){bF.bindReady();bC.add(b0);return this},eq:function(b0){b0=+b0;return b0===-1?this.slice(b0):this.slice(b0,b0+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bK.apply(this,arguments),"slice",bK.call(arguments).join(","))},map:function(b0){return this.pushStack(bF.map(this,function(b2,b1){return b0.call(b2,b1,b2)}))},end:function(){return this.prevObject||this.constructor(null)},push:bz,sort:[].sort,splice:[].splice};bF.fn.init.prototype=bF.fn;bF.extend=bF.fn.extend=function(){var b9,b2,b0,b1,b6,b7,b5=arguments[0]||{},b4=1,b3=arguments.length,b8=false;if(typeof b5==="boolean"){b8=b5;b5=arguments[1]||{};b4=2}if(typeof b5!=="object"&&!bF.isFunction(b5)){b5={}}if(b3===b4){b5=this;--b4}for(;b4<b3;b4++){if((b9=arguments[b4])!=null){for(b2 in b9){b0=b5[b2];b1=b9[b2];if(b5===b1){continue}if(b8&&b1&&(bF.isPlainObject(b1)||(b6=bF.isArray(b1)))){if(b6){b6=false;b7=b0&&bF.isArray(b0)?b0:[]}else{b7=b0&&bF.isPlainObject(b0)?b0:{}}b5[b2]=bF.extend(b8,b7,b1)}else{if(b1!==L){b5[b2]=b1}}}}}return b5};bF.extend({noConflict:function(b0){if(bb.$===bF){bb.$=bH}if(b0&&bb.jQuery===bF){bb.jQuery=bU}return bF},isReady:false,readyWait:1,holdReady:function(b0){if(b0){bF.readyWait++}else{bF.ready(true)}},ready:function(b0){if((b0===true&&!--bF.readyWait)||(b0!==true&&!bF.isReady)){if(!av.body){return setTimeout(bF.ready,1)}bF.isReady=true;if(b0!==true&&--bF.readyWait>0){return}bC.fireWith(av,[bF]);if(bF.fn.trigger){bF(av).trigger("ready").off("ready")}}},bindReady:function(){if(bC){return}bC=bF.Callbacks("once memory");if(av.readyState==="complete"){return setTimeout(bF.ready,1)}if(av.addEventListener){av.addEventListener("DOMContentLoaded",e,false);bb.addEventListener("load",bF.ready,false)}else{if(av.attachEvent){av.attachEvent("onreadystatechange",e);bb.attachEvent("onload",bF.ready);var b0=false;try{b0=bb.frameElement==null}catch(b1){}if(av.documentElement.doScroll&&b0){bw()}}}},isFunction:function(b0){return bF.type(b0)==="function"},isArray:Array.isArray||function(b0){return bF.type(b0)==="array"},isWindow:function(b0){return b0&&typeof b0==="object"&&"setInterval" in b0},isNumeric:function(b0){return !isNaN(parseFloat(b0))&&isFinite(b0)},type:function(b0){return b0==null?String(b0):bx[bL.call(b0)]||"object"},isPlainObject:function(b2){if(!b2||bF.type(b2)!=="object"||b2.nodeType||bF.isWindow(b2)){return false}try{if(b2.constructor&&!bG.call(b2,"constructor")&&!bG.call(b2.constructor.prototype,"isPrototypeOf")){return false}}catch(b1){return false}var b0;for(b0 in b2){}return b0===L||bG.call(b2,b0)},isEmptyObject:function(b1){for(var b0 in b1){return false}return true},error:function(b0){throw new Error(b0)},parseJSON:function(b0){if(typeof b0!=="string"||!b0){return null}b0=bF.trim(b0);if(bb.JSON&&bb.JSON.parse){return bb.JSON.parse(b0)}if(bN.test(b0.replace(bW,"@").replace(bP,"]").replace(bJ,""))){return(new Function("return "+b0))()}bF.error("Invalid JSON: "+b0)},parseXML:function(b2){var b0,b1;try{if(bb.DOMParser){b1=new DOMParser();b0=b1.parseFromString(b2,"text/xml")}else{b0=new ActiveXObject("Microsoft.XMLDOM");b0.async="false";b0.loadXML(b2)}}catch(b3){b0=L}if(!b0||!b0.documentElement||b0.getElementsByTagName("parsererror").length){bF.error("Invalid XML: "+b2)}return b0},noop:function(){},globalEval:function(b0){if(b0&&bM.test(b0)){(bb.execScript||function(b1){bb["eval"].call(bb,b1)})(b0)}},camelCase:function(b0){return b0.replace(bZ,"ms-").replace(bB,bT)},nodeName:function(b1,b0){return b1.nodeName&&b1.nodeName.toUpperCase()===b0.toUpperCase()},each:function(b3,b6,b2){var b1,b4=0,b5=b3.length,b0=b5===L||bF.isFunction(b3);if(b2){if(b0){for(b1 in b3){if(b6.apply(b3[b1],b2)===false){break}}}else{for(;b4<b5;){if(b6.apply(b3[b4++],b2)===false){break}}}}else{if(b0){for(b1 in b3){if(b6.call(b3[b1],b1,b3[b1])===false){break}}}else{for(;b4<b5;){if(b6.call(b3[b4],b4,b3[b4++])===false){break}}}}return b3},trim:bO?function(b0){return b0==null?"":bO.call(b0)}:function(b0){return b0==null?"":b0.toString().replace(bI,"").replace(bE,"")},makeArray:function(b3,b1){var b0=b1||[];if(b3!=null){var b2=bF.type(b3);if(b3.length==null||b2==="string"||b2==="function"||b2==="regexp"||bF.isWindow(b3)){bz.call(b0,b3)}else{bF.merge(b0,b3)}}return b0},inArray:function(b2,b3,b1){var b0;if(b3){if(bv){return bv.call(b3,b2,b1)}b0=b3.length;b1=b1?b1<0?Math.max(0,b0+b1):b1:0;for(;b1<b0;b1++){if(b1 in b3&&b3[b1]===b2){return b1}}}return -1},merge:function(b4,b2){var b3=b4.length,b1=0;if(typeof b2.length==="number"){for(var b0=b2.length;b1<b0;b1++){b4[b3++]=b2[b1]}}else{while(b2[b1]!==L){b4[b3++]=b2[b1++]}}b4.length=b3;return b4},grep:function(b1,b6,b0){var b2=[],b5;b0=!!b0;for(var b3=0,b4=b1.length;b3<b4;b3++){b5=!!b6(b1[b3],b3);if(b0!==b5){b2.push(b1[b3])}}return b2},map:function(b0,b7,b8){var b5,b6,b4=[],b2=0,b1=b0.length,b3=b0 instanceof bF||b1!==L&&typeof b1==="number"&&((b1>0&&b0[0]&&b0[b1-1])||b1===0||bF.isArray(b0));if(b3){for(;b2<b1;b2++){b5=b7(b0[b2],b2,b8);if(b5!=null){b4[b4.length]=b5}}}else{for(b6 in b0){b5=b7(b0[b6],b6,b8);if(b5!=null){b4[b4.length]=b5}}}return b4.concat.apply([],b4)},guid:1,proxy:function(b4,b3){if(typeof b3==="string"){var b2=b4[b3];b3=b4;b4=b2}if(!bF.isFunction(b4)){return L}var b0=bK.call(arguments,2),b1=function(){return b4.apply(b3,b0.concat(bK.call(arguments)))};b1.guid=b4.guid=b4.guid||b1.guid||bF.guid++;return b1},access:function(b0,b8,b6,b2,b5,b7){var b1=b0.length;if(typeof b8==="object"){for(var b3 in b8){bF.access(b0,b3,b8[b3],b2,b5,b6)}return b0}if(b6!==L){b2=!b7&&b2&&bF.isFunction(b6);for(var b4=0;b4<b1;b4++){b5(b0[b4],b8,b2?b6.call(b0[b4],b4,b5(b0[b4],b8)):b6,b7)}return b0}return b1?b5(b0[0],b8):L},now:function(){return(new Date()).getTime()},uaMatch:function(b1){b1=b1.toLowerCase();var b0=by.exec(b1)||bR.exec(b1)||bQ.exec(b1)||b1.indexOf("compatible")<0&&bS.exec(b1)||[];return{browser:b0[1]||"",version:b0[2]||"0"}},sub:function(){function b0(b3,b4){return new b0.fn.init(b3,b4)}bF.extend(true,b0,this);b0.superclass=this;b0.fn=b0.prototype=this();b0.fn.constructor=b0;b0.sub=this.sub;b0.fn.init=function b2(b3,b4){if(b4&&b4 instanceof bF&&!(b4 instanceof b0)){b4=b0(b4)}return bF.fn.init.call(this,b3,b4,b1)};b0.fn.init.prototype=b0.fn;var b1=b0(av);return b0},browser:{}});bF.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(b1,b0){bx["[object "+b0+"]"]=b0.toLowerCase()});bV=bF.uaMatch(bX);if(bV.browser){bF.browser[bV.browser]=true;bF.browser.version=bV.version}if(bF.browser.webkit){bF.browser.safari=true}if(bM.test("\xA0")){bI=/^[\s\xA0]+/;bE=/[\s\xA0]+$/}bD=bF(av);if(av.addEventListener){e=function(){av.removeEventListener("DOMContentLoaded",e,false);bF.ready()}}else{if(av.attachEvent){e=function(){if(av.readyState==="complete"){av.detachEvent("onreadystatechange",e);bF.ready()}}}}function bw(){if(bF.isReady){return}try{av.documentElement.doScroll("left")}catch(b0){setTimeout(bw,1);return}bF.ready()}return bF})();var a2={};function X(e){var bv=a2[e]={},bw,bx;e=e.split(/\s+/);for(bw=0,bx=e.length;bw<bx;bw++){bv[e[bw]]=true}return bv}b.Callbacks=function(bw){bw=bw?(a2[bw]||X(bw)):{};var bB=[],bC=[],bx,by,bv,bz,bA,bE=function(bF){var bG,bJ,bI,bH,bK;for(bG=0,bJ=bF.length;bG<bJ;bG++){bI=bF[bG];bH=b.type(bI);if(bH==="array"){bE(bI)}else{if(bH==="function"){if(!bw.unique||!bD.has(bI)){bB.push(bI)}}}}},e=function(bG,bF){bF=bF||[];bx=!bw.memory||[bG,bF];by=true;bA=bv||0;bv=0;bz=bB.length;for(;bB&&bA<bz;bA++){if(bB[bA].apply(bG,bF)===false&&bw.stopOnFalse){bx=true;break}}by=false;if(bB){if(!bw.once){if(bC&&bC.length){bx=bC.shift();bD.fireWith(bx[0],bx[1])}}else{if(bx===true){bD.disable()}else{bB=[]}}}},bD={add:function(){if(bB){var bF=bB.length;bE(arguments);if(by){bz=bB.length}else{if(bx&&bx!==true){bv=bF;e(bx[0],bx[1])}}}return this},remove:function(){if(bB){var bF=arguments,bH=0,bI=bF.length;for(;bH<bI;bH++){for(var bG=0;bG<bB.length;bG++){if(bF[bH]===bB[bG]){if(by){if(bG<=bz){bz--;if(bG<=bA){bA--}}}bB.splice(bG--,1);if(bw.unique){break}}}}}return this},has:function(bG){if(bB){var bF=0,bH=bB.length;for(;bF<bH;bF++){if(bG===bB[bF]){return true}}}return false},empty:function(){bB=[];return this},disable:function(){bB=bC=bx=L;return this},disabled:function(){return !bB},lock:function(){bC=L;if(!bx||bx===true){bD.disable()}return this},locked:function(){return !bC},fireWith:function(bG,bF){if(bC){if(by){if(!bw.once){bC.push([bG,bF])}}else{if(!(bw.once&&bx)){e(bG,bF)}}}return this},fire:function(){bD.fireWith(this,arguments);return this},fired:function(){return !!bx}};return bD};var aJ=[].slice;b.extend({Deferred:function(by){var bx=b.Callbacks("once memory"),bw=b.Callbacks("once memory"),bv=b.Callbacks("memory"),e="pending",bA={resolve:bx,reject:bw,notify:bv},bC={done:bx.add,fail:bw.add,progress:bv.add,state:function(){return e},isResolved:bx.fired,isRejected:bw.fired,then:function(bE,bD,bF){bB.done(bE).fail(bD).progress(bF);return this},always:function(){bB.done.apply(bB,arguments).fail.apply(bB,arguments);return this},pipe:function(bF,bE,bD){return b.Deferred(function(bG){b.each({done:[bF,"resolve"],fail:[bE,"reject"],progress:[bD,"notify"]},function(bI,bL){var bH=bL[0],bK=bL[1],bJ;if(b.isFunction(bH)){bB[bI](function(){bJ=bH.apply(this,arguments);if(bJ&&b.isFunction(bJ.promise)){bJ.promise().then(bG.resolve,bG.reject,bG.notify)}else{bG[bK+"With"](this===bB?bG:this,[bJ])}})}else{bB[bI](bG[bK])}})}).promise()},promise:function(bE){if(bE==null){bE=bC}else{for(var bD in bC){bE[bD]=bC[bD]}}return bE}},bB=bC.promise({}),bz;for(bz in bA){bB[bz]=bA[bz].fire;bB[bz+"With"]=bA[bz].fireWith}bB.done(function(){e="resolved"},bw.disable,bv.lock).fail(function(){e="rejected"},bx.disable,bv.lock);if(by){by.call(bB,bB)}return bB},when:function(bA){var bx=aJ.call(arguments,0),bv=0,e=bx.length,bB=new Array(e),bw=e,by=e,bC=e<=1&&bA&&b.isFunction(bA.promise)?bA:b.Deferred(),bE=bC.promise();function bD(bF){return function(bG){bx[bF]=arguments.length>1?aJ.call(arguments,0):bG;if(!(--bw)){bC.resolveWith(bC,bx)}}}function bz(bF){return function(bG){bB[bF]=arguments.length>1?aJ.call(arguments,0):bG;bC.notifyWith(bE,bB)}}if(e>1){for(;bv<e;bv++){if(bx[bv]&&bx[bv].promise&&b.isFunction(bx[bv].promise)){bx[bv].promise().then(bD(bv),bC.reject,bz(bv))}else{--bw}}if(!bw){bC.resolveWith(bC,bx)}}else{if(bC!==bA){bC.resolveWith(bC,e?[bA]:[])}}return bE}});b.support=(function(){var bJ,bI,bF,bG,bx,bE,bA,bD,bz,bK,bB,by,bw,bv=av.createElement("div"),bH=av.documentElement;bv.setAttribute("className","t");bv.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";bI=bv.getElementsByTagName("*");bF=bv.getElementsByTagName("a")[0];if(!bI||!bI.length||!bF){return{}}bG=av.createElement("select");bx=bG.appendChild(av.createElement("option"));bE=bv.getElementsByTagName("input")[0];bJ={leadingWhitespace:(bv.firstChild.nodeType===3),tbody:!bv.getElementsByTagName("tbody").length,htmlSerialize:!!bv.getElementsByTagName("link").length,style:/top/.test(bF.getAttribute("style")),hrefNormalized:(bF.getAttribute("href")==="/a"),opacity:/^0.55/.test(bF.style.opacity),cssFloat:!!bF.style.cssFloat,checkOn:(bE.value==="on"),optSelected:bx.selected,getSetAttribute:bv.className!=="t",enctype:!!av.createElement("form").enctype,html5Clone:av.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bE.checked=true;bJ.noCloneChecked=bE.cloneNode(true).checked;bG.disabled=true;bJ.optDisabled=!bx.disabled;try{delete bv.test}catch(bC){bJ.deleteExpando=false}if(!bv.addEventListener&&bv.attachEvent&&bv.fireEvent){bv.attachEvent("onclick",function(){bJ.noCloneEvent=false});bv.cloneNode(true).fireEvent("onclick")}bE=av.createElement("input");bE.value="t";bE.setAttribute("type","radio");bJ.radioValue=bE.value==="t";bE.setAttribute("checked","checked");bv.appendChild(bE);bD=av.createDocumentFragment();bD.appendChild(bv.lastChild);bJ.checkClone=bD.cloneNode(true).cloneNode(true).lastChild.checked;bJ.appendChecked=bE.checked;bD.removeChild(bE);bD.appendChild(bv);bv.innerHTML="";if(bb.getComputedStyle){bA=av.createElement("div");bA.style.width="0";bA.style.marginRight="0";bv.style.width="2px";bv.appendChild(bA);bJ.reliableMarginRight=(parseInt((bb.getComputedStyle(bA,null)||{marginRight:0}).marginRight,10)||0)===0}if(bv.attachEvent){for(by in {submit:1,change:1,focusin:1}){bB="on"+by;bw=(bB in bv);if(!bw){bv.setAttribute(bB,"return;");bw=(typeof bv[bB]==="function")}bJ[by+"Bubbles"]=bw}}bD.removeChild(bv);bD=bG=bx=bA=bv=bE=null;b(function(){var bM,bU,bV,bT,bN,bO,bL,bS,bR,e,bP,bQ=av.getElementsByTagName("body")[0];if(!bQ){return}bL=1;bS="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";bR="visibility:hidden;border:0;";e="style='"+bS+"border:5px solid #000;padding:0;'";bP="<div "+e+"><div></div></div><table "+e+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";bM=av.createElement("div");bM.style.cssText=bR+"width:0;height:0;position:static;top:0;margin-top:"+bL+"px";bQ.insertBefore(bM,bQ.firstChild);bv=av.createElement("div");bM.appendChild(bv);bv.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";bz=bv.getElementsByTagName("td");bw=(bz[0].offsetHeight===0);bz[0].style.display="";bz[1].style.display="none";bJ.reliableHiddenOffsets=bw&&(bz[0].offsetHeight===0);bv.innerHTML="";bv.style.width=bv.style.paddingLeft="1px";b.boxModel=bJ.boxModel=bv.offsetWidth===2;if(typeof bv.style.zoom!=="undefined"){bv.style.display="inline";bv.style.zoom=1;bJ.inlineBlockNeedsLayout=(bv.offsetWidth===2);bv.style.display="";bv.innerHTML="<div style='width:4px;'></div>";bJ.shrinkWrapBlocks=(bv.offsetWidth!==2)}bv.style.cssText=bS+bR;bv.innerHTML=bP;bU=bv.firstChild;bV=bU.firstChild;bN=bU.nextSibling.firstChild.firstChild;bO={doesNotAddBorder:(bV.offsetTop!==5),doesAddBorderForTableAndCells:(bN.offsetTop===5)};bV.style.position="fixed";bV.style.top="20px";bO.fixedPosition=(bV.offsetTop===20||bV.offsetTop===15);bV.style.position=bV.style.top="";bU.style.overflow="hidden";bU.style.position="relative";bO.subtractsBorderForOverflowNotVisible=(bV.offsetTop===-5);bO.doesNotIncludeMarginInBodyOffset=(bQ.offsetTop!==bL);bQ.removeChild(bM);bv=bM=null;b.extend(bJ,bO)});return bJ})();var aS=/^(?:\{.*\}|\[.*\])$/,aA=/([A-Z])/g;b.extend({cache:{},uuid:0,expando:"jQuery"+(b.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?b.cache[e[b.expando]]:e[b.expando];return !!e&&!S(e)},data:function(bx,bv,bz,by){if(!b.acceptData(bx)){return}var bG,bA,bD,bE=b.expando,bC=typeof bv==="string",bF=bx.nodeType,e=bF?b.cache:bx,bw=bF?bx[bE]:bx[bE]&&bE,bB=bv==="events";if((!bw||!e[bw]||(!bB&&!by&&!e[bw].data))&&bC&&bz===L){return}if(!bw){if(bF){bx[bE]=bw=++b.uuid}else{bw=bE}}if(!e[bw]){e[bw]={};if(!bF){e[bw].toJSON=b.noop}}if(typeof bv==="object"||typeof bv==="function"){if(by){e[bw]=b.extend(e[bw],bv)}else{e[bw].data=b.extend(e[bw].data,bv)}}bG=bA=e[bw];if(!by){if(!bA.data){bA.data={}}bA=bA.data}if(bz!==L){bA[b.camelCase(bv)]=bz}if(bB&&!bA[bv]){return bG.events}if(bC){bD=bA[bv];if(bD==null){bD=bA[b.camelCase(bv)]}}else{bD=bA}return bD},removeData:function(bx,bv,by){if(!b.acceptData(bx)){return}var bB,bA,bz,bC=b.expando,bD=bx.nodeType,e=bD?b.cache:bx,bw=bD?bx[bC]:bC;if(!e[bw]){return}if(bv){bB=by?e[bw]:e[bw].data;if(bB){if(!b.isArray(bv)){if(bv in bB){bv=[bv]}else{bv=b.camelCase(bv);if(bv in bB){bv=[bv]}else{bv=bv.split(" ")}}}for(bA=0,bz=bv.length;bA<bz;bA++){delete bB[bv[bA]]}if(!(by?S:b.isEmptyObject)(bB)){return}}}if(!by){delete e[bw].data;if(!S(e[bw])){return}}if(b.support.deleteExpando||!e.setInterval){delete e[bw]}else{e[bw]=null}if(bD){if(b.support.deleteExpando){delete bx[bC]}else{if(bx.removeAttribute){bx.removeAttribute(bC)}else{bx[bC]=null}}}},_data:function(bv,e,bw){return b.data(bv,e,bw,true)},acceptData:function(bv){if(bv.nodeName){var e=b.noData[bv.nodeName.toLowerCase()];if(e){return !(e===true||bv.getAttribute("classid")!==e)}}return true}});b.fn.extend({data:function(by,bA){var bB,e,bw,bz=null;if(typeof by==="undefined"){if(this.length){bz=b.data(this[0]);if(this[0].nodeType===1&&!b._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var bx=0,bv=e.length;bx<bv;bx++){bw=e[bx].name;if(bw.indexOf("data-")===0){bw=b.camelCase(bw.substring(5));a5(this[0],bw,bz[bw])}}b._data(this[0],"parsedAttrs",true)}}return bz}else{if(typeof by==="object"){return this.each(function(){b.data(this,by)})}}bB=by.split(".");bB[1]=bB[1]?"."+bB[1]:"";if(bA===L){bz=this.triggerHandler("getData"+bB[1]+"!",[bB[0]]);if(bz===L&&this.length){bz=b.data(this[0],by);bz=a5(this[0],by,bz)}return bz===L&&bB[1]?this.data(bB[0]):bz}else{return this.each(function(){var bC=b(this),bD=[bB[0],bA];bC.triggerHandler("setData"+bB[1]+"!",bD);b.data(this,by,bA);bC.triggerHandler("changeData"+bB[1]+"!",bD)})}},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function a5(bx,bw,by){if(by===L&&bx.nodeType===1){var bv="data-"+bw.replace(aA,"-$1").toLowerCase();by=bx.getAttribute(bv);if(typeof by==="string"){try{by=by==="true"?true:by==="false"?false:by==="null"?null:b.isNumeric(by)?parseFloat(by):aS.test(by)?b.parseJSON(by):by}catch(bz){}b.data(bx,bw,by)}else{by=L}}return by}function S(bv){for(var e in bv){if(e==="data"&&b.isEmptyObject(bv[e])){continue}if(e!=="toJSON"){return false}}return true}function bi(by,bx,bA){var bw=bx+"defer",bv=bx+"queue",e=bx+"mark",bz=b._data(by,bw);if(bz&&(bA==="queue"||!b._data(by,bv))&&(bA==="mark"||!b._data(by,e))){setTimeout(function(){if(!b._data(by,bv)&&!b._data(by,e)){b.removeData(by,bw,true);bz.fire()}},0)}}b.extend({_mark:function(bv,e){if(bv){e=(e||"fx")+"mark";b._data(bv,e,(b._data(bv,e)||0)+1)}},_unmark:function(by,bx,bv){if(by!==true){bv=bx;bx=by;by=false}if(bx){bv=bv||"fx";var e=bv+"mark",bw=by?0:((b._data(bx,e)||1)-1);if(bw){b._data(bx,e,bw)}else{b.removeData(bx,e,true);bi(bx,bv,"mark")}}},queue:function(bv,e,bx){var bw;if(bv){e=(e||"fx")+"queue";bw=b._data(bv,e);if(bx){if(!bw||b.isArray(bx)){bw=b._data(bv,e,b.makeArray(bx))}else{bw.push(bx)}}return bw||[]}},dequeue:function(by,bx){bx=bx||"fx";var bv=b.queue(by,bx),bw=bv.shift(),e={};if(bw==="inprogress"){bw=bv.shift()}if(bw){if(bx==="fx"){bv.unshift("inprogress")}b._data(by,bx+".run",e);bw.call(by,function(){b.dequeue(by,bx)},e)}if(!bv.length){b.removeData(by,bx+"queue "+bx+".run",true);bi(by,bx,"queue")}}});b.fn.extend({queue:function(e,bv){if(typeof e!=="string"){bv=e;e="fx"}if(bv===L){return b.queue(this[0],e)}return this.each(function(){var bw=b.queue(this,e,bv);if(e==="fx"&&bw[0]!=="inprogress"){b.dequeue(this,e)}})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(bv,e){bv=b.fx?b.fx.speeds[bv]||bv:bv;e=e||"fx";return this.queue(e,function(bx,bw){var by=setTimeout(bx,bv);bw.stop=function(){clearTimeout(by)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(bD,bw){if(typeof bD!=="string"){bw=bD;bD=L}bD=bD||"fx";var e=b.Deferred(),bv=this,by=bv.length,bB=1,bz=bD+"defer",bA=bD+"queue",bC=bD+"mark",bx;function bE(){if(!(--bB)){e.resolveWith(bv,[bv])}}while(by--){if((bx=b.data(bv[by],bz,L,true)||(b.data(bv[by],bA,L,true)||b.data(bv[by],bC,L,true))&&b.data(bv[by],bz,b.Callbacks("once memory"),true))){bB++;bx.add(bE)}}bE();return e.promise()}});var aP=/[\n\t\r]/g,af=/\s+/,aU=/\r/g,g=/^(?:button|input)$/i,D=/^(?:button|input|object|select|textarea)$/i,l=/^a(?:rea)?$/i,ao=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,F=b.support.getSetAttribute,be,aY,aF;b.fn.extend({attr:function(e,bv){return b.access(this,e,bv,true,b.attr)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,bv){return b.access(this,e,bv,true,b.prop)},removeProp:function(e){e=b.propFix[e]||e;return this.each(function(){try{this[e]=L;delete this[e]}catch(bv){}})},addClass:function(by){var bA,bw,bv,bx,bz,bB,e;if(b.isFunction(by)){return this.each(function(bC){b(this).addClass(by.call(this,bC,this.className))})}if(by&&typeof by==="string"){bA=by.split(af);for(bw=0,bv=this.length;bw<bv;bw++){bx=this[bw];if(bx.nodeType===1){if(!bx.className&&bA.length===1){bx.className=by}else{bz=" "+bx.className+" ";for(bB=0,e=bA.length;bB<e;bB++){if(!~bz.indexOf(" "+bA[bB]+" ")){bz+=bA[bB]+" "}}bx.className=b.trim(bz)}}}}return this},removeClass:function(bz){var bA,bw,bv,by,bx,bB,e;if(b.isFunction(bz)){return this.each(function(bC){b(this).removeClass(bz.call(this,bC,this.className))})}if((bz&&typeof bz==="string")||bz===L){bA=(bz||"").split(af);for(bw=0,bv=this.length;bw<bv;bw++){by=this[bw];if(by.nodeType===1&&by.className){if(bz){bx=(" "+by.className+" ").replace(aP," ");for(bB=0,e=bA.length;bB<e;bB++){bx=bx.replace(" "+bA[bB]+" "," ")}by.className=b.trim(bx)}else{by.className=""}}}}return this},toggleClass:function(bx,bv){var bw=typeof bx,e=typeof bv==="boolean";if(b.isFunction(bx)){return this.each(function(by){b(this).toggleClass(bx.call(this,by,this.className,bv),bv)})}return this.each(function(){if(bw==="string"){var bA,bz=0,by=b(this),bB=bv,bC=bx.split(af);while((bA=bC[bz++])){bB=e?bB:!by.hasClass(bA);by[bB?"addClass":"removeClass"](bA)}}else{if(bw==="undefined"||bw==="boolean"){if(this.className){b._data(this,"__className__",this.className)}this.className=this.className||bx===false?"":b._data(this,"__className__")||""}}})},hasClass:function(e){var bx=" "+e+" ",bw=0,bv=this.length;for(;bw<bv;bw++){if(this[bw].nodeType===1&&(" "+this[bw].className+" ").replace(aP," ").indexOf(bx)>-1){return true}}return false},val:function(bx){var e,bv,by,bw=this[0];if(!arguments.length){if(bw){e=b.valHooks[bw.nodeName.toLowerCase()]||b.valHooks[bw.type];if(e&&"get" in e&&(bv=e.get(bw,"value"))!==L){return bv}bv=bw.value;return typeof bv==="string"?bv.replace(aU,""):bv==null?"":bv}return}by=b.isFunction(bx);return this.each(function(bA){var bz=b(this),bB;if(this.nodeType!==1){return}if(by){bB=bx.call(this,bA,bz.val())}else{bB=bx}if(bB==null){bB=""}else{if(typeof bB==="number"){bB+=""}else{if(b.isArray(bB)){bB=b.map(bB,function(bC){return bC==null?"":bC+""})}}}e=b.valHooks[this.nodeName.toLowerCase()]||b.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bB,"value")===L){this.value=bB}})}});b.extend({valHooks:{option:{get:function(e){var bv=e.attributes.value;return !bv||bv.specified?e.value:e.text}},select:{get:function(e){var bA,bv,bz,bx,by=e.selectedIndex,bB=[],bC=e.options,bw=e.type==="select-one";if(by<0){return null}bv=bw?by:0;bz=bw?by+1:bC.length;for(;bv<bz;bv++){bx=bC[bv];if(bx.selected&&(b.support.optDisabled?!bx.disabled:bx.getAttribute("disabled")===null)&&(!bx.parentNode.disabled||!b.nodeName(bx.parentNode,"optgroup"))){bA=b(bx).val();if(bw){return bA}bB.push(bA)}}if(bw&&!bB.length&&bC.length){return b(bC[by]).val()}return bB},set:function(bv,bw){var e=b.makeArray(bw);b(bv).find("option").each(function(){this.selected=b.inArray(b(this).val(),e)>=0});if(!e.length){bv.selectedIndex=-1}return e}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(bA,bx,bB,bz){var bw,e,by,bv=bA.nodeType;if(!bA||bv===3||bv===8||bv===2){return}if(bz&&bx in b.attrFn){return b(bA)[bx](bB)}if(typeof bA.getAttribute==="undefined"){return b.prop(bA,bx,bB)}by=bv!==1||!b.isXMLDoc(bA);if(by){bx=bx.toLowerCase();e=b.attrHooks[bx]||(ao.test(bx)?aY:be)}if(bB!==L){if(bB===null){b.removeAttr(bA,bx);return}else{if(e&&"set" in e&&by&&(bw=e.set(bA,bB,bx))!==L){return bw}else{bA.setAttribute(bx,""+bB);return bB}}}else{if(e&&"get" in e&&by&&(bw=e.get(bA,bx))!==null){return bw}else{bw=bA.getAttribute(bx);return bw===null?L:bw}}},removeAttr:function(bx,bz){var by,bA,bv,e,bw=0;if(bz&&bx.nodeType===1){bA=bz.toLowerCase().split(af);e=bA.length;for(;bw<e;bw++){bv=bA[bw];if(bv){by=b.propFix[bv]||bv;b.attr(bx,bv,"");bx.removeAttribute(F?bv:by);if(ao.test(bv)&&by in bx){bx[by]=false}}}}},attrHooks:{type:{set:function(e,bv){if(g.test(e.nodeName)&&e.parentNode){b.error("type property can't be changed")}else{if(!b.support.radioValue&&bv==="radio"&&b.nodeName(e,"input")){var bw=e.value;e.setAttribute("type",bv);if(bw){e.value=bw}return bv}}}},value:{get:function(bv,e){if(be&&b.nodeName(bv,"button")){return be.get(bv,e)}return e in bv?bv.value:null},set:function(bv,bw,e){if(be&&b.nodeName(bv,"button")){return be.set(bv,bw,e)}bv.value=bw}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(bz,bx,bA){var bw,e,by,bv=bz.nodeType;if(!bz||bv===3||bv===8||bv===2){return}by=bv!==1||!b.isXMLDoc(bz);if(by){bx=b.propFix[bx]||bx;e=b.propHooks[bx]}if(bA!==L){if(e&&"set" in e&&(bw=e.set(bz,bA,bx))!==L){return bw}else{return(bz[bx]=bA)}}else{if(e&&"get" in e&&(bw=e.get(bz,bx))!==null){return bw}else{return bz[bx]}}},propHooks:{tabIndex:{get:function(bv){var e=bv.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):D.test(bv.nodeName)||l.test(bv.nodeName)&&bv.href?0:L}}}});b.attrHooks.tabindex=b.propHooks.tabIndex;aY={get:function(bv,e){var bx,bw=b.prop(bv,e);return bw===true||typeof bw!=="boolean"&&(bx=bv.getAttributeNode(e))&&bx.nodeValue!==false?e.toLowerCase():L},set:function(bv,bx,e){var bw;if(bx===false){b.removeAttr(bv,e)}else{bw=b.propFix[e]||e;if(bw in bv){bv[bw]=true}bv.setAttribute(e,e.toLowerCase())}return e}};if(!F){aF={name:true,id:true};be=b.valHooks.button={get:function(bw,bv){var e;e=bw.getAttributeNode(bv);return e&&(aF[bv]?e.nodeValue!=="":e.specified)?e.nodeValue:L},set:function(bw,bx,bv){var e=bw.getAttributeNode(bv);if(!e){e=av.createAttribute(bv);bw.setAttributeNode(e)}return(e.nodeValue=bx+"")}};b.attrHooks.tabindex.set=be.set;b.each(["width","height"],function(bv,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{set:function(bw,bx){if(bx===""){bw.setAttribute(e,"auto");return bx}}})});b.attrHooks.contenteditable={get:be.get,set:function(bv,bw,e){if(bw===""){bw="false"}be.set(bv,bw,e)}}}if(!b.support.hrefNormalized){b.each(["href","src","width","height"],function(bv,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{get:function(bx){var bw=bx.getAttribute(e,2);return bw===null?L:bw}})})}if(!b.support.style){b.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||L},set:function(e,bv){return(e.style.cssText=""+bv)}}}if(!b.support.optSelected){b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(bv){var e=bv.parentNode;if(e){e.selectedIndex;if(e.parentNode){e.parentNode.selectedIndex}}return null}})}if(!b.support.enctype){b.propFix.enctype="encoding"}if(!b.support.checkOn){b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}})}b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,bv){if(b.isArray(bv)){return(e.checked=b.inArray(b(e).val(),bv)>=0)}}})});var bd=/^(?:textarea|input|select)$/i,n=/^([^\.]*)?(?:\.(.+))?$/,J=/\bhover(\.\S+)?\b/,aO=/^key/,bf=/^(?:mouse|contextmenu)|click/,T=/^(?:focusinfocus|focusoutblur)$/,U=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Y=function(e){var bv=U.exec(e);if(bv){bv[1]=(bv[1]||"").toLowerCase();bv[3]=bv[3]&&new RegExp("(?:^|\\s)"+bv[3]+"(?:\\s|$)")}return bv},j=function(bw,e){var bv=bw.attributes||{};return((!e[1]||bw.nodeName.toLowerCase()===e[1])&&(!e[2]||(bv.id||{}).value===e[2])&&(!e[3]||e[3].test((bv["class"]||{}).value)))},bt=function(e){return b.event.special.hover?e:e.replace(J,"mouseenter$1 mouseleave$1")};b.event={add:function(bx,bC,bJ,bA,by){var bD,bB,bK,bI,bH,bF,e,bG,bv,bz,bw,bE;if(bx.nodeType===3||bx.nodeType===8||!bC||!bJ||!(bD=b._data(bx))){return}if(bJ.handler){bv=bJ;bJ=bv.handler}if(!bJ.guid){bJ.guid=b.guid++}bK=bD.events;if(!bK){bD.events=bK={}}bB=bD.handle;if(!bB){bD.handle=bB=function(bL){return typeof b!=="undefined"&&(!bL||b.event.triggered!==bL.type)?b.event.dispatch.apply(bB.elem,arguments):L};bB.elem=bx}bC=b.trim(bt(bC)).split(" ");for(bI=0;bI<bC.length;bI++){bH=n.exec(bC[bI])||[];bF=bH[1];e=(bH[2]||"").split(".").sort();bE=b.event.special[bF]||{};bF=(by?bE.delegateType:bE.bindType)||bF;bE=b.event.special[bF]||{};bG=b.extend({type:bF,origType:bH[1],data:bA,handler:bJ,guid:bJ.guid,selector:by,quick:Y(by),namespace:e.join(".")},bv);bw=bK[bF];if(!bw){bw=bK[bF]=[];bw.delegateCount=0;if(!bE.setup||bE.setup.call(bx,bA,e,bB)===false){if(bx.addEventListener){bx.addEventListener(bF,bB,false)}else{if(bx.attachEvent){bx.attachEvent("on"+bF,bB)}}}}if(bE.add){bE.add.call(bx,bG);if(!bG.handler.guid){bG.handler.guid=bJ.guid}}if(by){bw.splice(bw.delegateCount++,0,bG)}else{bw.push(bG)}b.event.global[bF]=true}bx=null},global:{},remove:function(bJ,bE,bv,bH,bB){var bI=b.hasData(bJ)&&b._data(bJ),bF,bx,bz,bL,bC,bA,bG,bw,by,bK,bD,e;if(!bI||!(bw=bI.events)){return}bE=b.trim(bt(bE||"")).split(" ");for(bF=0;bF<bE.length;bF++){bx=n.exec(bE[bF])||[];bz=bL=bx[1];bC=bx[2];if(!bz){for(bz in bw){b.event.remove(bJ,bz+bE[bF],bv,bH,true)}continue}by=b.event.special[bz]||{};bz=(bH?by.delegateType:by.bindType)||bz;bD=bw[bz]||[];bA=bD.length;bC=bC?new RegExp("(^|\\.)"+bC.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(bG=0;bG<bD.length;bG++){e=bD[bG];if((bB||bL===e.origType)&&(!bv||bv.guid===e.guid)&&(!bC||bC.test(e.namespace))&&(!bH||bH===e.selector||bH==="**"&&e.selector)){bD.splice(bG--,1);if(e.selector){bD.delegateCount--}if(by.remove){by.remove.call(bJ,e)}}}if(bD.length===0&&bA!==bD.length){if(!by.teardown||by.teardown.call(bJ,bC)===false){b.removeEvent(bJ,bz,bI.handle)}delete bw[bz]}}if(b.isEmptyObject(bw)){bK=bI.handle;if(bK){bK.elem=null}b.removeData(bJ,["events","handle"],true)}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(bv,bD,bA,bJ){if(bA&&(bA.nodeType===3||bA.nodeType===8)){return}var bG=bv.type||bv,bx=[],e,bw,bC,bH,bz,by,bF,bE,bB,bI;if(T.test(bG+b.event.triggered)){return}if(bG.indexOf("!")>=0){bG=bG.slice(0,-1);bw=true}if(bG.indexOf(".")>=0){bx=bG.split(".");bG=bx.shift();bx.sort()}if((!bA||b.event.customEvent[bG])&&!b.event.global[bG]){return}bv=typeof bv==="object"?bv[b.expando]?bv:new b.Event(bG,bv):new b.Event(bG);bv.type=bG;bv.isTrigger=true;bv.exclusive=bw;bv.namespace=bx.join(".");bv.namespace_re=bv.namespace?new RegExp("(^|\\.)"+bx.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;by=bG.indexOf(":")<0?"on"+bG:"";if(!bA){e=b.cache;for(bC in e){if(e[bC].events&&e[bC].events[bG]){b.event.trigger(bv,bD,e[bC].handle.elem,true)}}return}bv.result=L;if(!bv.target){bv.target=bA}bD=bD!=null?b.makeArray(bD):[];bD.unshift(bv);bF=b.event.special[bG]||{};if(bF.trigger&&bF.trigger.apply(bA,bD)===false){return}bB=[[bA,bF.bindType||bG]];if(!bJ&&!bF.noBubble&&!b.isWindow(bA)){bI=bF.delegateType||bG;bH=T.test(bI+bG)?bA:bA.parentNode;bz=null;for(;bH;bH=bH.parentNode){bB.push([bH,bI]);bz=bH}if(bz&&bz===bA.ownerDocument){bB.push([bz.defaultView||bz.parentWindow||bb,bI])}}for(bC=0;bC<bB.length&&!bv.isPropagationStopped();bC++){bH=bB[bC][0];bv.type=bB[bC][1];bE=(b._data(bH,"events")||{})[bv.type]&&b._data(bH,"handle");if(bE){bE.apply(bH,bD)}bE=by&&bH[by];if(bE&&b.acceptData(bH)&&bE.apply(bH,bD)===false){bv.preventDefault()}}bv.type=bG;if(!bJ&&!bv.isDefaultPrevented()){if((!bF._default||bF._default.apply(bA.ownerDocument,bD)===false)&&!(bG==="click"&&b.nodeName(bA,"a"))&&b.acceptData(bA)){if(by&&bA[bG]&&((bG!=="focus"&&bG!=="blur")||bv.target.offsetWidth!==0)&&!b.isWindow(bA)){bz=bA[by];if(bz){bA[by]=null}b.event.triggered=bG;bA[bG]();b.event.triggered=L;if(bz){bA[by]=bz}}}}return bv.result},dispatch:function(e){e=b.event.fix(e||bb.event);var bz=((b._data(this,"events")||{})[e.type]||[]),bA=bz.delegateCount,bG=[].slice.call(arguments,0),by=!e.exclusive&&!e.namespace,bH=[],bC,bB,bK,bx,bF,bE,bv,bD,bI,bw,bJ;bG[0]=e;e.delegateTarget=this;if(bA&&!e.target.disabled&&!(e.button&&e.type==="click")){bx=b(this);bx.context=this.ownerDocument||this;for(bK=e.target;bK!=this;bK=bK.parentNode||this){bE={};bD=[];bx[0]=bK;for(bC=0;bC<bA;bC++){bI=bz[bC];bw=bI.selector;if(bE[bw]===L){bE[bw]=(bI.quick?j(bK,bI.quick):bx.is(bw))}if(bE[bw]){bD.push(bI)}}if(bD.length){bH.push({elem:bK,matches:bD})}}}if(bz.length>bA){bH.push({elem:this,matches:bz.slice(bA)})}for(bC=0;bC<bH.length&&!e.isPropagationStopped();bC++){bv=bH[bC];e.currentTarget=bv.elem;for(bB=0;bB<bv.matches.length&&!e.isImmediatePropagationStopped();bB++){bI=bv.matches[bB];if(by||(!e.namespace&&!bI.namespace)||e.namespace_re&&e.namespace_re.test(bI.namespace)){e.data=bI.data;e.handleObj=bI;bF=((b.event.special[bI.origType]||{}).handle||bI.handler).apply(bv.elem,bG);if(bF!==L){e.result=bF;if(bF===false){e.preventDefault();e.stopPropagation()}}}}}return e.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(bv,e){if(bv.which==null){bv.which=e.charCode!=null?e.charCode:e.keyCode}return bv}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(bx,bw){var by,bz,e,bv=bw.button,bA=bw.fromElement;if(bx.pageX==null&&bw.clientX!=null){by=bx.target.ownerDocument||av;bz=by.documentElement;e=by.body;bx.pageX=bw.clientX+(bz&&bz.scrollLeft||e&&e.scrollLeft||0)-(bz&&bz.clientLeft||e&&e.clientLeft||0);bx.pageY=bw.clientY+(bz&&bz.scrollTop||e&&e.scrollTop||0)-(bz&&bz.clientTop||e&&e.clientTop||0)}if(!bx.relatedTarget&&bA){bx.relatedTarget=bA===bx.target?bw.toElement:bA}if(!bx.which&&bv!==L){bx.which=(bv&1?1:(bv&2?3:(bv&4?2:0)))}return bx}},fix:function(bw){if(bw[b.expando]){return bw}var bv,bz,e=bw,bx=b.event.fixHooks[bw.type]||{},by=bx.props?this.props.concat(bx.props):this.props;bw=b.Event(e);for(bv=by.length;bv;){bz=by[--bv];bw[bz]=e[bz]}if(!bw.target){bw.target=e.srcElement||av}if(bw.target.nodeType===3){bw.target=bw.target.parentNode}if(bw.metaKey===L){bw.metaKey=bw.ctrlKey}return bx.filter?bx.filter(bw,e):bw},special:{ready:{setup:b.bindReady},load:{noBubble:true},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(bw,bv,e){if(b.isWindow(this)){this.onbeforeunload=e}},teardown:function(bv,e){if(this.onbeforeunload===e){this.onbeforeunload=null}}}},simulate:function(bw,by,bx,bv){var bz=b.extend(new b.Event(),bx,{type:bw,isSimulated:true,originalEvent:{}});if(bv){b.event.trigger(bz,null,by)}else{b.event.dispatch.call(by,bz)}if(bz.isDefaultPrevented()){bx.preventDefault()}}};b.event.handle=b.event.dispatch;b.removeEvent=av.removeEventListener?function(bv,e,bw){if(bv.removeEventListener){bv.removeEventListener(e,bw,false)}}:function(bv,e,bw){if(bv.detachEvent){bv.detachEvent("on"+e,bw)}};b.Event=function(bv,e){if(!(this instanceof b.Event)){return new b.Event(bv,e)}if(bv&&bv.type){this.originalEvent=bv;this.type=bv.type;this.isDefaultPrevented=(bv.defaultPrevented||bv.returnValue===false||bv.getPreventDefault&&bv.getPreventDefault())?i:bk}else{this.type=bv}if(e){b.extend(this,e)}this.timeStamp=bv&&bv.timeStamp||b.now();this[b.expando]=true};function bk(){return false}function i(){return true}b.Event.prototype={preventDefault:function(){this.isDefaultPrevented=i;var bv=this.originalEvent;if(!bv){return}if(bv.preventDefault){bv.preventDefault()}else{bv.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=i;var bv=this.originalEvent;if(!bv){return}if(bv.stopPropagation){bv.stopPropagation()}bv.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=i;this.stopPropagation()},isDefaultPrevented:bk,isPropagationStopped:bk,isImmediatePropagationStopped:bk};b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(bv,e){b.event.special[bv]={delegateType:e,bindType:e,handle:function(bz){var bB=this,bA=bz.relatedTarget,by=bz.handleObj,bw=by.selector,bx;if(!bA||(bA!==bB&&!b.contains(bB,bA))){bz.type=by.origType;bx=by.handler.apply(this,arguments);bz.type=e}return bx}}});if(!b.support.submitBubbles){b.event.special.submit={setup:function(){if(b.nodeName(this,"form")){return false}b.event.add(this,"click._submit keypress._submit",function(bx){var bw=bx.target,bv=b.nodeName(bw,"input")||b.nodeName(bw,"button")?bw.form:L;if(bv&&!bv._submit_attached){b.event.add(bv,"submit._submit",function(e){if(this.parentNode&&!e.isTrigger){b.event.simulate("submit",this.parentNode,e,true)}});bv._submit_attached=true}})},teardown:function(){if(b.nodeName(this,"form")){return false}b.event.remove(this,"._submit")}}}if(!b.support.changeBubbles){b.event.special.change={setup:function(){if(bd.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){b.event.add(this,"propertychange._change",function(e){if(e.originalEvent.propertyName==="checked"){this._just_changed=true}});b.event.add(this,"click._change",function(e){if(this._just_changed&&!e.isTrigger){this._just_changed=false;b.event.simulate("change",this,e,true)}})}return false}b.event.add(this,"beforeactivate._change",function(bw){var bv=bw.target;if(bd.test(bv.nodeName)&&!bv._change_attached){b.event.add(bv,"change._change",function(e){if(this.parentNode&&!e.isSimulated&&!e.isTrigger){b.event.simulate("change",this.parentNode,e,true)}});bv._change_attached=true}})},handle:function(bv){var e=bv.target;if(this!==e||bv.isSimulated||bv.isTrigger||(e.type!=="radio"&&e.type!=="checkbox")){return bv.handleObj.handler.apply(this,arguments)}},teardown:function(){b.event.remove(this,"._change");return bd.test(this.nodeName)}}}if(!b.support.focusinBubbles){b.each({focus:"focusin",blur:"focusout"},function(bx,e){var bv=0,bw=function(by){b.event.simulate(e,by.target,b.event.fix(by),true)};b.event.special[e]={setup:function(){if(bv++===0){av.addEventListener(bx,bw,true)}},teardown:function(){if(--bv===0){av.removeEventListener(bx,bw,true)}}}})}b.fn.extend({on:function(bw,e,bz,by,bv){var bA,bx;if(typeof bw==="object"){if(typeof e!=="string"){bz=e;e=L}for(bx in bw){this.on(bx,e,bz,bw[bx],bv)}return this}if(bz==null&&by==null){by=e;bz=e=L}else{if(by==null){if(typeof e==="string"){by=bz;bz=L}else{by=bz;bz=e;e=L}}}if(by===false){by=bk}else{if(!by){return this}}if(bv===1){bA=by;by=function(bB){b().off(bB);return bA.apply(this,arguments)};by.guid=bA.guid||(bA.guid=b.guid++)}return this.each(function(){b.event.add(this,bw,by,bz,e)})},one:function(bv,e,bx,bw){return this.on.call(this,bv,e,bx,bw,1)},off:function(bw,e,by){if(bw&&bw.preventDefault&&bw.handleObj){var bv=bw.handleObj;b(bw.delegateTarget).off(bv.namespace?bv.type+"."+bv.namespace:bv.type,bv.selector,bv.handler);return this}if(typeof bw==="object"){for(var bx in bw){this.off(bx,e,bw[bx])}return this}if(e===false||typeof e==="function"){by=e;e=L}if(by===false){by=bk}return this.each(function(){b.event.remove(this,bw,by,e)})},bind:function(e,bw,bv){return this.on(e,null,bw,bv)},unbind:function(e,bv){return this.off(e,null,bv)},live:function(e,bw,bv){b(this.context).on(e,this.selector,bw,bv);return this},die:function(e,bv){b(this.context).off(e,this.selector||"**",bv);return this},delegate:function(e,bv,bx,bw){return this.on(bv,e,bx,bw)},undelegate:function(e,bv,bw){return arguments.length==1?this.off(e,"**"):this.off(bv,e,bw)},trigger:function(e,bv){return this.each(function(){b.event.trigger(e,bv,this)})},triggerHandler:function(e,bv){if(this[0]){return b.event.trigger(e,bv,this[0],true)}},toggle:function(bx){var bv=arguments,e=bx.guid||b.guid++,bw=0,by=function(bz){var bA=(b._data(this,"lastToggle"+bx.guid)||0)%bw;b._data(this,"lastToggle"+bx.guid,bA+1);bz.preventDefault();return bv[bA].apply(this,arguments)||false};by.guid=e;while(bw<bv.length){bv[bw++].guid=e}return this.click(by)},hover:function(e,bv){return this.mouseenter(e).mouseleave(bv||e)}});b.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu").split(" "),function(bv,e){b.fn[e]=function(bx,bw){if(bw==null){bw=bx;bx=null}return arguments.length>0?this.on(e,null,bx,bw):this.trigger(e)};if(b.attrFn){b.attrFn[e]=true}if(aO.test(e)){b.event.fixHooks[e]=b.event.keyHooks}if(bf.test(e)){b.event.fixHooks[e]=b.event.mouseHooks}});
+/*!
+ * Sizzle CSS Selector Engine
+ * Copyright 2011, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ * More information: http://sizzlejs.com/
+ */
+(function(){var bH=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bC="sizcache"+(Math.random()+"").replace(".",""),bI=0,bL=Object.prototype.toString,bB=false,bA=true,bK=/\\/g,bO=/\r\n/g,bQ=/\W/;[0,0].sort(function(){bA=false;return 0});var by=function(bV,e,bY,bZ){bY=bY||[];e=e||av;var b1=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!bV||typeof bV!=="string"){return bY}var bS,b3,b6,bR,b2,b5,b4,bX,bU=true,bT=by.isXML(e),bW=[],b0=bV;do{bH.exec("");bS=bH.exec(b0);if(bS){b0=bS[3];bW.push(bS[1]);if(bS[2]){bR=bS[3];break}}}while(bS);if(bW.length>1&&bD.exec(bV)){if(bW.length===2&&bE.relative[bW[0]]){b3=bM(bW[0]+bW[1],e,bZ)}else{b3=bE.relative[bW[0]]?[e]:by(bW.shift(),e);while(bW.length){bV=bW.shift();if(bE.relative[bV]){bV+=bW.shift()}b3=bM(bV,b3,bZ)}}}else{if(!bZ&&bW.length>1&&e.nodeType===9&&!bT&&bE.match.ID.test(bW[0])&&!bE.match.ID.test(bW[bW.length-1])){b2=by.find(bW.shift(),e,bT);e=b2.expr?by.filter(b2.expr,b2.set)[0]:b2.set[0]}if(e){b2=bZ?{expr:bW.pop(),set:bF(bZ)}:by.find(bW.pop(),bW.length===1&&(bW[0]==="~"||bW[0]==="+")&&e.parentNode?e.parentNode:e,bT);b3=b2.expr?by.filter(b2.expr,b2.set):b2.set;if(bW.length>0){b6=bF(b3)}else{bU=false}while(bW.length){b5=bW.pop();b4=b5;if(!bE.relative[b5]){b5=""}else{b4=bW.pop()}if(b4==null){b4=e}bE.relative[b5](b6,b4,bT)}}else{b6=bW=[]}}if(!b6){b6=b3}if(!b6){by.error(b5||bV)}if(bL.call(b6)==="[object Array]"){if(!bU){bY.push.apply(bY,b6)}else{if(e&&e.nodeType===1){for(bX=0;b6[bX]!=null;bX++){if(b6[bX]&&(b6[bX]===true||b6[bX].nodeType===1&&by.contains(e,b6[bX]))){bY.push(b3[bX])}}}else{for(bX=0;b6[bX]!=null;bX++){if(b6[bX]&&b6[bX].nodeType===1){bY.push(b3[bX])}}}}}else{bF(b6,bY)}if(bR){by(bR,b1,bY,bZ);by.uniqueSort(bY)}return bY};by.uniqueSort=function(bR){if(bJ){bB=bA;bR.sort(bJ);if(bB){for(var e=1;e<bR.length;e++){if(bR[e]===bR[e-1]){bR.splice(e--,1)}}}}return bR};by.matches=function(e,bR){return by(e,null,null,bR)};by.matchesSelector=function(e,bR){return by(bR,null,null,[e]).length>0};by.find=function(bX,e,bY){var bW,bS,bU,bT,bV,bR;if(!bX){return[]}for(bS=0,bU=bE.order.length;bS<bU;bS++){bV=bE.order[bS];if((bT=bE.leftMatch[bV].exec(bX))){bR=bT[1];bT.splice(1,1);if(bR.substr(bR.length-1)!=="\\"){bT[1]=(bT[1]||"").replace(bK,"");bW=bE.find[bV](bT,e,bY);if(bW!=null){bX=bX.replace(bE.match[bV],"");break}}}}if(!bW){bW=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName("*"):[]}return{set:bW,expr:bX}};by.filter=function(b1,b0,b4,bU){var bW,e,bZ,b6,b3,bR,bT,bV,b2,bS=b1,b5=[],bY=b0,bX=b0&&b0[0]&&by.isXML(b0[0]);while(b1&&b0.length){for(bZ in bE.filter){if((bW=bE.leftMatch[bZ].exec(b1))!=null&&bW[2]){bR=bE.filter[bZ];bT=bW[1];e=false;bW.splice(1,1);if(bT.substr(bT.length-1)==="\\"){continue}if(bY===b5){b5=[]}if(bE.preFilter[bZ]){bW=bE.preFilter[bZ](bW,bY,b4,b5,bU,bX);if(!bW){e=b6=true}else{if(bW===true){continue}}}if(bW){for(bV=0;(b3=bY[bV])!=null;bV++){if(b3){b6=bR(b3,bW,bV,bY);b2=bU^b6;if(b4&&b6!=null){if(b2){e=true}else{bY[bV]=false}}else{if(b2){b5.push(b3);e=true}}}}}if(b6!==L){if(!b4){bY=b5}b1=b1.replace(bE.match[bZ],"");if(!e){return[]}break}}}if(b1===bS){if(e==null){by.error(b1)}else{break}}bS=b1}return bY};by.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};var bw=by.getText=function(bU){var bS,bT,e=bU.nodeType,bR="";if(e){if(e===1||e===9){if(typeof bU.textContent==="string"){return bU.textContent}else{if(typeof bU.innerText==="string"){return bU.innerText.replace(bO,"")}else{for(bU=bU.firstChild;bU;bU=bU.nextSibling){bR+=bw(bU)}}}}else{if(e===3||e===4){return bU.nodeValue}}}else{for(bS=0;(bT=bU[bS]);bS++){if(bT.nodeType!==8){bR+=bw(bT)}}}return bR};var bE=by.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(bW,bR){var bT=typeof bR==="string",bV=bT&&!bQ.test(bR),bX=bT&&!bV;if(bV){bR=bR.toLowerCase()}for(var bS=0,e=bW.length,bU;bS<e;bS++){if((bU=bW[bS])){while((bU=bU.previousSibling)&&bU.nodeType!==1){}bW[bS]=bX||bU&&bU.nodeName.toLowerCase()===bR?bU||false:bU===bR}}if(bX){by.filter(bR,bW,true)}},">":function(bW,bR){var bV,bU=typeof bR==="string",bS=0,e=bW.length;if(bU&&!bQ.test(bR)){bR=bR.toLowerCase();for(;bS<e;bS++){bV=bW[bS];if(bV){var bT=bV.parentNode;bW[bS]=bT.nodeName.toLowerCase()===bR?bT:false}}}else{for(;bS<e;bS++){bV=bW[bS];if(bV){bW[bS]=bU?bV.parentNode:bV.parentNode===bR}}if(bU){by.filter(bR,bW,true)}}},"":function(bT,bR,bV){var bU,bS=bI++,e=bN;if(typeof bR==="string"&&!bQ.test(bR)){bR=bR.toLowerCase();bU=bR;e=bv}e("parentNode",bR,bS,bT,bU,bV)},"~":function(bT,bR,bV){var bU,bS=bI++,e=bN;if(typeof bR==="string"&&!bQ.test(bR)){bR=bR.toLowerCase();bU=bR;e=bv}e("previousSibling",bR,bS,bT,bU,bV)}},find:{ID:function(bR,bS,bT){if(typeof bS.getElementById!=="undefined"&&!bT){var e=bS.getElementById(bR[1]);return e&&e.parentNode?[e]:[]}},NAME:function(bS,bV){if(typeof bV.getElementsByName!=="undefined"){var bR=[],bU=bV.getElementsByName(bS[1]);for(var bT=0,e=bU.length;bT<e;bT++){if(bU[bT].getAttribute("name")===bS[1]){bR.push(bU[bT])}}return bR.length===0?null:bR}},TAG:function(e,bR){if(typeof bR.getElementsByTagName!=="undefined"){return bR.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(bT,bR,bS,e,bW,bX){bT=" "+bT[1].replace(bK,"")+" ";if(bX){return bT}for(var bU=0,bV;(bV=bR[bU])!=null;bU++){if(bV){if(bW^(bV.className&&(" "+bV.className+" ").replace(/[\t\n\r]/g," ").indexOf(bT)>=0)){if(!bS){e.push(bV)}}else{if(bS){bR[bU]=false}}}}return false},ID:function(e){return e[1].replace(bK,"")},TAG:function(bR,e){return bR[1].replace(bK,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){by.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var bR=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bR[1]+(bR[2]||1))-0;e[3]=bR[3]-0}else{if(e[2]){by.error(e[0])}}e[0]=bI++;return e},ATTR:function(bU,bR,bS,e,bV,bW){var bT=bU[1]=bU[1].replace(bK,"");if(!bW&&bE.attrMap[bT]){bU[1]=bE.attrMap[bT]}bU[4]=(bU[4]||bU[5]||"").replace(bK,"");if(bU[2]==="~="){bU[4]=" "+bU[4]+" "}return bU},PSEUDO:function(bU,bR,bS,e,bV){if(bU[1]==="not"){if((bH.exec(bU[3])||"").length>1||/^\w/.test(bU[3])){bU[3]=by(bU[3],null,null,bR)}else{var bT=by.filter(bU[3],bR,bS,true^bV);if(!bS){e.push.apply(e,bT)}return false}}else{if(bE.match.POS.test(bU[0])||bE.match.CHILD.test(bU[0])){return true}}return bU},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(bS,bR,e){return !!by(e[3],bS).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(bS){var e=bS.getAttribute("type"),bR=bS.type;return bS.nodeName.toLowerCase()==="input"&&"text"===bR&&(e===bR||e===null)},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type},submit:function(bR){var e=bR.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===bR.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(bR){var e=bR.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===bR.type},button:function(bR){var e=bR.nodeName.toLowerCase();return e==="input"&&"button"===bR.type||e==="button"},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(bR,e){return e===0},last:function(bS,bR,e,bT){return bR===bT.length-1},even:function(bR,e){return e%2===0},odd:function(bR,e){return e%2===1},lt:function(bS,bR,e){return bR<e[3]-0},gt:function(bS,bR,e){return bR>e[3]-0},nth:function(bS,bR,e){return e[3]-0===bR},eq:function(bS,bR,e){return e[3]-0===bR}},filter:{PSEUDO:function(bS,bX,bW,bY){var e=bX[1],bR=bE.filters[e];if(bR){return bR(bS,bW,bX,bY)}else{if(e==="contains"){return(bS.textContent||bS.innerText||bw([bS])||"").indexOf(bX[3])>=0}else{if(e==="not"){var bT=bX[3];for(var bV=0,bU=bT.length;bV<bU;bV++){if(bT[bV]===bS){return false}}return true}else{by.error(e)}}}},CHILD:function(bS,bU){var bT,b0,bW,bZ,e,bV,bY,bX=bU[1],bR=bS;switch(bX){case"only":case"first":while((bR=bR.previousSibling)){if(bR.nodeType===1){return false}}if(bX==="first"){return true}bR=bS;case"last":while((bR=bR.nextSibling)){if(bR.nodeType===1){return false}}return true;case"nth":bT=bU[2];b0=bU[3];if(bT===1&&b0===0){return true}bW=bU[0];bZ=bS.parentNode;if(bZ&&(bZ[bC]!==bW||!bS.nodeIndex)){bV=0;for(bR=bZ.firstChild;bR;bR=bR.nextSibling){if(bR.nodeType===1){bR.nodeIndex=++bV}}bZ[bC]=bW}bY=bS.nodeIndex-b0;if(bT===0){return bY===0}else{return(bY%bT===0&&bY/bT>=0)}}},ID:function(bR,e){return bR.nodeType===1&&bR.getAttribute("id")===e},TAG:function(bR,e){return(e==="*"&&bR.nodeType===1)||!!bR.nodeName&&bR.nodeName.toLowerCase()===e},CLASS:function(bR,e){return(" "+(bR.className||bR.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(bV,bT){var bS=bT[1],e=by.attr?by.attr(bV,bS):bE.attrHandle[bS]?bE.attrHandle[bS](bV):bV[bS]!=null?bV[bS]:bV.getAttribute(bS),bW=e+"",bU=bT[2],bR=bT[4];return e==null?bU==="!=":!bU&&by.attr?e!=null:bU==="="?bW===bR:bU==="*="?bW.indexOf(bR)>=0:bU==="~="?(" "+bW+" ").indexOf(bR)>=0:!bR?bW&&e!==false:bU==="!="?bW!==bR:bU==="^="?bW.indexOf(bR)===0:bU==="$="?bW.substr(bW.length-bR.length)===bR:bU==="|="?bW===bR||bW.substr(0,bR.length+1)===bR+"-":false},POS:function(bU,bR,bS,bV){var e=bR[2],bT=bE.setFilters[e];if(bT){return bT(bU,bS,bR,bV)}}}};var bD=bE.match.POS,bx=function(bR,e){return"\\"+(e-0+1)};for(var bz in bE.match){bE.match[bz]=new RegExp(bE.match[bz].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bE.leftMatch[bz]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bE.match[bz].source.replace(/\\(\d+)/g,bx))}var bF=function(bR,e){bR=Array.prototype.slice.call(bR,0);if(e){e.push.apply(e,bR);return e}return bR};try{Array.prototype.slice.call(av.documentElement.childNodes,0)[0].nodeType}catch(bP){bF=function(bU,bT){var bS=0,bR=bT||[];if(bL.call(bU)==="[object Array]"){Array.prototype.push.apply(bR,bU)}else{if(typeof bU.length==="number"){for(var e=bU.length;bS<e;bS++){bR.push(bU[bS])}}else{for(;bU[bS];bS++){bR.push(bU[bS])}}}return bR}}var bJ,bG;if(av.documentElement.compareDocumentPosition){bJ=function(bR,e){if(bR===e){bB=true;return 0}if(!bR.compareDocumentPosition||!e.compareDocumentPosition){return bR.compareDocumentPosition?-1:1}return bR.compareDocumentPosition(e)&4?-1:1}}else{bJ=function(bY,bX){if(bY===bX){bB=true;return 0}else{if(bY.sourceIndex&&bX.sourceIndex){return bY.sourceIndex-bX.sourceIndex}}var bV,bR,bS=[],e=[],bU=bY.parentNode,bW=bX.parentNode,bZ=bU;if(bU===bW){return bG(bY,bX)}else{if(!bU){return -1}else{if(!bW){return 1}}}while(bZ){bS.unshift(bZ);bZ=bZ.parentNode}bZ=bW;while(bZ){e.unshift(bZ);bZ=bZ.parentNode}bV=bS.length;bR=e.length;for(var bT=0;bT<bV&&bT<bR;bT++){if(bS[bT]!==e[bT]){return bG(bS[bT],e[bT])}}return bT===bV?bG(bY,e[bT],-1):bG(bS[bT],bX,1)};bG=function(bR,e,bS){if(bR===e){return bS}var bT=bR.nextSibling;while(bT){if(bT===e){return -1}bT=bT.nextSibling}return 1}}(function(){var bR=av.createElement("div"),bS="script"+(new Date()).getTime(),e=av.documentElement;bR.innerHTML="<a name='"+bS+"'/>";e.insertBefore(bR,e.firstChild);if(av.getElementById(bS)){bE.find.ID=function(bU,bV,bW){if(typeof bV.getElementById!=="undefined"&&!bW){var bT=bV.getElementById(bU[1]);return bT?bT.id===bU[1]||typeof bT.getAttributeNode!=="undefined"&&bT.getAttributeNode("id").nodeValue===bU[1]?[bT]:L:[]}};bE.filter.ID=function(bV,bT){var bU=typeof bV.getAttributeNode!=="undefined"&&bV.getAttributeNode("id");return bV.nodeType===1&&bU&&bU.nodeValue===bT}}e.removeChild(bR);e=bR=null})();(function(){var e=av.createElement("div");e.appendChild(av.createComment(""));if(e.getElementsByTagName("*").length>0){bE.find.TAG=function(bR,bV){var bU=bV.getElementsByTagName(bR[1]);if(bR[1]==="*"){var bT=[];for(var bS=0;bU[bS];bS++){if(bU[bS].nodeType===1){bT.push(bU[bS])}}bU=bT}return bU}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bE.attrHandle.href=function(bR){return bR.getAttribute("href",2)}}e=null})();if(av.querySelectorAll){(function(){var e=by,bT=av.createElement("div"),bS="__sizzle__";bT.innerHTML="<p class='TEST'></p>";if(bT.querySelectorAll&&bT.querySelectorAll(".TEST").length===0){return}by=function(b4,bV,bZ,b3){bV=bV||av;if(!b3&&!by.isXML(bV)){var b2=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b4);if(b2&&(bV.nodeType===1||bV.nodeType===9)){if(b2[1]){return bF(bV.getElementsByTagName(b4),bZ)}else{if(b2[2]&&bE.find.CLASS&&bV.getElementsByClassName){return bF(bV.getElementsByClassName(b2[2]),bZ)}}}if(bV.nodeType===9){if(b4==="body"&&bV.body){return bF([bV.body],bZ)}else{if(b2&&b2[3]){var bY=bV.getElementById(b2[3]);if(bY&&bY.parentNode){if(bY.id===b2[3]){return bF([bY],bZ)}}else{return bF([],bZ)}}}try{return bF(bV.querySelectorAll(b4),bZ)}catch(b0){}}else{if(bV.nodeType===1&&bV.nodeName.toLowerCase()!=="object"){var bW=bV,bX=bV.getAttribute("id"),bU=bX||bS,b6=bV.parentNode,b5=/^\s*[+~]/.test(b4);if(!bX){bV.setAttribute("id",bU)}else{bU=bU.replace(/'/g,"\\$&")}if(b5&&b6){bV=bV.parentNode}try{if(!b5||b6){return bF(bV.querySelectorAll("[id='"+bU+"'] "+b4),bZ)}}catch(b1){}finally{if(!bX){bW.removeAttribute("id")}}}}}return e(b4,bV,bZ,b3)};for(var bR in e){by[bR]=e[bR]}bT=null})()}(function(){var e=av.documentElement,bS=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(bS){var bU=!bS.call(av.createElement("div"),"div"),bR=false;try{bS.call(av.documentElement,"[test!='']:sizzle")}catch(bT){bR=true}by.matchesSelector=function(bW,bY){bY=bY.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!by.isXML(bW)){try{if(bR||!bE.match.PSEUDO.test(bY)&&!/!=/.test(bY)){var bV=bS.call(bW,bY);if(bV||!bU||bW.document&&bW.document.nodeType!==11){return bV}}}catch(bX){}}return by(bY,null,null,[bW]).length>0}}})();(function(){var e=av.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}bE.order.splice(1,0,"CLASS");bE.find.CLASS=function(bR,bS,bT){if(typeof bS.getElementsByClassName!=="undefined"&&!bT){return bS.getElementsByClassName(bR[1])}};e=null})();function bv(bR,bW,bV,bZ,bX,bY){for(var bT=0,bS=bZ.length;bT<bS;bT++){var e=bZ[bT];if(e){var bU=false;e=e[bR];while(e){if(e[bC]===bV){bU=bZ[e.sizset];break}if(e.nodeType===1&&!bY){e[bC]=bV;e.sizset=bT}if(e.nodeName.toLowerCase()===bW){bU=e;break}e=e[bR]}bZ[bT]=bU}}}function bN(bR,bW,bV,bZ,bX,bY){for(var bT=0,bS=bZ.length;bT<bS;bT++){var e=bZ[bT];if(e){var bU=false;e=e[bR];while(e){if(e[bC]===bV){bU=bZ[e.sizset];break}if(e.nodeType===1){if(!bY){e[bC]=bV;e.sizset=bT}if(typeof bW!=="string"){if(e===bW){bU=true;break}}else{if(by.filter(bW,[e]).length>0){bU=e;break}}}e=e[bR]}bZ[bT]=bU}}}if(av.documentElement.contains){by.contains=function(bR,e){return bR!==e&&(bR.contains?bR.contains(e):true)}}else{if(av.documentElement.compareDocumentPosition){by.contains=function(bR,e){return !!(bR.compareDocumentPosition(e)&16)}}else{by.contains=function(){return false}}}by.isXML=function(e){var bR=(e?e.ownerDocument||e:0).documentElement;return bR?bR.nodeName!=="HTML":false};var bM=function(bS,e,bW){var bV,bX=[],bU="",bY=e.nodeType?[e]:e;while((bV=bE.match.PSEUDO.exec(bS))){bU+=bV[0];bS=bS.replace(bE.match.PSEUDO,"")}bS=bE.relative[bS]?bS+"*":bS;for(var bT=0,bR=bY.length;bT<bR;bT++){by(bS,bY[bT],bX,bW)}return by.filter(bU,bX)};by.attr=b.attr;by.selectors.attrMap={};b.find=by;b.expr=by.selectors;b.expr[":"]=b.expr.filters;b.unique=by.uniqueSort;b.text=by.getText;b.isXMLDoc=by.isXML;b.contains=by.contains})();var ab=/Until$/,aq=/^(?:parents|prevUntil|prevAll)/,a9=/,/,bp=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,H=b.expr.match.POS,ay={children:true,contents:true,next:true,prev:true};b.fn.extend({find:function(e){var bw=this,by,bv;if(typeof e!=="string"){return b(e).filter(function(){for(by=0,bv=bw.length;by<bv;by++){if(b.contains(bw[by],this)){return true}}})}var bx=this.pushStack("","find",e),bA,bB,bz;for(by=0,bv=this.length;by<bv;by++){bA=bx.length;b.find(e,this[by],bx);if(by>0){for(bB=bA;bB<bx.length;bB++){for(bz=0;bz<bA;bz++){if(bx[bz]===bx[bB]){bx.splice(bB--,1);break}}}}}return bx},has:function(bv){var e=b(bv);return this.filter(function(){for(var bx=0,bw=e.length;bx<bw;bx++){if(b.contains(this,e[bx])){return true}}})},not:function(e){return this.pushStack(aG(this,e,false),"not",e)},filter:function(e){return this.pushStack(aG(this,e,true),"filter",e)},is:function(e){return !!e&&(typeof e==="string"?H.test(e)?b(e,this.context).index(this[0])>=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(by,bx){var bv=[],bw,e,bz=this[0];if(b.isArray(by)){var bB=1;while(bz&&bz.ownerDocument&&bz!==bx){for(bw=0;bw<by.length;bw++){if(b(bz).is(by[bw])){bv.push({selector:by[bw],elem:bz,level:bB})}}bz=bz.parentNode;bB++}return bv}var bA=H.test(by)||typeof by!=="string"?b(by,bx||this.context):0;for(bw=0,e=this.length;bw<e;bw++){bz=this[bw];while(bz){if(bA?bA.index(bz)>-1:b.find.matchesSelector(bz,by)){bv.push(bz);break}else{bz=bz.parentNode;if(!bz||!bz.ownerDocument||bz===bx||bz.nodeType===11){break}}}}bv=bv.length>1?b.unique(bv):bv;return this.pushStack(bv,"closest",by)},index:function(e){if(!e){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof e==="string"){return b.inArray(this[0],b(e))}return b.inArray(e.jquery?e[0]:e,this)},add:function(e,bv){var bx=typeof e==="string"?b(e,bv):b.makeArray(e&&e.nodeType?[e]:e),bw=b.merge(this.get(),bx);return this.pushStack(C(bx[0])||C(bw[0])?bw:b.unique(bw))},andSelf:function(){return this.add(this.prevObject)}});function C(e){return !e||!e.parentNode||e.parentNode.nodeType===11}b.each({parent:function(bv){var e=bv.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(bv,e,bw){return b.dir(bv,"parentNode",bw)},next:function(e){return b.nth(e,2,"nextSibling")},prev:function(e){return b.nth(e,2,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(bv,e,bw){return b.dir(bv,"nextSibling",bw)},prevUntil:function(bv,e,bw){return b.dir(bv,"previousSibling",bw)},siblings:function(e){return b.sibling(e.parentNode.firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.makeArray(e.childNodes)}},function(e,bv){b.fn[e]=function(by,bw){var bx=b.map(this,bv,by);if(!ab.test(e)){bw=by}if(bw&&typeof bw==="string"){bx=b.filter(bw,bx)}bx=this.length>1&&!ay[e]?b.unique(bx):bx;if((this.length>1||a9.test(bw))&&aq.test(e)){bx=bx.reverse()}return this.pushStack(bx,e,P.call(arguments).join(","))}});b.extend({filter:function(bw,e,bv){if(bv){bw=":not("+bw+")"}return e.length===1?b.find.matchesSelector(e[0],bw)?[e[0]]:[]:b.find.matches(bw,e)},dir:function(bw,bv,by){var e=[],bx=bw[bv];while(bx&&bx.nodeType!==9&&(by===L||bx.nodeType!==1||!b(bx).is(by))){if(bx.nodeType===1){e.push(bx)}bx=bx[bv]}return e},nth:function(by,e,bw,bx){e=e||1;var bv=0;for(;by;by=by[bw]){if(by.nodeType===1&&++bv===e){break}}return by},sibling:function(bw,bv){var e=[];for(;bw;bw=bw.nextSibling){if(bw.nodeType===1&&bw!==bv){e.push(bw)}}return e}});function aG(bx,bw,e){bw=bw||0;if(b.isFunction(bw)){return b.grep(bx,function(bz,by){var bA=!!bw.call(bz,by,bz);return bA===e})}else{if(bw.nodeType){return b.grep(bx,function(bz,by){return(bz===bw)===e})}else{if(typeof bw==="string"){var bv=b.grep(bx,function(by){return by.nodeType===1});if(bp.test(bw)){return b.filter(bw,bv,!e)}else{bw=b.filter(bw,bv)}}}}return b.grep(bx,function(bz,by){return(b.inArray(bz,bw)>=0)===e})}function a(e){var bw=aR.split("|"),bv=e.createDocumentFragment();if(bv.createElement){while(bw.length){bv.createElement(bw.pop())}}return bv}var aR="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ag=/ jQuery\d+="(?:\d+|null)"/g,ar=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,d=/<([\w:]+)/,w=/<tbody/i,W=/<|&#?\w+;/,ae=/<(?:script|style)/i,O=/<(?:script|object|embed|option|style)/i,ah=new RegExp("<(?:"+aR+")","i"),o=/checked\s*(?:[^=]|=\s*.checked.)/i,bm=/\/(java|ecma)script/i,aN=/^\s*<!(?:\[CDATA\[|\-\-)/,ax={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},ac=a(av);ax.optgroup=ax.option;ax.tbody=ax.tfoot=ax.colgroup=ax.caption=ax.thead;ax.th=ax.td;if(!b.support.htmlSerialize){ax._default=[1,"div<div>","</div>"]}b.fn.extend({text:function(e){if(b.isFunction(e)){return this.each(function(bw){var bv=b(this);bv.text(e.call(this,bw,bv.text()))})}if(typeof e!=="object"&&e!==L){return this.empty().append((this[0]&&this[0].ownerDocument||av).createTextNode(e))}return b.text(this)},wrapAll:function(e){if(b.isFunction(e)){return this.each(function(bw){b(this).wrapAll(e.call(this,bw))})}if(this[0]){var bv=b(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bv.insertBefore(this[0])}bv.map(function(){var bw=this;while(bw.firstChild&&bw.firstChild.nodeType===1){bw=bw.firstChild}return bw}).append(this)}return this},wrapInner:function(e){if(b.isFunction(e)){return this.each(function(bv){b(this).wrapInner(e.call(this,bv))})}return this.each(function(){var bv=b(this),bw=bv.contents();if(bw.length){bw.wrapAll(e)}else{bv.append(e)}})},wrap:function(e){var bv=b.isFunction(e);return this.each(function(bw){b(this).wrapAll(bv?e.call(this,bw):e)})},unwrap:function(){return this.parent().each(function(){if(!b.nodeName(this,"body")){b(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.insertBefore(e,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bv){this.parentNode.insertBefore(bv,this)})}else{if(arguments.length){var e=b.clean(arguments);e.push.apply(e,this.toArray());return this.pushStack(e,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bv){this.parentNode.insertBefore(bv,this.nextSibling)})}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,b.clean(arguments));return e}}},remove:function(e,bx){for(var bv=0,bw;(bw=this[bv])!=null;bv++){if(!e||b.filter(e,[bw]).length){if(!bx&&bw.nodeType===1){b.cleanData(bw.getElementsByTagName("*"));b.cleanData([bw])}if(bw.parentNode){bw.parentNode.removeChild(bw)}}}return this},empty:function(){for(var e=0,bv;(bv=this[e])!=null;e++){if(bv.nodeType===1){b.cleanData(bv.getElementsByTagName("*"))}while(bv.firstChild){bv.removeChild(bv.firstChild)}}return this},clone:function(bv,e){bv=bv==null?false:bv;e=e==null?bv:e;return this.map(function(){return b.clone(this,bv,e)})},html:function(bx){if(bx===L){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ag,""):null}else{if(typeof bx==="string"&&!ae.test(bx)&&(b.support.leadingWhitespace||!ar.test(bx))&&!ax[(d.exec(bx)||["",""])[1].toLowerCase()]){bx=bx.replace(R,"<$1></$2>");try{for(var bw=0,bv=this.length;bw<bv;bw++){if(this[bw].nodeType===1){b.cleanData(this[bw].getElementsByTagName("*"));this[bw].innerHTML=bx}}}catch(by){this.empty().append(bx)}}else{if(b.isFunction(bx)){this.each(function(bz){var e=b(this);e.html(bx.call(this,bz,e.html()))})}else{this.empty().append(bx)}}}return this},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(b.isFunction(e)){return this.each(function(bx){var bw=b(this),bv=bw.html();bw.replaceWith(e.call(this,bx,bv))})}if(typeof e!=="string"){e=b(e).detach()}return this.each(function(){var bw=this.nextSibling,bv=this.parentNode;b(this).remove();if(bw){b(bw).before(e)}else{b(bv).append(e)}})}else{return this.length?this.pushStack(b(b.isFunction(e)?e():e),"replaceWith",e):this}},detach:function(e){return this.remove(e,true)},domManip:function(bB,bF,bE){var bx,by,bA,bD,bC=bB[0],bv=[];if(!b.support.checkClone&&arguments.length===3&&typeof bC==="string"&&o.test(bC)){return this.each(function(){b(this).domManip(bB,bF,bE,true)})}if(b.isFunction(bC)){return this.each(function(bH){var bG=b(this);bB[0]=bC.call(this,bH,bF?bG.html():L);bG.domManip(bB,bF,bE)})}if(this[0]){bD=bC&&bC.parentNode;if(b.support.parentNode&&bD&&bD.nodeType===11&&bD.childNodes.length===this.length){bx={fragment:bD}}else{bx=b.buildFragment(bB,this,bv)}bA=bx.fragment;if(bA.childNodes.length===1){by=bA=bA.firstChild}else{by=bA.firstChild}if(by){bF=bF&&b.nodeName(by,"tr");for(var bw=0,e=this.length,bz=e-1;bw<e;bw++){bE.call(bF?ba(this[bw],by):this[bw],bx.cacheable||(e>1&&bw<bz)?b.clone(bA,true,true):bA)}}if(bv.length){b.each(bv,bo)}}return this}});function ba(e,bv){return b.nodeName(e,"table")?(e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody"))):e}function t(bB,bv){if(bv.nodeType!==1||!b.hasData(bB)){return}var by,bx,e,bA=b._data(bB),bz=b._data(bv,bA),bw=bA.events;if(bw){delete bz.handle;bz.events={};for(by in bw){for(bx=0,e=bw[by].length;bx<e;bx++){b.event.add(bv,by+(bw[by][bx].namespace?".":"")+bw[by][bx].namespace,bw[by][bx],bw[by][bx].data)}}}if(bz.data){bz.data=b.extend({},bz.data)}}function ai(bv,e){var bw;if(e.nodeType!==1){return}if(e.clearAttributes){e.clearAttributes()}if(e.mergeAttributes){e.mergeAttributes(bv)}bw=e.nodeName.toLowerCase();if(bw==="object"){e.outerHTML=bv.outerHTML}else{if(bw==="input"&&(bv.type==="checkbox"||bv.type==="radio")){if(bv.checked){e.defaultChecked=e.checked=bv.checked}if(e.value!==bv.value){e.value=bv.value}}else{if(bw==="option"){e.selected=bv.defaultSelected}else{if(bw==="input"||bw==="textarea"){e.defaultValue=bv.defaultValue}}}}e.removeAttribute(b.expando)}b.buildFragment=function(bz,bx,bv){var by,e,bw,bA,bB=bz[0];if(bx&&bx[0]){bA=bx[0].ownerDocument||bx[0]}if(!bA.createDocumentFragment){bA=av}if(bz.length===1&&typeof bB==="string"&&bB.length<512&&bA===av&&bB.charAt(0)==="<"&&!O.test(bB)&&(b.support.checkClone||!o.test(bB))&&(b.support.html5Clone||!ah.test(bB))){e=true;bw=b.fragments[bB];if(bw&&bw!==1){by=bw}}if(!by){by=bA.createDocumentFragment();b.clean(bz,bA,by,bv)}if(e){b.fragments[bB]=bw?by:1}return{fragment:by,cacheable:e}};b.fragments={};b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,bv){b.fn[e]=function(bw){var bz=[],bC=b(bw),bB=this.length===1&&this[0].parentNode;if(bB&&bB.nodeType===11&&bB.childNodes.length===1&&bC.length===1){bC[bv](this[0]);return this}else{for(var bA=0,bx=bC.length;bA<bx;bA++){var by=(bA>0?this.clone(true):this).get();b(bC[bA])[bv](by);bz=bz.concat(by)}return this.pushStack(bz,e,bC.selector)}}});function bg(e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName("*")}else{if(typeof e.querySelectorAll!=="undefined"){return e.querySelectorAll("*")}else{return[]}}}function az(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked}}function E(e){var bv=(e.nodeName||"").toLowerCase();if(bv==="input"){az(e)}else{if(bv!=="script"&&typeof e.getElementsByTagName!=="undefined"){b.grep(e.getElementsByTagName("input"),az)}}}function al(e){var bv=av.createElement("div");ac.appendChild(bv);bv.innerHTML=e.outerHTML;return bv.firstChild}b.extend({clone:function(by,bA,bw){var e,bv,bx,bz=b.support.html5Clone||!ah.test("<"+by.nodeName)?by.cloneNode(true):al(by);if((!b.support.noCloneEvent||!b.support.noCloneChecked)&&(by.nodeType===1||by.nodeType===11)&&!b.isXMLDoc(by)){ai(by,bz);e=bg(by);bv=bg(bz);for(bx=0;e[bx];++bx){if(bv[bx]){ai(e[bx],bv[bx])}}}if(bA){t(by,bz);if(bw){e=bg(by);bv=bg(bz);for(bx=0;e[bx];++bx){t(e[bx],bv[bx])}}}e=bv=null;return bz},clean:function(bw,by,bH,bA){var bF;by=by||av;if(typeof by.createElement==="undefined"){by=by.ownerDocument||by[0]&&by[0].ownerDocument||av}var bI=[],bB;for(var bE=0,bz;(bz=bw[bE])!=null;bE++){if(typeof bz==="number"){bz+=""}if(!bz){continue}if(typeof bz==="string"){if(!W.test(bz)){bz=by.createTextNode(bz)}else{bz=bz.replace(R,"<$1></$2>");var bK=(d.exec(bz)||["",""])[1].toLowerCase(),bx=ax[bK]||ax._default,bD=bx[0],bv=by.createElement("div");if(by===av){ac.appendChild(bv)}else{a(by).appendChild(bv)}bv.innerHTML=bx[1]+bz+bx[2];while(bD--){bv=bv.lastChild}if(!b.support.tbody){var e=w.test(bz),bC=bK==="table"&&!e?bv.firstChild&&bv.firstChild.childNodes:bx[1]==="<table>"&&!e?bv.childNodes:[];for(bB=bC.length-1;bB>=0;--bB){if(b.nodeName(bC[bB],"tbody")&&!bC[bB].childNodes.length){bC[bB].parentNode.removeChild(bC[bB])}}}if(!b.support.leadingWhitespace&&ar.test(bz)){bv.insertBefore(by.createTextNode(ar.exec(bz)[0]),bv.firstChild)}bz=bv.childNodes}}var bG;if(!b.support.appendChecked){if(bz[0]&&typeof(bG=bz.length)==="number"){for(bB=0;bB<bG;bB++){E(bz[bB])}}else{E(bz)}}if(bz.nodeType){bI.push(bz)}else{bI=b.merge(bI,bz)}}if(bH){bF=function(bL){return !bL.type||bm.test(bL.type)};for(bE=0;bI[bE];bE++){if(bA&&b.nodeName(bI[bE],"script")&&(!bI[bE].type||bI[bE].type.toLowerCase()==="text/javascript")){bA.push(bI[bE].parentNode?bI[bE].parentNode.removeChild(bI[bE]):bI[bE])}else{if(bI[bE].nodeType===1){var bJ=b.grep(bI[bE].getElementsByTagName("script"),bF);bI.splice.apply(bI,[bE+1,0].concat(bJ))}bH.appendChild(bI[bE])}}}return bI},cleanData:function(bv){var by,bw,e=b.cache,bB=b.event.special,bA=b.support.deleteExpando;for(var bz=0,bx;(bx=bv[bz])!=null;bz++){if(bx.nodeName&&b.noData[bx.nodeName.toLowerCase()]){continue}bw=bx[b.expando];if(bw){by=e[bw];if(by&&by.events){for(var bC in by.events){if(bB[bC]){b.event.remove(bx,bC)}else{b.removeEvent(bx,bC,by.handle)}}if(by.handle){by.handle.elem=null}}if(bA){delete bx[b.expando]}else{if(bx.removeAttribute){bx.removeAttribute(b.expando)}}delete e[bw]}}}});function bo(e,bv){if(bv.src){b.ajax({url:bv.src,async:false,dataType:"script"})}else{b.globalEval((bv.text||bv.textContent||bv.innerHTML||"").replace(aN,"/*$0*/"))}if(bv.parentNode){bv.parentNode.removeChild(bv)}}var ak=/alpha\([^)]*\)/i,au=/opacity=([^)]*)/,z=/([A-Z]|^ms)/g,bc=/^-?\d+(?:px)?$/i,bn=/^-?\d/,I=/^([\-+])=([\-+.\de]+)/,a7={position:"absolute",visibility:"hidden",display:"block"},an=["Left","Right"],a1=["Top","Bottom"],Z,aI,aX;b.fn.css=function(e,bv){if(arguments.length===2&&bv===L){return this}return b.access(this,e,bv,true,function(bx,bw,by){return by!==L?b.style(bx,bw,by):b.css(bx,bw)})};b.extend({cssHooks:{opacity:{get:function(bw,bv){if(bv){var e=Z(bw,"opacity","opacity");return e===""?"1":e}else{return bw.style.opacity}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(bx,bw,bD,by){if(!bx||bx.nodeType===3||bx.nodeType===8||!bx.style){return}var bB,bC,bz=b.camelCase(bw),bv=bx.style,bE=b.cssHooks[bz];bw=b.cssProps[bz]||bz;if(bD!==L){bC=typeof bD;if(bC==="string"&&(bB=I.exec(bD))){bD=(+(bB[1]+1)*+bB[2])+parseFloat(b.css(bx,bw));bC="number"}if(bD==null||bC==="number"&&isNaN(bD)){return}if(bC==="number"&&!b.cssNumber[bz]){bD+="px"}if(!bE||!("set" in bE)||(bD=bE.set(bx,bD))!==L){try{bv[bw]=bD}catch(bA){}}}else{if(bE&&"get" in bE&&(bB=bE.get(bx,false,by))!==L){return bB}return bv[bw]}},css:function(by,bx,bv){var bw,e;bx=b.camelCase(bx);e=b.cssHooks[bx];bx=b.cssProps[bx]||bx;if(bx==="cssFloat"){bx="float"}if(e&&"get" in e&&(bw=e.get(by,true,bv))!==L){return bw}else{if(Z){return Z(by,bx)}}},swap:function(bx,bw,by){var e={};for(var bv in bw){e[bv]=bx.style[bv];bx.style[bv]=bw[bv]}by.call(bx);for(bv in bw){bx.style[bv]=e[bv]}}});b.curCSS=b.css;b.each(["height","width"],function(bv,e){b.cssHooks[e]={get:function(by,bx,bw){var bz;if(bx){if(by.offsetWidth!==0){return p(by,e,bw)}else{b.swap(by,a7,function(){bz=p(by,e,bw)})}return bz}},set:function(bw,bx){if(bc.test(bx)){bx=parseFloat(bx);if(bx>=0){return bx+"px"}}else{return bx}}}});if(!b.support.opacity){b.cssHooks.opacity={get:function(bv,e){return au.test((e&&bv.currentStyle?bv.currentStyle.filter:bv.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""},set:function(by,bz){var bx=by.style,bv=by.currentStyle,e=b.isNumeric(bz)?"alpha(opacity="+bz*100+")":"",bw=bv&&bv.filter||bx.filter||"";bx.zoom=1;if(bz>=1&&b.trim(bw.replace(ak,""))===""){bx.removeAttribute("filter");if(bv&&!bv.filter){return}}bx.filter=ak.test(bw)?bw.replace(ak,e):bw+" "+e}}}b(function(){if(!b.support.reliableMarginRight){b.cssHooks.marginRight={get:function(bw,bv){var e;b.swap(bw,{display:"inline-block"},function(){if(bv){e=Z(bw,"margin-right","marginRight")}else{e=bw.style.marginRight}});return e}}}});if(av.defaultView&&av.defaultView.getComputedStyle){aI=function(by,bw){var bv,bx,e;bw=bw.replace(z,"-$1").toLowerCase();if((bx=by.ownerDocument.defaultView)&&(e=bx.getComputedStyle(by,null))){bv=e.getPropertyValue(bw);if(bv===""&&!b.contains(by.ownerDocument.documentElement,by)){bv=b.style(by,bw)}}return bv}}if(av.documentElement.currentStyle){aX=function(bz,bw){var bA,e,by,bv=bz.currentStyle&&bz.currentStyle[bw],bx=bz.style;if(bv===null&&bx&&(by=bx[bw])){bv=by}if(!bc.test(bv)&&bn.test(bv)){bA=bx.left;e=bz.runtimeStyle&&bz.runtimeStyle.left;if(e){bz.runtimeStyle.left=bz.currentStyle.left}bx.left=bw==="fontSize"?"1em":(bv||0);bv=bx.pixelLeft+"px";bx.left=bA;if(e){bz.runtimeStyle.left=e}}return bv===""?"auto":bv}}Z=aI||aX;function p(by,bw,bv){var bA=bw==="width"?by.offsetWidth:by.offsetHeight,bz=bw==="width"?an:a1,bx=0,e=bz.length;if(bA>0){if(bv!=="border"){for(;bx<e;bx++){if(!bv){bA-=parseFloat(b.css(by,"padding"+bz[bx]))||0}if(bv==="margin"){bA+=parseFloat(b.css(by,bv+bz[bx]))||0}else{bA-=parseFloat(b.css(by,"border"+bz[bx]+"Width"))||0}}}return bA+"px"}bA=Z(by,bw,bw);if(bA<0||bA==null){bA=by.style[bw]||0}bA=parseFloat(bA)||0;if(bv){for(;bx<e;bx++){bA+=parseFloat(b.css(by,"padding"+bz[bx]))||0;if(bv!=="padding"){bA+=parseFloat(b.css(by,"border"+bz[bx]+"Width"))||0}if(bv==="margin"){bA+=parseFloat(b.css(by,bv+bz[bx]))||0}}}return bA+"px"}if(b.expr&&b.expr.filters){b.expr.filters.hidden=function(bw){var bv=bw.offsetWidth,e=bw.offsetHeight;return(bv===0&&e===0)||(!b.support.reliableHiddenOffsets&&((bw.style&&bw.style.display)||b.css(bw,"display"))==="none")};b.expr.filters.visible=function(e){return !b.expr.filters.hidden(e)}}var k=/%20/g,ap=/\[\]$/,bs=/\r?\n/g,bq=/#.*$/,aD=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,aZ=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aM=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,aQ=/^(?:GET|HEAD)$/,c=/^\/\//,M=/\?/,a6=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,q=/^(?:select|textarea)/i,h=/\s+/,br=/([?&])_=[^&]*/,K=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,A=b.fn.load,aa={},r={},aE,s,aV=["*/"]+["*"];try{aE=bl.href}catch(aw){aE=av.createElement("a");aE.href="";aE=aE.href}s=K.exec(aE.toLowerCase())||[];function f(e){return function(by,bA){if(typeof by!=="string"){bA=by;by="*"}if(b.isFunction(bA)){var bx=by.toLowerCase().split(h),bw=0,bz=bx.length,bv,bB,bC;for(;bw<bz;bw++){bv=bx[bw];bC=/^\+/.test(bv);if(bC){bv=bv.substr(1)||"*"}bB=e[bv]=e[bv]||[];bB[bC?"unshift":"push"](bA)}}}}function aW(bv,bE,bz,bD,bB,bx){bB=bB||bE.dataTypes[0];bx=bx||{};bx[bB]=true;var bA=bv[bB],bw=0,e=bA?bA.length:0,by=(bv===aa),bC;for(;bw<e&&(by||!bC);bw++){bC=bA[bw](bE,bz,bD);if(typeof bC==="string"){if(!by||bx[bC]){bC=L}else{bE.dataTypes.unshift(bC);bC=aW(bv,bE,bz,bD,bC,bx)}}}if((by||!bC)&&!bx["*"]){bC=aW(bv,bE,bz,bD,"*",bx)}return bC}function am(bw,bx){var bv,e,by=b.ajaxSettings.flatOptions||{};for(bv in bx){if(bx[bv]!==L){(by[bv]?bw:(e||(e={})))[bv]=bx[bv]}}if(e){b.extend(true,bw,e)}}b.fn.extend({load:function(bw,bz,bA){if(typeof bw!=="string"&&A){return A.apply(this,arguments)}else{if(!this.length){return this}}var by=bw.indexOf(" ");if(by>=0){var e=bw.slice(by,bw.length);bw=bw.slice(0,by)}var bx="GET";if(bz){if(b.isFunction(bz)){bA=bz;bz=L}else{if(typeof bz==="object"){bz=b.param(bz,b.ajaxSettings.traditional);bx="POST"}}}var bv=this;b.ajax({url:bw,type:bx,dataType:"html",data:bz,complete:function(bC,bB,bD){bD=bC.responseText;if(bC.isResolved()){bC.done(function(bE){bD=bE});bv.html(e?b("<div>").append(bD.replace(a6,"")).find(e):bD)}if(bA){bv.each(bA,[bD,bB,bC])}}});return this},serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?b.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||q.test(this.nodeName)||aZ.test(this.type))}).map(function(e,bv){var bw=b(this).val();return bw==null?null:b.isArray(bw)?b.map(bw,function(by,bx){return{name:bv.name,value:by.replace(bs,"\r\n")}}):{name:bv.name,value:bw.replace(bs,"\r\n")}}).get()}});b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,bv){b.fn[bv]=function(bw){return this.on(bv,bw)}});b.each(["get","post"],function(e,bv){b[bv]=function(bw,by,bz,bx){if(b.isFunction(by)){bx=bx||bz;bz=by;by=L}return b.ajax({type:bv,url:bw,data:by,success:bz,dataType:bx})}});b.extend({getScript:function(e,bv){return b.get(e,L,bv,"script")},getJSON:function(e,bv,bw){return b.get(e,bv,bw,"json")},ajaxSetup:function(bv,e){if(e){am(bv,b.ajaxSettings)}else{e=bv;bv=b.ajaxSettings}am(bv,e);return bv},ajaxSettings:{url:aE,isLocal:aM.test(s[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":aV},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":bb.String,"text html":true,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:f(aa),ajaxTransport:f(r),ajax:function(bz,bx){if(typeof bz==="object"){bx=bz;bz=L}bx=bx||{};var bD=b.ajaxSetup({},bx),bS=bD.context||bD,bG=bS!==bD&&(bS.nodeType||bS instanceof b)?b(bS):b.event,bR=b.Deferred(),bN=b.Callbacks("once memory"),bB=bD.statusCode||{},bC,bH={},bO={},bQ,by,bL,bE,bI,bA=0,bw,bK,bJ={readyState:0,setRequestHeader:function(bT,bU){if(!bA){var e=bT.toLowerCase();bT=bO[e]=bO[e]||bT;bH[bT]=bU}return this},getAllResponseHeaders:function(){return bA===2?bQ:null},getResponseHeader:function(bT){var e;if(bA===2){if(!by){by={};while((e=aD.exec(bQ))){by[e[1].toLowerCase()]=e[2]}}e=by[bT.toLowerCase()]}return e===L?null:e},overrideMimeType:function(e){if(!bA){bD.mimeType=e}return this},abort:function(e){e=e||"abort";if(bL){bL.abort(e)}bF(0,e);return this}};function bF(bZ,bU,b0,bW){if(bA===2){return}bA=2;if(bE){clearTimeout(bE)}bL=L;bQ=bW||"";bJ.readyState=bZ>0?4:0;var bT,b4,b3,bX=bU,bY=b0?bj(bD,bJ,b0):L,bV,b2;if(bZ>=200&&bZ<300||bZ===304){if(bD.ifModified){if((bV=bJ.getResponseHeader("Last-Modified"))){b.lastModified[bC]=bV}if((b2=bJ.getResponseHeader("Etag"))){b.etag[bC]=b2}}if(bZ===304){bX="notmodified";bT=true}else{try{b4=G(bD,bY);bX="success";bT=true}catch(b1){bX="parsererror";b3=b1}}}else{b3=bX;if(!bX||bZ){bX="error";if(bZ<0){bZ=0}}}bJ.status=bZ;bJ.statusText=""+(bU||bX);if(bT){bR.resolveWith(bS,[b4,bX,bJ])}else{bR.rejectWith(bS,[bJ,bX,b3])}bJ.statusCode(bB);bB=L;if(bw){bG.trigger("ajax"+(bT?"Success":"Error"),[bJ,bD,bT?b4:b3])}bN.fireWith(bS,[bJ,bX]);if(bw){bG.trigger("ajaxComplete",[bJ,bD]);if(!(--b.active)){b.event.trigger("ajaxStop")}}}bR.promise(bJ);bJ.success=bJ.done;bJ.error=bJ.fail;bJ.complete=bN.add;bJ.statusCode=function(bT){if(bT){var e;if(bA<2){for(e in bT){bB[e]=[bB[e],bT[e]]}}else{e=bT[bJ.status];bJ.then(e,e)}}return this};bD.url=((bz||bD.url)+"").replace(bq,"").replace(c,s[1]+"//");bD.dataTypes=b.trim(bD.dataType||"*").toLowerCase().split(h);if(bD.crossDomain==null){bI=K.exec(bD.url.toLowerCase());bD.crossDomain=!!(bI&&(bI[1]!=s[1]||bI[2]!=s[2]||(bI[3]||(bI[1]==="http:"?80:443))!=(s[3]||(s[1]==="http:"?80:443))))}if(bD.data&&bD.processData&&typeof bD.data!=="string"){bD.data=b.param(bD.data,bD.traditional)}aW(aa,bD,bx,bJ);if(bA===2){return false}bw=bD.global;bD.type=bD.type.toUpperCase();bD.hasContent=!aQ.test(bD.type);if(bw&&b.active++===0){b.event.trigger("ajaxStart")}if(!bD.hasContent){if(bD.data){bD.url+=(M.test(bD.url)?"&":"?")+bD.data;delete bD.data}bC=bD.url;if(bD.cache===false){var bv=b.now(),bP=bD.url.replace(br,"$1_="+bv);bD.url=bP+((bP===bD.url)?(M.test(bD.url)?"&":"?")+"_="+bv:"")}}if(bD.data&&bD.hasContent&&bD.contentType!==false||bx.contentType){bJ.setRequestHeader("Content-Type",bD.contentType)}if(bD.ifModified){bC=bC||bD.url;if(b.lastModified[bC]){bJ.setRequestHeader("If-Modified-Since",b.lastModified[bC])}if(b.etag[bC]){bJ.setRequestHeader("If-None-Match",b.etag[bC])}}bJ.setRequestHeader("Accept",bD.dataTypes[0]&&bD.accepts[bD.dataTypes[0]]?bD.accepts[bD.dataTypes[0]]+(bD.dataTypes[0]!=="*"?", "+aV+"; q=0.01":""):bD.accepts["*"]);for(bK in bD.headers){bJ.setRequestHeader(bK,bD.headers[bK])}if(bD.beforeSend&&(bD.beforeSend.call(bS,bJ,bD)===false||bA===2)){bJ.abort();return false}for(bK in {success:1,error:1,complete:1}){bJ[bK](bD[bK])}bL=aW(r,bD,bx,bJ);if(!bL){bF(-1,"No Transport")}else{bJ.readyState=1;if(bw){bG.trigger("ajaxSend",[bJ,bD])}if(bD.async&&bD.timeout>0){bE=setTimeout(function(){bJ.abort("timeout")},bD.timeout)}try{bA=1;bL.send(bH,bF)}catch(bM){if(bA<2){bF(-1,bM)}else{throw bM}}}return bJ},param:function(e,bw){var bv=[],by=function(bz,bA){bA=b.isFunction(bA)?bA():bA;bv[bv.length]=encodeURIComponent(bz)+"="+encodeURIComponent(bA)};if(bw===L){bw=b.ajaxSettings.traditional}if(b.isArray(e)||(e.jquery&&!b.isPlainObject(e))){b.each(e,function(){by(this.name,this.value)})}else{for(var bx in e){v(bx,e[bx],bw,by)}}return bv.join("&").replace(k,"+")}});function v(bw,by,bv,bx){if(b.isArray(by)){b.each(by,function(bA,bz){if(bv||ap.test(bw)){bx(bw,bz)}else{v(bw+"["+(typeof bz==="object"||b.isArray(bz)?bA:"")+"]",bz,bv,bx)}})}else{if(!bv&&by!=null&&typeof by==="object"){for(var e in by){v(bw+"["+e+"]",by[e],bv,bx)}}else{bx(bw,by)}}}b.extend({active:0,lastModified:{},etag:{}});function bj(bD,bC,bz){var bv=bD.contents,bB=bD.dataTypes,bw=bD.responseFields,by,bA,bx,e;for(bA in bw){if(bA in bz){bC[bw[bA]]=bz[bA]}}while(bB[0]==="*"){bB.shift();if(by===L){by=bD.mimeType||bC.getResponseHeader("content-type")}}if(by){for(bA in bv){if(bv[bA]&&bv[bA].test(by)){bB.unshift(bA);break}}}if(bB[0] in bz){bx=bB[0]}else{for(bA in bz){if(!bB[0]||bD.converters[bA+" "+bB[0]]){bx=bA;break}if(!e){e=bA}}bx=bx||e}if(bx){if(bx!==bB[0]){bB.unshift(bx)}return bz[bx]}}function G(bH,bz){if(bH.dataFilter){bz=bH.dataFilter(bz,bH.dataType)}var bD=bH.dataTypes,bG={},bA,bE,bw=bD.length,bB,bC=bD[0],bx,by,bF,bv,e;for(bA=1;bA<bw;bA++){if(bA===1){for(bE in bH.converters){if(typeof bE==="string"){bG[bE.toLowerCase()]=bH.converters[bE]}}}bx=bC;bC=bD[bA];if(bC==="*"){bC=bx}else{if(bx!=="*"&&bx!==bC){by=bx+" "+bC;bF=bG[by]||bG["* "+bC];if(!bF){e=L;for(bv in bG){bB=bv.split(" ");if(bB[0]===bx||bB[0]==="*"){e=bG[bB[1]+" "+bC];if(e){bv=bG[bv];if(bv===true){bF=e}else{if(e===true){bF=bv}}break}}}}if(!(bF||e)){b.error("No conversion from "+by.replace(" "," to "))}if(bF!==true){bz=bF?bF(bz):e(bv(bz))}}}}return bz}var aC=b.now(),u=/(\=)\?(&|$)|\?\?/i;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return b.expando+"_"+(aC++)}});b.ajaxPrefilter("json jsonp",function(bD,bA,bC){var bx=bD.contentType==="application/x-www-form-urlencoded"&&(typeof bD.data==="string");if(bD.dataTypes[0]==="jsonp"||bD.jsonp!==false&&(u.test(bD.url)||bx&&u.test(bD.data))){var bB,bw=bD.jsonpCallback=b.isFunction(bD.jsonpCallback)?bD.jsonpCallback():bD.jsonpCallback,bz=bb[bw],e=bD.url,by=bD.data,bv="$1"+bw+"$2";if(bD.jsonp!==false){e=e.replace(u,bv);if(bD.url===e){if(bx){by=by.replace(u,bv)}if(bD.data===by){e+=(/\?/.test(e)?"&":"?")+bD.jsonp+"="+bw}}}bD.url=e;bD.data=by;bb[bw]=function(bE){bB=[bE]};bC.always(function(){bb[bw]=bz;if(bB&&b.isFunction(bz)){bb[bw](bB[0])}});bD.converters["script json"]=function(){if(!bB){b.error(bw+" was not called")}return bB[0]};bD.dataTypes[0]="json";return"script"}});b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){b.globalEval(e);return e}}});b.ajaxPrefilter("script",function(e){if(e.cache===L){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});b.ajaxTransport("script",function(bw){if(bw.crossDomain){var e,bv=av.head||av.getElementsByTagName("head")[0]||av.documentElement;return{send:function(bx,by){e=av.createElement("script");e.async="async";if(bw.scriptCharset){e.charset=bw.scriptCharset}e.src=bw.url;e.onload=e.onreadystatechange=function(bA,bz){if(bz||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(bv&&e.parentNode){bv.removeChild(e)}e=L;if(!bz){by(200,"success")}}};bv.insertBefore(e,bv.firstChild)},abort:function(){if(e){e.onload(0,1)}}}}});var B=bb.ActiveXObject?function(){for(var e in N){N[e](0,1)}}:false,y=0,N;function aL(){try{return new bb.XMLHttpRequest()}catch(bv){}}function aj(){try{return new bb.ActiveXObject("Microsoft.XMLHTTP")}catch(bv){}}b.ajaxSettings.xhr=bb.ActiveXObject?function(){return !this.isLocal&&aL()||aj()}:aL;(function(e){b.extend(b.support,{ajax:!!e,cors:!!e&&("withCredentials" in e)})})(b.ajaxSettings.xhr());if(b.support.ajax){b.ajaxTransport(function(e){if(!e.crossDomain||b.support.cors){var bv;return{send:function(bB,bw){var bA=e.xhr(),bz,by;if(e.username){bA.open(e.type,e.url,e.async,e.username,e.password)}else{bA.open(e.type,e.url,e.async)}if(e.xhrFields){for(by in e.xhrFields){bA[by]=e.xhrFields[by]}}if(e.mimeType&&bA.overrideMimeType){bA.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!bB["X-Requested-With"]){bB["X-Requested-With"]="XMLHttpRequest"}try{for(by in bB){bA.setRequestHeader(by,bB[by])}}catch(bx){}bA.send((e.hasContent&&e.data)||null);bv=function(bK,bE){var bF,bD,bC,bI,bH;try{if(bv&&(bE||bA.readyState===4)){bv=L;if(bz){bA.onreadystatechange=b.noop;if(B){delete N[bz]}}if(bE){if(bA.readyState!==4){bA.abort()}}else{bF=bA.status;bC=bA.getAllResponseHeaders();bI={};bH=bA.responseXML;if(bH&&bH.documentElement){bI.xml=bH}bI.text=bA.responseText;try{bD=bA.statusText}catch(bJ){bD=""}if(!bF&&e.isLocal&&!e.crossDomain){bF=bI.text?200:404}else{if(bF===1223){bF=204}}}}}catch(bG){if(!bE){bw(-1,bG)}}if(bI){bw(bF,bD,bI,bC)}};if(!e.async||bA.readyState===4){bv()}else{bz=++y;if(B){if(!N){N={};b(bb).unload(B)}N[bz]=bv}bA.onreadystatechange=bv}},abort:function(){if(bv){bv(0,1)}}}}})}var Q={},a8,m,aB=/^(?:toggle|show|hide)$/,aT=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,a3,aH=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],a4;b.fn.extend({show:function(bx,bA,bz){var bw,by;if(bx||bx===0){return this.animate(a0("show",3),bx,bA,bz)}else{for(var bv=0,e=this.length;bv<e;bv++){bw=this[bv];if(bw.style){by=bw.style.display;if(!b._data(bw,"olddisplay")&&by==="none"){by=bw.style.display=""}if(by===""&&b.css(bw,"display")==="none"){b._data(bw,"olddisplay",x(bw.nodeName))}}}for(bv=0;bv<e;bv++){bw=this[bv];if(bw.style){by=bw.style.display;if(by===""||by==="none"){bw.style.display=b._data(bw,"olddisplay")||""}}}return this}},hide:function(bx,bA,bz){if(bx||bx===0){return this.animate(a0("hide",3),bx,bA,bz)}else{var bw,by,bv=0,e=this.length;for(;bv<e;bv++){bw=this[bv];if(bw.style){by=b.css(bw,"display");if(by!=="none"&&!b._data(bw,"olddisplay")){b._data(bw,"olddisplay",by)}}}for(bv=0;bv<e;bv++){if(this[bv].style){this[bv].style.display="none"}}return this}},_toggle:b.fn.toggle,toggle:function(bw,bv,bx){var e=typeof bw==="boolean";if(b.isFunction(bw)&&b.isFunction(bv)){this._toggle.apply(this,arguments)}else{if(bw==null||e){this.each(function(){var by=e?bw:b(this).is(":hidden");b(this)[by?"show":"hide"]()})}else{this.animate(a0("toggle",3),bw,bv,bx)}}return this},fadeTo:function(e,bx,bw,bv){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:bx},e,bw,bv)},animate:function(bz,bw,by,bx){var e=b.speed(bw,by,bx);if(b.isEmptyObject(bz)){return this.each(e.complete,[false])}bz=b.extend({},bz);function bv(){if(e.queue===false){b._mark(this)}var bE=b.extend({},e),bK=this.nodeType===1,bI=bK&&b(this).is(":hidden"),bB,bF,bD,bJ,bH,bC,bG,bL,bA;bE.animatedProperties={};for(bD in bz){bB=b.camelCase(bD);if(bD!==bB){bz[bB]=bz[bD];delete bz[bD]}bF=bz[bB];if(b.isArray(bF)){bE.animatedProperties[bB]=bF[1];bF=bz[bB]=bF[0]}else{bE.animatedProperties[bB]=bE.specialEasing&&bE.specialEasing[bB]||bE.easing||"swing"}if(bF==="hide"&&bI||bF==="show"&&!bI){return bE.complete.call(this)}if(bK&&(bB==="height"||bB==="width")){bE.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(b.css(this,"display")==="inline"&&b.css(this,"float")==="none"){if(!b.support.inlineBlockNeedsLayout||x(this.nodeName)==="inline"){this.style.display="inline-block"}else{this.style.zoom=1}}}}if(bE.overflow!=null){this.style.overflow="hidden"}for(bD in bz){bJ=new b.fx(this,bE,bD);bF=bz[bD];if(aB.test(bF)){bA=b._data(this,"toggle"+bD)||(bF==="toggle"?bI?"show":"hide":0);if(bA){b._data(this,"toggle"+bD,bA==="show"?"hide":"show");bJ[bA]()}else{bJ[bF]()}}else{bH=aT.exec(bF);bC=bJ.cur();if(bH){bG=parseFloat(bH[2]);bL=bH[3]||(b.cssNumber[bD]?"":"px");if(bL!=="px"){b.style(this,bD,(bG||1)+bL);bC=((bG||1)/bJ.cur())*bC;b.style(this,bD,bC+bL)}if(bH[1]){bG=((bH[1]==="-="?-1:1)*bG)+bC}bJ.custom(bC,bG,bL)}else{bJ.custom(bC,bF,"")}}}return true}return e.queue===false?this.each(bv):this.queue(e.queue,bv)},stop:function(bw,bv,e){if(typeof bw!=="string"){e=bv;bv=bw;bw=L}if(bv&&bw!==false){this.queue(bw||"fx",[])}return this.each(function(){var bx,by=false,bA=b.timers,bz=b._data(this);if(!e){b._unmark(true,this)}function bB(bE,bF,bD){var bC=bF[bD];b.removeData(bE,bD,true);bC.stop(e)}if(bw==null){for(bx in bz){if(bz[bx]&&bz[bx].stop&&bx.indexOf(".run")===bx.length-4){bB(this,bz,bx)}}}else{if(bz[bx=bw+".run"]&&bz[bx].stop){bB(this,bz,bx)}}for(bx=bA.length;bx--;){if(bA[bx].elem===this&&(bw==null||bA[bx].queue===bw)){if(e){bA[bx](true)}else{bA[bx].saveState()}by=true;bA.splice(bx,1)}}if(!(e&&by)){b.dequeue(this,bw)}})}});function bh(){setTimeout(at,0);return(a4=b.now())}function at(){a4=L}function a0(bv,e){var bw={};b.each(aH.concat.apply([],aH.slice(0,e)),function(){bw[this]=bv});return bw}b.each({slideDown:a0("show",1),slideUp:a0("hide",1),slideToggle:a0("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,bv){b.fn[e]=function(bw,by,bx){return this.animate(bv,bw,by,bx)}});b.extend({speed:function(bw,bx,bv){var e=bw&&typeof bw==="object"?b.extend({},bw):{complete:bv||!bv&&bx||b.isFunction(bw)&&bw,duration:bw,easing:bv&&bx||bx&&!b.isFunction(bx)&&bx};e.duration=b.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in b.fx.speeds?b.fx.speeds[e.duration]:b.fx.speeds._default;if(e.queue==null||e.queue===true){e.queue="fx"}e.old=e.complete;e.complete=function(by){if(b.isFunction(e.old)){e.old.call(this)}if(e.queue){b.dequeue(this,e.queue)}else{if(by!==false){b._unmark(this)}}};return e},easing:{linear:function(bw,bx,e,bv){return e+bv*bw},swing:function(bw,bx,e,bv){return((-Math.cos(bw*Math.PI)/2)+0.5)*bv+e}},timers:[],fx:function(bv,e,bw){this.options=e;this.elem=bv;this.prop=bw;e.orig=e.orig||{}}});b.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(b.fx.step[this.prop]||b.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var e,bv=b.css(this.elem,this.prop);return isNaN(e=parseFloat(bv))?!bv||bv==="auto"?0:bv:e},custom:function(bz,by,bx){var e=this,bw=b.fx;this.startTime=a4||bh();this.end=by;this.now=this.start=bz;this.pos=this.state=0;this.unit=bx||this.unit||(b.cssNumber[this.prop]?"":"px");function bv(bA){return e.step(bA)}bv.queue=this.options.queue;bv.elem=this.elem;bv.saveState=function(){if(e.options.hide&&b._data(e.elem,"fxshow"+e.prop)===L){b._data(e.elem,"fxshow"+e.prop,e.start)}};if(bv()&&b.timers.push(bv)&&!a3){a3=setInterval(bw.tick,bw.interval)}},show:function(){var e=b._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=e||b.style(this.elem,this.prop);this.options.show=true;if(e!==L){this.custom(this.cur(),e)}else{this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur())}b(this.elem).show()},hide:function(){this.options.orig[this.prop]=b._data(this.elem,"fxshow"+this.prop)||b.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(by){var bA,bB,bv,bx=a4||bh(),e=true,bz=this.elem,bw=this.options;if(by||bx>=bw.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();bw.animatedProperties[this.prop]=true;for(bA in bw.animatedProperties){if(bw.animatedProperties[bA]!==true){e=false}}if(e){if(bw.overflow!=null&&!b.support.shrinkWrapBlocks){b.each(["","X","Y"],function(bC,bD){bz.style["overflow"+bD]=bw.overflow[bC]})}if(bw.hide){b(bz).hide()}if(bw.hide||bw.show){for(bA in bw.animatedProperties){b.style(bz,bA,bw.orig[bA]);b.removeData(bz,"fxshow"+bA,true);b.removeData(bz,"toggle"+bA,true)}}bv=bw.complete;if(bv){bw.complete=false;bv.call(bz)}}return false}else{if(bw.duration==Infinity){this.now=bx}else{bB=bx-this.startTime;this.state=bB/bw.duration;this.pos=b.easing[bw.animatedProperties[this.prop]](this.state,bB,0,1,bw.duration);this.now=this.start+((this.end-this.start)*this.pos)}this.update()}return true}};b.extend(b.fx,{tick:function(){var bw,bv=b.timers,e=0;for(;e<bv.length;e++){bw=bv[e];if(!bw()&&bv[e]===bw){bv.splice(e--,1)}}if(!bv.length){b.fx.stop()}},interval:13,stop:function(){clearInterval(a3);a3=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){b.style(e.elem,"opacity",e.now)},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null){e.elem.style[e.prop]=e.now+e.unit}else{e.elem[e.prop]=e.now}}}});b.each(["width","height"],function(e,bv){b.fx.step[bv]=function(bw){b.style(bw.elem,bv,Math.max(0,bw.now)+bw.unit)}});if(b.expr&&b.expr.filters){b.expr.filters.animated=function(e){return b.grep(b.timers,function(bv){return e===bv.elem}).length}}function x(bx){if(!Q[bx]){var e=av.body,bv=b("<"+bx+">").appendTo(e),bw=bv.css("display");bv.remove();if(bw==="none"||bw===""){if(!a8){a8=av.createElement("iframe");a8.frameBorder=a8.width=a8.height=0}e.appendChild(a8);if(!m||!a8.createElement){m=(a8.contentWindow||a8.contentDocument).document;m.write((av.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");m.close()}bv=m.createElement(bx);m.body.appendChild(bv);bw=b.css(bv,"display");e.removeChild(a8)}Q[bx]=bw}return Q[bx]}var V=/^t(?:able|d|h)$/i,ad=/^(?:body|html)$/i;if("getBoundingClientRect" in av.documentElement){b.fn.offset=function(bI){var by=this[0],bB;if(bI){return this.each(function(e){b.offset.setOffset(this,bI,e)})}if(!by||!by.ownerDocument){return null}if(by===by.ownerDocument.body){return b.offset.bodyOffset(by)}try{bB=by.getBoundingClientRect()}catch(bF){}var bH=by.ownerDocument,bw=bH.documentElement;if(!bB||!b.contains(bw,by)){return bB?{top:bB.top,left:bB.left}:{top:0,left:0}}var bC=bH.body,bD=aK(bH),bA=bw.clientTop||bC.clientTop||0,bE=bw.clientLeft||bC.clientLeft||0,bv=bD.pageYOffset||b.support.boxModel&&bw.scrollTop||bC.scrollTop,bz=bD.pageXOffset||b.support.boxModel&&bw.scrollLeft||bC.scrollLeft,bG=bB.top+bv-bA,bx=bB.left+bz-bE;return{top:bG,left:bx}}}else{b.fn.offset=function(bF){var bz=this[0];if(bF){return this.each(function(bG){b.offset.setOffset(this,bF,bG)})}if(!bz||!bz.ownerDocument){return null}if(bz===bz.ownerDocument.body){return b.offset.bodyOffset(bz)}var bC,bw=bz.offsetParent,bv=bz,bE=bz.ownerDocument,bx=bE.documentElement,bA=bE.body,bB=bE.defaultView,e=bB?bB.getComputedStyle(bz,null):bz.currentStyle,bD=bz.offsetTop,by=bz.offsetLeft;while((bz=bz.parentNode)&&bz!==bA&&bz!==bx){if(b.support.fixedPosition&&e.position==="fixed"){break}bC=bB?bB.getComputedStyle(bz,null):bz.currentStyle;bD-=bz.scrollTop;by-=bz.scrollLeft;if(bz===bw){bD+=bz.offsetTop;by+=bz.offsetLeft;if(b.support.doesNotAddBorder&&!(b.support.doesAddBorderForTableAndCells&&V.test(bz.nodeName))){bD+=parseFloat(bC.borderTopWidth)||0;by+=parseFloat(bC.borderLeftWidth)||0}bv=bw;bw=bz.offsetParent}if(b.support.subtractsBorderForOverflowNotVisible&&bC.overflow!=="visible"){bD+=parseFloat(bC.borderTopWidth)||0;by+=parseFloat(bC.borderLeftWidth)||0}e=bC}if(e.position==="relative"||e.position==="static"){bD+=bA.offsetTop;by+=bA.offsetLeft}if(b.support.fixedPosition&&e.position==="fixed"){bD+=Math.max(bx.scrollTop,bA.scrollTop);by+=Math.max(bx.scrollLeft,bA.scrollLeft)}return{top:bD,left:by}}}b.offset={bodyOffset:function(e){var bw=e.offsetTop,bv=e.offsetLeft;if(b.support.doesNotIncludeMarginInBodyOffset){bw+=parseFloat(b.css(e,"marginTop"))||0;bv+=parseFloat(b.css(e,"marginLeft"))||0}return{top:bw,left:bv}},setOffset:function(bx,bG,bA){var bB=b.css(bx,"position");if(bB==="static"){bx.style.position="relative"}var bz=b(bx),bv=bz.offset(),e=b.css(bx,"top"),bE=b.css(bx,"left"),bF=(bB==="absolute"||bB==="fixed")&&b.inArray("auto",[e,bE])>-1,bD={},bC={},bw,by;if(bF){bC=bz.position();bw=bC.top;by=bC.left}else{bw=parseFloat(e)||0;by=parseFloat(bE)||0}if(b.isFunction(bG)){bG=bG.call(bx,bA,bv)}if(bG.top!=null){bD.top=(bG.top-bv.top)+bw}if(bG.left!=null){bD.left=(bG.left-bv.left)+by}if("using" in bG){bG.using.call(bx,bD)}else{bz.css(bD)}}};b.fn.extend({position:function(){if(!this[0]){return null}var bw=this[0],bv=this.offsetParent(),bx=this.offset(),e=ad.test(bv[0].nodeName)?{top:0,left:0}:bv.offset();bx.top-=parseFloat(b.css(bw,"marginTop"))||0;bx.left-=parseFloat(b.css(bw,"marginLeft"))||0;e.top+=parseFloat(b.css(bv[0],"borderTopWidth"))||0;e.left+=parseFloat(b.css(bv[0],"borderLeftWidth"))||0;return{top:bx.top-e.top,left:bx.left-e.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||av.body;while(e&&(!ad.test(e.nodeName)&&b.css(e,"position")==="static")){e=e.offsetParent}return e})}});b.each(["Left","Top"],function(bv,e){var bw="scroll"+e;b.fn[bw]=function(bz){var bx,by;if(bz===L){bx=this[0];if(!bx){return null}by=aK(bx);return by?("pageXOffset" in by)?by[bv?"pageYOffset":"pageXOffset"]:b.support.boxModel&&by.document.documentElement[bw]||by.document.body[bw]:bx[bw]}return this.each(function(){by=aK(this);if(by){by.scrollTo(!bv?bz:b(by).scrollLeft(),bv?bz:b(by).scrollTop())}else{this[bw]=bz}})}});function aK(e){return b.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}b.each(["Height","Width"],function(bv,e){var bw=e.toLowerCase();b.fn["inner"+e]=function(){var bx=this[0];return bx?bx.style?parseFloat(b.css(bx,bw,"padding")):this[bw]():null};b.fn["outer"+e]=function(by){var bx=this[0];return bx?bx.style?parseFloat(b.css(bx,bw,by?"margin":"border")):this[bw]():null};b.fn[bw]=function(bz){var bA=this[0];if(!bA){return bz==null?null:this}if(b.isFunction(bz)){return this.each(function(bE){var bD=b(this);bD[bw](bz.call(this,bE,bD[bw]()))})}if(b.isWindow(bA)){var bB=bA.document.documentElement["client"+e],bx=bA.document.body;return bA.document.compatMode==="CSS1Compat"&&bB||bx&&bx["client"+e]||bB}else{if(bA.nodeType===9){return Math.max(bA.documentElement["client"+e],bA.body["scroll"+e],bA.documentElement["scroll"+e],bA.body["offset"+e],bA.documentElement["offset"+e])}else{if(bz===L){var bC=b.css(bA,bw),by=parseFloat(bC);return b.isNumeric(by)?by:bC}else{return this.css(bw,typeof bz==="string"?bz:bz+"px")}}}}});bb.jQuery=bb.$=b;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return b})}})(window);/*!
+ * jQuery UI 1.8.18
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI
+ */
+(function(a,d){a.ui=a.ui||{};if(a.ui.version){return}a.extend(a.ui,{version:"1.8.18",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(e,f){return typeof e==="number"?this.each(function(){var g=this;setTimeout(function(){a(g).focus();if(f){f.call(g)}},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;if((a.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){e=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(a.curCSS(this,"position",1))&&(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}else{e=this.parents().filter(function(){return(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!e.length?a(document):e},zIndex:function(h){if(h!==d){return this.css("zIndex",h)}if(this.length){var f=a(this[0]),e,g;while(f.length&&f[0]!==document){e=f.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){g=parseInt(f.css("zIndex"),10);if(!isNaN(g)&&g!==0){return g}}f=f.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(g,e){var f=e==="Width"?["Left","Right"]:["Top","Bottom"],h=e.toLowerCase(),k={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function j(m,l,i,n){a.each(f,function(){l-=parseFloat(a.curCSS(m,"padding"+this,true))||0;if(i){l-=parseFloat(a.curCSS(m,"border"+this+"Width",true))||0}if(n){l-=parseFloat(a.curCSS(m,"margin"+this,true))||0}});return l}a.fn["inner"+e]=function(i){if(i===d){return k["inner"+e].call(this)}return this.each(function(){a(this).css(h,j(this,i)+"px")})};a.fn["outer"+e]=function(i,l){if(typeof i!=="number"){return k["outer"+e].call(this,i)}return this.each(function(){a(this).css(h,j(this,i,true,l)+"px")})}});function c(g,e){var j=g.nodeName.toLowerCase();if("area"===j){var i=g.parentNode,h=i.name,f;if(!g.href||!h||i.nodeName.toLowerCase()!=="map"){return false}f=a("img[usemap=#"+h+"]")[0];return !!f&&b(f)}return(/input|select|textarea|button|object/.test(j)?!g.disabled:"a"==j?g.href||e:e)&&b(g)}function b(e){return !a(e).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.extend(a.expr[":"],{data:function(g,f,e){return !!a.data(g,e[3])},focusable:function(e){return c(e,!isNaN(a.attr(e,"tabindex")))},tabbable:function(g){var e=a.attr(g,"tabindex"),f=isNaN(e);return(f||e>=0)&&c(g,!f)}});a(function(){var e=document.body,f=e.appendChild(f=document.createElement("div"));f.offsetHeight;a.extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=f.offsetHeight===100;a.support.selectstart="onselectstart" in f;e.removeChild(f).style.display="none"});a.extend(a.ui,{plugin:{add:function(f,g,j){var h=a.ui[f].prototype;for(var e in j){h.plugins[e]=h.plugins[e]||[];h.plugins[e].push([g,j[e]])}},call:function(e,g,f){var j=e.plugins[g];if(!j||!e.element[0].parentNode){return}for(var h=0;h<j.length;h++){if(e.options[j[h][0]]){j[h][1].apply(e.element,f)}}}},contains:function(f,e){return document.compareDocumentPosition?f.compareDocumentPosition(e)&16:f!==e&&f.contains(e)},hasScroll:function(h,f){if(a(h).css("overflow")==="hidden"){return false}var e=(f&&f==="left")?"scrollLeft":"scrollTop",g=false;if(h[e]>0){return true}h[e]=1;g=(h[e]>0);h[e]=0;return g},isOverAxis:function(f,e,g){return(f>e)&&(f<(e+g))},isOver:function(j,f,i,h,e,g){return a.ui.isOverAxis(j,i,e)&&a.ui.isOverAxis(f,h,g)}})})(jQuery);/*!
+ * jQuery UI Widget 1.8.18
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Widget
+ */
+(function(b,d){if(b.cleanData){var c=b.cleanData;b.cleanData=function(f){for(var g=0,h;(h=f[g])!=null;g++){try{b(h).triggerHandler("remove")}catch(j){}}c(f)}}else{var a=b.fn.remove;b.fn.remove=function(e,f){return this.each(function(){if(!f){if(!e||b.filter(e,[this]).length){b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(g){}})}}return a.call(b(this),e,f)})}}b.widget=function(f,h,e){var g=f.split(".")[0],j;f=f.split(".")[1];j=g+"-"+f;if(!e){e=h;h=b.Widget}b.expr[":"][j]=function(k){return !!b.data(k,f)};b[g]=b[g]||{};b[g][f]=function(k,l){if(arguments.length){this._createWidget(k,l)}};var i=new h();i.options=b.extend(true,{},i.options);b[g][f].prototype=b.extend(true,i,{namespace:g,widgetName:f,widgetEventPrefix:b[g][f].prototype.widgetEventPrefix||f,widgetBaseClass:j},e);b.widget.bridge(f,b[g][f])};b.widget.bridge=function(f,e){b.fn[f]=function(i){var g=typeof i==="string",h=Array.prototype.slice.call(arguments,1),j=this;i=!g&&h.length?b.extend.apply(null,[true,i].concat(h)):i;if(g&&i.charAt(0)==="_"){return j}if(g){this.each(function(){var k=b.data(this,f),l=k&&b.isFunction(k[i])?k[i].apply(k,h):k;if(l!==k&&l!==d){j=l;return false}})}else{this.each(function(){var k=b.data(this,f);if(k){k.option(i||{})._init()}else{b.data(this,f,new e(i,this))}})}return j}};b.Widget=function(e,f){if(arguments.length){this._createWidget(e,f)}};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,g){b.data(g,this.widgetName,this);this.element=b(g);this.options=b.extend(true,{},this.options,this._getCreateOptions(),f);var e=this;this.element.bind("remove."+this.widgetName,function(){e.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(f,g){var e=f;if(arguments.length===0){return b.extend({},this.options)}if(typeof f==="string"){if(g===d){return this.options[f]}e={};e[f]=g}this._setOptions(e);return this},_setOptions:function(f){var e=this;b.each(f,function(g,h){e._setOption(g,h)});return this},_setOption:function(e,f){this.options[e]=f;if(e==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(e,f,g){var j,i,h=this.options[e];g=g||{};f=b.Event(f);f.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase();f.target=this.element[0];i=f.originalEvent;if(i){for(j in i){if(!(j in f)){f[j]=i[j]}}}this.element.trigger(f,g);return !(b.isFunction(h)&&h.call(this.element[0],f,g)===false||f.isDefaultPrevented())}}})(jQuery);/*!
+ * jQuery UI Mouse 1.8.18
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Mouse
+ *
+ * Depends:
+ * jquery.ui.widget.js
+ */
+(function(b,c){var a=false;b(document).mouseup(function(d){a=false});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(e){return d._mouseDown(e)}).bind("click."+this.widgetName,function(e){if(true===b.data(e.target,d.widgetName+".preventClickEvent")){b.removeData(e.target,d.widgetName+".preventClickEvent");e.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(f){if(a){return}(this._mouseStarted&&this._mouseUp(f));this._mouseDownEvent=f;var e=this,g=(f.which==1),d=(typeof this.options.cancel=="string"&&f.target.nodeName?b(f.target).closest(this.options.cancel).length:false);if(!g||d||!this._mouseCapture(f)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(f)&&this._mouseDelayMet(f)){this._mouseStarted=(this._mouseStart(f)!==false);if(!this._mouseStarted){f.preventDefault();return true}}if(true===b.data(f.target,this.widgetName+".preventClickEvent")){b.removeData(f.target,this.widgetName+".preventClickEvent")}this._mouseMoveDelegate=function(h){return e._mouseMove(h)};this._mouseUpDelegate=function(h){return e._mouseUp(h)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);f.preventDefault();a=true;return true},_mouseMove:function(d){if(b.browser.msie&&!(document.documentMode>=9)&&!d.button){return this._mouseUp(d)}if(this._mouseStarted){this._mouseDrag(d);return d.preventDefault()}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,d)!==false);(this._mouseStarted?this._mouseDrag(d):this._mouseUp(d))}return !this._mouseStarted},_mouseUp:function(d){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(d.target==this._mouseDownEvent.target){b.data(d.target,this.widgetName+".preventClickEvent",true)}this._mouseStop(d)}return false},_mouseDistanceMet:function(d){return(Math.max(Math.abs(this._mouseDownEvent.pageX-d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY))>=this.options.distance)},_mouseDelayMet:function(d){return this.mouseDelayMet},_mouseStart:function(d){},_mouseDrag:function(d){},_mouseStop:function(d){},_mouseCapture:function(d){return true}})})(jQuery);(function(c,d){c.widget("ui.resizable",c.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000},_create:function(){var f=this,k=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!(k.aspectRatio),aspectRatio:k.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:k.helper||k.ghost||k.animate?k.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){this.element.wrap(c('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=k.handles||(!c(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var l=this.handles.split(",");this.handles={};for(var g=0;g<l.length;g++){var j=c.trim(l[g]),e="ui-resizable-"+j;var h=c('<div class="ui-resizable-handle '+e+'"></div>');if(/sw|se|ne|nw/.test(j)){h.css({zIndex:++k.zIndex})}if("se"==j){h.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[j]=".ui-resizable-"+j;this.element.append(h)}}this._renderAxis=function(q){q=q||this.element;for(var n in this.handles){if(this.handles[n].constructor==String){this.handles[n]=c(this.handles[n],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var o=c(this.handles[n],this.element),p=0;p=/sw|ne|nw|se|n|s/.test(n)?o.outerHeight():o.outerWidth();var m=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join("");q.css(m,p);this._proportionallyResize()}if(!c(this.handles[n]).length){continue}}};this._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!f.resizing){if(this.className){var i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}f.axis=i&&i[1]?i[1]:"se"}});if(k.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){if(k.disabled){return}c(this).removeClass("ui-resizable-autohide");f._handles.show()},function(){if(k.disabled){return}if(!f.resizing){c(this).addClass("ui-resizable-autohide");f._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(g){c(g).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){e(this.element);var f=this.element;f.after(this.originalElement.css({position:f.css("position"),width:f.outerWidth(),height:f.outerHeight(),top:f.css("top"),left:f.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);e(this.originalElement);return this},_mouseCapture:function(f){var g=false;for(var e in this.handles){if(c(this.handles[e])[0]==f.target){g=true}}return !this.options.disabled&&g},_mouseStart:function(g){var j=this.options,f=this.element.position(),e=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(e.is(".ui-draggable")||(/absolute/).test(e.css("position"))){e.css({position:"absolute",top:f.top,left:f.left})}this._renderProxy();var k=b(this.helper.css("left")),h=b(this.helper.css("top"));if(j.containment){k+=c(j.containment).scrollLeft()||0;h+=c(j.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:k,top:h};this.size=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalSize=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalPosition={left:k,top:h};this.sizeDiff={width:e.outerWidth()-e.width(),height:e.outerHeight()-e.height()};this.originalMousePosition={left:g.pageX,top:g.pageY};this.aspectRatio=(typeof j.aspectRatio=="number")?j.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var i=c(".ui-resizable-"+this.axis).css("cursor");c("body").css("cursor",i=="auto"?this.axis+"-resize":i);e.addClass("ui-resizable-resizing");this._propagate("start",g);return true},_mouseDrag:function(e){var h=this.helper,g=this.options,m={},q=this,j=this.originalMousePosition,n=this.axis;var r=(e.pageX-j.left)||0,p=(e.pageY-j.top)||0;var i=this._change[n];if(!i){return false}var l=i.apply(this,[e,r,p]),k=c.browser.msie&&c.browser.version<7,f=this.sizeDiff;this._updateVirtualBoundaries(e.shiftKey);if(this._aspectRatio||e.shiftKey){l=this._updateRatio(l,e)}l=this._respectSize(l,e);this._propagate("resize",e);h.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(l);this._trigger("resize",e,this.ui());return false},_mouseStop:function(h){this.resizing=false;var i=this.options,m=this;if(this._helper){var g=this._proportionallyResizeElements,e=g.length&&(/textarea/i).test(g[0].nodeName),f=e&&c.ui.hasScroll(g[0],"left")?0:m.sizeDiff.height,k=e?0:m.sizeDiff.width;var n={width:(m.helper.width()-k),height:(m.helper.height()-f)},j=(parseInt(m.element.css("left"),10)+(m.position.left-m.originalPosition.left))||null,l=(parseInt(m.element.css("top"),10)+(m.position.top-m.originalPosition.top))||null;if(!i.animate){this.element.css(c.extend(n,{top:l,left:j}))}m.helper.height(m.size.height);m.helper.width(m.size.width);if(this._helper&&!i.animate){this._proportionallyResize()}}c("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",h);if(this._helper){this.helper.remove()}return false},_updateVirtualBoundaries:function(g){var j=this.options,i,h,f,k,e;e={minWidth:a(j.minWidth)?j.minWidth:0,maxWidth:a(j.maxWidth)?j.maxWidth:Infinity,minHeight:a(j.minHeight)?j.minHeight:0,maxHeight:a(j.maxHeight)?j.maxHeight:Infinity};if(this._aspectRatio||g){i=e.minHeight*this.aspectRatio;f=e.minWidth/this.aspectRatio;h=e.maxHeight*this.aspectRatio;k=e.maxWidth/this.aspectRatio;if(i>e.minWidth){e.minWidth=i}if(f>e.minHeight){e.minHeight=f}if(h<e.maxWidth){e.maxWidth=h}if(k<e.maxHeight){e.maxHeight=k}}this._vBoundaries=e},_updateCache:function(e){var f=this.options;this.offset=this.helper.offset();if(a(e.left)){this.position.left=e.left}if(a(e.top)){this.position.top=e.top}if(a(e.height)){this.size.height=e.height}if(a(e.width)){this.size.width=e.width}},_updateRatio:function(h,g){var i=this.options,j=this.position,f=this.size,e=this.axis;if(a(h.height)){h.width=(h.height*this.aspectRatio)}else{if(a(h.width)){h.height=(h.width/this.aspectRatio)}}if(e=="sw"){h.left=j.left+(f.width-h.width);h.top=null}if(e=="nw"){h.top=j.top+(f.height-h.height);h.left=j.left+(f.width-h.width)}return h},_respectSize:function(l,g){var j=this.helper,i=this._vBoundaries,r=this._aspectRatio||g.shiftKey,q=this.axis,t=a(l.width)&&i.maxWidth&&(i.maxWidth<l.width),m=a(l.height)&&i.maxHeight&&(i.maxHeight<l.height),h=a(l.width)&&i.minWidth&&(i.minWidth>l.width),s=a(l.height)&&i.minHeight&&(i.minHeight>l.height);if(h){l.width=i.minWidth}if(s){l.height=i.minHeight}if(t){l.width=i.maxWidth}if(m){l.height=i.maxHeight}var f=this.originalPosition.left+this.originalSize.width,p=this.position.top+this.size.height;var k=/sw|nw|w/.test(q),e=/nw|ne|n/.test(q);if(h&&k){l.left=f-i.minWidth}if(t&&k){l.left=f-i.maxWidth}if(s&&e){l.top=p-i.minHeight}if(m&&e){l.top=p-i.maxHeight}var n=!l.width&&!l.height;if(n&&!l.left&&l.top){l.top=null}else{if(n&&!l.top&&l.left){l.left=null}}return l},_proportionallyResize:function(){var k=this.options;if(!this._proportionallyResizeElements.length){return}var g=this.helper||this.element;for(var f=0;f<this._proportionallyResizeElements.length;f++){var h=this._proportionallyResizeElements[f];if(!this.borderDif){var e=[h.css("borderTopWidth"),h.css("borderRightWidth"),h.css("borderBottomWidth"),h.css("borderLeftWidth")],j=[h.css("paddingTop"),h.css("paddingRight"),h.css("paddingBottom"),h.css("paddingLeft")];this.borderDif=c.map(e,function(l,n){var m=parseInt(l,10)||0,o=parseInt(j[n],10)||0;return m+o})}if(c.browser.msie&&!(!(c(g).is(":hidden")||c(g).parents(":hidden").length))){continue}h.css({height:(g.height()-this.borderDif[0]-this.borderDif[2])||0,width:(g.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var f=this.element,i=this.options;this.elementOffset=f.offset();if(this._helper){this.helper=this.helper||c('<div style="overflow:hidden;"></div>');var e=c.browser.msie&&c.browser.version<7,g=(e?1:0),h=(e?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+h,height:this.element.outerHeight()+h,position:"absolute",left:this.elementOffset.left-g+"px",top:this.elementOffset.top-g+"px",zIndex:++i.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(g,f,e){return{width:this.originalSize.width+f}},w:function(h,f,e){var j=this.options,g=this.originalSize,i=this.originalPosition;return{left:i.left+f,width:g.width-f}},n:function(h,f,e){var j=this.options,g=this.originalSize,i=this.originalPosition;return{top:i.top+e,height:g.height-e}},s:function(g,f,e){return{height:this.originalSize.height+e}},se:function(g,f,e){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[g,f,e]))},sw:function(g,f,e){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[g,f,e]))},ne:function(g,f,e){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[g,f,e]))},nw:function(g,f,e){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[g,f,e]))}},_propagate:function(f,e){c.ui.plugin.call(this,f,[e,this.ui()]);(f!="resize"&&this._trigger(f,e,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});c.extend(c.ui.resizable,{version:"1.8.18"});c.ui.plugin.add("resizable","alsoResize",{start:function(f,g){var e=c(this).data("resizable"),i=e.options;var h=function(j){c(j).each(function(){var k=c(this);k.data("resizable-alsoresize",{width:parseInt(k.width(),10),height:parseInt(k.height(),10),left:parseInt(k.css("left"),10),top:parseInt(k.css("top"),10)})})};if(typeof(i.alsoResize)=="object"&&!i.alsoResize.parentNode){if(i.alsoResize.length){i.alsoResize=i.alsoResize[0];h(i.alsoResize)}else{c.each(i.alsoResize,function(j){h(j)})}}else{h(i.alsoResize)}},resize:function(g,i){var f=c(this).data("resizable"),j=f.options,h=f.originalSize,l=f.originalPosition;var k={height:(f.size.height-h.height)||0,width:(f.size.width-h.width)||0,top:(f.position.top-l.top)||0,left:(f.position.left-l.left)||0},e=function(m,n){c(m).each(function(){var q=c(this),r=c(this).data("resizable-alsoresize"),p={},o=n&&n.length?n:q.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];c.each(o,function(s,u){var t=(r[u]||0)+(k[u]||0);if(t&&t>=0){p[u]=t||null}});q.css(p)})};if(typeof(j.alsoResize)=="object"&&!j.alsoResize.nodeType){c.each(j.alsoResize,function(m,n){e(m,n)})}else{e(j.alsoResize)}},stop:function(e,f){c(this).removeData("resizable-alsoresize")}});c.ui.plugin.add("resizable","animate",{stop:function(i,n){var p=c(this).data("resizable"),j=p.options;var h=p._proportionallyResizeElements,e=h.length&&(/textarea/i).test(h[0].nodeName),f=e&&c.ui.hasScroll(h[0],"left")?0:p.sizeDiff.height,l=e?0:p.sizeDiff.width;var g={width:(p.size.width-l),height:(p.size.height-f)},k=(parseInt(p.element.css("left"),10)+(p.position.left-p.originalPosition.left))||null,m=(parseInt(p.element.css("top"),10)+(p.position.top-p.originalPosition.top))||null;p.element.animate(c.extend(g,m&&k?{top:m,left:k}:{}),{duration:j.animateDuration,easing:j.animateEasing,step:function(){var o={width:parseInt(p.element.css("width"),10),height:parseInt(p.element.css("height"),10),top:parseInt(p.element.css("top"),10),left:parseInt(p.element.css("left"),10)};if(h&&h.length){c(h[0]).css({width:o.width,height:o.height})}p._updateCache(o);p._propagate("resize",i)}})}});c.ui.plugin.add("resizable","containment",{start:function(f,r){var t=c(this).data("resizable"),j=t.options,l=t.element;var g=j.containment,k=(g instanceof c)?g.get(0):(/parent/.test(g))?l.parent().get(0):g;if(!k){return}t.containerElement=c(k);if(/document/.test(g)||g==document){t.containerOffset={left:0,top:0};t.containerPosition={left:0,top:0};t.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var n=c(k),i=[];c(["Top","Right","Left","Bottom"]).each(function(p,o){i[p]=b(n.css("padding"+o))});t.containerOffset=n.offset();t.containerPosition=n.position();t.containerSize={height:(n.innerHeight()-i[3]),width:(n.innerWidth()-i[1])};var q=t.containerOffset,e=t.containerSize.height,m=t.containerSize.width,h=(c.ui.hasScroll(k,"left")?k.scrollWidth:m),s=(c.ui.hasScroll(k)?k.scrollHeight:e);t.parentData={element:k,left:q.left,top:q.top,width:h,height:s}}},resize:function(g,q){var t=c(this).data("resizable"),i=t.options,f=t.containerSize,p=t.containerOffset,m=t.size,n=t.position,r=t._aspectRatio||g.shiftKey,e={top:0,left:0},h=t.containerElement;if(h[0]!=document&&(/static/).test(h.css("position"))){e=p}if(n.left<(t._helper?p.left:0)){t.size.width=t.size.width+(t._helper?(t.position.left-p.left):(t.position.left-e.left));if(r){t.size.height=t.size.width/i.aspectRatio}t.position.left=i.helper?p.left:0}if(n.top<(t._helper?p.top:0)){t.size.height=t.size.height+(t._helper?(t.position.top-p.top):t.position.top);if(r){t.size.width=t.size.height*i.aspectRatio}t.position.top=t._helper?p.top:0}t.offset.left=t.parentData.left+t.position.left;t.offset.top=t.parentData.top+t.position.top;var l=Math.abs((t._helper?t.offset.left-e.left:(t.offset.left-e.left))+t.sizeDiff.width),s=Math.abs((t._helper?t.offset.top-e.top:(t.offset.top-p.top))+t.sizeDiff.height);var k=t.containerElement.get(0)==t.element.parent().get(0),j=/relative|absolute/.test(t.containerElement.css("position"));if(k&&j){l-=t.parentData.left}if(l+t.size.width>=t.parentData.width){t.size.width=t.parentData.width-l;if(r){t.size.height=t.size.width/t.aspectRatio}}if(s+t.size.height>=t.parentData.height){t.size.height=t.parentData.height-s;if(r){t.size.width=t.size.height*t.aspectRatio}}},stop:function(f,n){var q=c(this).data("resizable"),g=q.options,l=q.position,m=q.containerOffset,e=q.containerPosition,i=q.containerElement;var j=c(q.helper),r=j.offset(),p=j.outerWidth()-q.sizeDiff.width,k=j.outerHeight()-q.sizeDiff.height;if(q._helper&&!g.animate&&(/relative/).test(i.css("position"))){c(this).css({left:r.left-e.left-m.left,width:p,height:k})}if(q._helper&&!g.animate&&(/static/).test(i.css("position"))){c(this).css({left:r.left-e.left-m.left,width:p,height:k})}}});c.ui.plugin.add("resizable","ghost",{start:function(g,h){var e=c(this).data("resizable"),i=e.options,f=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:0.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof i.ghost=="string"?i.ghost:"");e.ghost.appendTo(e.helper)},resize:function(f,g){var e=c(this).data("resizable"),h=e.options;if(e.ghost){e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})}},stop:function(f,g){var e=c(this).data("resizable"),h=e.options;if(e.ghost&&e.helper){e.helper.get(0).removeChild(e.ghost.get(0))}}});c.ui.plugin.add("resizable","grid",{resize:function(e,m){var p=c(this).data("resizable"),h=p.options,k=p.size,i=p.originalSize,j=p.originalPosition,n=p.axis,l=h._aspectRatio||e.shiftKey;h.grid=typeof h.grid=="number"?[h.grid,h.grid]:h.grid;var g=Math.round((k.width-i.width)/(h.grid[0]||1))*(h.grid[0]||1),f=Math.round((k.height-i.height)/(h.grid[1]||1))*(h.grid[1]||1);if(/^(se|s|e)$/.test(n)){p.size.width=i.width+g;p.size.height=i.height+f}else{if(/^(ne)$/.test(n)){p.size.width=i.width+g;p.size.height=i.height+f;p.position.top=j.top-f}else{if(/^(sw)$/.test(n)){p.size.width=i.width+g;p.size.height=i.height+f;p.position.left=j.left-g}else{p.size.width=i.width+g;p.size.height=i.height+f;p.position.top=j.top-f;p.position.left=j.left-g}}}}});var b=function(e){return parseInt(e,10)||0};var a=function(e){return !isNaN(parseInt(e,10))}})(jQuery);/*!
+ * jQuery hashchange event - v1.3 - 7/21/2010
+ * http://benalman.com/projects/jquery-hashchange-plugin/
+ *
+ * Copyright (c) 2010 "Cowboy" Ben Alman
+ * Dual licensed under the MIT and GPL licenses.
+ * http://benalman.com/about/license/
+ */
+(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].domain;if(v!==s){u.title=h.title;u.open();t&&u.write('<script>document.domain="'+t+'"<\/script>');u.close();q.location.hash=v}}})();return j})()})(jQuery,this);(function(c){var a=c.scrollTo=function(f,e,d){c(window).scrollTo(f,e,d)};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};a.window=function(d){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){var e=this,d=!e.nodeName||c.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!d){return e}var f=(e.contentWindow||e).document||e.ownerDocument||e;return c.browser.safari||f.compatMode=="BackCompat"?f.body:f.documentElement})};c.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={onAfter:d}}if(f=="max"){f=9000000000}d=c.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=b(d.offset);d.over=b(d.over);return this._scrollable().each(function(){var l=this,j=c(l),k=f,i,g={},m=j.is("html,body");switch(typeof k){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(k)){k=b(k);break}k=c(k,this);case"object":if(k.is||k.style){i=(k=c(k)).offset()}}c.each(d.axis.split(""),function(q,r){var s=r=="x"?"Left":"Top",u=s.toLowerCase(),p="scroll"+s,o=l[p],n=a.max(l,r);if(i){g[p]=i[u]+(m?0:o-j.offset()[u]);if(d.margin){g[p]-=parseInt(k.css("margin"+s))||0;g[p]-=parseInt(k.css("border"+s+"Width"))||0}g[p]+=d.offset[u]||0;if(d.over[u]){g[p]+=k[r=="x"?"width":"height"]()*d.over[u]}}else{var t=k[u];g[p]=t.slice&&t.slice(-1)=="%"?parseFloat(t)/100*n:t}if(/^\d+$/.test(g[p])){g[p]=g[p]<=0?0:Math.min(g[p],n)}if(!q&&d.queue){if(o!=g[p]){h(d.onAfterFirst)}delete g[p]}});h(d.onAfter);function h(n){j.animate(g,e,d.easing,n&&function(){n.call(this,f,d)})}}).end()};a.max=function(j,i){var h=i=="x"?"Width":"Height",e="scroll"+h;if(!c(j).is("html,body")){return j[e]-c(j)[h.toLowerCase()]()}var g="client"+h,f=j.ownerDocument.documentElement,d=j.ownerDocument.body;return Math.max(f[e],d[e])-Math.min(f[g],d[g])};function b(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);/*!
+ PowerTip - v1.2.0 - 2013-04-03
+ http://stevenbenner.github.com/jquery-powertip/
+ Copyright (c) 2013 Steven Benner (http://stevenbenner.com/).
+ Released under MIT license.
+ https://raw.github.com/stevenbenner/jquery-powertip/master/LICENSE.txt
+*/
+(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(jQuery)}}(function(k){var A=k(document),s=k(window),w=k("body");var n="displayController",e="hasActiveHover",d="forcedOpen",u="hasMouseMove",f="mouseOnToPopup",g="originalTitle",y="powertip",o="powertipjq",l="powertiptarget",E=180/Math.PI;var c={isTipOpen:false,isFixedTipOpen:false,isClosing:false,tipOpenImminent:false,activeHover:null,currentX:0,currentY:0,previousX:0,previousY:0,desyncTimeout:null,mouseTrackingActive:false,delayInProgress:false,windowWidth:0,windowHeight:0,scrollTop:0,scrollLeft:0};var p={none:0,top:1,bottom:2,left:4,right:8};k.fn.powerTip=function(F,N){if(!this.length){return this}if(k.type(F)==="string"&&k.powerTip[F]){return k.powerTip[F].call(this,this,N)}var O=k.extend({},k.fn.powerTip.defaults,F),G=new x(O);h();this.each(function M(){var R=k(this),Q=R.data(y),P=R.data(o),T=R.data(l),S;if(R.data(n)){k.powerTip.destroy(R)}S=R.attr("title");if(!Q&&!T&&!P&&S){R.data(y,S);R.data(g,S);R.removeAttr("title")}R.data(n,new t(R,O,G))});if(!O.manual){this.on({"mouseenter.powertip":function J(P){k.powerTip.show(this,P)},"mouseleave.powertip":function L(){k.powerTip.hide(this)},"focus.powertip":function K(){k.powerTip.show(this)},"blur.powertip":function H(){k.powerTip.hide(this,true)},"keydown.powertip":function I(P){if(P.keyCode===27){k.powerTip.hide(this,true)}}})}return this};k.fn.powerTip.defaults={fadeInTime:200,fadeOutTime:100,followMouse:false,popupId:"powerTip",intentSensitivity:7,intentPollInterval:100,closeDelay:100,placement:"n",smartPlacement:false,offset:10,mouseOnToPopup:false,manual:false};k.fn.powerTip.smartPlacementLists={n:["n","ne","nw","s"],e:["e","ne","se","w","nw","sw","n","s","e"],s:["s","se","sw","n"],w:["w","nw","sw","e","ne","se","n","s","w"],nw:["nw","w","sw","n","s","se","nw"],ne:["ne","e","se","n","s","sw","ne"],sw:["sw","w","nw","s","n","ne","sw"],se:["se","e","ne","s","n","nw","se"],"nw-alt":["nw-alt","n","ne-alt","sw-alt","s","se-alt","w","e"],"ne-alt":["ne-alt","n","nw-alt","se-alt","s","sw-alt","e","w"],"sw-alt":["sw-alt","s","se-alt","nw-alt","n","ne-alt","w","e"],"se-alt":["se-alt","s","sw-alt","ne-alt","n","nw-alt","e","w"]};k.powerTip={show:function z(F,G){if(G){i(G);c.previousX=G.pageX;c.previousY=G.pageY;k(F).data(n).show()}else{k(F).first().data(n).show(true,true)}return F},reposition:function r(F){k(F).first().data(n).resetPosition();return F},hide:function D(G,F){if(G){k(G).first().data(n).hide(F)}else{if(c.activeHover){c.activeHover.data(n).hide(true)}}return G},destroy:function C(G){k(G).off(".powertip").each(function F(){var I=k(this),H=[g,n,e,d];if(I.data(g)){I.attr("title",I.data(g));H.push(y)}I.removeData(H)});return G}};k.powerTip.showTip=k.powerTip.show;k.powerTip.closeTip=k.powerTip.hide;function b(){var F=this;F.top="auto";F.left="auto";F.right="auto";F.bottom="auto";F.set=function(H,G){if(k.isNumeric(G)){F[H]=Math.round(G)}}}function t(K,N,F){var J=null;function L(P,Q){M();if(!K.data(e)){if(!P){c.tipOpenImminent=true;J=setTimeout(function O(){J=null;I()},N.intentPollInterval)}else{if(Q){K.data(d,true)}F.showTip(K)}}}function G(P){M();c.tipOpenImminent=false;if(K.data(e)){K.data(d,false);if(!P){c.delayInProgress=true;J=setTimeout(function O(){J=null;F.hideTip(K);c.delayInProgress=false},N.closeDelay)}else{F.hideTip(K)}}}function I(){var Q=Math.abs(c.previousX-c.currentX),O=Math.abs(c.previousY-c.currentY),P=Q+O;if(P<N.intentSensitivity){F.showTip(K)}else{c.previousX=c.currentX;c.previousY=c.currentY;L()}}function M(){J=clearTimeout(J);c.delayInProgress=false}function H(){F.resetPosition(K)}this.show=L;this.hide=G;this.cancel=M;this.resetPosition=H}function j(){function G(M,L,J,O,P){var K=L.split("-")[0],N=new b(),I;if(q(M)){I=H(M,K)}else{I=F(M,K)}switch(L){case"n":N.set("left",I.left-(J/2));N.set("bottom",c.windowHeight-I.top+P);break;case"e":N.set("left",I.left+P);N.set("top",I.top-(O/2));break;case"s":N.set("left",I.left-(J/2));N.set("top",I.top+P);break;case"w":N.set("top",I.top-(O/2));N.set("right",c.windowWidth-I.left+P);break;case"nw":N.set("bottom",c.windowHeight-I.top+P);N.set("right",c.windowWidth-I.left-20);break;case"nw-alt":N.set("left",I.left);N.set("bottom",c.windowHeight-I.top+P);break;case"ne":N.set("left",I.left-20);N.set("bottom",c.windowHeight-I.top+P);break;case"ne-alt":N.set("bottom",c.windowHeight-I.top+P);N.set("right",c.windowWidth-I.left);break;case"sw":N.set("top",I.top+P);N.set("right",c.windowWidth-I.left-20);break;case"sw-alt":N.set("left",I.left);N.set("top",I.top+P);break;case"se":N.set("left",I.left-20);N.set("top",I.top+P);break;case"se-alt":N.set("top",I.top+P);N.set("right",c.windowWidth-I.left);break}return N}function F(K,J){var O=K.offset(),N=K.outerWidth(),I=K.outerHeight(),M,L;switch(J){case"n":M=O.left+N/2;L=O.top;break;case"e":M=O.left+N;L=O.top+I/2;break;case"s":M=O.left+N/2;L=O.top+I;break;case"w":M=O.left;L=O.top+I/2;break;case"nw":M=O.left;L=O.top;break;case"ne":M=O.left+N;L=O.top;break;case"sw":M=O.left;L=O.top+I;break;case"se":M=O.left+N;L=O.top+I;break}return{top:L,left:M}}function H(O,K){var S=O.closest("svg")[0],N=O[0],W=S.createSVGPoint(),L=N.getBBox(),V=N.getScreenCTM(),M=L.width/2,Q=L.height/2,P=[],I=["nw","n","ne","e","se","s","sw","w"],U,X,R,T;function J(){P.push(W.matrixTransform(V))}W.x=L.x;W.y=L.y;J();W.x+=M;J();W.x+=M;J();W.y+=Q;J();W.y+=Q;J();W.x-=M;J();W.x-=M;J();W.y-=Q;J();if(P[0].y!==P[1].y||P[0].x!==P[7].x){X=Math.atan2(V.b,V.a)*E;R=Math.ceil(((X%360)-22.5)/45);if(R<1){R+=8}while(R--){I.push(I.shift())}}for(T=0;T<P.length;T++){if(I[T]===K){U=P[T];break}}return{top:U.y+c.scrollTop,left:U.x+c.scrollLeft}}this.compute=G}function x(Q){var P=new j(),O=k("#"+Q.popupId);if(O.length===0){O=k("<div/>",{id:Q.popupId});if(w.length===0){w=k("body")}w.append(O)}if(Q.followMouse){if(!O.data(u)){A.on("mousemove",M);s.on("scroll",M);O.data(u,true)}}if(Q.mouseOnToPopup){O.on({mouseenter:function L(){if(O.data(f)){if(c.activeHover){c.activeHover.data(n).cancel()}}},mouseleave:function N(){if(c.activeHover){c.activeHover.data(n).hide()}}})}function I(S){S.data(e,true);O.queue(function R(T){H(S);T()})}function H(S){var U;if(!S.data(e)){return}if(c.isTipOpen){if(!c.isClosing){K(c.activeHover)}O.delay(100).queue(function R(V){H(S);V()});return}S.trigger("powerTipPreRender");U=B(S);if(U){O.empty().append(U)}else{return}S.trigger("powerTipRender");c.activeHover=S;c.isTipOpen=true;O.data(f,Q.mouseOnToPopup);if(!Q.followMouse){G(S);c.isFixedTipOpen=true}else{M()}O.fadeIn(Q.fadeInTime,function T(){if(!c.desyncTimeout){c.desyncTimeout=setInterval(J,500)}S.trigger("powerTipOpen")})}function K(R){c.isClosing=true;c.activeHover=null;c.isTipOpen=false;c.desyncTimeout=clearInterval(c.desyncTimeout);R.data(e,false);R.data(d,false);O.fadeOut(Q.fadeOutTime,function S(){var T=new b();c.isClosing=false;c.isFixedTipOpen=false;O.removeClass();T.set("top",c.currentY+Q.offset);T.set("left",c.currentX+Q.offset);O.css(T);R.trigger("powerTipClose")})}function M(){if(!c.isFixedTipOpen&&(c.isTipOpen||(c.tipOpenImminent&&O.data(u)))){var R=O.outerWidth(),V=O.outerHeight(),U=new b(),S,T;U.set("top",c.currentY+Q.offset);U.set("left",c.currentX+Q.offset);S=m(U,R,V);if(S!==p.none){T=a(S);if(T===1){if(S===p.right){U.set("left",c.windowWidth-R)}else{if(S===p.bottom){U.set("top",c.scrollTop+c.windowHeight-V)}}}else{U.set("left",c.currentX-R-Q.offset);U.set("top",c.currentY-V-Q.offset)}}O.css(U)}}function G(S){var R,T;if(Q.smartPlacement){R=k.fn.powerTip.smartPlacementLists[Q.placement];k.each(R,function(U,W){var V=m(F(S,W),O.outerWidth(),O.outerHeight());T=W;if(V===p.none){return false}})}else{F(S,Q.placement);T=Q.placement}O.addClass(T)}function F(U,T){var R=0,S,W,V=new b();V.set("top",0);V.set("left",0);O.css(V);do{S=O.outerWidth();W=O.outerHeight();V=P.compute(U,T,S,W,Q.offset);O.css(V)}while(++R<=5&&(S!==O.outerWidth()||W!==O.outerHeight()));return V}function J(){var R=false;if(c.isTipOpen&&!c.isClosing&&!c.delayInProgress){if(c.activeHover.data(e)===false||c.activeHover.is(":disabled")){R=true}else{if(!v(c.activeHover)&&!c.activeHover.is(":focus")&&!c.activeHover.data(d)){if(O.data(f)){if(!v(O)){R=true}}else{R=true}}}if(R){K(c.activeHover)}}}this.showTip=I;this.hideTip=K;this.resetPosition=G}function q(F){return window.SVGElement&&F[0] instanceof SVGElement}function h(){if(!c.mouseTrackingActive){c.mouseTrackingActive=true;k(function H(){c.scrollLeft=s.scrollLeft();c.scrollTop=s.scrollTop();c.windowWidth=s.width();c.windowHeight=s.height()});A.on("mousemove",i);s.on({resize:function G(){c.windowWidth=s.width();c.windowHeight=s.height()},scroll:function F(){var I=s.scrollLeft(),J=s.scrollTop();if(I!==c.scrollLeft){c.currentX+=I-c.scrollLeft;c.scrollLeft=I}if(J!==c.scrollTop){c.currentY+=J-c.scrollTop;c.scrollTop=J}}})}}function i(F){c.currentX=F.pageX;c.currentY=F.pageY}function v(F){var H=F.offset(),J=F[0].getBoundingClientRect(),I=J.right-J.left,G=J.bottom-J.top;return c.currentX>=H.left&&c.currentX<=H.left+I&&c.currentY>=H.top&&c.currentY<=H.top+G}function B(I){var G=I.data(y),F=I.data(o),K=I.data(l),H,J;if(G){if(k.isFunction(G)){G=G.call(I[0])}J=G}else{if(F){if(k.isFunction(F)){F=F.call(I[0])}if(F.length>0){J=F.clone(true,true)}}else{if(K){H=k("#"+K);if(H.length>0){J=H.html()}}}}return J}function m(M,L,K){var G=c.scrollTop,J=c.scrollLeft,I=G+c.windowHeight,F=J+c.windowWidth,H=p.none;if(M.top<G||Math.abs(M.bottom-c.windowHeight)-K<G){H|=p.top}if(M.top+K>I||Math.abs(M.bottom-c.windowHeight)>I){H|=p.bottom}if(M.left<J||M.right+L>F){H|=p.left}if(M.left+L>F||M.right<J){H|=p.right}return H}function a(G){var F=0;while(G){G&=G-1;F++}return F}}));/*!
+ * jQuery UI Touch Punch 0.2.3
+ *
+ * Copyright 2011–2014, Dave Furfero
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ *
+ * Depends:
+ * jquery.ui.widget.js
+ * jquery.ui.mouse.js
+ */
+(function(b){b.support.touch="ontouchend" in document;if(!b.support.touch){return}var d=b.ui.mouse.prototype,f=d._mouseInit,c=d._mouseDestroy,a;function e(h,i){if(h.originalEvent.touches.length>1){return}h.preventDefault();var j=h.originalEvent.changedTouches[0],g=document.createEvent("MouseEvents");g.initMouseEvent(i,true,true,window,1,j.screenX,j.screenY,j.clientX,j.clientY,false,false,false,false,0,null);h.target.dispatchEvent(g)}d._touchStart=function(h){var g=this;if(a||!g._mouseCapture(h.originalEvent.changedTouches[0])){return}a=true;g._touchMoved=false;e(h,"mouseover");e(h,"mousemove");e(h,"mousedown")};d._touchMove=function(g){if(!a){return}this._touchMoved=true;e(g,"mousemove")};d._touchEnd=function(g){if(!a){return}e(g,"mouseup");e(g,"mouseout");if(!this._touchMoved){e(g,"click")}a=false};d._mouseInit=function(){var g=this;g.element.bind({touchstart:b.proxy(g,"_touchStart"),touchmove:b.proxy(g,"_touchMove"),touchend:b.proxy(g,"_touchEnd")});f.call(g)};d._mouseDestroy=function(){var g=this;g.element.unbind({touchstart:b.proxy(g,"_touchStart"),touchmove:b.proxy(g,"_touchMove"),touchend:b.proxy(g,"_touchEnd")});c.call(g)}})(jQuery);/*!
+ * SmartMenus jQuery Plugin - v1.0.0 - January 27, 2016
+ * http://www.smartmenus.org/
+ *
+ * Copyright Vasil Dinkov, Vadikom Web Ltd.
+ * http://vadikom.com
+ *
+ * Licensed MIT
+ */
+(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{if(typeof module==="object"&&typeof module.exports==="object"){module.exports=a(require("jquery"))}else{a(jQuery)}}}(function(a){var b=[],e=!!window.createPopup,f=false,d="ontouchstart" in window,h=false,g=window.requestAnimationFrame||function(l){return setTimeout(l,1000/60)},c=window.cancelAnimationFrame||function(l){clearTimeout(l)};function k(m){var n=".smartmenus_mouse";if(!h&&!m){var o=true,l=null;a(document).bind(i([["mousemove",function(s){var t={x:s.pageX,y:s.pageY,timeStamp:new Date().getTime()};if(l){var q=Math.abs(l.x-t.x),p=Math.abs(l.y-t.y);if((q>0||p>0)&&q<=2&&p<=2&&t.timeStamp-l.timeStamp<=300){f=true;if(o){var r=a(s.target).closest("a");if(r.is("a")){a.each(b,function(){if(a.contains(this.$root[0],r[0])){this.itemEnter({currentTarget:r[0]});return false}})}o=false}}}l=t}],[d?"touchstart":"pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut",function(p){if(j(p.originalEvent)){f=false}}]],n));h=true}else{if(h&&m){a(document).unbind(n);h=false}}}function j(l){return !/^(4|mouse)$/.test(l.pointerType)}function i(l,n){if(!n){n=""}var m={};a.each(l,function(o,p){m[p[0].split(" ").join(n+" ")+n]=p[1]});return m}a.SmartMenus=function(m,l){this.$root=a(m);this.opts=l;this.rootId="";this.accessIdPrefix="";this.$subArrow=null;this.activatedItems=[];this.visibleSubMenus=[];this.showTimeout=0;this.hideTimeout=0;this.scrollTimeout=0;this.clickActivated=false;this.focusActivated=false;this.zIndexInc=0;this.idInc=0;this.$firstLink=null;this.$firstSub=null;this.disabled=false;this.$disableOverlay=null;this.$touchScrollingSub=null;this.cssTransforms3d="perspective" in m.style||"webkitPerspective" in m.style;this.wasCollapsible=false;this.init()};a.extend(a.SmartMenus,{hideAll:function(){a.each(b,function(){this.menuHideAll()})},destroy:function(){while(b.length){b[0].destroy()}k(true)},prototype:{init:function(n){var l=this;if(!n){b.push(this);this.rootId=(new Date().getTime()+Math.random()+"").replace(/\D/g,"");this.accessIdPrefix="sm-"+this.rootId+"-";if(this.$root.hasClass("sm-rtl")){this.opts.rightToLeftSubMenus=true}var r=".smartmenus";this.$root.data("smartmenus",this).attr("data-smartmenus-id",this.rootId).dataSM("level",1).bind(i([["mouseover focusin",a.proxy(this.rootOver,this)],["mouseout focusout",a.proxy(this.rootOut,this)],["keydown",a.proxy(this.rootKeyDown,this)]],r)).delegate("a",i([["mouseenter",a.proxy(this.itemEnter,this)],["mouseleave",a.proxy(this.itemLeave,this)],["mousedown",a.proxy(this.itemDown,this)],["focus",a.proxy(this.itemFocus,this)],["blur",a.proxy(this.itemBlur,this)],["click",a.proxy(this.itemClick,this)]],r));r+=this.rootId;if(this.opts.hideOnClick){a(document).bind(i([["touchstart",a.proxy(this.docTouchStart,this)],["touchmove",a.proxy(this.docTouchMove,this)],["touchend",a.proxy(this.docTouchEnd,this)],["click",a.proxy(this.docClick,this)]],r))}a(window).bind(i([["resize orientationchange",a.proxy(this.winResize,this)]],r));if(this.opts.subIndicators){this.$subArrow=a("<span/>").addClass("sub-arrow");if(this.opts.subIndicatorsText){this.$subArrow.html(this.opts.subIndicatorsText)}}k()}this.$firstSub=this.$root.find("ul").each(function(){l.menuInit(a(this))}).eq(0);this.$firstLink=this.$root.find("a").eq(0);if(this.opts.markCurrentItem){var p=/(index|default)\.[^#\?\/]*/i,m=/#.*/,q=window.location.href.replace(p,""),o=q.replace(m,"");this.$root.find("a").each(function(){var s=this.href.replace(p,""),t=a(this);if(s==q||s==o){t.addClass("current");if(l.opts.markCurrentTree){t.parentsUntil("[data-smartmenus-id]","ul").each(function(){a(this).dataSM("parent-a").addClass("current")})}}})}this.wasCollapsible=this.isCollapsible()},destroy:function(m){if(!m){var n=".smartmenus";this.$root.removeData("smartmenus").removeAttr("data-smartmenus-id").removeDataSM("level").unbind(n).undelegate(n);n+=this.rootId;a(document).unbind(n);a(window).unbind(n);if(this.opts.subIndicators){this.$subArrow=null}}this.menuHideAll();var l=this;this.$root.find("ul").each(function(){var o=a(this);if(o.dataSM("scroll-arrows")){o.dataSM("scroll-arrows").remove()}if(o.dataSM("shown-before")){if(l.opts.subMenusMinWidth||l.opts.subMenusMaxWidth){o.css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap")}if(o.dataSM("scroll-arrows")){o.dataSM("scroll-arrows").remove()}o.css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""})}if((o.attr("id")||"").indexOf(l.accessIdPrefix)==0){o.removeAttr("id")}}).removeDataSM("in-mega").removeDataSM("shown-before").removeDataSM("ie-shim").removeDataSM("scroll-arrows").removeDataSM("parent-a").removeDataSM("level").removeDataSM("beforefirstshowfired").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeAttr("aria-expanded");this.$root.find("a.has-submenu").each(function(){var o=a(this);if(o.attr("id").indexOf(l.accessIdPrefix)==0){o.removeAttr("id")}}).removeClass("has-submenu").removeDataSM("sub").removeAttr("aria-haspopup").removeAttr("aria-controls").removeAttr("aria-expanded").closest("li").removeDataSM("sub");if(this.opts.subIndicators){this.$root.find("span.sub-arrow").remove()}if(this.opts.markCurrentItem){this.$root.find("a.current").removeClass("current")}if(!m){this.$root=null;this.$firstLink=null;this.$firstSub=null;if(this.$disableOverlay){this.$disableOverlay.remove();this.$disableOverlay=null}b.splice(a.inArray(this,b),1)}},disable:function(l){if(!this.disabled){this.menuHideAll();if(!l&&!this.opts.isPopup&&this.$root.is(":visible")){var m=this.$root.offset();this.$disableOverlay=a('<div class="sm-jquery-disable-overlay"/>').css({position:"absolute",top:m.top,left:m.left,width:this.$root.outerWidth(),height:this.$root.outerHeight(),zIndex:this.getStartZIndex(true),opacity:0}).appendTo(document.body)}this.disabled=true}},docClick:function(l){if(this.$touchScrollingSub){this.$touchScrollingSub=null;return}if(this.visibleSubMenus.length&&!a.contains(this.$root[0],l.target)||a(l.target).is("a")){this.menuHideAll()}},docTouchEnd:function(m){if(!this.lastTouch){return}if(this.visibleSubMenus.length&&(this.lastTouch.x2===undefined||this.lastTouch.x1==this.lastTouch.x2)&&(this.lastTouch.y2===undefined||this.lastTouch.y1==this.lastTouch.y2)&&(!this.lastTouch.target||!a.contains(this.$root[0],this.lastTouch.target))){if(this.hideTimeout){clearTimeout(this.hideTimeout);this.hideTimeout=0}var l=this;this.hideTimeout=setTimeout(function(){l.menuHideAll()},350)}this.lastTouch=null},docTouchMove:function(m){if(!this.lastTouch){return}var l=m.originalEvent.touches[0];this.lastTouch.x2=l.pageX;this.lastTouch.y2=l.pageY},docTouchStart:function(m){var l=m.originalEvent.touches[0];this.lastTouch={x1:l.pageX,y1:l.pageY,target:l.target}},enable:function(){if(this.disabled){if(this.$disableOverlay){this.$disableOverlay.remove();this.$disableOverlay=null}this.disabled=false}},getClosestMenu:function(m){var l=a(m).closest("ul");while(l.dataSM("in-mega")){l=l.parent().closest("ul")}return l[0]||null},getHeight:function(l){return this.getOffset(l,true)},getOffset:function(n,l){var m;if(n.css("display")=="none"){m={position:n[0].style.position,visibility:n[0].style.visibility};n.css({position:"absolute",visibility:"hidden"}).show()}var o=n[0].getBoundingClientRect&&n[0].getBoundingClientRect(),p=o&&(l?o.height||o.bottom-o.top:o.width||o.right-o.left);if(!p&&p!==0){p=l?n[0].offsetHeight:n[0].offsetWidth}if(m){n.hide().css(m)}return p},getStartZIndex:function(l){var m=parseInt(this[l?"$root":"$firstSub"].css("z-index"));if(!l&&isNaN(m)){m=parseInt(this.$root.css("z-index"))}return !isNaN(m)?m:1},getTouchPoint:function(l){return l.touches&&l.touches[0]||l.changedTouches&&l.changedTouches[0]||l},getViewport:function(l){var m=l?"Height":"Width",o=document.documentElement["client"+m],n=window["inner"+m];if(n){o=Math.min(o,n)}return o},getViewportHeight:function(){return this.getViewport(true)},getViewportWidth:function(){return this.getViewport()},getWidth:function(l){return this.getOffset(l)},handleEvents:function(){return !this.disabled&&this.isCSSOn()},handleItemEvents:function(l){return this.handleEvents()&&!this.isLinkInMegaMenu(l)},isCollapsible:function(){return this.$firstSub.css("position")=="static"},isCSSOn:function(){return this.$firstLink.css("display")=="block"},isFixed:function(){var l=this.$root.css("position")=="fixed";if(!l){this.$root.parentsUntil("body").each(function(){if(a(this).css("position")=="fixed"){l=true;return false}})}return l},isLinkInMegaMenu:function(l){return a(this.getClosestMenu(l[0])).hasClass("mega-menu")},isTouchMode:function(){return !f||this.opts.noMouseOver||this.isCollapsible()},itemActivate:function(p,l){var n=p.closest("ul"),q=n.dataSM("level");if(q>1&&(!this.activatedItems[q-2]||this.activatedItems[q-2][0]!=n.dataSM("parent-a")[0])){var m=this;a(n.parentsUntil("[data-smartmenus-id]","ul").get().reverse()).add(n).each(function(){m.itemActivate(a(this).dataSM("parent-a"))})}if(!this.isCollapsible()||l){this.menuHideSubMenus(!this.activatedItems[q-1]||this.activatedItems[q-1][0]!=p[0]?q-1:q)}this.activatedItems[q-1]=p;if(this.$root.triggerHandler("activate.smapi",p[0])===false){return}var o=p.dataSM("sub");if(o&&(this.isTouchMode()||(!this.opts.showOnClick||this.clickActivated))){this.menuShow(o)}},itemBlur:function(m){var l=a(m.currentTarget);if(!this.handleItemEvents(l)){return}this.$root.triggerHandler("blur.smapi",l[0])},itemClick:function(o){var n=a(o.currentTarget);if(!this.handleItemEvents(n)){return}if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==n.closest("ul")[0]){this.$touchScrollingSub=null;o.stopPropagation();return false}if(this.$root.triggerHandler("click.smapi",n[0])===false){return false}var p=a(o.target).is("span.sub-arrow"),m=n.dataSM("sub"),l=m?m.dataSM("level")==2:false;if(m&&!m.is(":visible")){if(this.opts.showOnClick&&l){this.clickActivated=true}this.itemActivate(n);if(m.is(":visible")){this.focusActivated=true;return false}}else{if(this.isCollapsible()&&p){this.itemActivate(n);this.menuHide(m);return false}}if(this.opts.showOnClick&&l||n.hasClass("disabled")||this.$root.triggerHandler("select.smapi",n[0])===false){return false}},itemDown:function(m){var l=a(m.currentTarget);if(!this.handleItemEvents(l)){return}l.dataSM("mousedown",true)},itemEnter:function(n){var m=a(n.currentTarget);if(!this.handleItemEvents(m)){return}if(!this.isTouchMode()){if(this.showTimeout){clearTimeout(this.showTimeout);this.showTimeout=0}var l=this;this.showTimeout=setTimeout(function(){l.itemActivate(m)},this.opts.showOnClick&&m.closest("ul").dataSM("level")==1?1:this.opts.showTimeout)}this.$root.triggerHandler("mouseenter.smapi",m[0])},itemFocus:function(m){var l=a(m.currentTarget);if(!this.handleItemEvents(l)){return}if(this.focusActivated&&(!this.isTouchMode()||!l.dataSM("mousedown"))&&(!this.activatedItems.length||this.activatedItems[this.activatedItems.length-1][0]!=l[0])){this.itemActivate(l,true)}this.$root.triggerHandler("focus.smapi",l[0])},itemLeave:function(m){var l=a(m.currentTarget);if(!this.handleItemEvents(l)){return}if(!this.isTouchMode()){l[0].blur();if(this.showTimeout){clearTimeout(this.showTimeout);this.showTimeout=0}}l.removeDataSM("mousedown");this.$root.triggerHandler("mouseleave.smapi",l[0])},menuHide:function(m){if(this.$root.triggerHandler("beforehide.smapi",m[0])===false){return}m.stop(true,true);if(m.css("display")!="none"){var l=function(){m.css("z-index","")};if(this.isCollapsible()){if(this.opts.collapsibleHideFunction){this.opts.collapsibleHideFunction.call(this,m,l)}else{m.hide(this.opts.collapsibleHideDuration,l)}}else{if(this.opts.hideFunction){this.opts.hideFunction.call(this,m,l)}else{m.hide(this.opts.hideDuration,l)}}if(m.dataSM("ie-shim")){m.dataSM("ie-shim").remove().css({"-webkit-transform":"",transform:""})}if(m.dataSM("scroll")){this.menuScrollStop(m);m.css({"touch-action":"","-ms-touch-action":"","-webkit-transform":"",transform:""}).unbind(".smartmenus_scroll").removeDataSM("scroll").dataSM("scroll-arrows").hide()}m.dataSM("parent-a").removeClass("highlighted").attr("aria-expanded","false");m.attr({"aria-expanded":"false","aria-hidden":"true"});var n=m.dataSM("level");this.activatedItems.splice(n-1,1);this.visibleSubMenus.splice(a.inArray(m,this.visibleSubMenus),1);this.$root.triggerHandler("hide.smapi",m[0])}},menuHideAll:function(){if(this.showTimeout){clearTimeout(this.showTimeout);this.showTimeout=0}var m=this.opts.isPopup?1:0;for(var l=this.visibleSubMenus.length-1;l>=m;l--){this.menuHide(this.visibleSubMenus[l])}if(this.opts.isPopup){this.$root.stop(true,true);if(this.$root.is(":visible")){if(this.opts.hideFunction){this.opts.hideFunction.call(this,this.$root)}else{this.$root.hide(this.opts.hideDuration)}if(this.$root.dataSM("ie-shim")){this.$root.dataSM("ie-shim").remove()}}}this.activatedItems=[];this.visibleSubMenus=[];this.clickActivated=false;this.focusActivated=false;this.zIndexInc=0;this.$root.triggerHandler("hideAll.smapi")},menuHideSubMenus:function(n){for(var l=this.activatedItems.length-1;l>=n;l--){var m=this.activatedItems[l].dataSM("sub");if(m){this.menuHide(m)}}},menuIframeShim:function(l){if(e&&this.opts.overlapControlsInIE&&!l.dataSM("ie-shim")){l.dataSM("ie-shim",a("<iframe/>").attr({src:"javascript:0",tabindex:-9}).css({position:"absolute",top:"auto",left:"0",opacity:0,border:"0"}))}},menuInit:function(l){if(!l.dataSM("in-mega")){if(l.hasClass("mega-menu")){l.find("ul").dataSM("in-mega",true)}var q=2,m=l[0];while((m=m.parentNode.parentNode)!=this.$root[0]){q++}var n=l.prevAll("a").eq(-1);if(!n.length){n=l.prevAll().find("a").eq(-1)}n.addClass("has-submenu").dataSM("sub",l);l.dataSM("parent-a",n).dataSM("level",q).parent().dataSM("sub",l);var o=n.attr("id")||this.accessIdPrefix+(++this.idInc),p=l.attr("id")||this.accessIdPrefix+(++this.idInc);n.attr({id:o,"aria-haspopup":"true","aria-controls":p,"aria-expanded":"false"});l.attr({id:p,role:"group","aria-hidden":"true","aria-labelledby":o,"aria-expanded":"false"});if(this.opts.subIndicators){n[this.opts.subIndicatorsPos](this.$subArrow.clone())}}},menuPosition:function(K){var r=K.dataSM("parent-a"),D=r.closest("li"),E=D.parent(),l=K.dataSM("level"),t=this.getWidth(K),J=this.getHeight(K),u=r.offset(),o=u.left,m=u.top,q=this.getWidth(r),F=this.getHeight(r),H=a(window),v=H.scrollLeft(),s=H.scrollTop(),z=this.getViewportWidth(),L=this.getViewportHeight(),w=E.parent().is("[data-sm-horizontal-sub]")||l==2&&!E.hasClass("sm-vertical"),B=this.opts.rightToLeftSubMenus&&!D.is("[data-sm-reverse]")||!this.opts.rightToLeftSubMenus&&D.is("[data-sm-reverse]"),p=l==2?this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,n=l==2?this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY,C,A;if(w){C=B?q-t-p:p;A=this.opts.bottomToTopSubMenus?-J-n:F+n}else{C=B?p-t:q-p;A=this.opts.bottomToTopSubMenus?F-n-J:n}if(this.opts.keepInViewport){var N=o+C,M=m+A;if(B&&N<v){C=w?v-N+C:q-p}else{if(!B&&N+t>v+z){C=w?v+z-t-N+C:p-t}}if(!w){if(J<L&&M+J>s+L){A+=s+L-J-M}else{if(J>=L||M<s){A+=s-M}}}if(w&&(M+J>s+L+0.49||M<s)||!w&&J>L+0.49){var G=this;if(!K.dataSM("scroll-arrows")){K.dataSM("scroll-arrows",a([a('<span class="scroll-up"><span class="scroll-up-arrow"></span></span>')[0],a('<span class="scroll-down"><span class="scroll-down-arrow"></span></span>')[0]]).bind({mouseenter:function(){K.dataSM("scroll").up=a(this).hasClass("scroll-up");G.menuScroll(K)},mouseleave:function(x){G.menuScrollStop(K);G.menuScrollOut(K,x)},"mousewheel DOMMouseScroll":function(x){x.preventDefault()}}).insertAfter(K))}var I=".smartmenus_scroll";K.dataSM("scroll",{y:this.cssTransforms3d?0:A-F,step:1,itemH:F,subH:J,arrowDownH:this.getHeight(K.dataSM("scroll-arrows").eq(1))}).bind(i([["mouseover",function(x){G.menuScrollOver(K,x)}],["mouseout",function(x){G.menuScrollOut(K,x)}],["mousewheel DOMMouseScroll",function(x){G.menuScrollMousewheel(K,x)}]],I)).dataSM("scroll-arrows").css({top:"auto",left:"0",marginLeft:C+(parseInt(K.css("border-left-width"))||0),width:t-(parseInt(K.css("border-left-width"))||0)-(parseInt(K.css("border-right-width"))||0),zIndex:K.css("z-index")}).eq(w&&this.opts.bottomToTopSubMenus?0:1).show();if(this.isFixed()){K.css({"touch-action":"none","-ms-touch-action":"none"}).bind(i([[d?"touchstart touchmove touchend":"pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp",function(x){G.menuScrollTouch(K,x)}]],I))}}}K.css({top:"auto",left:"0",marginLeft:C,marginTop:A-F});this.menuIframeShim(K);if(K.dataSM("ie-shim")){K.dataSM("ie-shim").css({zIndex:K.css("z-index"),width:t,height:J,marginLeft:C,marginTop:A-F})}},menuScroll:function(r,m,n){var p=r.dataSM("scroll"),q=r.dataSM("scroll-arrows"),o=p.up?p.upEnd:p.downEnd,s;if(!m&&p.momentum){p.momentum*=0.92;s=p.momentum;if(s<0.5){this.menuScrollStop(r);return}}else{s=n||(m||!this.opts.scrollAccelerate?this.opts.scrollStep:Math.floor(p.step))}var l=r.dataSM("level");if(this.activatedItems[l-1]&&this.activatedItems[l-1].dataSM("sub")&&this.activatedItems[l-1].dataSM("sub").is(":visible")){this.menuHideSubMenus(l-1)}p.y=p.up&&o<=p.y||!p.up&&o>=p.y?p.y:(Math.abs(o-p.y)>s?p.y+(p.up?s:-s):o);r.add(r.dataSM("ie-shim")).css(this.cssTransforms3d?{"-webkit-transform":"translate3d(0, "+p.y+"px, 0)",transform:"translate3d(0, "+p.y+"px, 0)"}:{marginTop:p.y});if(f&&(p.up&&p.y>p.downEnd||!p.up&&p.y<p.upEnd)){q.eq(p.up?1:0).show()}if(p.y==o){if(f){q.eq(p.up?0:1).hide()}this.menuScrollStop(r)}else{if(!m){if(this.opts.scrollAccelerate&&p.step<this.opts.scrollStep){p.step+=0.2}var t=this;this.scrollTimeout=g(function(){t.menuScroll(r)})}}},menuScrollMousewheel:function(m,n){if(this.getClosestMenu(n.target)==m[0]){n=n.originalEvent;var l=(n.wheelDelta||-n.detail)>0;if(m.dataSM("scroll-arrows").eq(l?0:1).is(":visible")){m.dataSM("scroll").up=l;this.menuScroll(m,true)}}n.preventDefault()},menuScrollOut:function(l,m){if(f){if(!/^scroll-(up|down)/.test((m.relatedTarget||"").className)&&(l[0]!=m.relatedTarget&&!a.contains(l[0],m.relatedTarget)||this.getClosestMenu(m.relatedTarget)!=l[0])){l.dataSM("scroll-arrows").css("visibility","hidden")}}},menuScrollOver:function(n,o){if(f){if(!/^scroll-(up|down)/.test(o.target.className)&&this.getClosestMenu(o.target)==n[0]){this.menuScrollRefreshData(n);var m=n.dataSM("scroll"),l=a(window).scrollTop()-n.dataSM("parent-a").offset().top-m.itemH;n.dataSM("scroll-arrows").eq(0).css("margin-top",l).end().eq(1).css("margin-top",l+this.getViewportHeight()-m.arrowDownH).end().css("visibility","visible")}}},menuScrollRefreshData:function(n){var m=n.dataSM("scroll"),l=a(window).scrollTop()-n.dataSM("parent-a").offset().top-m.itemH;if(this.cssTransforms3d){l=-(parseFloat(n.css("margin-top"))-l)}a.extend(m,{upEnd:l,downEnd:l+this.getViewportHeight()-m.subH})},menuScrollStop:function(l){if(this.scrollTimeout){c(this.scrollTimeout);this.scrollTimeout=0;l.dataSM("scroll").step=1;return true}},menuScrollTouch:function(p,q){q=q.originalEvent;if(j(q)){var m=this.getTouchPoint(q);if(this.getClosestMenu(m.target)==p[0]){var o=p.dataSM("scroll");if(/(start|down)$/i.test(q.type)){if(this.menuScrollStop(p)){q.preventDefault();this.$touchScrollingSub=p}else{this.$touchScrollingSub=null}this.menuScrollRefreshData(p);a.extend(o,{touchStartY:m.pageY,touchStartTime:q.timeStamp})}else{if(/move$/i.test(q.type)){var n=o.touchY!==undefined?o.touchY:o.touchStartY;if(n!==undefined&&n!=m.pageY){this.$touchScrollingSub=p;var l=n<m.pageY;if(o.up!==undefined&&o.up!=l){a.extend(o,{touchStartY:m.pageY,touchStartTime:q.timeStamp})}a.extend(o,{up:l,touchY:m.pageY});this.menuScroll(p,true,Math.abs(m.pageY-n))}q.preventDefault()}else{if(o.touchY!==undefined){if(o.momentum=Math.pow(Math.abs(m.pageY-o.touchStartY)/(q.timeStamp-o.touchStartTime),2)*15){this.menuScrollStop(p);this.menuScroll(p);q.preventDefault()}delete o.touchY}}}}}},menuShow:function(n){if(!n.dataSM("beforefirstshowfired")){n.dataSM("beforefirstshowfired",true);if(this.$root.triggerHandler("beforefirstshow.smapi",n[0])===false){return}}if(this.$root.triggerHandler("beforeshow.smapi",n[0])===false){return}n.dataSM("shown-before",true).stop(true,true);if(!n.is(":visible")){var m=n.dataSM("parent-a");if(this.opts.keepHighlighted||this.isCollapsible()){m.addClass("highlighted")}if(this.isCollapsible()){n.removeClass("sm-nowrap").css({zIndex:"",width:"auto",minWidth:"",maxWidth:"",top:"",left:"",marginLeft:"",marginTop:""})}else{n.css("z-index",this.zIndexInc=(this.zIndexInc||this.getStartZIndex())+1);if(this.opts.subMenusMinWidth||this.opts.subMenusMaxWidth){n.css({width:"auto",minWidth:"",maxWidth:""}).addClass("sm-nowrap");if(this.opts.subMenusMinWidth){n.css("min-width",this.opts.subMenusMinWidth)}if(this.opts.subMenusMaxWidth){var o=this.getWidth(n);n.css("max-width",this.opts.subMenusMaxWidth);if(o>this.getWidth(n)){n.removeClass("sm-nowrap").css("width",this.opts.subMenusMaxWidth)}}}this.menuPosition(n);if(n.dataSM("ie-shim")){n.dataSM("ie-shim").insertBefore(n)}}var l=function(){n.css("overflow","")};if(this.isCollapsible()){if(this.opts.collapsibleShowFunction){this.opts.collapsibleShowFunction.call(this,n,l)}else{n.show(this.opts.collapsibleShowDuration,l)}}else{if(this.opts.showFunction){this.opts.showFunction.call(this,n,l)}else{n.show(this.opts.showDuration,l)}}m.attr("aria-expanded","true");n.attr({"aria-expanded":"true","aria-hidden":"false"});this.visibleSubMenus.push(n);this.$root.triggerHandler("show.smapi",n[0])}},popupHide:function(l){if(this.hideTimeout){clearTimeout(this.hideTimeout);this.hideTimeout=0}var m=this;this.hideTimeout=setTimeout(function(){m.menuHideAll()},l?1:this.opts.hideTimeout)},popupShow:function(o,n){if(!this.opts.isPopup){alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.');return}if(this.hideTimeout){clearTimeout(this.hideTimeout);this.hideTimeout=0}this.$root.dataSM("shown-before",true).stop(true,true);if(!this.$root.is(":visible")){this.$root.css({left:o,top:n});this.menuIframeShim(this.$root);if(this.$root.dataSM("ie-shim")){this.$root.dataSM("ie-shim").css({zIndex:this.$root.css("z-index"),width:this.getWidth(this.$root),height:this.getHeight(this.$root),left:o,top:n}).insertBefore(this.$root)}var m=this,l=function(){m.$root.css("overflow","")};if(this.opts.showFunction){this.opts.showFunction.call(this,this.$root,l)}else{this.$root.show(this.opts.showDuration,l)}this.visibleSubMenus[0]=this.$root}},refresh:function(){this.destroy(true);this.init(true)},rootKeyDown:function(o){if(!this.handleEvents()){return}switch(o.keyCode){case 27:var m=this.activatedItems[0];if(m){this.menuHideAll();m[0].focus();var n=m.dataSM("sub");if(n){this.menuHide(n)}}break;case 32:var l=a(o.target);if(l.is("a")&&this.handleItemEvents(l)){var n=l.dataSM("sub");if(n&&!n.is(":visible")){this.itemClick({currentTarget:o.target});o.preventDefault()}}break}},rootOut:function(m){if(!this.handleEvents()||this.isTouchMode()||m.target==this.$root[0]){return}if(this.hideTimeout){clearTimeout(this.hideTimeout);this.hideTimeout=0}if(!this.opts.showOnClick||!this.opts.hideOnClick){var l=this;this.hideTimeout=setTimeout(function(){l.menuHideAll()},this.opts.hideTimeout)}},rootOver:function(l){if(!this.handleEvents()||this.isTouchMode()||l.target==this.$root[0]){return}if(this.hideTimeout){clearTimeout(this.hideTimeout);this.hideTimeout=0}},winResize:function(m){if(!this.handleEvents()){if(this.$disableOverlay){var n=this.$root.offset();this.$disableOverlay.css({top:n.top,left:n.left,width:this.$root.outerWidth(),height:this.$root.outerHeight()})}return}if(!("onorientationchange" in window)||m.type=="orientationchange"){var l=this.isCollapsible();if(!(this.wasCollapsible&&l)){if(this.activatedItems.length){this.activatedItems[this.activatedItems.length-1][0].blur()}this.menuHideAll()}this.wasCollapsible=l}}}});a.fn.dataSM=function(l,m){if(m){return this.data(l+"_smartmenus",m)}return this.data(l+"_smartmenus")};a.fn.removeDataSM=function(l){return this.removeData(l+"_smartmenus")};a.fn.smartmenus=function(m){if(typeof m=="string"){var l=arguments,o=m;Array.prototype.shift.call(l);return this.each(function(){var p=a(this).data("smartmenus");if(p&&p[o]){p[o].apply(p,l)}})}var n=a.extend({},a.fn.smartmenus.defaults,m);return this.each(function(){new a.SmartMenus(this,n)})};a.fn.smartmenus.defaults={isPopup:false,mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0,subMenusMinWidth:"10em",subMenusMaxWidth:"20em",subIndicators:true,subIndicatorsPos:"prepend",subIndicatorsText:"+",scrollStep:30,scrollAccelerate:true,showTimeout:250,hideTimeout:500,showDuration:0,showFunction:null,hideDuration:0,hideFunction:function(m,l){m.fadeOut(200,l)},collapsibleShowDuration:0,collapsibleShowFunction:function(m,l){m.slideDown(200,l)},collapsibleHideDuration:0,collapsibleHideFunction:function(m,l){m.slideUp(200,l)},showOnClick:false,hideOnClick:true,noMouseOver:false,keepInViewport:true,keepHighlighted:true,markCurrentItem:false,markCurrentTree:true,rightToLeftSubMenus:false,bottomToTopSubMenus:false,overlapControlsInIE:true};return a})); \ No newline at end of file
diff --git a/doc/html/menu.js b/doc/html/menu.js
new file mode 100644
index 0000000..97db4c2
--- /dev/null
+++ b/doc/html/menu.js
@@ -0,0 +1,26 @@
+function initMenu(relPath,searchEnabled,serverSide,searchPage,search) {
+ function makeTree(data,relPath) {
+ var result='';
+ if ('children' in data) {
+ result+='<ul>';
+ for (var i in data.children) {
+ result+='<li><a href="'+relPath+data.children[i].url+'">'+
+ data.children[i].text+'</a>'+
+ makeTree(data.children[i],relPath)+'</li>';
+ }
+ result+='</ul>';
+ }
+ return result;
+ }
+
+ $('#main-nav').append(makeTree(menudata,relPath));
+ $('#main-nav').children(':first').addClass('sm sm-dox').attr('id','main-menu');
+ if (searchEnabled) {
+ if (serverSide) {
+ $('#main-menu').append('<li style="float:right"><div id="MSearchBox" class="MSearchBoxInactive"><div class="left"><form id="FSearchBox" action="'+searchPage+'" method="get"><img id="MSearchSelect" src="'+relPath+'search/mag.png" alt=""/><input type="text" id="MSearchField" name="query" value="'+search+'" size="20" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)"></form></div><div class="right"></div></div></li>');
+ } else {
+ $('#main-menu').append('<li style="float:right"><div id="MSearchBox" class="MSearchBoxInactive"><span class="left"><img id="MSearchSelect" src="'+relPath+'search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/><input type="text" id="MSearchField" value="'+search+'" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/></span><span class="right"><a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="'+relPath+'search/close.png" alt=""/></a></span></div></li>');
+ }
+ }
+ $('#main-menu').smartmenus();
+}
diff --git a/doc/html/menudata.js b/doc/html/menudata.js
new file mode 100644
index 0000000..52f32d7
--- /dev/null
+++ b/doc/html/menudata.js
@@ -0,0 +1,27 @@
+var menudata={children:[
+{text:"Main Page",url:"index.html"},
+{text:"Classes",url:"annotated.html",children:[
+{text:"Class List",url:"annotated.html"},
+{text:"Class Hierarchy",url:"hierarchy.html"},
+{text:"Class Members",url:"functions.html",children:[
+{text:"All",url:"functions.html",children:[
+{text:"a",url:"functions.html#index_a"},
+{text:"b",url:"functions.html#index_b"},
+{text:"c",url:"functions.html#index_c"},
+{text:"d",url:"functions.html#index_d"},
+{text:"e",url:"functions.html#index_e"},
+{text:"f",url:"functions.html#index_f"},
+{text:"h",url:"functions.html#index_h"},
+{text:"i",url:"functions.html#index_i"},
+{text:"l",url:"functions.html#index_l"},
+{text:"o",url:"functions.html#index_o"},
+{text:"q",url:"functions.html#index_q"},
+{text:"r",url:"functions.html#index_r"},
+{text:"s",url:"functions.html#index_s"},
+{text:"t",url:"functions.html#index_t"},
+{text:"u",url:"functions.html#index_u"},
+{text:"w",url:"functions.html#index_w"}]},
+{text:"Functions",url:"functions_func.html"},
+{text:"Properties",url:"functions_prop.html"}]}]},
+{text:"Files",url:"files.html",children:[
+{text:"File List",url:"files.html"}]}]}
diff --git a/doc/html/nav_f.png b/doc/html/nav_f.png
new file mode 100644
index 0000000..72a58a5
--- /dev/null
+++ b/doc/html/nav_f.png
Binary files differ
diff --git a/doc/html/nav_g.png b/doc/html/nav_g.png
new file mode 100644
index 0000000..2093a23
--- /dev/null
+++ b/doc/html/nav_g.png
Binary files differ
diff --git a/doc/html/nav_h.png b/doc/html/nav_h.png
new file mode 100644
index 0000000..33389b1
--- /dev/null
+++ b/doc/html/nav_h.png
Binary files differ
diff --git a/doc/html/open.png b/doc/html/open.png
new file mode 100644
index 0000000..30f75c7
--- /dev/null
+++ b/doc/html/open.png
Binary files differ
diff --git a/doc/html/qhexedit.png b/doc/html/qhexedit.png
new file mode 100644
index 0000000..1ac257a
--- /dev/null
+++ b/doc/html/qhexedit.png
Binary files differ
diff --git a/doc/html/qhexedit_8h_source.html b/doc/html/qhexedit_8h_source.html
new file mode 100644
index 0000000..e16f021
--- /dev/null
+++ b/doc/html/qhexedit_8h_source.html
@@ -0,0 +1,78 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>QHexEdit: /media/winni/sda8/working_copy/working_copy/hacking/c++/qhexedit2/src/qhexedit.h Source File</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">QHexEdit
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.13 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+</script>
+<div id="main-nav"></div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div id="nav-path" class="navpath">
+ <ul>
+<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle">
+<div class="title">qhexedit.h</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef QHEXEDIT_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define QHEXEDIT_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;QAbstractScrollArea&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#include &lt;QPen&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#include &lt;QBrush&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#include &quot;chunks.h&quot;</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &quot;commands.h&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#ifdef QHEXEDIT_EXPORTS</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#define QHEXEDIT_API Q_DECL_EXPORT</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#elif QHEXEDIT_IMPORTS</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#define QHEXEDIT_API Q_DECL_IMPORT</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#define QHEXEDIT_API</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html"> 59</a></span>&#160;<span class="keyword">class </span>QHEXEDIT_API <a class="code" href="class_q_hex_edit.html">QHexEdit</a> : <span class="keyword">public</span> QAbstractScrollArea</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;{</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; Q_OBJECT</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#aeaa9f3751f53b91df51cfd2863bf48ee"> 66</a></span>&#160; Q_PROPERTY(<span class="keywordtype">bool</span> addressArea READ addressArea WRITE setAddressArea)</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; </div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#a6e27b73514e243c0b8b2a3efafbb5e32"> 71</a></span>&#160; Q_PROPERTY(QColor addressAreaColor READ addressAreaColor WRITE setAddressAreaColor)</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#afe1e80827cacce84505f8b0ef6421a0a"> 78</a></span>&#160; Q_PROPERTY(qint64 addressOffset READ addressOffset WRITE setAddressOffset)</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#a11b672fd38a7c48949ccce3228474b2f"> 82</a></span>&#160; Q_PROPERTY(<span class="keywordtype">int</span> addressWidth READ addressWidth WRITE setAddressWidth)</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#a0e297a4a212a9d7addbbf82472e1acb2"> 86</a></span>&#160; Q_PROPERTY(<span class="keywordtype">bool</span> asciiArea READ asciiArea WRITE setAsciiArea)</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#afec14c7e26b2b98f250d4cc3df822972"> 89</a></span>&#160; Q_PROPERTY(<span class="keywordtype">int</span> bytesPerLine READ bytesPerLine WRITE setBytesPerLine)</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#aa50b3ebe0d22133891dce0c8237846c7"> 95</a></span>&#160; Q_PROPERTY(qint64 cursorPosition READ cursorPosition WRITE setCursorPosition)</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#a7f4e532611a6eff27b75d3cb88e91618"> 102</a></span>&#160; Q_PROPERTY(QByteArray data READ data WRITE setData NOTIFY dataChanged)</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#a4edfedb78ed9ae52cd08436e7cca0285"> 107</a></span>&#160; Q_PROPERTY(<span class="keywordtype">bool</span> hexCaps READ hexCaps WRITE setHexCaps)</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#a788d65f5556535a49879a3a052a9a313"> 111</a></span>&#160; Q_PROPERTY(<span class="keywordtype">bool</span> dynamicBytesPerLine READ dynamicBytesPerLine WRITE setDynamicBytesPerLine)</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#ae3669260a4d5c2fad5651893a17258fd"> 115</a></span>&#160; Q_PROPERTY(<span class="keywordtype">bool</span> highlighting READ highlighting WRITE setHighlighting)</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#a9e8ed54e47fec94cfd64b14ea1f7cee8"> 121</a></span>&#160; Q_PROPERTY(QColor highlightingColor READ highlightingColor WRITE setHighlightingColor)</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#a941a91c36eb8429c41096bfcd45f38c1"> 128</a></span>&#160; Q_PROPERTY(<span class="keywordtype">bool</span> overwriteMode READ overwriteMode WRITE setOverwriteMode)</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#ac0b628f34316aff9e18fc73a738250d7"> 134</a></span>&#160; Q_PROPERTY(QColor selectionColor READ selectionColor WRITE setSelectionColor)</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#acb3044d1bb0c99876ddfa33772e91209"> 141</a></span>&#160; Q_PROPERTY(<span class="keywordtype">bool</span> readOnly READ isReadOnly WRITE setReadOnly)</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;</div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="class_q_hex_edit.html#a9579dc7273c48b89c9e4f26adda78671"> 144</a></span>&#160; Q_PROPERTY(QFont font READ font WRITE setFont)</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;public:</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <a class="code" href="class_q_hex_edit.html">QHexEdit</a>(QWidget *parent=0);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="comment">// Access to data of qhexedit</span></div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keywordtype">bool</span> setData(QIODevice &amp;iODevice);</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; QByteArray dataAt(qint64 pos, qint64 count=-1);</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="keywordtype">bool</span> write(QIODevice &amp;iODevice, qint64 pos=0, qint64 count=-1);</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="comment">// Char handling</span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160;</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keywordtype">void</span> insert(qint64 pos, <span class="keywordtype">char</span> ch);</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keywordtype">void</span> remove(qint64 pos, qint64 len=1);</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; <span class="keywordtype">void</span> replace(qint64 pos, <span class="keywordtype">char</span> ch);</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <span class="comment">// ByteArray handling</span></div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160;</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <span class="keywordtype">void</span> insert(qint64 pos, const QByteArray &amp;ba);</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; <span class="keywordtype">void</span> replace(qint64 pos, qint64 len, const QByteArray &amp;ba);</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160;</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160;</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; <span class="comment">// Utility functions</span></div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160;<span class="comment"></span> qint64 cursorPosition(QPoint point);</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160;</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <span class="keywordtype">void</span> ensureVisible();</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160;</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; qint64 indexOf(const QByteArray &amp;ba, qint64 from);</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160;</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; <span class="keywordtype">bool</span> isModified();</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; qint64 lastIndexOf(const QByteArray &amp;ba, qint64 from);</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; QString selectionToReadableString();</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160;</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; QString selectedData();</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; <span class="keywordtype">void</span> setFont(const QFont &amp;font);</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160;</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; QString toReadableString();</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160;</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160;public slots:</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; <span class="keywordtype">void</span> redo();</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160;</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; <span class="keywordtype">void</span> undo();</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160;</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160;signals:</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160;</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; <span class="keywordtype">void</span> currentAddressChanged(qint64 address);</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160;</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160; <span class="keywordtype">void</span> currentSizeChanged(qint64 size);</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160;</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; <span class="keywordtype">void</span> dataChanged();</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160;</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; <span class="keywordtype">void</span> overwriteModeChanged(<span class="keywordtype">bool</span> state);</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160;</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160;</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160;public:</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160; ~<a class="code" href="class_q_hex_edit.html">QHexEdit</a>();</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160;</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; <span class="comment">// Properties</span></div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; <span class="keywordtype">bool</span> addressArea();</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160; <span class="keywordtype">void</span> setAddressArea(<span class="keywordtype">bool</span> addressArea);</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160;</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160; QColor addressAreaColor();</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160; <span class="keywordtype">void</span> setAddressAreaColor(const QColor &amp;color);</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160;</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160; qint64 addressOffset();</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160; <span class="keywordtype">void</span> setAddressOffset(qint64 addressArea);</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160;</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; <span class="keywordtype">int</span> addressWidth();</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; <span class="keywordtype">void</span> setAddressWidth(<span class="keywordtype">int</span> addressWidth);</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160;</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; <span class="keywordtype">bool</span> asciiArea();</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; <span class="keywordtype">void</span> setAsciiArea(<span class="keywordtype">bool</span> asciiArea);</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160;</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160; <span class="keywordtype">int</span> bytesPerLine();</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160; <span class="keywordtype">void</span> setBytesPerLine(<span class="keywordtype">int</span> count);</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160;</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160; qint64 cursorPosition();</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160; <span class="keywordtype">void</span> setCursorPosition(qint64 position);</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160;</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160; QByteArray data();</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160; <span class="keywordtype">void</span> setData(const QByteArray &amp;ba);</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160;</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; <span class="keywordtype">void</span> setHexCaps(const <span class="keywordtype">bool</span> isCaps);</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160; <span class="keywordtype">bool</span> hexCaps();</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160;</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160; <span class="keywordtype">void</span> setDynamicBytesPerLine(const <span class="keywordtype">bool</span> isDynamic);</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160; <span class="keywordtype">bool</span> dynamicBytesPerLine();</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160;</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160; <span class="keywordtype">bool</span> highlighting();</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160; <span class="keywordtype">void</span> setHighlighting(<span class="keywordtype">bool</span> mode);</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160;</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160; QColor highlightingColor();</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160; <span class="keywordtype">void</span> setHighlightingColor(const QColor &amp;color);</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160;</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; <span class="keywordtype">bool</span> overwriteMode();</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>&#160; <span class="keywordtype">void</span> setOverwriteMode(<span class="keywordtype">bool</span> overwriteMode);</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160;</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160; <span class="keywordtype">bool</span> isReadOnly();</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160; <span class="keywordtype">void</span> setReadOnly(<span class="keywordtype">bool</span> readOnly);</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160;</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160; QColor selectionColor();</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160; <span class="keywordtype">void</span> setSelectionColor(const QColor &amp;color);</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160;</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160;protected:</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160; <span class="comment">// Handle events</span></div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160; <span class="keywordtype">void</span> keyPressEvent(QKeyEvent *event);</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>&#160; <span class="keywordtype">void</span> mouseMoveEvent(QMouseEvent * event);</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>&#160; <span class="keywordtype">void</span> mousePressEvent(QMouseEvent * event);</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160; <span class="keywordtype">void</span> paintEvent(QPaintEvent *event);</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160; <span class="keywordtype">void</span> resizeEvent(QResizeEvent *);</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160; virtual <span class="keywordtype">bool</span> focusNextPrevChild(<span class="keywordtype">bool</span> next);</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160;private:</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160; <span class="comment">// Handle selections</span></div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160; <span class="keywordtype">void</span> resetSelection(qint64 pos); <span class="comment">// set selectionStart and selectionEnd to pos</span></div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160; <span class="keywordtype">void</span> resetSelection(); <span class="comment">// set selectionEnd to selectionStart</span></div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>&#160; <span class="keywordtype">void</span> setSelection(qint64 pos); <span class="comment">// set min (if below init) or max (if greater init)</span></div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>&#160; qint64 getSelectionBegin();</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160; qint64 getSelectionEnd();</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160;</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160; <span class="comment">// Private utility functions</span></div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160; <span class="keywordtype">void</span> init();</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160; <span class="keywordtype">void</span> readBuffers();</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160; QString toReadable(const QByteArray &amp;ba);</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160;</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160;private slots:</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>&#160; <span class="keywordtype">void</span> adjust(); <span class="comment">// recalc pixel positions</span></div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>&#160; <span class="keywordtype">void</span> dataChangedPrivate(<span class="keywordtype">int</span> idx=0); <span class="comment">// emit dataChanged() signal</span></div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>&#160; <span class="keywordtype">void</span> refresh(); <span class="comment">// ensureVisible() and readBuffers()</span></div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>&#160; <span class="keywordtype">void</span> updateCursor(); <span class="comment">// update blinking cursor</span></div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160;</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160;private:</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>&#160; <span class="comment">// Name convention: pixel positions start with _px</span></div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>&#160; <span class="keywordtype">int</span> _pxCharWidth, _pxCharHeight; <span class="comment">// char dimensions (dependend on font)</span></div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>&#160; <span class="keywordtype">int</span> _pxPosHexX; <span class="comment">// X-Pos of HeaxArea</span></div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>&#160; <span class="keywordtype">int</span> _pxPosAdrX; <span class="comment">// X-Pos of Address Area</span></div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>&#160; <span class="keywordtype">int</span> _pxPosAsciiX; <span class="comment">// X-Pos of Ascii Area</span></div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>&#160; <span class="keywordtype">int</span> _pxGapAdr; <span class="comment">// gap left from AddressArea</span></div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>&#160; <span class="keywordtype">int</span> _pxGapAdrHex; <span class="comment">// gap between AddressArea and HexAerea</span></div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160; <span class="keywordtype">int</span> _pxGapHexAscii; <span class="comment">// gap between HexArea and AsciiArea</span></div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160; <span class="keywordtype">int</span> _pxCursorWidth; <span class="comment">// cursor width</span></div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160; <span class="keywordtype">int</span> _pxSelectionSub; <span class="comment">// offset selection rect</span></div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160; <span class="keywordtype">int</span> _pxCursorX; <span class="comment">// current cursor pos</span></div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>&#160; <span class="keywordtype">int</span> _pxCursorY; <span class="comment">// current cursor pos</span></div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>&#160;</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>&#160; <span class="comment">// Name convention: absolute byte positions in chunks start with _b</span></div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>&#160; qint64 _bSelectionBegin; <span class="comment">// first position of Selection</span></div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>&#160; qint64 _bSelectionEnd; <span class="comment">// end of Selection</span></div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>&#160; qint64 _bSelectionInit; <span class="comment">// memory position of Selection</span></div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>&#160; qint64 _bPosFirst; <span class="comment">// position of first byte shown</span></div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>&#160; qint64 _bPosLast; <span class="comment">// position of last byte shown</span></div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>&#160; qint64 _bPosCurrent; <span class="comment">// current position</span></div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>&#160;</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>&#160; <span class="comment">// variables to store the property values</span></div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160; <span class="keywordtype">bool</span> _addressArea; <span class="comment">// left area of QHexEdit</span></div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>&#160; QColor _addressAreaColor;</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>&#160; <span class="keywordtype">int</span> _addressWidth;</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>&#160; <span class="keywordtype">bool</span> _asciiArea;</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>&#160; qint64 _addressOffset;</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>&#160; <span class="keywordtype">int</span> _bytesPerLine;</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>&#160; <span class="keywordtype">int</span> _hexCharsInLine;</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>&#160; <span class="keywordtype">bool</span> _highlighting;</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>&#160; <span class="keywordtype">bool</span> _overwriteMode;</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>&#160; QBrush _brushSelection;</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>&#160; QPen _penSelection;</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>&#160; QBrush _brushHighlighted;</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>&#160; QPen _penHighlighted;</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>&#160; <span class="keywordtype">bool</span> _readOnly;</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>&#160; <span class="keywordtype">bool</span> _hexCaps;</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>&#160; <span class="keywordtype">bool</span> _dynamicBytesPerLine;</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>&#160;</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>&#160; <span class="comment">// other variables</span></div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>&#160; <span class="keywordtype">bool</span> _editAreaIsAscii; <span class="comment">// flag about the ascii mode edited</span></div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>&#160; <span class="keywordtype">int</span> _addrDigits; <span class="comment">// real no of addressdigits, may be &gt; addressWidth</span></div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span>&#160; <span class="keywordtype">bool</span> _blink; <span class="comment">// help get cursor blinking</span></div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>&#160; QBuffer _bData; <span class="comment">// buffer, when setup with QByteArray</span></div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>&#160; Chunks *_chunks; <span class="comment">// IODevice based access to data</span></div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>&#160; QTimer _cursorTimer; <span class="comment">// for blinking cursor</span></div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>&#160; qint64 _cursorPosition; <span class="comment">// absolute position of cursor, 1 Byte == 2 tics</span></div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>&#160; QRect _cursorRect; <span class="comment">// physical dimensions of cursor</span></div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>&#160; QByteArray _data; <span class="comment">// QHexEdit&#39;s data, when setup with QByteArray</span></div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>&#160; QByteArray _dataShown; <span class="comment">// data in the current View</span></div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>&#160; QByteArray _hexDataShown; <span class="comment">// data in view, transformed to hex</span></div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>&#160; qint64 _lastEventSize; <span class="comment">// size, which was emitted last time</span></div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>&#160; QByteArray _markedShown; <span class="comment">// marked data in view</span></div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>&#160; <span class="keywordtype">bool</span> _modified; <span class="comment">// Is any data in editor modified?</span></div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>&#160; <span class="keywordtype">int</span> _rowsShown; <span class="comment">// lines of text shown</span></div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>&#160; UndoStack * _undoStack; <span class="comment">// Stack to store edit actions for undo/redo</span></div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160;<span class="comment"></span>};</div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>&#160;</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>&#160;<span class="preprocessor">#endif // QHEXEDIT_H</span></div><div class="ttc" id="class_q_hex_edit_html"><div class="ttname"><a href="class_q_hex_edit.html">QHexEdit</a></div><div class="ttdef"><b>Definition:</b> qhexedit.h:59</div></div>
+</div><!-- fragment --></div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated on Sat Mar 16 2019 17:03:27 for QHexEdit by &#160;<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> 1.8.13
+</small></address>
+</body>
+</html>
diff --git a/doc/html/search/all_0.html b/doc/html/search/all_0.html
new file mode 100644
index 0000000..f25360b
--- /dev/null
+++ b/doc/html/search/all_0.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_0.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_0.js b/doc/html/search/all_0.js
new file mode 100644
index 0000000..f5a3814
--- /dev/null
+++ b/doc/html/search/all_0.js
@@ -0,0 +1,8 @@
+var searchData=
+[
+ ['addressarea',['addressArea',['../class_q_hex_edit.html#aeaa9f3751f53b91df51cfd2863bf48ee',1,'QHexEdit']]],
+ ['addressareacolor',['addressAreaColor',['../class_q_hex_edit.html#a6e27b73514e243c0b8b2a3efafbb5e32',1,'QHexEdit']]],
+ ['addressoffset',['addressOffset',['../class_q_hex_edit.html#afe1e80827cacce84505f8b0ef6421a0a',1,'QHexEdit']]],
+ ['addresswidth',['addressWidth',['../class_q_hex_edit.html#a11b672fd38a7c48949ccce3228474b2f',1,'QHexEdit']]],
+ ['asciiarea',['asciiArea',['../class_q_hex_edit.html#a0e297a4a212a9d7addbbf82472e1acb2',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/all_1.html b/doc/html/search/all_1.html
new file mode 100644
index 0000000..b13f0f7
--- /dev/null
+++ b/doc/html/search/all_1.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_1.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_1.js b/doc/html/search/all_1.js
new file mode 100644
index 0000000..c37e53b
--- /dev/null
+++ b/doc/html/search/all_1.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['bytesperline',['bytesPerLine',['../class_q_hex_edit.html#afec14c7e26b2b98f250d4cc3df822972',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/all_2.html b/doc/html/search/all_2.html
new file mode 100644
index 0000000..9543c57
--- /dev/null
+++ b/doc/html/search/all_2.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_2.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_2.js b/doc/html/search/all_2.js
new file mode 100644
index 0000000..eaa1be1
--- /dev/null
+++ b/doc/html/search/all_2.js
@@ -0,0 +1,6 @@
+var searchData=
+[
+ ['currentaddresschanged',['currentAddressChanged',['../class_q_hex_edit.html#a1cd8ece4fd9ea4aef38a9844184ae9bc',1,'QHexEdit']]],
+ ['currentsizechanged',['currentSizeChanged',['../class_q_hex_edit.html#a4b3f87d1c50bc1570f191d93b7051359',1,'QHexEdit']]],
+ ['cursorposition',['cursorPosition',['../class_q_hex_edit.html#aa50b3ebe0d22133891dce0c8237846c7',1,'QHexEdit::cursorPosition()'],['../class_q_hex_edit.html#a1d833c6a3957317f4daacc54e0c99919',1,'QHexEdit::cursorPosition(QPoint point)']]]
+];
diff --git a/doc/html/search/all_3.html b/doc/html/search/all_3.html
new file mode 100644
index 0000000..03405c0
--- /dev/null
+++ b/doc/html/search/all_3.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_3.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_3.js b/doc/html/search/all_3.js
new file mode 100644
index 0000000..a266e92
--- /dev/null
+++ b/doc/html/search/all_3.js
@@ -0,0 +1,7 @@
+var searchData=
+[
+ ['data',['data',['../class_q_hex_edit.html#a7f4e532611a6eff27b75d3cb88e91618',1,'QHexEdit']]],
+ ['dataat',['dataAt',['../class_q_hex_edit.html#a83c0c585108cc204852ff2e30214253a',1,'QHexEdit']]],
+ ['datachanged',['dataChanged',['../class_q_hex_edit.html#a4ea1551815031057e6b3297406f93a5d',1,'QHexEdit']]],
+ ['dynamicbytesperline',['dynamicBytesPerLine',['../class_q_hex_edit.html#a788d65f5556535a49879a3a052a9a313',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/all_4.html b/doc/html/search/all_4.html
new file mode 100644
index 0000000..8e1f4b9
--- /dev/null
+++ b/doc/html/search/all_4.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_4.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_4.js b/doc/html/search/all_4.js
new file mode 100644
index 0000000..61dcf5e
--- /dev/null
+++ b/doc/html/search/all_4.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['ensurevisible',['ensureVisible',['../class_q_hex_edit.html#a43b1af42e25e3beb48932f38aa4af46e',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/all_5.html b/doc/html/search/all_5.html
new file mode 100644
index 0000000..89a879e
--- /dev/null
+++ b/doc/html/search/all_5.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_5.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_5.js b/doc/html/search/all_5.js
new file mode 100644
index 0000000..1bc7530
--- /dev/null
+++ b/doc/html/search/all_5.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['font',['font',['../class_q_hex_edit.html#a9579dc7273c48b89c9e4f26adda78671',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/all_6.html b/doc/html/search/all_6.html
new file mode 100644
index 0000000..6afac06
--- /dev/null
+++ b/doc/html/search/all_6.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_6.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_6.js b/doc/html/search/all_6.js
new file mode 100644
index 0000000..7c370b6
--- /dev/null
+++ b/doc/html/search/all_6.js
@@ -0,0 +1,6 @@
+var searchData=
+[
+ ['hexcaps',['hexCaps',['../class_q_hex_edit.html#a4edfedb78ed9ae52cd08436e7cca0285',1,'QHexEdit']]],
+ ['highlighting',['highlighting',['../class_q_hex_edit.html#ae3669260a4d5c2fad5651893a17258fd',1,'QHexEdit']]],
+ ['highlightingcolor',['highlightingColor',['../class_q_hex_edit.html#a9e8ed54e47fec94cfd64b14ea1f7cee8',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/all_7.html b/doc/html/search/all_7.html
new file mode 100644
index 0000000..de19107
--- /dev/null
+++ b/doc/html/search/all_7.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_7.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_7.js b/doc/html/search/all_7.js
new file mode 100644
index 0000000..19ceaa2
--- /dev/null
+++ b/doc/html/search/all_7.js
@@ -0,0 +1,6 @@
+var searchData=
+[
+ ['indexof',['indexOf',['../class_q_hex_edit.html#a183ec73d5ef567770dc4860e9d33e239',1,'QHexEdit']]],
+ ['insert',['insert',['../class_q_hex_edit.html#a1593f2dee03be5738df96da67c9c83d9',1,'QHexEdit::insert(qint64 pos, char ch)'],['../class_q_hex_edit.html#ad118039ab31828956c7ecf034f4496cc',1,'QHexEdit::insert(qint64 pos, const QByteArray &amp;ba)']]],
+ ['ismodified',['isModified',['../class_q_hex_edit.html#ad8339ee39adf7863e46a9c57a7f9db0a',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/all_8.html b/doc/html/search/all_8.html
new file mode 100644
index 0000000..11e27cd
--- /dev/null
+++ b/doc/html/search/all_8.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_8.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_8.js b/doc/html/search/all_8.js
new file mode 100644
index 0000000..34807f4
--- /dev/null
+++ b/doc/html/search/all_8.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['lastindexof',['lastIndexOf',['../class_q_hex_edit.html#aac57ef2e0e73af21e33413a166a94e7a',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/all_9.html b/doc/html/search/all_9.html
new file mode 100644
index 0000000..f8abbbe
--- /dev/null
+++ b/doc/html/search/all_9.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_9.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_9.js b/doc/html/search/all_9.js
new file mode 100644
index 0000000..537d421
--- /dev/null
+++ b/doc/html/search/all_9.js
@@ -0,0 +1,5 @@
+var searchData=
+[
+ ['overwritemode',['overwriteMode',['../class_q_hex_edit.html#a941a91c36eb8429c41096bfcd45f38c1',1,'QHexEdit']]],
+ ['overwritemodechanged',['overwriteModeChanged',['../class_q_hex_edit.html#a15abf5af9aa3a91d18ec17cc33b8e4a1',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/all_a.html b/doc/html/search/all_a.html
new file mode 100644
index 0000000..9601fce
--- /dev/null
+++ b/doc/html/search/all_a.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_a.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_a.js b/doc/html/search/all_a.js
new file mode 100644
index 0000000..53c7eaa
--- /dev/null
+++ b/doc/html/search/all_a.js
@@ -0,0 +1,5 @@
+var searchData=
+[
+ ['qhexedit',['QHexEdit',['../class_q_hex_edit.html',1,'QHexEdit'],['../class_q_hex_edit.html#aec1f1e5b7652e7e39a8ca5e73ed63373',1,'QHexEdit::QHexEdit()']]],
+ ['qhexeditplugin',['QHexEditPlugin',['../class_q_hex_edit_plugin.html',1,'']]]
+];
diff --git a/doc/html/search/all_b.html b/doc/html/search/all_b.html
new file mode 100644
index 0000000..0814e4e
--- /dev/null
+++ b/doc/html/search/all_b.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_b.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_b.js b/doc/html/search/all_b.js
new file mode 100644
index 0000000..48e45f1
--- /dev/null
+++ b/doc/html/search/all_b.js
@@ -0,0 +1,7 @@
+var searchData=
+[
+ ['readonly',['readOnly',['../class_q_hex_edit.html#acb3044d1bb0c99876ddfa33772e91209',1,'QHexEdit']]],
+ ['redo',['redo',['../class_q_hex_edit.html#a9c9650f363859e42a0ebf4ed6a1c4ae0',1,'QHexEdit']]],
+ ['remove',['remove',['../class_q_hex_edit.html#a6fee4dba9a2eaeeccccbd84111f8bf2c',1,'QHexEdit']]],
+ ['replace',['replace',['../class_q_hex_edit.html#a386bff35c7453caaf547d203026fb462',1,'QHexEdit::replace(qint64 pos, char ch)'],['../class_q_hex_edit.html#a79dbbeaf7ddbb358730bed763d05a959',1,'QHexEdit::replace(qint64 pos, qint64 len, const QByteArray &amp;ba)']]]
+];
diff --git a/doc/html/search/all_c.html b/doc/html/search/all_c.html
new file mode 100644
index 0000000..da08c38
--- /dev/null
+++ b/doc/html/search/all_c.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_c.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_c.js b/doc/html/search/all_c.js
new file mode 100644
index 0000000..abd963f
--- /dev/null
+++ b/doc/html/search/all_c.js
@@ -0,0 +1,8 @@
+var searchData=
+[
+ ['selecteddata',['selectedData',['../class_q_hex_edit.html#ac1f9ac4d3ec5bedabd3aeedda3191b20',1,'QHexEdit']]],
+ ['selectioncolor',['selectionColor',['../class_q_hex_edit.html#ac0b628f34316aff9e18fc73a738250d7',1,'QHexEdit']]],
+ ['selectiontoreadablestring',['selectionToReadableString',['../class_q_hex_edit.html#a2ada1230ace92da4e1f006b88ab3b503',1,'QHexEdit']]],
+ ['setdata',['setData',['../class_q_hex_edit.html#ab5221718179da17cbcd9db3bf6574df7',1,'QHexEdit']]],
+ ['setfont',['setFont',['../class_q_hex_edit.html#a57221461a9c9e1b2c0e1882788ac9911',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/all_d.html b/doc/html/search/all_d.html
new file mode 100644
index 0000000..9986c9c
--- /dev/null
+++ b/doc/html/search/all_d.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_d.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_d.js b/doc/html/search/all_d.js
new file mode 100644
index 0000000..9e8badc
--- /dev/null
+++ b/doc/html/search/all_d.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['toreadablestring',['toReadableString',['../class_q_hex_edit.html#a43c6db0509fee9b10198bef48d8eaa2e',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/all_e.html b/doc/html/search/all_e.html
new file mode 100644
index 0000000..9fa42bb
--- /dev/null
+++ b/doc/html/search/all_e.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_e.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_e.js b/doc/html/search/all_e.js
new file mode 100644
index 0000000..13e171d
--- /dev/null
+++ b/doc/html/search/all_e.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['undo',['undo',['../class_q_hex_edit.html#a57a6f775cd612f901567cc005988c6de',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/all_f.html b/doc/html/search/all_f.html
new file mode 100644
index 0000000..6ecfc0e
--- /dev/null
+++ b/doc/html/search/all_f.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="all_f.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/all_f.js b/doc/html/search/all_f.js
new file mode 100644
index 0000000..5cf899c
--- /dev/null
+++ b/doc/html/search/all_f.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['write',['write',['../class_q_hex_edit.html#acc71d91a132a7cf6504d3f20de0ef4ce',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/classes_0.html b/doc/html/search/classes_0.html
new file mode 100644
index 0000000..1c3e406
--- /dev/null
+++ b/doc/html/search/classes_0.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="classes_0.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/classes_0.js b/doc/html/search/classes_0.js
new file mode 100644
index 0000000..86ab229
--- /dev/null
+++ b/doc/html/search/classes_0.js
@@ -0,0 +1,5 @@
+var searchData=
+[
+ ['qhexedit',['QHexEdit',['../class_q_hex_edit.html',1,'']]],
+ ['qhexeditplugin',['QHexEditPlugin',['../class_q_hex_edit_plugin.html',1,'']]]
+];
diff --git a/doc/html/search/close.png b/doc/html/search/close.png
new file mode 100644
index 0000000..9342d3d
--- /dev/null
+++ b/doc/html/search/close.png
Binary files differ
diff --git a/doc/html/search/functions_0.html b/doc/html/search/functions_0.html
new file mode 100644
index 0000000..4e6d87d
--- /dev/null
+++ b/doc/html/search/functions_0.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="functions_0.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/functions_0.js b/doc/html/search/functions_0.js
new file mode 100644
index 0000000..6f54157
--- /dev/null
+++ b/doc/html/search/functions_0.js
@@ -0,0 +1,6 @@
+var searchData=
+[
+ ['currentaddresschanged',['currentAddressChanged',['../class_q_hex_edit.html#a1cd8ece4fd9ea4aef38a9844184ae9bc',1,'QHexEdit']]],
+ ['currentsizechanged',['currentSizeChanged',['../class_q_hex_edit.html#a4b3f87d1c50bc1570f191d93b7051359',1,'QHexEdit']]],
+ ['cursorposition',['cursorPosition',['../class_q_hex_edit.html#a1d833c6a3957317f4daacc54e0c99919',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/functions_1.html b/doc/html/search/functions_1.html
new file mode 100644
index 0000000..b343e2d
--- /dev/null
+++ b/doc/html/search/functions_1.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="functions_1.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/functions_1.js b/doc/html/search/functions_1.js
new file mode 100644
index 0000000..c9c0438
--- /dev/null
+++ b/doc/html/search/functions_1.js
@@ -0,0 +1,5 @@
+var searchData=
+[
+ ['dataat',['dataAt',['../class_q_hex_edit.html#a83c0c585108cc204852ff2e30214253a',1,'QHexEdit']]],
+ ['datachanged',['dataChanged',['../class_q_hex_edit.html#a4ea1551815031057e6b3297406f93a5d',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/functions_2.html b/doc/html/search/functions_2.html
new file mode 100644
index 0000000..ecce2f3
--- /dev/null
+++ b/doc/html/search/functions_2.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="functions_2.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/functions_2.js b/doc/html/search/functions_2.js
new file mode 100644
index 0000000..61dcf5e
--- /dev/null
+++ b/doc/html/search/functions_2.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['ensurevisible',['ensureVisible',['../class_q_hex_edit.html#a43b1af42e25e3beb48932f38aa4af46e',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/functions_3.html b/doc/html/search/functions_3.html
new file mode 100644
index 0000000..15f06ab
--- /dev/null
+++ b/doc/html/search/functions_3.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="functions_3.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/functions_3.js b/doc/html/search/functions_3.js
new file mode 100644
index 0000000..19ceaa2
--- /dev/null
+++ b/doc/html/search/functions_3.js
@@ -0,0 +1,6 @@
+var searchData=
+[
+ ['indexof',['indexOf',['../class_q_hex_edit.html#a183ec73d5ef567770dc4860e9d33e239',1,'QHexEdit']]],
+ ['insert',['insert',['../class_q_hex_edit.html#a1593f2dee03be5738df96da67c9c83d9',1,'QHexEdit::insert(qint64 pos, char ch)'],['../class_q_hex_edit.html#ad118039ab31828956c7ecf034f4496cc',1,'QHexEdit::insert(qint64 pos, const QByteArray &amp;ba)']]],
+ ['ismodified',['isModified',['../class_q_hex_edit.html#ad8339ee39adf7863e46a9c57a7f9db0a',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/functions_4.html b/doc/html/search/functions_4.html
new file mode 100644
index 0000000..8985ff2
--- /dev/null
+++ b/doc/html/search/functions_4.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="functions_4.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/functions_4.js b/doc/html/search/functions_4.js
new file mode 100644
index 0000000..34807f4
--- /dev/null
+++ b/doc/html/search/functions_4.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['lastindexof',['lastIndexOf',['../class_q_hex_edit.html#aac57ef2e0e73af21e33413a166a94e7a',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/functions_5.html b/doc/html/search/functions_5.html
new file mode 100644
index 0000000..0314918
--- /dev/null
+++ b/doc/html/search/functions_5.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="functions_5.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/functions_5.js b/doc/html/search/functions_5.js
new file mode 100644
index 0000000..35fd8c7
--- /dev/null
+++ b/doc/html/search/functions_5.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['overwritemodechanged',['overwriteModeChanged',['../class_q_hex_edit.html#a15abf5af9aa3a91d18ec17cc33b8e4a1',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/functions_6.html b/doc/html/search/functions_6.html
new file mode 100644
index 0000000..c506123
--- /dev/null
+++ b/doc/html/search/functions_6.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="functions_6.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/functions_6.js b/doc/html/search/functions_6.js
new file mode 100644
index 0000000..e0bced4
--- /dev/null
+++ b/doc/html/search/functions_6.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['qhexedit',['QHexEdit',['../class_q_hex_edit.html#aec1f1e5b7652e7e39a8ca5e73ed63373',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/functions_7.html b/doc/html/search/functions_7.html
new file mode 100644
index 0000000..83a7b84
--- /dev/null
+++ b/doc/html/search/functions_7.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="functions_7.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/functions_7.js b/doc/html/search/functions_7.js
new file mode 100644
index 0000000..70b43d2
--- /dev/null
+++ b/doc/html/search/functions_7.js
@@ -0,0 +1,6 @@
+var searchData=
+[
+ ['redo',['redo',['../class_q_hex_edit.html#a9c9650f363859e42a0ebf4ed6a1c4ae0',1,'QHexEdit']]],
+ ['remove',['remove',['../class_q_hex_edit.html#a6fee4dba9a2eaeeccccbd84111f8bf2c',1,'QHexEdit']]],
+ ['replace',['replace',['../class_q_hex_edit.html#a386bff35c7453caaf547d203026fb462',1,'QHexEdit::replace(qint64 pos, char ch)'],['../class_q_hex_edit.html#a79dbbeaf7ddbb358730bed763d05a959',1,'QHexEdit::replace(qint64 pos, qint64 len, const QByteArray &amp;ba)']]]
+];
diff --git a/doc/html/search/functions_8.html b/doc/html/search/functions_8.html
new file mode 100644
index 0000000..b55f0e6
--- /dev/null
+++ b/doc/html/search/functions_8.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="functions_8.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/functions_8.js b/doc/html/search/functions_8.js
new file mode 100644
index 0000000..64d22d0
--- /dev/null
+++ b/doc/html/search/functions_8.js
@@ -0,0 +1,7 @@
+var searchData=
+[
+ ['selecteddata',['selectedData',['../class_q_hex_edit.html#ac1f9ac4d3ec5bedabd3aeedda3191b20',1,'QHexEdit']]],
+ ['selectiontoreadablestring',['selectionToReadableString',['../class_q_hex_edit.html#a2ada1230ace92da4e1f006b88ab3b503',1,'QHexEdit']]],
+ ['setdata',['setData',['../class_q_hex_edit.html#ab5221718179da17cbcd9db3bf6574df7',1,'QHexEdit']]],
+ ['setfont',['setFont',['../class_q_hex_edit.html#a57221461a9c9e1b2c0e1882788ac9911',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/functions_9.html b/doc/html/search/functions_9.html
new file mode 100644
index 0000000..c73f07b
--- /dev/null
+++ b/doc/html/search/functions_9.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="functions_9.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/functions_9.js b/doc/html/search/functions_9.js
new file mode 100644
index 0000000..9e8badc
--- /dev/null
+++ b/doc/html/search/functions_9.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['toreadablestring',['toReadableString',['../class_q_hex_edit.html#a43c6db0509fee9b10198bef48d8eaa2e',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/functions_a.html b/doc/html/search/functions_a.html
new file mode 100644
index 0000000..f10ad63
--- /dev/null
+++ b/doc/html/search/functions_a.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="functions_a.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/functions_a.js b/doc/html/search/functions_a.js
new file mode 100644
index 0000000..13e171d
--- /dev/null
+++ b/doc/html/search/functions_a.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['undo',['undo',['../class_q_hex_edit.html#a57a6f775cd612f901567cc005988c6de',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/functions_b.html b/doc/html/search/functions_b.html
new file mode 100644
index 0000000..172ea1b
--- /dev/null
+++ b/doc/html/search/functions_b.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="functions_b.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/functions_b.js b/doc/html/search/functions_b.js
new file mode 100644
index 0000000..5cf899c
--- /dev/null
+++ b/doc/html/search/functions_b.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['write',['write',['../class_q_hex_edit.html#acc71d91a132a7cf6504d3f20de0ef4ce',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/mag_sel.png b/doc/html/search/mag_sel.png
new file mode 100644
index 0000000..81f6040
--- /dev/null
+++ b/doc/html/search/mag_sel.png
Binary files differ
diff --git a/doc/html/search/nomatches.html b/doc/html/search/nomatches.html
new file mode 100644
index 0000000..b1ded27
--- /dev/null
+++ b/doc/html/search/nomatches.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="NoMatches">No Matches</div>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/properties_0.html b/doc/html/search/properties_0.html
new file mode 100644
index 0000000..1ce7645
--- /dev/null
+++ b/doc/html/search/properties_0.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="properties_0.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/properties_0.js b/doc/html/search/properties_0.js
new file mode 100644
index 0000000..f5a3814
--- /dev/null
+++ b/doc/html/search/properties_0.js
@@ -0,0 +1,8 @@
+var searchData=
+[
+ ['addressarea',['addressArea',['../class_q_hex_edit.html#aeaa9f3751f53b91df51cfd2863bf48ee',1,'QHexEdit']]],
+ ['addressareacolor',['addressAreaColor',['../class_q_hex_edit.html#a6e27b73514e243c0b8b2a3efafbb5e32',1,'QHexEdit']]],
+ ['addressoffset',['addressOffset',['../class_q_hex_edit.html#afe1e80827cacce84505f8b0ef6421a0a',1,'QHexEdit']]],
+ ['addresswidth',['addressWidth',['../class_q_hex_edit.html#a11b672fd38a7c48949ccce3228474b2f',1,'QHexEdit']]],
+ ['asciiarea',['asciiArea',['../class_q_hex_edit.html#a0e297a4a212a9d7addbbf82472e1acb2',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/properties_1.html b/doc/html/search/properties_1.html
new file mode 100644
index 0000000..9938a7d
--- /dev/null
+++ b/doc/html/search/properties_1.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="properties_1.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/properties_1.js b/doc/html/search/properties_1.js
new file mode 100644
index 0000000..c37e53b
--- /dev/null
+++ b/doc/html/search/properties_1.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['bytesperline',['bytesPerLine',['../class_q_hex_edit.html#afec14c7e26b2b98f250d4cc3df822972',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/properties_2.html b/doc/html/search/properties_2.html
new file mode 100644
index 0000000..6378942
--- /dev/null
+++ b/doc/html/search/properties_2.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="properties_2.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/properties_2.js b/doc/html/search/properties_2.js
new file mode 100644
index 0000000..6c98767
--- /dev/null
+++ b/doc/html/search/properties_2.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['cursorposition',['cursorPosition',['../class_q_hex_edit.html#aa50b3ebe0d22133891dce0c8237846c7',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/properties_3.html b/doc/html/search/properties_3.html
new file mode 100644
index 0000000..b3d8535
--- /dev/null
+++ b/doc/html/search/properties_3.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="properties_3.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/properties_3.js b/doc/html/search/properties_3.js
new file mode 100644
index 0000000..a503234
--- /dev/null
+++ b/doc/html/search/properties_3.js
@@ -0,0 +1,5 @@
+var searchData=
+[
+ ['data',['data',['../class_q_hex_edit.html#a7f4e532611a6eff27b75d3cb88e91618',1,'QHexEdit']]],
+ ['dynamicbytesperline',['dynamicBytesPerLine',['../class_q_hex_edit.html#a788d65f5556535a49879a3a052a9a313',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/properties_4.html b/doc/html/search/properties_4.html
new file mode 100644
index 0000000..ed2be94
--- /dev/null
+++ b/doc/html/search/properties_4.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="properties_4.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/properties_4.js b/doc/html/search/properties_4.js
new file mode 100644
index 0000000..1bc7530
--- /dev/null
+++ b/doc/html/search/properties_4.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['font',['font',['../class_q_hex_edit.html#a9579dc7273c48b89c9e4f26adda78671',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/properties_5.html b/doc/html/search/properties_5.html
new file mode 100644
index 0000000..990e094
--- /dev/null
+++ b/doc/html/search/properties_5.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="properties_5.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/properties_5.js b/doc/html/search/properties_5.js
new file mode 100644
index 0000000..7c370b6
--- /dev/null
+++ b/doc/html/search/properties_5.js
@@ -0,0 +1,6 @@
+var searchData=
+[
+ ['hexcaps',['hexCaps',['../class_q_hex_edit.html#a4edfedb78ed9ae52cd08436e7cca0285',1,'QHexEdit']]],
+ ['highlighting',['highlighting',['../class_q_hex_edit.html#ae3669260a4d5c2fad5651893a17258fd',1,'QHexEdit']]],
+ ['highlightingcolor',['highlightingColor',['../class_q_hex_edit.html#a9e8ed54e47fec94cfd64b14ea1f7cee8',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/properties_6.html b/doc/html/search/properties_6.html
new file mode 100644
index 0000000..02cf7c9
--- /dev/null
+++ b/doc/html/search/properties_6.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="properties_6.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/properties_6.js b/doc/html/search/properties_6.js
new file mode 100644
index 0000000..6828481
--- /dev/null
+++ b/doc/html/search/properties_6.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['overwritemode',['overwriteMode',['../class_q_hex_edit.html#a941a91c36eb8429c41096bfcd45f38c1',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/properties_7.html b/doc/html/search/properties_7.html
new file mode 100644
index 0000000..327bb53
--- /dev/null
+++ b/doc/html/search/properties_7.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="properties_7.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/properties_7.js b/doc/html/search/properties_7.js
new file mode 100644
index 0000000..8ae3e25
--- /dev/null
+++ b/doc/html/search/properties_7.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['readonly',['readOnly',['../class_q_hex_edit.html#acb3044d1bb0c99876ddfa33772e91209',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/properties_8.html b/doc/html/search/properties_8.html
new file mode 100644
index 0000000..3b5485c
--- /dev/null
+++ b/doc/html/search/properties_8.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html><head><title></title>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<link rel="stylesheet" type="text/css" href="search.css"/>
+<script type="text/javascript" src="properties_8.js"></script>
+<script type="text/javascript" src="search.js"></script>
+</head>
+<body class="SRPage">
+<div id="SRIndex">
+<div class="SRStatus" id="Loading">Loading...</div>
+<div id="SRResults"></div>
+<script type="text/javascript"><!--
+createResults();
+--></script>
+<div class="SRStatus" id="Searching">Searching...</div>
+<div class="SRStatus" id="NoMatches">No Matches</div>
+<script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults");
+searchResults.Search();
+--></script>
+</div>
+</body>
+</html>
diff --git a/doc/html/search/properties_8.js b/doc/html/search/properties_8.js
new file mode 100644
index 0000000..6ac0d22
--- /dev/null
+++ b/doc/html/search/properties_8.js
@@ -0,0 +1,4 @@
+var searchData=
+[
+ ['selectioncolor',['selectionColor',['../class_q_hex_edit.html#ac0b628f34316aff9e18fc73a738250d7',1,'QHexEdit']]]
+];
diff --git a/doc/html/search/search.css b/doc/html/search/search.css
new file mode 100644
index 0000000..3cf9df9
--- /dev/null
+++ b/doc/html/search/search.css
@@ -0,0 +1,271 @@
+/*---------------- Search Box */
+
+#FSearchBox {
+ float: left;
+}
+
+#MSearchBox {
+ white-space : nowrap;
+ float: none;
+ margin-top: 8px;
+ right: 0px;
+ width: 170px;
+ height: 24px;
+ z-index: 102;
+}
+
+#MSearchBox .left
+{
+ display:block;
+ position:absolute;
+ left:10px;
+ width:20px;
+ height:19px;
+ background:url('search_l.png') no-repeat;
+ background-position:right;
+}
+
+#MSearchSelect {
+ display:block;
+ position:absolute;
+ width:20px;
+ height:19px;
+}
+
+.left #MSearchSelect {
+ left:4px;
+}
+
+.right #MSearchSelect {
+ right:5px;
+}
+
+#MSearchField {
+ display:block;
+ position:absolute;
+ height:19px;
+ background:url('search_m.png') repeat-x;
+ border:none;
+ width:115px;
+ margin-left:20px;
+ padding-left:4px;
+ color: #909090;
+ outline: none;
+ font: 9pt Arial, Verdana, sans-serif;
+ -webkit-border-radius: 0px;
+}
+
+#FSearchBox #MSearchField {
+ margin-left:15px;
+}
+
+#MSearchBox .right {
+ display:block;
+ position:absolute;
+ right:10px;
+ top:8px;
+ width:20px;
+ height:19px;
+ background:url('search_r.png') no-repeat;
+ background-position:left;
+}
+
+#MSearchClose {
+ display: none;
+ position: absolute;
+ top: 4px;
+ background : none;
+ border: none;
+ margin: 0px 4px 0px 0px;
+ padding: 0px 0px;
+ outline: none;
+}
+
+.left #MSearchClose {
+ left: 6px;
+}
+
+.right #MSearchClose {
+ right: 2px;
+}
+
+.MSearchBoxActive #MSearchField {
+ color: #000000;
+}
+
+/*---------------- Search filter selection */
+
+#MSearchSelectWindow {
+ display: none;
+ position: absolute;
+ left: 0; top: 0;
+ border: 1px solid #90A5CE;
+ background-color: #F9FAFC;
+ z-index: 10001;
+ padding-top: 4px;
+ padding-bottom: 4px;
+ -moz-border-radius: 4px;
+ -webkit-border-top-left-radius: 4px;
+ -webkit-border-top-right-radius: 4px;
+ -webkit-border-bottom-left-radius: 4px;
+ -webkit-border-bottom-right-radius: 4px;
+ -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
+}
+
+.SelectItem {
+ font: 8pt Arial, Verdana, sans-serif;
+ padding-left: 2px;
+ padding-right: 12px;
+ border: 0px;
+}
+
+span.SelectionMark {
+ margin-right: 4px;
+ font-family: monospace;
+ outline-style: none;
+ text-decoration: none;
+}
+
+a.SelectItem {
+ display: block;
+ outline-style: none;
+ color: #000000;
+ text-decoration: none;
+ padding-left: 6px;
+ padding-right: 12px;
+}
+
+a.SelectItem:focus,
+a.SelectItem:active {
+ color: #000000;
+ outline-style: none;
+ text-decoration: none;
+}
+
+a.SelectItem:hover {
+ color: #FFFFFF;
+ background-color: #3D578C;
+ outline-style: none;
+ text-decoration: none;
+ cursor: pointer;
+ display: block;
+}
+
+/*---------------- Search results window */
+
+iframe#MSearchResults {
+ width: 60ex;
+ height: 15em;
+}
+
+#MSearchResultsWindow {
+ display: none;
+ position: absolute;
+ left: 0; top: 0;
+ border: 1px solid #000;
+ background-color: #EEF1F7;
+ z-index:10000;
+}
+
+/* ----------------------------------- */
+
+
+#SRIndex {
+ clear:both;
+ padding-bottom: 15px;
+}
+
+.SREntry {
+ font-size: 10pt;
+ padding-left: 1ex;
+}
+
+.SRPage .SREntry {
+ font-size: 8pt;
+ padding: 1px 5px;
+}
+
+body.SRPage {
+ margin: 5px 2px;
+}
+
+.SRChildren {
+ padding-left: 3ex; padding-bottom: .5em
+}
+
+.SRPage .SRChildren {
+ display: none;
+}
+
+.SRSymbol {
+ font-weight: bold;
+ color: #425E97;
+ font-family: Arial, Verdana, sans-serif;
+ text-decoration: none;
+ outline: none;
+}
+
+a.SRScope {
+ display: block;
+ color: #425E97;
+ font-family: Arial, Verdana, sans-serif;
+ text-decoration: none;
+ outline: none;
+}
+
+a.SRSymbol:focus, a.SRSymbol:active,
+a.SRScope:focus, a.SRScope:active {
+ text-decoration: underline;
+}
+
+span.SRScope {
+ padding-left: 4px;
+}
+
+.SRPage .SRStatus {
+ padding: 2px 5px;
+ font-size: 8pt;
+ font-style: italic;
+}
+
+.SRResult {
+ display: none;
+}
+
+DIV.searchresults {
+ margin-left: 10px;
+ margin-right: 10px;
+}
+
+/*---------------- External search page results */
+
+.searchresult {
+ background-color: #F0F3F8;
+}
+
+.pages b {
+ color: white;
+ padding: 5px 5px 3px 5px;
+ background-image: url("../tab_a.png");
+ background-repeat: repeat-x;
+ text-shadow: 0 1px 1px #000000;
+}
+
+.pages {
+ line-height: 17px;
+ margin-left: 4px;
+ text-decoration: none;
+}
+
+.hl {
+ font-weight: bold;
+}
+
+#searchresults {
+ margin-bottom: 20px;
+}
+
+.searchpages {
+ margin-top: 10px;
+}
+
diff --git a/doc/html/search/search.js b/doc/html/search/search.js
new file mode 100644
index 0000000..dedce3b
--- /dev/null
+++ b/doc/html/search/search.js
@@ -0,0 +1,791 @@
+function convertToId(search)
+{
+ var result = '';
+ for (i=0;i<search.length;i++)
+ {
+ var c = search.charAt(i);
+ var cn = c.charCodeAt(0);
+ if (c.match(/[a-z0-9\u0080-\uFFFF]/))
+ {
+ result+=c;
+ }
+ else if (cn<16)
+ {
+ result+="_0"+cn.toString(16);
+ }
+ else
+ {
+ result+="_"+cn.toString(16);
+ }
+ }
+ return result;
+}
+
+function getXPos(item)
+{
+ var x = 0;
+ if (item.offsetWidth)
+ {
+ while (item && item!=document.body)
+ {
+ x += item.offsetLeft;
+ item = item.offsetParent;
+ }
+ }
+ return x;
+}
+
+function getYPos(item)
+{
+ var y = 0;
+ if (item.offsetWidth)
+ {
+ while (item && item!=document.body)
+ {
+ y += item.offsetTop;
+ item = item.offsetParent;
+ }
+ }
+ return y;
+}
+
+/* A class handling everything associated with the search panel.
+
+ Parameters:
+ name - The name of the global variable that will be
+ storing this instance. Is needed to be able to set timeouts.
+ resultPath - path to use for external files
+*/
+function SearchBox(name, resultsPath, inFrame, label)
+{
+ if (!name || !resultsPath) { alert("Missing parameters to SearchBox."); }
+
+ // ---------- Instance variables
+ this.name = name;
+ this.resultsPath = resultsPath;
+ this.keyTimeout = 0;
+ this.keyTimeoutLength = 500;
+ this.closeSelectionTimeout = 300;
+ this.lastSearchValue = "";
+ this.lastResultsPage = "";
+ this.hideTimeout = 0;
+ this.searchIndex = 0;
+ this.searchActive = false;
+ this.insideFrame = inFrame;
+ this.searchLabel = label;
+
+ // ----------- DOM Elements
+
+ this.DOMSearchField = function()
+ { return document.getElementById("MSearchField"); }
+
+ this.DOMSearchSelect = function()
+ { return document.getElementById("MSearchSelect"); }
+
+ this.DOMSearchSelectWindow = function()
+ { return document.getElementById("MSearchSelectWindow"); }
+
+ this.DOMPopupSearchResults = function()
+ { return document.getElementById("MSearchResults"); }
+
+ this.DOMPopupSearchResultsWindow = function()
+ { return document.getElementById("MSearchResultsWindow"); }
+
+ this.DOMSearchClose = function()
+ { return document.getElementById("MSearchClose"); }
+
+ this.DOMSearchBox = function()
+ { return document.getElementById("MSearchBox"); }
+
+ // ------------ Event Handlers
+
+ // Called when focus is added or removed from the search field.
+ this.OnSearchFieldFocus = function(isActive)
+ {
+ this.Activate(isActive);
+ }
+
+ this.OnSearchSelectShow = function()
+ {
+ var searchSelectWindow = this.DOMSearchSelectWindow();
+ var searchField = this.DOMSearchSelect();
+
+ if (this.insideFrame)
+ {
+ var left = getXPos(searchField);
+ var top = getYPos(searchField);
+ left += searchField.offsetWidth + 6;
+ top += searchField.offsetHeight;
+
+ // show search selection popup
+ searchSelectWindow.style.display='block';
+ left -= searchSelectWindow.offsetWidth;
+ searchSelectWindow.style.left = left + 'px';
+ searchSelectWindow.style.top = top + 'px';
+ }
+ else
+ {
+ var left = getXPos(searchField);
+ var top = getYPos(searchField);
+ top += searchField.offsetHeight;
+
+ // show search selection popup
+ searchSelectWindow.style.display='block';
+ searchSelectWindow.style.left = left + 'px';
+ searchSelectWindow.style.top = top + 'px';
+ }
+
+ // stop selection hide timer
+ if (this.hideTimeout)
+ {
+ clearTimeout(this.hideTimeout);
+ this.hideTimeout=0;
+ }
+ return false; // to avoid "image drag" default event
+ }
+
+ this.OnSearchSelectHide = function()
+ {
+ this.hideTimeout = setTimeout(this.name +".CloseSelectionWindow()",
+ this.closeSelectionTimeout);
+ }
+
+ // Called when the content of the search field is changed.
+ this.OnSearchFieldChange = function(evt)
+ {
+ if (this.keyTimeout) // kill running timer
+ {
+ clearTimeout(this.keyTimeout);
+ this.keyTimeout = 0;
+ }
+
+ var e = (evt) ? evt : window.event; // for IE
+ if (e.keyCode==40 || e.keyCode==13)
+ {
+ if (e.shiftKey==1)
+ {
+ this.OnSearchSelectShow();
+ var win=this.DOMSearchSelectWindow();
+ for (i=0;i<win.childNodes.length;i++)
+ {
+ var child = win.childNodes[i]; // get span within a
+ if (child.className=='SelectItem')
+ {
+ child.focus();
+ return;
+ }
+ }
+ return;
+ }
+ else if (window.frames.MSearchResults.searchResults)
+ {
+ var elem = window.frames.MSearchResults.searchResults.NavNext(0);
+ if (elem) elem.focus();
+ }
+ }
+ else if (e.keyCode==27) // Escape out of the search field
+ {
+ this.DOMSearchField().blur();
+ this.DOMPopupSearchResultsWindow().style.display = 'none';
+ this.DOMSearchClose().style.display = 'none';
+ this.lastSearchValue = '';
+ this.Activate(false);
+ return;
+ }
+
+ // strip whitespaces
+ var searchValue = this.DOMSearchField().value.replace(/ +/g, "");
+
+ if (searchValue != this.lastSearchValue) // search value has changed
+ {
+ if (searchValue != "") // non-empty search
+ {
+ // set timer for search update
+ this.keyTimeout = setTimeout(this.name + '.Search()',
+ this.keyTimeoutLength);
+ }
+ else // empty search field
+ {
+ this.DOMPopupSearchResultsWindow().style.display = 'none';
+ this.DOMSearchClose().style.display = 'none';
+ this.lastSearchValue = '';
+ }
+ }
+ }
+
+ this.SelectItemCount = function(id)
+ {
+ var count=0;
+ var win=this.DOMSearchSelectWindow();
+ for (i=0;i<win.childNodes.length;i++)
+ {
+ var child = win.childNodes[i]; // get span within a
+ if (child.className=='SelectItem')
+ {
+ count++;
+ }
+ }
+ return count;
+ }
+
+ this.SelectItemSet = function(id)
+ {
+ var i,j=0;
+ var win=this.DOMSearchSelectWindow();
+ for (i=0;i<win.childNodes.length;i++)
+ {
+ var child = win.childNodes[i]; // get span within a
+ if (child.className=='SelectItem')
+ {
+ var node = child.firstChild;
+ if (j==id)
+ {
+ node.innerHTML='&#8226;';
+ }
+ else
+ {
+ node.innerHTML='&#160;';
+ }
+ j++;
+ }
+ }
+ }
+
+ // Called when an search filter selection is made.
+ // set item with index id as the active item
+ this.OnSelectItem = function(id)
+ {
+ this.searchIndex = id;
+ this.SelectItemSet(id);
+ var searchValue = this.DOMSearchField().value.replace(/ +/g, "");
+ if (searchValue!="" && this.searchActive) // something was found -> do a search
+ {
+ this.Search();
+ }
+ }
+
+ this.OnSearchSelectKey = function(evt)
+ {
+ var e = (evt) ? evt : window.event; // for IE
+ if (e.keyCode==40 && this.searchIndex<this.SelectItemCount()) // Down
+ {
+ this.searchIndex++;
+ this.OnSelectItem(this.searchIndex);
+ }
+ else if (e.keyCode==38 && this.searchIndex>0) // Up
+ {
+ this.searchIndex--;
+ this.OnSelectItem(this.searchIndex);
+ }
+ else if (e.keyCode==13 || e.keyCode==27)
+ {
+ this.OnSelectItem(this.searchIndex);
+ this.CloseSelectionWindow();
+ this.DOMSearchField().focus();
+ }
+ return false;
+ }
+
+ // --------- Actions
+
+ // Closes the results window.
+ this.CloseResultsWindow = function()
+ {
+ this.DOMPopupSearchResultsWindow().style.display = 'none';
+ this.DOMSearchClose().style.display = 'none';
+ this.Activate(false);
+ }
+
+ this.CloseSelectionWindow = function()
+ {
+ this.DOMSearchSelectWindow().style.display = 'none';
+ }
+
+ // Performs a search.
+ this.Search = function()
+ {
+ this.keyTimeout = 0;
+
+ // strip leading whitespace
+ var searchValue = this.DOMSearchField().value.replace(/^ +/, "");
+
+ var code = searchValue.toLowerCase().charCodeAt(0);
+ var idxChar = searchValue.substr(0, 1).toLowerCase();
+ if ( 0xD800 <= code && code <= 0xDBFF && searchValue > 1) // surrogate pair
+ {
+ idxChar = searchValue.substr(0, 2);
+ }
+
+ var resultsPage;
+ var resultsPageWithSearch;
+ var hasResultsPage;
+
+ var idx = indexSectionsWithContent[this.searchIndex].indexOf(idxChar);
+ if (idx!=-1)
+ {
+ var hexCode=idx.toString(16);
+ resultsPage = this.resultsPath + '/' + indexSectionNames[this.searchIndex] + '_' + hexCode + '.html';
+ resultsPageWithSearch = resultsPage+'?'+escape(searchValue);
+ hasResultsPage = true;
+ }
+ else // nothing available for this search term
+ {
+ resultsPage = this.resultsPath + '/nomatches.html';
+ resultsPageWithSearch = resultsPage;
+ hasResultsPage = false;
+ }
+
+ window.frames.MSearchResults.location = resultsPageWithSearch;
+ var domPopupSearchResultsWindow = this.DOMPopupSearchResultsWindow();
+
+ if (domPopupSearchResultsWindow.style.display!='block')
+ {
+ var domSearchBox = this.DOMSearchBox();
+ this.DOMSearchClose().style.display = 'inline';
+ if (this.insideFrame)
+ {
+ var domPopupSearchResults = this.DOMPopupSearchResults();
+ domPopupSearchResultsWindow.style.position = 'relative';
+ domPopupSearchResultsWindow.style.display = 'block';
+ var width = document.body.clientWidth - 8; // the -8 is for IE :-(
+ domPopupSearchResultsWindow.style.width = width + 'px';
+ domPopupSearchResults.style.width = width + 'px';
+ }
+ else
+ {
+ var domPopupSearchResults = this.DOMPopupSearchResults();
+ var left = getXPos(domSearchBox) + 150; // domSearchBox.offsetWidth;
+ var top = getYPos(domSearchBox) + 20; // domSearchBox.offsetHeight + 1;
+ domPopupSearchResultsWindow.style.display = 'block';
+ left -= domPopupSearchResults.offsetWidth;
+ domPopupSearchResultsWindow.style.top = top + 'px';
+ domPopupSearchResultsWindow.style.left = left + 'px';
+ }
+ }
+
+ this.lastSearchValue = searchValue;
+ this.lastResultsPage = resultsPage;
+ }
+
+ // -------- Activation Functions
+
+ // Activates or deactivates the search panel, resetting things to
+ // their default values if necessary.
+ this.Activate = function(isActive)
+ {
+ if (isActive || // open it
+ this.DOMPopupSearchResultsWindow().style.display == 'block'
+ )
+ {
+ this.DOMSearchBox().className = 'MSearchBoxActive';
+
+ var searchField = this.DOMSearchField();
+
+ if (searchField.value == this.searchLabel) // clear "Search" term upon entry
+ {
+ searchField.value = '';
+ this.searchActive = true;
+ }
+ }
+ else if (!isActive) // directly remove the panel
+ {
+ this.DOMSearchBox().className = 'MSearchBoxInactive';
+ this.DOMSearchField().value = this.searchLabel;
+ this.searchActive = false;
+ this.lastSearchValue = ''
+ this.lastResultsPage = '';
+ }
+ }
+}
+
+// -----------------------------------------------------------------------
+
+// The class that handles everything on the search results page.
+function SearchResults(name)
+{
+ // The number of matches from the last run of <Search()>.
+ this.lastMatchCount = 0;
+ this.lastKey = 0;
+ this.repeatOn = false;
+
+ // Toggles the visibility of the passed element ID.
+ this.FindChildElement = function(id)
+ {
+ var parentElement = document.getElementById(id);
+ var element = parentElement.firstChild;
+
+ while (element && element!=parentElement)
+ {
+ if (element.nodeName == 'DIV' && element.className == 'SRChildren')
+ {
+ return element;
+ }
+
+ if (element.nodeName == 'DIV' && element.hasChildNodes())
+ {
+ element = element.firstChild;
+ }
+ else if (element.nextSibling)
+ {
+ element = element.nextSibling;
+ }
+ else
+ {
+ do
+ {
+ element = element.parentNode;
+ }
+ while (element && element!=parentElement && !element.nextSibling);
+
+ if (element && element!=parentElement)
+ {
+ element = element.nextSibling;
+ }
+ }
+ }
+ }
+
+ this.Toggle = function(id)
+ {
+ var element = this.FindChildElement(id);
+ if (element)
+ {
+ if (element.style.display == 'block')
+ {
+ element.style.display = 'none';
+ }
+ else
+ {
+ element.style.display = 'block';
+ }
+ }
+ }
+
+ // Searches for the passed string. If there is no parameter,
+ // it takes it from the URL query.
+ //
+ // Always returns true, since other documents may try to call it
+ // and that may or may not be possible.
+ this.Search = function(search)
+ {
+ if (!search) // get search word from URL
+ {
+ search = window.location.search;
+ search = search.substring(1); // Remove the leading '?'
+ search = unescape(search);
+ }
+
+ search = search.replace(/^ +/, ""); // strip leading spaces
+ search = search.replace(/ +$/, ""); // strip trailing spaces
+ search = search.toLowerCase();
+ search = convertToId(search);
+
+ var resultRows = document.getElementsByTagName("div");
+ var matches = 0;
+
+ var i = 0;
+ while (i < resultRows.length)
+ {
+ var row = resultRows.item(i);
+ if (row.className == "SRResult")
+ {
+ var rowMatchName = row.id.toLowerCase();
+ rowMatchName = rowMatchName.replace(/^sr\d*_/, ''); // strip 'sr123_'
+
+ if (search.length<=rowMatchName.length &&
+ rowMatchName.substr(0, search.length)==search)
+ {
+ row.style.display = 'block';
+ matches++;
+ }
+ else
+ {
+ row.style.display = 'none';
+ }
+ }
+ i++;
+ }
+ document.getElementById("Searching").style.display='none';
+ if (matches == 0) // no results
+ {
+ document.getElementById("NoMatches").style.display='block';
+ }
+ else // at least one result
+ {
+ document.getElementById("NoMatches").style.display='none';
+ }
+ this.lastMatchCount = matches;
+ return true;
+ }
+
+ // return the first item with index index or higher that is visible
+ this.NavNext = function(index)
+ {
+ var focusItem;
+ while (1)
+ {
+ var focusName = 'Item'+index;
+ focusItem = document.getElementById(focusName);
+ if (focusItem && focusItem.parentNode.parentNode.style.display=='block')
+ {
+ break;
+ }
+ else if (!focusItem) // last element
+ {
+ break;
+ }
+ focusItem=null;
+ index++;
+ }
+ return focusItem;
+ }
+
+ this.NavPrev = function(index)
+ {
+ var focusItem;
+ while (1)
+ {
+ var focusName = 'Item'+index;
+ focusItem = document.getElementById(focusName);
+ if (focusItem && focusItem.parentNode.parentNode.style.display=='block')
+ {
+ break;
+ }
+ else if (!focusItem) // last element
+ {
+ break;
+ }
+ focusItem=null;
+ index--;
+ }
+ return focusItem;
+ }
+
+ this.ProcessKeys = function(e)
+ {
+ if (e.type == "keydown")
+ {
+ this.repeatOn = false;
+ this.lastKey = e.keyCode;
+ }
+ else if (e.type == "keypress")
+ {
+ if (!this.repeatOn)
+ {
+ if (this.lastKey) this.repeatOn = true;
+ return false; // ignore first keypress after keydown
+ }
+ }
+ else if (e.type == "keyup")
+ {
+ this.lastKey = 0;
+ this.repeatOn = false;
+ }
+ return this.lastKey!=0;
+ }
+
+ this.Nav = function(evt,itemIndex)
+ {
+ var e = (evt) ? evt : window.event; // for IE
+ if (e.keyCode==13) return true;
+ if (!this.ProcessKeys(e)) return false;
+
+ if (this.lastKey==38) // Up
+ {
+ var newIndex = itemIndex-1;
+ var focusItem = this.NavPrev(newIndex);
+ if (focusItem)
+ {
+ var child = this.FindChildElement(focusItem.parentNode.parentNode.id);
+ if (child && child.style.display == 'block') // children visible
+ {
+ var n=0;
+ var tmpElem;
+ while (1) // search for last child
+ {
+ tmpElem = document.getElementById('Item'+newIndex+'_c'+n);
+ if (tmpElem)
+ {
+ focusItem = tmpElem;
+ }
+ else // found it!
+ {
+ break;
+ }
+ n++;
+ }
+ }
+ }
+ if (focusItem)
+ {
+ focusItem.focus();
+ }
+ else // return focus to search field
+ {
+ parent.document.getElementById("MSearchField").focus();
+ }
+ }
+ else if (this.lastKey==40) // Down
+ {
+ var newIndex = itemIndex+1;
+ var focusItem;
+ var item = document.getElementById('Item'+itemIndex);
+ var elem = this.FindChildElement(item.parentNode.parentNode.id);
+ if (elem && elem.style.display == 'block') // children visible
+ {
+ focusItem = document.getElementById('Item'+itemIndex+'_c0');
+ }
+ if (!focusItem) focusItem = this.NavNext(newIndex);
+ if (focusItem) focusItem.focus();
+ }
+ else if (this.lastKey==39) // Right
+ {
+ var item = document.getElementById('Item'+itemIndex);
+ var elem = this.FindChildElement(item.parentNode.parentNode.id);
+ if (elem) elem.style.display = 'block';
+ }
+ else if (this.lastKey==37) // Left
+ {
+ var item = document.getElementById('Item'+itemIndex);
+ var elem = this.FindChildElement(item.parentNode.parentNode.id);
+ if (elem) elem.style.display = 'none';
+ }
+ else if (this.lastKey==27) // Escape
+ {
+ parent.searchBox.CloseResultsWindow();
+ parent.document.getElementById("MSearchField").focus();
+ }
+ else if (this.lastKey==13) // Enter
+ {
+ return true;
+ }
+ return false;
+ }
+
+ this.NavChild = function(evt,itemIndex,childIndex)
+ {
+ var e = (evt) ? evt : window.event; // for IE
+ if (e.keyCode==13) return true;
+ if (!this.ProcessKeys(e)) return false;
+
+ if (this.lastKey==38) // Up
+ {
+ if (childIndex>0)
+ {
+ var newIndex = childIndex-1;
+ document.getElementById('Item'+itemIndex+'_c'+newIndex).focus();
+ }
+ else // already at first child, jump to parent
+ {
+ document.getElementById('Item'+itemIndex).focus();
+ }
+ }
+ else if (this.lastKey==40) // Down
+ {
+ var newIndex = childIndex+1;
+ var elem = document.getElementById('Item'+itemIndex+'_c'+newIndex);
+ if (!elem) // last child, jump to parent next parent
+ {
+ elem = this.NavNext(itemIndex+1);
+ }
+ if (elem)
+ {
+ elem.focus();
+ }
+ }
+ else if (this.lastKey==27) // Escape
+ {
+ parent.searchBox.CloseResultsWindow();
+ parent.document.getElementById("MSearchField").focus();
+ }
+ else if (this.lastKey==13) // Enter
+ {
+ return true;
+ }
+ return false;
+ }
+}
+
+function setKeyActions(elem,action)
+{
+ elem.setAttribute('onkeydown',action);
+ elem.setAttribute('onkeypress',action);
+ elem.setAttribute('onkeyup',action);
+}
+
+function setClassAttr(elem,attr)
+{
+ elem.setAttribute('class',attr);
+ elem.setAttribute('className',attr);
+}
+
+function createResults()
+{
+ var results = document.getElementById("SRResults");
+ for (var e=0; e<searchData.length; e++)
+ {
+ var id = searchData[e][0];
+ var srResult = document.createElement('div');
+ srResult.setAttribute('id','SR_'+id);
+ setClassAttr(srResult,'SRResult');
+ var srEntry = document.createElement('div');
+ setClassAttr(srEntry,'SREntry');
+ var srLink = document.createElement('a');
+ srLink.setAttribute('id','Item'+e);
+ setKeyActions(srLink,'return searchResults.Nav(event,'+e+')');
+ setClassAttr(srLink,'SRSymbol');
+ srLink.innerHTML = searchData[e][1][0];
+ srEntry.appendChild(srLink);
+ if (searchData[e][1].length==2) // single result
+ {
+ srLink.setAttribute('href',searchData[e][1][1][0]);
+ if (searchData[e][1][1][1])
+ {
+ srLink.setAttribute('target','_parent');
+ }
+ var srScope = document.createElement('span');
+ setClassAttr(srScope,'SRScope');
+ srScope.innerHTML = searchData[e][1][1][2];
+ srEntry.appendChild(srScope);
+ }
+ else // multiple results
+ {
+ srLink.setAttribute('href','javascript:searchResults.Toggle("SR_'+id+'")');
+ var srChildren = document.createElement('div');
+ setClassAttr(srChildren,'SRChildren');
+ for (var c=0; c<searchData[e][1].length-1; c++)
+ {
+ var srChild = document.createElement('a');
+ srChild.setAttribute('id','Item'+e+'_c'+c);
+ setKeyActions(srChild,'return searchResults.NavChild(event,'+e+','+c+')');
+ setClassAttr(srChild,'SRScope');
+ srChild.setAttribute('href',searchData[e][1][c+1][0]);
+ if (searchData[e][1][c+1][1])
+ {
+ srChild.setAttribute('target','_parent');
+ }
+ srChild.innerHTML = searchData[e][1][c+1][2];
+ srChildren.appendChild(srChild);
+ }
+ srEntry.appendChild(srChildren);
+ }
+ srResult.appendChild(srEntry);
+ results.appendChild(srResult);
+ }
+}
+
+function init_search()
+{
+ var results = document.getElementById("MSearchSelectWindow");
+ for (var key in indexSectionLabels)
+ {
+ var link = document.createElement('a');
+ link.setAttribute('class','SelectItem');
+ link.setAttribute('onclick','searchBox.OnSelectItem('+key+')');
+ link.href='javascript:void(0)';
+ link.innerHTML='<span class="SelectionMark">&#160;</span>'+indexSectionLabels[key];
+ results.appendChild(link);
+ }
+ searchBox.OnSelectItem(0);
+}
+
diff --git a/doc/html/search/search_l.png b/doc/html/search/search_l.png
new file mode 100644
index 0000000..c872f4d
--- /dev/null
+++ b/doc/html/search/search_l.png
Binary files differ
diff --git a/doc/html/search/search_m.png b/doc/html/search/search_m.png
new file mode 100644
index 0000000..b429a16
--- /dev/null
+++ b/doc/html/search/search_m.png
Binary files differ
diff --git a/doc/html/search/search_r.png b/doc/html/search/search_r.png
new file mode 100644
index 0000000..97ee8b4
--- /dev/null
+++ b/doc/html/search/search_r.png
Binary files differ
diff --git a/doc/html/search/searchdata.js b/doc/html/search/searchdata.js
new file mode 100644
index 0000000..011d782
--- /dev/null
+++ b/doc/html/search/searchdata.js
@@ -0,0 +1,24 @@
+var indexSectionsWithContent =
+{
+ 0: "abcdefhiloqrstuw",
+ 1: "q",
+ 2: "cdeiloqrstuw",
+ 3: "abcdfhors"
+};
+
+var indexSectionNames =
+{
+ 0: "all",
+ 1: "classes",
+ 2: "functions",
+ 3: "properties"
+};
+
+var indexSectionLabels =
+{
+ 0: "All",
+ 1: "Classes",
+ 2: "Functions",
+ 3: "Properties"
+};
+
diff --git a/doc/html/splitbar.png b/doc/html/splitbar.png
new file mode 100644
index 0000000..fe895f2
--- /dev/null
+++ b/doc/html/splitbar.png
Binary files differ
diff --git a/doc/html/sync_off.png b/doc/html/sync_off.png
new file mode 100644
index 0000000..3b443fc
--- /dev/null
+++ b/doc/html/sync_off.png
Binary files differ
diff --git a/doc/html/sync_on.png b/doc/html/sync_on.png
new file mode 100644
index 0000000..e08320f
--- /dev/null
+++ b/doc/html/sync_on.png
Binary files differ
diff --git a/doc/html/tab_a.png b/doc/html/tab_a.png
new file mode 100644
index 0000000..3b725c4
--- /dev/null
+++ b/doc/html/tab_a.png
Binary files differ
diff --git a/doc/html/tab_b.png b/doc/html/tab_b.png
new file mode 100644
index 0000000..e2b4a86
--- /dev/null
+++ b/doc/html/tab_b.png
Binary files differ
diff --git a/doc/html/tab_h.png b/doc/html/tab_h.png
new file mode 100644
index 0000000..fd5cb70
--- /dev/null
+++ b/doc/html/tab_h.png
Binary files differ
diff --git a/doc/html/tab_s.png b/doc/html/tab_s.png
new file mode 100644
index 0000000..ab478c9
--- /dev/null
+++ b/doc/html/tab_s.png
Binary files differ
diff --git a/doc/html/tabs.css b/doc/html/tabs.css
new file mode 100644
index 0000000..7d45d36
--- /dev/null
+++ b/doc/html/tabs.css
@@ -0,0 +1 @@
+.sm{position:relative;z-index:9999}.sm,.sm ul,.sm li{display:block;list-style:none;margin:0;padding:0;line-height:normal;direction:ltr;text-align:left;-webkit-tap-highlight-color:rgba(0,0,0,0)}.sm-rtl,.sm-rtl ul,.sm-rtl li{direction:rtl;text-align:right}.sm>li>h1,.sm>li>h2,.sm>li>h3,.sm>li>h4,.sm>li>h5,.sm>li>h6{margin:0;padding:0}.sm ul{display:none}.sm li,.sm a{position:relative}.sm a{display:block}.sm a.disabled{cursor:not-allowed}.sm:after{content:"\00a0";display:block;height:0;font:0px/0 serif;clear:both;visibility:hidden;overflow:hidden}.sm,.sm *,.sm *:before,.sm *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.sm-dox{background-image:url("tab_b.png")}.sm-dox a,.sm-dox a:focus,.sm-dox a:hover,.sm-dox a:active{padding:0px 12px;padding-right:43px;font-family:"Lucida Grande","Geneva","Helvetica",Arial,sans-serif;font-size:13px;font-weight:bold;line-height:36px;text-decoration:none;text-shadow:0px 1px 1px rgba(255,255,255,0.9);color:#283A5D;outline:none}.sm-dox a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:#fff;text-shadow:0px 1px 1px #000}.sm-dox a.current{color:#D23600}.sm-dox a.disabled{color:#bbb}.sm-dox a span.sub-arrow{position:absolute;top:50%;margin-top:-14px;left:auto;right:3px;width:28px;height:28px;overflow:hidden;font:bold 12px/28px monospace !important;text-align:center;text-shadow:none;background:rgba(255,255,255,0.5);border-radius:5px}.sm-dox a.highlighted span.sub-arrow:before{display:block;content:'-'}.sm-dox>li:first-child>a,.sm-dox>li:first-child>:not(ul) a{border-radius:5px 5px 0 0}.sm-dox>li:last-child>a,.sm-dox>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul{border-radius:0 0 5px 5px}.sm-dox>li:last-child>a.highlighted,.sm-dox>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted{border-radius:0}.sm-dox ul{background:rgba(162,162,162,0.1)}.sm-dox ul a,.sm-dox ul a:focus,.sm-dox ul a:hover,.sm-dox ul a:active{font-size:12px;border-left:8px solid transparent;line-height:36px;text-shadow:none;background-color:white;background-image:none}.sm-dox ul a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:#fff;text-shadow:0px 1px 1px #000}.sm-dox ul ul a,.sm-dox ul ul a:hover,.sm-dox ul ul a:focus,.sm-dox ul ul a:active{border-left:16px solid transparent}.sm-dox ul ul ul a,.sm-dox ul ul ul a:hover,.sm-dox ul ul ul a:focus,.sm-dox ul ul ul a:active{border-left:24px solid transparent}.sm-dox ul ul ul ul a,.sm-dox ul ul ul ul a:hover,.sm-dox ul ul ul ul a:focus,.sm-dox ul ul ul ul a:active{border-left:32px solid transparent}.sm-dox ul ul ul ul ul a,.sm-dox ul ul ul ul ul a:hover,.sm-dox ul ul ul ul ul a:focus,.sm-dox ul ul ul ul ul a:active{border-left:40px solid transparent}@media (min-width: 768px){.sm-dox ul{position:absolute;width:12em}.sm-dox li{float:left}.sm-dox.sm-rtl li{float:right}.sm-dox ul li,.sm-dox.sm-rtl ul li,.sm-dox.sm-vertical li{float:none}.sm-dox a{white-space:nowrap}.sm-dox ul a,.sm-dox.sm-vertical a{white-space:normal}.sm-dox .sm-nowrap>li>a,.sm-dox .sm-nowrap>li>:not(ul) a{white-space:nowrap}.sm-dox{padding:0 10px;background-image:url("tab_b.png");line-height:36px}.sm-dox a span.sub-arrow{top:50%;margin-top:-2px;right:12px;width:0;height:0;border-width:4px;border-style:solid dashed dashed dashed;border-color:#283A5D transparent transparent transparent;background:transparent;border-radius:0}.sm-dox a,.sm-dox a:focus,.sm-dox a:active,.sm-dox a:hover,.sm-dox a.highlighted{padding:0px 12px;background-image:url("tab_s.png");background-repeat:no-repeat;background-position:right;border-radius:0 !important}.sm-dox a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:#fff;text-shadow:0px 1px 1px #000}.sm-dox a:hover span.sub-arrow{border-color:#fff transparent transparent transparent}.sm-dox a.has-submenu{padding-right:24px}.sm-dox li{border-top:0}.sm-dox>li>ul:before,.sm-dox>li>ul:after{content:'';position:absolute;top:-18px;left:30px;width:0;height:0;overflow:hidden;border-width:9px;border-style:dashed dashed solid dashed;border-color:transparent transparent #bbb transparent}.sm-dox>li>ul:after{top:-16px;left:31px;border-width:8px;border-color:transparent transparent #fff transparent}.sm-dox ul{border:1px solid #bbb;padding:5px 0;background:#fff;border-radius:5px !important;box-shadow:0 5px 9px rgba(0,0,0,0.2)}.sm-dox ul a span.sub-arrow{right:8px;top:50%;margin-top:-5px;border-width:5px;border-color:transparent transparent transparent #555;border-style:dashed dashed dashed solid}.sm-dox ul a,.sm-dox ul a:hover,.sm-dox ul a:focus,.sm-dox ul a:active,.sm-dox ul a.highlighted{color:#555;background-image:none;border:0 !important;color:#555;background-image:none}.sm-dox ul a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:#fff;text-shadow:0px 1px 1px #000}.sm-dox ul a:hover span.sub-arrow{border-color:transparent transparent transparent #fff}.sm-dox span.scroll-up,.sm-dox span.scroll-down{position:absolute;display:none;visibility:hidden;overflow:hidden;background:#fff;height:36px}.sm-dox span.scroll-up:hover,.sm-dox span.scroll-down:hover{background:#eee}.sm-dox span.scroll-up:hover span.scroll-up-arrow,.sm-dox span.scroll-up:hover span.scroll-down-arrow{border-color:transparent transparent #D23600 transparent}.sm-dox span.scroll-down:hover span.scroll-down-arrow{border-color:#D23600 transparent transparent transparent}.sm-dox span.scroll-up-arrow,.sm-dox span.scroll-down-arrow{position:absolute;top:0;left:50%;margin-left:-6px;width:0;height:0;overflow:hidden;border-width:6px;border-style:dashed dashed solid dashed;border-color:transparent transparent #555 transparent}.sm-dox span.scroll-down-arrow{top:8px;border-style:solid dashed dashed dashed;border-color:#555 transparent transparent transparent}.sm-dox.sm-rtl a.has-submenu{padding-right:12px;padding-left:24px}.sm-dox.sm-rtl a span.sub-arrow{right:auto;left:12px}.sm-dox.sm-rtl.sm-vertical a.has-submenu{padding:10px 20px}.sm-dox.sm-rtl.sm-vertical a span.sub-arrow{right:auto;left:8px;border-style:dashed solid dashed dashed;border-color:transparent #555 transparent transparent}.sm-dox.sm-rtl>li>ul:before{left:auto;right:30px}.sm-dox.sm-rtl>li>ul:after{left:auto;right:31px}.sm-dox.sm-rtl ul a.has-submenu{padding:10px 20px !important}.sm-dox.sm-rtl ul a span.sub-arrow{right:auto;left:8px;border-style:dashed solid dashed dashed;border-color:transparent #555 transparent transparent}.sm-dox.sm-vertical{padding:10px 0;border-radius:5px}.sm-dox.sm-vertical a{padding:10px 20px}.sm-dox.sm-vertical a:hover,.sm-dox.sm-vertical a:focus,.sm-dox.sm-vertical a:active,.sm-dox.sm-vertical a.highlighted{background:#fff}.sm-dox.sm-vertical a.disabled{background-image:url("tab_b.png")}.sm-dox.sm-vertical a span.sub-arrow{right:8px;top:50%;margin-top:-5px;border-width:5px;border-style:dashed dashed dashed solid;border-color:transparent transparent transparent #555}.sm-dox.sm-vertical>li>ul:before,.sm-dox.sm-vertical>li>ul:after{display:none}.sm-dox.sm-vertical ul a{padding:10px 20px}.sm-dox.sm-vertical ul a:hover,.sm-dox.sm-vertical ul a:focus,.sm-dox.sm-vertical ul a:active,.sm-dox.sm-vertical ul a.highlighted{background:#eee}.sm-dox.sm-vertical ul a.disabled{background:#fff}}
diff --git a/doc/release.txt b/doc/release.txt
new file mode 100644
index 0000000..83cb211
--- /dev/null
+++ b/doc/release.txt
@@ -0,0 +1,210 @@
+- clang detach temporary
+- initialize with initialization lists
+- open file from cli
+- add colors customization
+
+Release 0.8.9, 2020-07-03
+-------------------------
+- make appveyor upload assets
+
+Release 0.8.8, 2020-06-24
+-------------------------
+- test appveyor
+
+Release 0.8.7, 2020-06-24
+-------------------------
+- extend HexCaps check to address and edit text
+- use 'monospace' hint to improve font guess
+- fix build with qt < 5.11.0
+- add icon pics to source
+- forward key press events to parent widget
+- limit undo stack to 1000 entries
+
+Release 0.8.6, 2019-03-16
+-------------------------
+- Bug fix: select data above 2GB
+- add selectedData() method
+- minor changes
+
+Release 0.8.5, 2018-12-12
+-------------------------
+- Dynamic bytesPerLine property
+- Russian translation
+- QDesigner plugin
+- Bug fixes
+
+Release 0.8.4, 2018-12-12
+-------------------------
+- Dynamic bytesPerLine property
+- Russian translation
+- QDesigner plugin
+- Bug fixes
+
+Release 0.8.3, 2017-01-09
+-------------------------
+- Ascii area ist now editable
+- New property hexCaps
+- Bugfixes
+- Translation updates
+- Bump lib version to 4.0.0
+
+Release 0.8.2, 2016-12-19
+-------------------------
+- New feature: Bytes per line is now adjustable
+- Fix build for MSVC
+- Allow hex input chars 'a'...'f' and 'A'...'F'
+- Typos
+- Bug fix: Glitch address area background color when view slided left
+- Bug fix: Glitch when view slided left and paint event
+- Bump lib version to 3.1.0
+
+Release 0.8.1, 2016-11-08
+-------------------------
+- Bump lib version to 3.0.0
+
+Release 0.8.0, 2016-11-07
+-------------------------
+- Add copyright and license statement
+- Make python example work (binary read)
+- setFont() ist not longer 'virtual' (minimal change in lib interface)
+- Fix leak memory issue
+
+Release 0.7.8, 2016-08-01
+-------------------------
+- Adjust include directory for qt5 in setup.py for Ubuntu 16.04
+- Initialize values in constructor
+
+Release 0.7.7, 2016-04-14
+-------------------------
+- Take horizontal scrolling position into account, when calculation cursor
+position from graphical (mouse click) position
+- Adjust horizontal scrollbar, when the cursor leaves the viewport
+
+Release 0.7.6, 2016-06-07
+-------------------------
+- Miscalculation of the position of cursor when scrolling horizontally corrected
+
+Release 0.7.5, 2016-04-07
+-------------------------
+- Cursor position in insert mode (when deleting last byte) corrected
+- resetSelection() now clips to max data size
+- setSelection() now clips to max data size
+
+Release 0.7.4, 2015-09-17
+-------------------------
+- Include some get/set functions in the definition of Q_PROPERTY, change lib version to 2.1.0
+- Definition of property "data" should mention signal "dataChanged"
+- Replace these "and" and "or" with their counterparts "&&" and "||"
+- LONG_LONG_MAX should not be used
+
+Release 0.7.3, 2015-06-01
+-------------------------
+- Get ready for PyQt5
+- Use palette colors instead of inventing new colors if possible
+
+Release 0.7.2, 2015-05-19
+-------------------------
+- Change library version to 2.0.0, because the ABI has incompatible changes
+
+Release 0.7.1, 2015-05-19
+-------------------------
+- Change library version to 1.1.0, because the ABI has changed
+
+Release 0.7.0, 2015-05-18
+-------------------------
+- QHexEdit is now based on QIODevice. The data shown is not buffered in memory. QHexEdit can show now very big files (> 2 gigabytes) without any problems
+- QHexEdit has also a QByteArray based, backward compatible (as far as possible) interface for convenience
+- Changes on the data will be stored in copied memory chunks, the base file will only read (QIODevice::ReadOnly)
+- QHexEdit is now directly derived from QAbstractScrollArea
+- The Widget calculates now all dimensions dynamically, hence small or big fonts will be shown properly on all screens
+- You can use also proportional fonts, though it is not recommended
+- Paint event needs very low cpu activity, when editor is in idle mode without user actions. Only the section of the data is rendered, which is shown to the user
+- Several bugfixes.
+
+Release 0.6.7, 2015-05-11
+-------------------------
+- Bugfix Ctrl-C does not work properly
+
+Release 0.6.6, 2015-05-01
+-------------------------
+- Feature Adding drag and drop
+- Feature Adding toolbar buttons for undo, redo and find
+- Bugfix Selection is allways shown to end of file
+
+Release 0.6.5, 2015-04-16
+-------------------------
+- Feature Python Example ready for Python 2 and 3
+- Bugfix Handling overwriteMode Flag
+
+Release 0.6.4, 2015-04-09
+-------------------------
+- Feature Ready for Qt5
+- Feature Show Selection in ASCII Part
+- Bugfix Selecting last item in a row
+- Bugfix Scroll Bar not shown when extra data inserted
+- Bugfix address area doesn't update when changed ouside
+- Bugfix Error while saving (Example)
+
+Release 0.6.3, 2012-01-28
+-------------------------
+- Searching and replacing included (indexOf(), lastIndexOf(), replace())
+- Example ist now named consequently "QHexEdit"
+- Example reflects the search/replace functionality
+- Translateions (cs, de) for the example are contained
+- Python bindings include also the new features
+- Paython example is also updated
+
+Release 0.6.2, 2012-01-21
+-------------------------
+- Fix issue #4 "Hiding the ascii area doesn't resize the widget properly"
+- Fix issue #5 "Blinking cursor is displayed even if the control is set to read only"
+
+Release 0.6.1, 2011-10-22
+-------------------------
+- Fix issue #2 "setData() steals focus"
+- Fix issue #3 "QHexEdit crashes, when hitting Backspace on the first Byte"
+
+Release 0.6.0, 2011-10-03
+-------------------------
+- Undo/Redo functioinality
+- toReadableString(), selectionToReadableString() added
+- New structure, new classes XByteArray, CharCommands, ArrayCommands
+- C++ and Python example reflect the new features
+
+Release 0.5.4, 2011-08-31
+-------------------------
+- New Feature: Property font
+- Python Example is now identical to C++ Example
+- Windows and Linux build scripts added
+
+Release 0.5.3, 2011-08-29
+-------------------------
+- BugFix: recursive call in "qhexedit.cpp" addressOffset()
+- New Feature: Property readOnly
+
+Release 0.5.2, 2011-08-27
+-------------------------
+QHexEdit
+- New Feature: Del & Backspace fill with 0x0 in overwrite mode,
+ so data length is here allways constant
+
+Release 0.5.1, 2011-08-27
+-------------------------
+Documentation
+- Release information corrected
+
+Release 0.5.0, 2011-08-27
+-------------------------
+Example/OptionsDialog:
+- BugFix: No redefining of signal "accepted"
+- BugFix: Method "recect" removed
+- New Feature: Choose selection color
+
+QHexEdit:
+- New Feature: Select data with mouse and keyboard
+- New Feature: Cut, Copy and Paste functionality
+- BugFix: Ensure cursor visible now works properly
+- BugFix: When using mouse weel, qhexedit looses focus
+- BugFix: Changed status is independent on the content
+- Polishing: Nicer colors for highlighting, selection, and address area
+
diff --git a/example/images/find.png b/example/images/find.png
new file mode 100644
index 0000000..6ea35e9
--- /dev/null
+++ b/example/images/find.png
Binary files differ
diff --git a/example/images/open.png b/example/images/open.png
new file mode 100644
index 0000000..45fa288
--- /dev/null
+++ b/example/images/open.png
Binary files differ
diff --git a/example/images/qhexedit.ico b/example/images/qhexedit.ico
new file mode 100644
index 0000000..940808e
--- /dev/null
+++ b/example/images/qhexedit.ico
Binary files differ
diff --git a/example/images/qhexedit.svg b/example/images/qhexedit.svg
new file mode 100644
index 0000000..9064a4c
--- /dev/null
+++ b/example/images/qhexedit.svg
@@ -0,0 +1,157 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="39.881805mm"
+ height="39.744019mm"
+ viewBox="0 0 39.881805 39.744019"
+ version="1.1"
+ id="svg8"
+ inkscape:export-filename="/home/winni/Downloads/qhexedit16.png"
+ inkscape:export-xdpi="10.238628"
+ inkscape:export-ydpi="10.238628"
+ inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
+ sodipodi:docname="qhexedit.svg">
+ <defs
+ id="defs2">
+ <linearGradient
+ inkscape:collect="always"
+ id="linearGradient835">
+ <stop
+ style="stop-color:#c700c9;stop-opacity:1"
+ offset="0"
+ id="stop831" />
+ <stop
+ id="stop4549"
+ offset="0.27781248"
+ style="stop-color:#fe0000;stop-opacity:1" />
+ <stop
+ style="stop-color:#ffff00;stop-opacity:1"
+ offset="0.48380953"
+ id="stop4551" />
+ <stop
+ id="stop4553"
+ offset="0.64066964"
+ style="stop-color:#017f01;stop-opacity:1" />
+ <stop
+ style="stop-color:#010090;stop-opacity:1"
+ offset="0.86556548"
+ id="stop4593" />
+ <stop
+ style="stop-color:#010000;stop-opacity:1"
+ offset="1"
+ id="stop833" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient835"
+ id="linearGradient837"
+ x1="14.741072"
+ y1="12.572916"
+ x2="64.741074"
+ y2="62.572914"
+ gradientUnits="userSpaceOnUse" />
+ <clipPath
+ clipPathUnits="userSpaceOnUse"
+ id="clipPath4611">
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:19.75555611px;line-height:1.25;font-family:'DejaVu Sans Mono';-inkscape-font-specification:'DejaVu Sans Mono, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
+ x="16.252977"
+ y="32.227669"
+ id="text4619"><tspan
+ sodipodi:role="line"
+ id="tspan4613"
+ x="16.252977"
+ y="32.227669"
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:19.75555611px;font-family:'DejaVu Sans Mono';-inkscape-font-specification:'DejaVu Sans Mono, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332">0100</tspan><tspan
+ sodipodi:role="line"
+ x="16.252977"
+ y="56.922115"
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:19.75555611px;font-family:'DejaVu Sans Mono';-inkscape-font-specification:'DejaVu Sans Mono, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332"
+ id="tspan4615">0010</tspan><tspan
+ sodipodi:role="line"
+ x="16.252977"
+ y="81.616562"
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:19.75555611px;font-family:'DejaVu Sans Mono';-inkscape-font-specification:'DejaVu Sans Mono, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332"
+ id="tspan4617" /></text>
+ </clipPath>
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="1.4"
+ inkscape:cx="143.59901"
+ inkscape:cy="57.090638"
+ inkscape:document-units="mm"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:window-width="1323"
+ inkscape:window-height="1047"
+ inkscape:window-x="-4"
+ inkscape:window-y="0"
+ inkscape:window-maximized="0" />
+ <metadata
+ id="metadata5">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Ebene 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(-17.439468,-17.443269)">
+ <rect
+ style="opacity:0.831;fill:url(#linearGradient837);fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.26499999;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect829"
+ width="50"
+ height="50"
+ x="14.741072"
+ y="12.572916"
+ clip-path="url(#clipPath4611)"
+ inkscape:export-xdpi="40.901733"
+ inkscape:export-ydpi="40.901733"
+ transform="matrix(0.88285898,0,0,1.0027123,2.0428771,-0.16971566)" />
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:10.58333302px;line-height:1.25;font-family:'DejaVu Sans Mono';-inkscape-font-specification:'DejaVu Sans Mono, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
+ x="20.599701"
+ y="75.883926"
+ id="text4557"><tspan
+ sodipodi:role="line"
+ id="tspan4555"
+ x="20.599701"
+ y="85.247696"
+ style="stroke-width:0.26458332" /></text>
+ <flowRoot
+ xml:space="preserve"
+ id="flowRoot4567"
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:40px;line-height:1.25;font-family:'DejaVu Sans Mono';-inkscape-font-specification:'DejaVu Sans Mono, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none"
+ transform="scale(0.26458333)"><flowRegion
+ id="flowRegion4569"><rect
+ id="rect4571"
+ width="225.71428"
+ height="151.42857"
+ x="65"
+ y="268.94824" /></flowRegion><flowPara
+ id="flowPara4573"></flowPara></flowRoot> </g>
+</svg>
diff --git a/example/images/qhexedit16.png b/example/images/qhexedit16.png
new file mode 100644
index 0000000..8136b90
--- /dev/null
+++ b/example/images/qhexedit16.png
Binary files differ
diff --git a/example/images/qhexedit32.png b/example/images/qhexedit32.png
new file mode 100644
index 0000000..04466fc
--- /dev/null
+++ b/example/images/qhexedit32.png
Binary files differ
diff --git a/example/images/qhexedit64.png b/example/images/qhexedit64.png
new file mode 100644
index 0000000..f75aa4d
--- /dev/null
+++ b/example/images/qhexedit64.png
Binary files differ
diff --git a/example/images/redo.png b/example/images/redo.png
new file mode 100644
index 0000000..5591517
--- /dev/null
+++ b/example/images/redo.png
Binary files differ
diff --git a/example/images/save.png b/example/images/save.png
new file mode 100644
index 0000000..daba865
--- /dev/null
+++ b/example/images/save.png
Binary files differ
diff --git a/example/images/undo.png b/example/images/undo.png
new file mode 100644
index 0000000..8cf63a8
--- /dev/null
+++ b/example/images/undo.png
Binary files differ
diff --git a/example/main.cpp b/example/main.cpp
new file mode 100644
index 0000000..c742e45
--- /dev/null
+++ b/example/main.cpp
@@ -0,0 +1,30 @@
+#include <QApplication>
+#include <QIcon>
+
+#include "mainwindow.h"
+
+int main(int argc, char *argv[])
+{
+ Q_INIT_RESOURCE(qhexedit);
+ QApplication app(argc, argv);
+ app.setApplicationName("QHexEdit");
+ app.setOrganizationName("QHexEdit");
+ app.setWindowIcon(QIcon(":images/qhexedit.ico"));
+
+ // Identify locale and load translation if available
+ QString locale = QLocale::system().name();
+ QTranslator translator;
+ translator.load(QString("qhexedit_") + locale);
+ app.installTranslator(&translator);
+
+ QCommandLineParser parser;
+ parser.addPositionalArgument("file", "File to open");
+ parser.addHelpOption();
+ parser.process(app);
+ MainWindow *mainWin = new MainWindow;
+ if(!parser.positionalArguments().isEmpty())
+ mainWin->loadFile(parser.positionalArguments().at(0));
+ mainWin->show();
+
+ return app.exec();
+}
diff --git a/example/mainwindow.cpp b/example/mainwindow.cpp
new file mode 100644
index 0000000..fcfce71
--- /dev/null
+++ b/example/mainwindow.cpp
@@ -0,0 +1,433 @@
+#include <QFileDialog>
+#include <QMessageBox>
+#include <QApplication>
+#include <QStatusBar>
+#include <QLabel>
+#include <QAction>
+#include <QMenuBar>
+#include <QToolBar>
+#include <QColorDialog>
+#include <QFontDialog>
+#include <QDragEnterEvent>
+#include <QDropEvent>
+
+#include "mainwindow.h"
+
+/*****************************************************************************/
+/* Public methods */
+/*****************************************************************************/
+MainWindow::MainWindow()
+{
+ setAcceptDrops( true );
+ init();
+ setCurrentFile("");
+}
+
+/*****************************************************************************/
+/* Protected methods */
+/*****************************************************************************/
+void MainWindow::closeEvent(QCloseEvent *)
+{
+ writeSettings();
+}
+
+
+void MainWindow::dragEnterEvent(QDragEnterEvent *event)
+{
+ if (event->mimeData()->hasUrls())
+ event->accept();
+}
+
+
+void MainWindow::dropEvent(QDropEvent *event)
+{
+ if (event->mimeData()->hasUrls())
+ {
+ QList<QUrl> urls = event->mimeData()->urls();
+ QString filePath = urls.at(0).toLocalFile();
+ loadFile(filePath);
+ event->accept();
+ }
+}
+
+/*****************************************************************************/
+/* Private Slots */
+/*****************************************************************************/
+void MainWindow::about()
+{
+ QMessageBox::about(this, tr("About QHexEdit"),
+ tr("The QHexEdit example is a short Demo of the QHexEdit Widget."));
+}
+
+void MainWindow::dataChanged()
+{
+ setWindowModified(hexEdit->isModified());
+}
+
+void MainWindow::open()
+{
+ QString fileName = QFileDialog::getOpenFileName(this);
+ if (!fileName.isEmpty()) {
+ loadFile(fileName);
+ }
+}
+
+void MainWindow::optionsAccepted()
+{
+ writeSettings();
+ readSettings();
+}
+
+void MainWindow::findNext()
+{
+ searchDialog->findNext();
+}
+
+bool MainWindow::save()
+{
+ if (isUntitled) {
+ return saveAs();
+ } else {
+ return saveFile(curFile);
+ }
+}
+
+bool MainWindow::saveAs()
+{
+ QString fileName = QFileDialog::getSaveFileName(this, tr("Save As"),
+ curFile);
+ if (fileName.isEmpty())
+ return false;
+
+ return saveFile(fileName);
+}
+
+void MainWindow::saveSelectionToReadableFile()
+{
+ QString fileName = QFileDialog::getSaveFileName(this, tr("Save To Readable File"));
+ if (!fileName.isEmpty())
+ {
+ QFile file(fileName);
+ if (!file.open(QFile::WriteOnly | QFile::Text)) {
+ QMessageBox::warning(this, tr("QHexEdit"),
+ tr("Cannot write file %1:\n%2.")
+ .arg(fileName)
+ .arg(file.errorString()));
+ return;
+ }
+
+ QApplication::setOverrideCursor(Qt::WaitCursor);
+ file.write(hexEdit->selectionToReadableString().toLatin1());
+ QApplication::restoreOverrideCursor();
+
+ statusBar()->showMessage(tr("File saved"), 2000);
+ }
+}
+
+void MainWindow::saveToReadableFile()
+{
+ QString fileName = QFileDialog::getSaveFileName(this, tr("Save To Readable File"));
+ if (!fileName.isEmpty())
+ {
+ QFile file(fileName);
+ if (!file.open(QFile::WriteOnly | QFile::Text)) {
+ QMessageBox::warning(this, tr("QHexEdit"),
+ tr("Cannot write file %1:\n%2.")
+ .arg(fileName)
+ .arg(file.errorString()));
+ return;
+ }
+
+ QApplication::setOverrideCursor(Qt::WaitCursor);
+ file.write(hexEdit->toReadableString().toLatin1());
+ QApplication::restoreOverrideCursor();
+
+ statusBar()->showMessage(tr("File saved"), 2000);
+ }
+}
+
+void MainWindow::setAddress(qint64 address)
+{
+ lbAddress->setText(QString("%1").arg(address, 1, 16));
+}
+
+void MainWindow::setOverwriteMode(bool mode)
+{
+ QSettings settings;
+ settings.setValue("OverwriteMode", mode);
+ if (mode)
+ lbOverwriteMode->setText(tr("Overwrite"));
+ else
+ lbOverwriteMode->setText(tr("Insert"));
+}
+
+void MainWindow::setSize(qint64 size)
+{
+ lbSize->setText(QString("%1").arg(size));
+}
+
+void MainWindow::showOptionsDialog()
+{
+ optionsDialog->show();
+}
+
+void MainWindow::showSearchDialog()
+{
+ searchDialog->show();
+}
+
+/*****************************************************************************/
+/* Private Methods */
+/*****************************************************************************/
+void MainWindow::init()
+{
+ setAttribute(Qt::WA_DeleteOnClose);
+ optionsDialog = new OptionsDialog(this);
+ connect(optionsDialog, SIGNAL(accepted()), this, SLOT(optionsAccepted()));
+ isUntitled = true;
+
+ hexEdit = new QHexEdit;
+ setCentralWidget(hexEdit);
+ connect(hexEdit, SIGNAL(overwriteModeChanged(bool)), this, SLOT(setOverwriteMode(bool)));
+ connect(hexEdit, SIGNAL(dataChanged()), this, SLOT(dataChanged()));
+ searchDialog = new SearchDialog(hexEdit, this);
+
+ createActions();
+ createMenus();
+ createToolBars();
+ createStatusBar();
+
+ readSettings();
+
+ setUnifiedTitleAndToolBarOnMac(true);
+}
+
+void MainWindow::createActions()
+{
+ openAct = new QAction(QIcon(":/images/open.png"), tr("&Open..."), this);
+ openAct->setShortcuts(QKeySequence::Open);
+ openAct->setStatusTip(tr("Open an existing file"));
+ connect(openAct, SIGNAL(triggered()), this, SLOT(open()));
+
+ saveAct = new QAction(QIcon(":/images/save.png"), tr("&Save"), this);
+ saveAct->setShortcuts(QKeySequence::Save);
+ saveAct->setStatusTip(tr("Save the document to disk"));
+ connect(saveAct, SIGNAL(triggered()), this, SLOT(save()));
+
+ saveAsAct = new QAction(tr("Save &As..."), this);
+ saveAsAct->setShortcuts(QKeySequence::SaveAs);
+ saveAsAct->setStatusTip(tr("Save the document under a new name"));
+ connect(saveAsAct, SIGNAL(triggered()), this, SLOT(saveAs()));
+
+ saveReadable = new QAction(tr("Save &Readable..."), this);
+ saveReadable->setStatusTip(tr("Save document in readable form"));
+ connect(saveReadable, SIGNAL(triggered()), this, SLOT(saveToReadableFile()));
+
+ exitAct = new QAction(tr("E&xit"), this);
+ exitAct->setShortcuts(QKeySequence::Quit);
+ exitAct->setStatusTip(tr("Exit the application"));
+ connect(exitAct, SIGNAL(triggered()), qApp, SLOT(closeAllWindows()));
+
+ undoAct = new QAction(QIcon(":/images/undo.png"), tr("&Undo"), this);
+ undoAct->setShortcuts(QKeySequence::Undo);
+ connect(undoAct, SIGNAL(triggered()), hexEdit, SLOT(undo()));
+
+ redoAct = new QAction(QIcon(":/images/redo.png"), tr("&Redo"), this);
+ redoAct->setShortcuts(QKeySequence::Redo);
+ connect(redoAct, SIGNAL(triggered()), hexEdit, SLOT(redo()));
+
+ saveSelectionReadable = new QAction(tr("&Save Selection Readable..."), this);
+ saveSelectionReadable->setStatusTip(tr("Save selection in readable form"));
+ connect(saveSelectionReadable, SIGNAL(triggered()), this, SLOT(saveSelectionToReadableFile()));
+
+ aboutAct = new QAction(tr("&About"), this);
+ aboutAct->setStatusTip(tr("Show the application's About box"));
+ connect(aboutAct, SIGNAL(triggered()), this, SLOT(about()));
+
+ aboutQtAct = new QAction(tr("About &Qt"), this);
+ aboutQtAct->setStatusTip(tr("Show the Qt library's About box"));
+ connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
+
+ findAct = new QAction(QIcon(":/images/find.png"), tr("&Find/Replace"), this);
+ findAct->setShortcuts(QKeySequence::Find);
+ findAct->setStatusTip(tr("Show the Dialog for finding and replacing"));
+ connect(findAct, SIGNAL(triggered()), this, SLOT(showSearchDialog()));
+
+ findNextAct = new QAction(tr("Find &next"), this);
+ findNextAct->setShortcuts(QKeySequence::FindNext);
+ findNextAct->setStatusTip(tr("Find next occurrence of the searched pattern"));
+ connect(findNextAct, SIGNAL(triggered()), this, SLOT(findNext()));
+
+ optionsAct = new QAction(tr("&Options"), this);
+ optionsAct->setStatusTip(tr("Show the Dialog to select applications options"));
+ connect(optionsAct, SIGNAL(triggered()), this, SLOT(showOptionsDialog()));
+}
+
+void MainWindow::createMenus()
+{
+ fileMenu = menuBar()->addMenu(tr("&File"));
+ fileMenu->addAction(openAct);
+ fileMenu->addAction(saveAct);
+ fileMenu->addAction(saveAsAct);
+ fileMenu->addAction(saveReadable);
+ fileMenu->addSeparator();
+ fileMenu->addAction(exitAct);
+
+ editMenu = menuBar()->addMenu(tr("&Edit"));
+ editMenu->addAction(undoAct);
+ editMenu->addAction(redoAct);
+ editMenu->addAction(saveSelectionReadable);
+ editMenu->addSeparator();
+ editMenu->addAction(findAct);
+ editMenu->addAction(findNextAct);
+ editMenu->addSeparator();
+ editMenu->addAction(optionsAct);
+
+ helpMenu = menuBar()->addMenu(tr("&Help"));
+ helpMenu->addAction(aboutAct);
+ helpMenu->addAction(aboutQtAct);
+}
+
+void MainWindow::createStatusBar()
+{
+ // Address Label
+ lbAddressName = new QLabel();
+ lbAddressName->setText(tr("Address:"));
+ statusBar()->addPermanentWidget(lbAddressName);
+ lbAddress = new QLabel();
+ lbAddress->setFrameShape(QFrame::Panel);
+ lbAddress->setFrameShadow(QFrame::Sunken);
+ lbAddress->setMinimumWidth(70);
+ statusBar()->addPermanentWidget(lbAddress);
+ connect(hexEdit, SIGNAL(currentAddressChanged(qint64)), this, SLOT(setAddress(qint64)));
+
+ // Size Label
+ lbSizeName = new QLabel();
+ lbSizeName->setText(tr("Size:"));
+ statusBar()->addPermanentWidget(lbSizeName);
+ lbSize = new QLabel();
+ lbSize->setFrameShape(QFrame::Panel);
+ lbSize->setFrameShadow(QFrame::Sunken);
+ lbSize->setMinimumWidth(70);
+ statusBar()->addPermanentWidget(lbSize);
+ connect(hexEdit, SIGNAL(currentSizeChanged(qint64)), this, SLOT(setSize(qint64)));
+
+ // Overwrite Mode Label
+ lbOverwriteModeName = new QLabel();
+ lbOverwriteModeName->setText(tr("Mode:"));
+ statusBar()->addPermanentWidget(lbOverwriteModeName);
+ lbOverwriteMode = new QLabel();
+ lbOverwriteMode->setFrameShape(QFrame::Panel);
+ lbOverwriteMode->setFrameShadow(QFrame::Sunken);
+ lbOverwriteMode->setMinimumWidth(70);
+ statusBar()->addPermanentWidget(lbOverwriteMode);
+ setOverwriteMode(hexEdit->overwriteMode());
+
+ statusBar()->showMessage(tr("Ready"), 2000);
+}
+
+void MainWindow::createToolBars()
+{
+ fileToolBar = addToolBar(tr("File"));
+ fileToolBar->addAction(openAct);
+ fileToolBar->addAction(saveAct);
+ editToolBar = addToolBar(tr("Edit"));
+ editToolBar->addAction(undoAct);
+ editToolBar->addAction(redoAct);
+ editToolBar->addAction(findAct);
+}
+
+void MainWindow::loadFile(const QString &fileName)
+{
+ file.setFileName(fileName);
+ if (!hexEdit->setData(file)) {
+ QMessageBox::warning(this, tr("QHexEdit"),
+ tr("Cannot read file %1:\n%2.")
+ .arg(fileName)
+ .arg(file.errorString()));
+ return;
+ }
+ setCurrentFile(fileName);
+ statusBar()->showMessage(tr("File loaded"), 2000);
+}
+
+void MainWindow::readSettings()
+{
+ QSettings settings;
+ QPoint pos = settings.value("pos", QPoint(200, 200)).toPoint();
+ QSize size = settings.value("size", QSize(610, 460)).toSize();
+ move(pos);
+ resize(size);
+
+ hexEdit->setAddressArea(settings.value("AddressArea").toBool());
+ hexEdit->setAsciiArea(settings.value("AsciiArea").toBool());
+ hexEdit->setHighlighting(settings.value("Highlighting").toBool());
+ hexEdit->setOverwriteMode(settings.value("OverwriteMode").toBool());
+ hexEdit->setReadOnly(settings.value("ReadOnly").toBool());
+
+ hexEdit->setHighlightingColor(settings.value("HighlightingColor").value<QColor>());
+ hexEdit->setAddressAreaColor(settings.value("AddressAreaColor").value<QColor>());
+ hexEdit->setSelectionColor(settings.value("SelectionColor").value<QColor>());
+ hexEdit->setFont(settings.value("WidgetFont").value<QFont>());
+ hexEdit->setAddressFontColor(settings.value("AddressFontColor").value<QColor>());
+ hexEdit->setAsciiAreaColor(settings.value("AsciiAreaColor").value<QColor>());
+ hexEdit->setAsciiFontColor(settings.value("AsciiFontColor").value<QColor>());
+ hexEdit->setHexFontColor(settings.value("HexFontColor").value<QColor>());
+
+ hexEdit->setAddressWidth(settings.value("AddressAreaWidth").toInt());
+ hexEdit->setBytesPerLine(settings.value("BytesPerLine").toInt());
+ hexEdit->setHexCaps(settings.value("HexCaps", true).toBool());
+}
+
+bool MainWindow::saveFile(const QString &fileName)
+{
+ QString tmpFileName = fileName + ".~tmp";
+
+ QApplication::setOverrideCursor(Qt::WaitCursor);
+ QFile file(tmpFileName);
+ bool ok = hexEdit->write(file);
+ if (QFile::exists(fileName))
+ ok = QFile::remove(fileName);
+ if (ok)
+ {
+ file.setFileName(tmpFileName);
+ ok = file.copy(fileName);
+ if (ok)
+ ok = QFile::remove(tmpFileName);
+ }
+ QApplication::restoreOverrideCursor();
+
+ if (!ok) {
+ QMessageBox::warning(this, tr("QHexEdit"),
+ tr("Cannot write file %1.")
+ .arg(fileName));
+ return false;
+ }
+
+ setCurrentFile(fileName);
+ statusBar()->showMessage(tr("File saved"), 2000);
+ return true;
+}
+
+void MainWindow::setCurrentFile(const QString &fileName)
+{
+ curFile = QFileInfo(fileName).canonicalFilePath();
+ isUntitled = fileName.isEmpty();
+ setWindowModified(false);
+ if (fileName.isEmpty())
+ setWindowFilePath("QHexEdit");
+ else
+ setWindowFilePath(curFile + " - QHexEdit");
+}
+
+QString MainWindow::strippedName(const QString &fullFileName)
+{
+ return QFileInfo(fullFileName).fileName();
+}
+
+void MainWindow::writeSettings()
+{
+ QSettings settings;
+ settings.setValue("pos", pos());
+ settings.setValue("size", size());
+}
diff --git a/example/mainwindow.h b/example/mainwindow.h
new file mode 100644
index 0000000..751beec
--- /dev/null
+++ b/example/mainwindow.h
@@ -0,0 +1,98 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QMainWindow>
+
+#include "../src/qhexedit.h"
+#include "optionsdialog.h"
+#include "searchdialog.h"
+
+QT_BEGIN_NAMESPACE
+class QAction;
+class QMenu;
+class QUndoStack;
+class QLabel;
+class QDragEnterEvent;
+class QDropEvent;
+QT_END_NAMESPACE
+
+class MainWindow : public QMainWindow
+{
+ Q_OBJECT
+
+public:
+ MainWindow();
+
+protected:
+ void closeEvent(QCloseEvent *event);
+ void dragEnterEvent(QDragEnterEvent *event);
+ void dropEvent(QDropEvent *event);
+
+private slots:
+ void about();
+ void dataChanged();
+ void open();
+ void optionsAccepted();
+ void findNext();
+ bool save();
+ bool saveAs();
+ void saveSelectionToReadableFile();
+ void saveToReadableFile();
+ void setAddress(qint64 address);
+ void setOverwriteMode(bool mode);
+ void setSize(qint64 size);
+ void showOptionsDialog();
+ void showSearchDialog();
+
+public:
+ void loadFile(const QString &fileName);
+
+private:
+ void init();
+ void createActions();
+ void createMenus();
+ void createStatusBar();
+ void createToolBars();
+ void readSettings();
+ bool saveFile(const QString &fileName);
+ void setCurrentFile(const QString &fileName);
+ QString strippedName(const QString &fullFileName);
+ void writeSettings();
+
+ QString curFile;
+ QFile file;
+ bool isUntitled;
+
+ QMenu *fileMenu;
+ QMenu *editMenu;
+ QMenu *helpMenu;
+
+ QToolBar *fileToolBar;
+ QToolBar *editToolBar;
+
+ QAction *openAct;
+ QAction *saveAct;
+ QAction *saveAsAct;
+ QAction *saveReadable;
+ QAction *closeAct;
+ QAction *exitAct;
+
+ QAction *undoAct;
+ QAction *redoAct;
+ QAction *saveSelectionReadable;
+
+ QAction *aboutAct;
+ QAction *aboutQtAct;
+ QAction *optionsAct;
+ QAction *findAct;
+ QAction *findNextAct;
+
+ QHexEdit *hexEdit;
+ OptionsDialog *optionsDialog;
+ SearchDialog *searchDialog;
+ QLabel *lbAddress, *lbAddressName;
+ QLabel *lbOverwriteMode, *lbOverwriteModeName;
+ QLabel *lbSize, *lbSizeName;
+};
+
+#endif
diff --git a/example/optionsdialog.cpp b/example/optionsdialog.cpp
new file mode 100644
index 0000000..eda9408
--- /dev/null
+++ b/example/optionsdialog.cpp
@@ -0,0 +1,147 @@
+
+#include <QColorDialog>
+#include <QFontDialog>
+
+#include "optionsdialog.h"
+#include "ui_optionsdialog.h"
+
+OptionsDialog::OptionsDialog(QWidget *parent) :
+ QDialog(parent),
+ ui(new Ui::OptionsDialog)
+{
+ ui->setupUi(this);
+ readSettings();
+ writeSettings();
+}
+
+OptionsDialog::~OptionsDialog()
+{
+ delete ui;
+}
+
+void OptionsDialog::show()
+{
+ readSettings();
+ QWidget::show();
+}
+
+void OptionsDialog::accept()
+{
+ writeSettings();
+ emit accepted();
+ QDialog::hide();
+}
+
+void OptionsDialog::readSettings()
+{
+ QSettings settings;
+
+ ui->cbAddressArea->setChecked(settings.value("AddressArea", true).toBool());
+ ui->cbAsciiArea->setChecked(settings.value("AsciiArea", true).toBool());
+ ui->cbHighlighting->setChecked(settings.value("Highlighting", true).toBool());
+ ui->cbOverwriteMode->setChecked(settings.value("OverwriteMode", true).toBool());
+ ui->cbReadOnly->setChecked(settings.value("ReadOnly").toBool());
+
+ setColor(ui->lbHighlightingColor, settings.value("HighlightingColor", QColor(0xff, 0xff, 0x99, 0xff)).value<QColor>());
+ setColor(ui->lbAddressAreaColor, settings.value("AddressAreaColor", this->palette().alternateBase().color()).value<QColor>());
+ setColor(ui->lbSelectionColor, settings.value("SelectionColor", this->palette().highlight().color()).value<QColor>());
+ setColor(ui->lbAddressFontColor, settings.value("AddressFontColor", QPalette::WindowText).value<QColor>());
+ setColor(ui->lbAsciiAreaColor, settings.value("AsciiAreaColor", this->palette().alternateBase().color()).value<QColor>());
+ setColor(ui->lbAsciiFontColor, settings.value("AsciiFontColor", QPalette::WindowText).value<QColor>());
+ setColor(ui->lbHexFontColor, settings.value("HexFontColor", QPalette::WindowText).value<QColor>());
+#ifdef Q_OS_WIN32
+ ui->leWidgetFont->setFont(settings.value("WidgetFont", QFont("Courier", 10)).value<QFont>());
+#else
+ ui->leWidgetFont->setFont(settings.value("WidgetFont", QFont("Monospace", 10)).value<QFont>());
+#endif
+
+ ui->sbAddressAreaWidth->setValue(settings.value("AddressAreaWidth", 4).toInt());
+ ui->sbBytesPerLine->setValue(settings.value("BytesPerLine", 16).toInt());
+}
+
+void OptionsDialog::writeSettings()
+{
+ QSettings settings;
+ settings.setValue("AddressArea", ui->cbAddressArea->isChecked());
+ settings.setValue("AsciiArea", ui->cbAsciiArea->isChecked());
+ settings.setValue("Highlighting", ui->cbHighlighting->isChecked());
+ settings.setValue("OverwriteMode", ui->cbOverwriteMode->isChecked());
+ settings.setValue("ReadOnly", ui->cbReadOnly->isChecked());
+
+ settings.setValue("HighlightingColor", ui->lbHighlightingColor->palette().color(QPalette::Background));
+ settings.setValue("AddressAreaColor", ui->lbAddressAreaColor->palette().color(QPalette::Background));
+ settings.setValue("SelectionColor", ui->lbSelectionColor->palette().color(QPalette::Background));
+ settings.setValue("AddressFontColor", ui->lbAddressFontColor->palette().color(QPalette::Background));
+ settings.setValue("AsciiAreaColor", ui->lbAsciiAreaColor->palette().color(QPalette::Background));
+ settings.setValue("AsciiFontColor", ui->lbAsciiFontColor->palette().color(QPalette::Background));
+ settings.setValue("HexFontColor", ui->lbHexFontColor->palette().color(QPalette::Background));
+ settings.setValue("WidgetFont",ui->leWidgetFont->font());
+
+ settings.setValue("AddressAreaWidth", ui->sbAddressAreaWidth->value());
+ settings.setValue("BytesPerLine", ui->sbBytesPerLine->value());
+}
+
+void OptionsDialog::setColor(QWidget *widget, QColor color)
+{
+ QPalette palette = widget->palette();
+ palette.setColor(QPalette::Background, color);
+ widget->setPalette(palette);
+ widget->setAutoFillBackground(true);
+}
+
+void OptionsDialog::on_pbHighlightingColor_clicked()
+{
+ QColor color = QColorDialog::getColor(ui->lbHighlightingColor->palette().color(QPalette::Background), this);
+ if (color.isValid())
+ setColor(ui->lbHighlightingColor, color);
+}
+
+void OptionsDialog::on_pbAddressAreaColor_clicked()
+{
+ QColor color = QColorDialog::getColor(ui->lbAddressAreaColor->palette().color(QPalette::Background), this);
+ if (color.isValid())
+ setColor(ui->lbAddressAreaColor, color);
+}
+
+void OptionsDialog::on_pbAddressFontColor_clicked()
+{
+ QColor color = QColorDialog::getColor(ui->lbAddressFontColor->palette().color(QPalette::WindowText), this);
+ if (color.isValid())
+ setColor(ui->lbAddressFontColor, color);
+}
+
+void OptionsDialog::on_pbAsciiAreaColor_clicked()
+{
+ QColor color = QColorDialog::getColor(ui->lbAsciiAreaColor->palette().color(QPalette::Background), this);
+ if (color.isValid())
+ setColor(ui->lbAsciiAreaColor, color);
+}
+
+void OptionsDialog::on_pbAsciiFontColor_clicked()
+{
+ QColor color = QColorDialog::getColor(ui->lbAsciiFontColor->palette().color(QPalette::WindowText), this);
+ if (color.isValid())
+ setColor(ui->lbAsciiFontColor, color);
+}
+
+void OptionsDialog::on_pbHexFontColor_clicked()
+{
+ QColor color = QColorDialog::getColor(ui->lbHexFontColor->palette().color(QPalette::WindowText), this);
+ if (color.isValid())
+ setColor(ui->lbHexFontColor, color);
+}
+
+void OptionsDialog::on_pbSelectionColor_clicked()
+{
+ QColor color = QColorDialog::getColor(ui->lbSelectionColor->palette().color(QPalette::Background), this);
+ if (color.isValid())
+ setColor(ui->lbSelectionColor, color);
+}
+
+void OptionsDialog::on_pbWidgetFont_clicked()
+{
+ bool ok;
+ QFont font = QFontDialog::getFont(&ok, ui->leWidgetFont->font(), this);
+ if (ok)
+ ui->leWidgetFont->setFont(font);
+}
diff --git a/example/optionsdialog.h b/example/optionsdialog.h
new file mode 100644
index 0000000..6075917
--- /dev/null
+++ b/example/optionsdialog.h
@@ -0,0 +1,40 @@
+#ifndef OPTIONSDIALOG_H
+#define OPTIONSDIALOG_H
+
+#include <QtCore>
+#include <QDialog>
+
+namespace Ui {
+ class OptionsDialog;
+}
+
+class OptionsDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit OptionsDialog(QWidget *parent = 0);
+ ~OptionsDialog();
+ Ui::OptionsDialog *ui;
+ void show();
+
+public slots:
+ virtual void accept();
+
+private slots:
+ void on_pbHighlightingColor_clicked();
+ void on_pbAddressAreaColor_clicked();
+ void on_pbAddressFontColor_clicked();
+ void on_pbAsciiAreaColor_clicked();
+ void on_pbAsciiFontColor_clicked();
+ void on_pbHexFontColor_clicked();
+ void on_pbSelectionColor_clicked();
+ void on_pbWidgetFont_clicked();
+
+private:
+ void readSettings();
+ void writeSettings();
+ void setColor(QWidget *widget, QColor color);
+};
+
+#endif // OPTIONSDIALOG_H
diff --git a/example/optionsdialog.ui b/example/optionsdialog.ui
new file mode 100644
index 0000000..dcf542e
--- /dev/null
+++ b/example/optionsdialog.ui
@@ -0,0 +1,449 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>OptionsDialog</class>
+ <widget class="QDialog" name="OptionsDialog">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>374</width>
+ <height>754</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>QHexEdit - Options</string>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <widget class="QGroupBox" name="gbFlags">
+ <property name="title">
+ <string>Flags</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout_2">
+ <item row="1" column="1">
+ <widget class="QCheckBox" name="cbAddressArea">
+ <property name="text">
+ <string>Address Area</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QCheckBox" name="cbOverwriteMode">
+ <property name="text">
+ <string>Overwrite Mode</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0">
+ <widget class="QCheckBox" name="cbHighlighting">
+ <property name="text">
+ <string>Higlighting</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="1">
+ <widget class="QCheckBox" name="cbAsciiArea">
+ <property name="text">
+ <string>Ascii Area</string>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="0">
+ <widget class="QCheckBox" name="cbReadOnly">
+ <property name="text">
+ <string>ReadOnly</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="gbColors">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="title">
+ <string>Colors and Fonts</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="0">
+ <widget class="QPushButton" name="pbHighlightingColor">
+ <property name="text">
+ <string>Highlighting Color</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QLabel" name="lbHighlightingColor">
+ <property name="minimumSize">
+ <size>
+ <width>100</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>16777215</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::Panel</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Sunken</enum>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QPushButton" name="pbSelectionColor">
+ <property name="text">
+ <string>Selection Color</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QLabel" name="lbSelectionColor">
+ <property name="minimumSize">
+ <size>
+ <width>100</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>16777215</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::Panel</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Sunken</enum>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0">
+ <widget class="QPushButton" name="pbAddressAreaColor">
+ <property name="text">
+ <string>Address Area Color</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="1">
+ <widget class="QLabel" name="lbAddressAreaColor">
+ <property name="minimumSize">
+ <size>
+ <width>100</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>16777215</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::Panel</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Sunken</enum>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="0">
+ <widget class="QPushButton" name="pbAddressFontColor">
+ <property name="text">
+ <string>Address Font Color</string>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="1">
+ <widget class="QLabel" name="lbAddressFontColor">
+ <property name="minimumSize">
+ <size>
+ <width>100</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>16777215</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::Panel</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Sunken</enum>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="0">
+ <widget class="QPushButton" name="pbAsciiAreaColor">
+ <property name="text">
+ <string>ASCII Area Color</string>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="1">
+ <widget class="QLabel" name="lbAsciiAreaColor">
+ <property name="minimumSize">
+ <size>
+ <width>100</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>16777215</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::Panel</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Sunken</enum>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item row="5" column="0">
+ <widget class="QPushButton" name="pbAsciiFontColor">
+ <property name="text">
+ <string>ASCII Font Color</string>
+ </property>
+ </widget>
+ </item>
+ <item row="5" column="1">
+ <widget class="QLabel" name="lbAsciiFontColor">
+ <property name="minimumSize">
+ <size>
+ <width>100</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>16777215</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::Panel</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Sunken</enum>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item row="6" column="0">
+ <widget class="QPushButton" name="pbHexFontColor">
+ <property name="text">
+ <string>Hex Font Color</string>
+ </property>
+ </widget>
+ </item>
+ <item row="6" column="1">
+ <widget class="QLabel" name="lbHexFontColor">
+ <property name="minimumSize">
+ <size>
+ <width>100</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>16777215</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::Panel</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Sunken</enum>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item row="7" column="0">
+ <widget class="QPushButton" name="pbWidgetFont">
+ <property name="text">
+ <string>Widget Font</string>
+ </property>
+ </widget>
+ </item>
+ <item row="7" column="1">
+ <widget class="QLineEdit" name="leWidgetFont">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="font">
+ <font>
+ <family>Courier New</family>
+ <pointsize>10</pointsize>
+ </font>
+ </property>
+ <property name="text">
+ <string>01 23 45 67 89 ab cd ef</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="gbAddressAreaWidth">
+ <property name="title">
+ <string>Address Area</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout_3">
+ <item row="0" column="0">
+ <widget class="QLabel" name="lbAddressAreaWidth">
+ <property name="text">
+ <string>Address Area Width</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QSpinBox" name="sbAddressAreaWidth">
+ <property name="minimum">
+ <number>1</number>
+ </property>
+ <property name="maximum">
+ <number>6</number>
+ </property>
+ <property name="value">
+ <number>4</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="gbHexArea">
+ <property name="title">
+ <string>Hex Area</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout_4">
+ <item row="0" column="0">
+ <widget class="QLabel" name="lbBytesPerLine">
+ <property name="text">
+ <string>Bytes per Line</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QSpinBox" name="sbBytesPerLine">
+ <property name="minimum">
+ <number>1</number>
+ </property>
+ <property name="maximum">
+ <number>32</number>
+ </property>
+ <property name="value">
+ <number>16</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QDialogButtonBox" name="buttonBox">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="standardButtons">
+ <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <tabstops>
+ <tabstop>pbHighlightingColor</tabstop>
+ <tabstop>pbAddressAreaColor</tabstop>
+ <tabstop>buttonBox</tabstop>
+ </tabstops>
+ <resources/>
+ <connections>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>accepted()</signal>
+ <receiver>OptionsDialog</receiver>
+ <slot>accept()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>222</x>
+ <y>154</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>157</x>
+ <y>168</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>rejected()</signal>
+ <receiver>OptionsDialog</receiver>
+ <slot>reject()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>290</x>
+ <y>160</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>286</x>
+ <y>168</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+</ui>
diff --git a/example/qhexedit.pro b/example/qhexedit.pro
new file mode 100644
index 0000000..893cdb2
--- /dev/null
+++ b/example/qhexedit.pro
@@ -0,0 +1,45 @@
+greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
+
+HEADERS = \
+ mainwindow.h \
+ optionsdialog.h \
+ ../src/qhexedit.h \
+ ../src/chunks.h \
+ ../src/commands.h \
+ searchdialog.h
+
+
+SOURCES = \
+ main.cpp \
+ mainwindow.cpp \
+ optionsdialog.cpp \
+ ../src/qhexedit.cpp \
+ ../src/chunks.cpp \
+ ../src/commands.cpp \
+ searchdialog.cpp
+
+RESOURCES = \
+ qhexedit.qrc
+
+FORMS += \
+ optionsdialog.ui \
+ searchdialog.ui
+
+OTHER_FILES += \
+ ../build-example.bat \
+ ../build-python-bindings.bat \
+ ../build-example.sh \
+ ../build-python-bindings.sh \
+ ../deploy.nsi \
+ ../doc/release.txt \
+ ../doc/howtorelease.txt \
+ ../appveyor.yml \
+ ../readme.md \
+ ../setup.py \
+ ../src/qhexedit.sip
+
+TRANSLATIONS += \
+ translations/qhexedit_cs.ts \
+ translations/qhexedit_de.ts
+
+DEFINES += QHEXEDIT_EXPORTS
diff --git a/example/qhexedit.qrc b/example/qhexedit.qrc
new file mode 100644
index 0000000..428c536
--- /dev/null
+++ b/example/qhexedit.qrc
@@ -0,0 +1,10 @@
+<RCC>
+ <qresource prefix="/">
+ <file>images/open.png</file>
+ <file>images/save.png</file>
+ <file>images/undo.png</file>
+ <file>images/redo.png</file>
+ <file>images/find.png</file>
+ <file>images/qhexedit.ico</file>
+ </qresource>
+</RCC>
diff --git a/example/searchdialog.cpp b/example/searchdialog.cpp
new file mode 100644
index 0000000..7b9d9e7
--- /dev/null
+++ b/example/searchdialog.cpp
@@ -0,0 +1,115 @@
+#include "searchdialog.h"
+#include "ui_searchdialog.h"
+
+#include <QMessageBox>
+
+SearchDialog::SearchDialog(QHexEdit *hexEdit, QWidget *parent) :
+ QDialog(parent),
+ ui(new Ui::SearchDialog)
+{
+ ui->setupUi(this);
+ _hexEdit = hexEdit;
+}
+
+SearchDialog::~SearchDialog()
+{
+ delete ui;
+}
+
+qint64 SearchDialog::findNext()
+{
+ qint64 from = _hexEdit->cursorPosition() / 2;
+ _findBa = getContent(ui->cbFindFormat->currentIndex(), ui->cbFind->currentText());
+ qint64 idx = -1;
+
+ if (_findBa.length() > 0)
+ {
+ if (ui->cbBackwards->isChecked())
+ idx = _hexEdit->lastIndexOf(_findBa, from);
+ else
+ idx = _hexEdit->indexOf(_findBa, from);
+ }
+ return idx;
+}
+
+void SearchDialog::on_pbFind_clicked()
+{
+ findNext();
+}
+
+void SearchDialog::on_pbReplace_clicked()
+{
+ int idx = findNext();
+ if (idx >= 0)
+ {
+ QByteArray replaceBa = getContent(ui->cbReplaceFormat->currentIndex(), ui->cbReplace->currentText());
+ replaceOccurrence(idx, replaceBa);
+ }
+}
+
+void SearchDialog::on_pbReplaceAll_clicked()
+{
+ int replaceCounter = 0;
+ int idx = 0;
+ int goOn = QMessageBox::Yes;
+
+ while ((idx >= 0) && (goOn == QMessageBox::Yes))
+ {
+ idx = findNext();
+ if (idx >= 0)
+ {
+ QByteArray replaceBa = getContent(ui->cbReplaceFormat->currentIndex(), ui->cbReplace->currentText());
+ int result = replaceOccurrence(idx, replaceBa);
+
+ if (result == QMessageBox::Yes)
+ replaceCounter += 1;
+
+ if (result == QMessageBox::Cancel)
+ goOn = result;
+ }
+ }
+
+ if (replaceCounter > 0)
+ QMessageBox::information(this, tr("QHexEdit"), QString(tr("%1 occurrences replaced.")).arg(replaceCounter));
+}
+
+
+QByteArray SearchDialog::getContent(int comboIndex, const QString &input)
+{
+ QByteArray findBa;
+ switch (comboIndex)
+ {
+ case 0: // hex
+ findBa = QByteArray::fromHex(input.toLatin1());
+ break;
+ case 1: // text
+ findBa = input.toUtf8();
+ break;
+ }
+ return findBa;
+}
+
+qint64 SearchDialog::replaceOccurrence(qint64 idx, const QByteArray &replaceBa)
+{
+ int result = QMessageBox::Yes;
+ if (replaceBa.length() >= 0)
+ {
+ if (ui->cbPrompt->isChecked())
+ {
+ result = QMessageBox::question(this, tr("QHexEdit"),
+ tr("Replace occurrence?"),
+ QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel);
+
+ if (result == QMessageBox::Yes)
+ {
+ _hexEdit->replace(idx, replaceBa.length(), replaceBa);
+ _hexEdit->update();
+ }
+ }
+ else
+ {
+ _hexEdit->replace(idx, _findBa.length(), replaceBa);
+ }
+ }
+ return result;
+}
diff --git a/example/searchdialog.h b/example/searchdialog.h
new file mode 100644
index 0000000..74ab867
--- /dev/null
+++ b/example/searchdialog.h
@@ -0,0 +1,34 @@
+#ifndef SEARCHDIALOG_H
+#define SEARCHDIALOG_H
+
+#include <QDialog>
+#include <QtCore>
+#include "../src/qhexedit.h"
+
+namespace Ui {
+ class SearchDialog;
+}
+
+class SearchDialog : public QDialog
+{
+ Q_OBJECT
+public:
+ explicit SearchDialog(QHexEdit *hexEdit, QWidget *parent = 0);
+ ~SearchDialog();
+ qint64 findNext();
+ Ui::SearchDialog *ui;
+
+private slots:
+ void on_pbFind_clicked();
+ void on_pbReplace_clicked();
+ void on_pbReplaceAll_clicked();
+
+private:
+ QByteArray getContent(int comboIndex, const QString &input);
+ qint64 replaceOccurrence(qint64 idx, const QByteArray &replaceBa);
+
+ QHexEdit *_hexEdit;
+ QByteArray _findBa;
+};
+
+#endif // SEARCHDIALOG_H
diff --git a/example/searchdialog.ui b/example/searchdialog.ui
new file mode 100644
index 0000000..d98560f
--- /dev/null
+++ b/example/searchdialog.ui
@@ -0,0 +1,200 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>SearchDialog</class>
+ <widget class="QDialog" name="SearchDialog">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>436</width>
+ <height>223</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>QHexEdit - Find/Replace</string>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout_2">
+ <item>
+ <widget class="QGroupBox" name="gbFind">
+ <property name="title">
+ <string>Find</string>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <widget class="QComboBox" name="cbFindFormat">
+ <item>
+ <property name="text">
+ <string>Hex</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>UTF-8</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="cbFind">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="editable">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="gbReplace">
+ <property name="title">
+ <string>Replace</string>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <item>
+ <widget class="QComboBox" name="cbReplaceFormat">
+ <item>
+ <property name="text">
+ <string>Hex</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>UTF-8</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="cbReplace">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="editable">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="gbOptions">
+ <property name="title">
+ <string>Options</string>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout_3">
+ <item>
+ <widget class="QCheckBox" name="cbBackwards">
+ <property name="text">
+ <string>&amp;Backwards</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="cbPrompt">
+ <property name="text">
+ <string>&amp;Prompt on replace</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <widget class="QPushButton" name="pbFind">
+ <property name="text">
+ <string>&amp;Find</string>
+ </property>
+ <property name="shortcut">
+ <string>F3</string>
+ </property>
+ <property name="default">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="pbReplace">
+ <property name="text">
+ <string>&amp;Replace</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="pbReplaceAll">
+ <property name="text">
+ <string>Replace &amp;All</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="pbCancel">
+ <property name="text">
+ <string>&amp;Close</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ <tabstops>
+ <tabstop>cbFind</tabstop>
+ <tabstop>cbReplace</tabstop>
+ <tabstop>cbFindFormat</tabstop>
+ <tabstop>cbReplaceFormat</tabstop>
+ <tabstop>cbBackwards</tabstop>
+ <tabstop>cbPrompt</tabstop>
+ <tabstop>pbFind</tabstop>
+ <tabstop>pbReplace</tabstop>
+ <tabstop>pbReplaceAll</tabstop>
+ <tabstop>pbCancel</tabstop>
+ </tabstops>
+ <resources/>
+ <connections>
+ <connection>
+ <sender>pbCancel</sender>
+ <signal>clicked()</signal>
+ <receiver>SearchDialog</receiver>
+ <slot>hide()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>360</x>
+ <y>134</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>364</x>
+ <y>162</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+</ui>
diff --git a/example/translations/qhexedit_cs.qm b/example/translations/qhexedit_cs.qm
new file mode 100644
index 0000000..26a3d4f
--- /dev/null
+++ b/example/translations/qhexedit_cs.qm
Binary files differ
diff --git a/example/translations/qhexedit_cs.ts b/example/translations/qhexedit_cs.ts
new file mode 100644
index 0000000..43f4b38
--- /dev/null
+++ b/example/translations/qhexedit_cs.ts
@@ -0,0 +1,460 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="cs_CZ">
+<context>
+ <name>MainWindow</name>
+ <message>
+ <source>About HexEdit</source>
+ <translation type="obsolete">O HexEdit</translation>
+ </message>
+ <message>
+ <source>The HexEdit example is a short Demo of the QHexEdit Widget.</source>
+ <translation type="obsolete">Příklad HexEdit je krátká ukázka doplňku QHexEdit.</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="100"/>
+ <source>Save As</source>
+ <translation>Uložit jako</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="110"/>
+ <location filename="../mainwindow.cpp" line="132"/>
+ <source>Save To Readable File</source>
+ <translation>Uložit do Äitelného souboru</translation>
+ </message>
+ <message>
+ <source>HexEdit</source>
+ <translation type="obsolete">HexEdit</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="61"/>
+ <source>About QHexEdit</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="62"/>
+ <source>The QHexEdit example is a short Demo of the QHexEdit Widget.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="115"/>
+ <location filename="../mainwindow.cpp" line="137"/>
+ <location filename="../mainwindow.cpp" line="347"/>
+ <location filename="../mainwindow.cpp" line="399"/>
+ <source>QHexEdit</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="116"/>
+ <location filename="../mainwindow.cpp" line="138"/>
+ <source>Cannot write file %1:
+%2.</source>
+ <translation>Nelze zapsat soubor %1:
+%2.</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="126"/>
+ <location filename="../mainwindow.cpp" line="148"/>
+ <location filename="../mainwindow.cpp" line="406"/>
+ <source>File saved</source>
+ <translation>Soubor uložen</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="162"/>
+ <source>Overwrite</source>
+ <translation>Přepsat</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="164"/>
+ <source>Insert</source>
+ <translation>Vložit</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="210"/>
+ <source>&amp;Open...</source>
+ <translation>&amp;Otevřít...</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="212"/>
+ <source>Open an existing file</source>
+ <translation>Otevřít stávající soubor</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="215"/>
+ <source>&amp;Save</source>
+ <translation>&amp;Uložit</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="217"/>
+ <source>Save the document to disk</source>
+ <translation>Uložit dokument na disk</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="220"/>
+ <source>Save &amp;As...</source>
+ <translation>Uložit &amp;jako...</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="222"/>
+ <source>Save the document under a new name</source>
+ <translation>Uložit dokument pod novým názvem</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="225"/>
+ <source>Save &amp;Readable...</source>
+ <translation>Uložit Č&amp;itelné...</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="226"/>
+ <source>Save document in readable form</source>
+ <translation>Uložit dokument v Äitelné podobÄ›</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="229"/>
+ <source>E&amp;xit</source>
+ <translation>&amp;UkonÄit</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="231"/>
+ <source>Exit the application</source>
+ <translation>UkonÄit program</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="234"/>
+ <source>&amp;Undo</source>
+ <translation>&amp;Zpět</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="238"/>
+ <source>&amp;Redo</source>
+ <translation>&amp;Znovu</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="242"/>
+ <source>&amp;Save Selection Readable...</source>
+ <translation>&amp;Uložit výbÄ›r Äitelný...</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="243"/>
+ <source>Save selection in readable form</source>
+ <translation>Uložit výbÄ›r v Äitelné podobÄ›</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="246"/>
+ <source>&amp;About</source>
+ <translation>&amp;O programu</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="247"/>
+ <source>Show the application&apos;s About box</source>
+ <translation>Ukázat informace o programu</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="250"/>
+ <source>About &amp;Qt</source>
+ <translation>O &amp;Qt</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="251"/>
+ <source>Show the Qt library&apos;s About box</source>
+ <translation>Ukázat informace oknihovně Qt</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="261"/>
+ <source>Find next occurrence of the searched pattern</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="264"/>
+ <source>&amp;Options</source>
+ <translation>&amp;Volby</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="265"/>
+ <source>Show the Dialog to select applications options</source>
+ <translation>Ukázat dialog pro výběr voleb programu</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="337"/>
+ <source>Edit</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="400"/>
+ <source>Cannot write file %1.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="254"/>
+ <source>&amp;Find/Replace</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="41"/>
+ <source>Drop File: </source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="256"/>
+ <source>Show the Dialog for finding and replacing</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="259"/>
+ <source>Find &amp;next</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="271"/>
+ <source>&amp;File</source>
+ <translation>&amp;Soubor</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="279"/>
+ <source>&amp;Edit</source>
+ <translation>Ú&amp;pravy</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="289"/>
+ <source>&amp;Help</source>
+ <translation>&amp;Nápověda</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="298"/>
+ <source>Address:</source>
+ <translation>Adresa:</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="309"/>
+ <source>Size:</source>
+ <translation>Velikost:</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="320"/>
+ <source>Mode:</source>
+ <translation>Režim:</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="329"/>
+ <source>Ready</source>
+ <translation>Připraven</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="334"/>
+ <source>File</source>
+ <translation>Soubor</translation>
+ </message>
+ <message>
+ <source>SDI</source>
+ <translation type="vanished">SDI</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="348"/>
+ <source>Cannot read file %1:
+%2.</source>
+ <translation>Nelze Äíst soubor %1:
+%2.</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="354"/>
+ <source>File loaded</source>
+ <translation>Soubor nahrán</translation>
+ </message>
+</context>
+<context>
+ <name>OptionsDialog</name>
+ <message>
+ <source>Dialog</source>
+ <translation type="obsolete">Dialog</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="14"/>
+ <source>QHexEdit - Options</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="20"/>
+ <source>Flags</source>
+ <translation>Příznaky</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="26"/>
+ <source>ReadOnly</source>
+ <translation>PouzeProČtení</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="33"/>
+ <source>Higlighting</source>
+ <translation>Zvýraznění</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="40"/>
+ <source>Overwrite Mode</source>
+ <translation>Režim přepisu</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="47"/>
+ <location filename="../optionsdialog.ui" line="195"/>
+ <source>Address Area</source>
+ <translation>Oblast s adresou</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="54"/>
+ <source>Ascii Area</source>
+ <translation>Oblast ASCII</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="64"/>
+ <source>Colors and Fonts</source>
+ <translation>Barvy a písma</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="70"/>
+ <source>Highlighting Color</source>
+ <translation>Barva pro zvýraznění</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="102"/>
+ <source>Address Area Color</source>
+ <translation>Barva pro oblast s adresou</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="159"/>
+ <source>Selection Color</source>
+ <translation>Barva výběru</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="166"/>
+ <source>Widget Font</source>
+ <translation>Písmo doplňku</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="185"/>
+ <source>01 23 45 67 89 ab cd ef</source>
+ <translation>01 23 45 67 89 ab cd ef</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="201"/>
+ <source>Address Area Width</source>
+ <translation>Šířka oblasti s adresou</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="224"/>
+ <source>Hex Area</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="230"/>
+ <source>Bytes per Line</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>SearchDialog</name>
+ <message>
+ <source>Dialog</source>
+ <translation type="obsolete">Dialog</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="14"/>
+ <source>QHexEdit - Find/Replace</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="22"/>
+ <source>Find</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="29"/>
+ <location filename="../searchdialog.ui" line="65"/>
+ <source>Hex</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="34"/>
+ <location filename="../searchdialog.ui" line="70"/>
+ <source>UTF-8</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="58"/>
+ <source>Replace</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="94"/>
+ <source>Options</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="100"/>
+ <source>&amp;Backwards</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="107"/>
+ <source>&amp;Prompt on replace</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="121"/>
+ <source>&amp;Find</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="124"/>
+ <source>F3</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="134"/>
+ <source>&amp;Replace</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="141"/>
+ <source>Replace &amp;All</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="148"/>
+ <source>&amp;Close</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.cpp" line="73"/>
+ <location filename="../searchdialog.cpp" line="99"/>
+ <source>QHexEdit</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.cpp" line="73"/>
+ <source>%1 occurrences replaced.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.cpp" line="100"/>
+ <source>Replace occurrence?</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>UndoStack</name>
+ <message>
+ <location filename="../../src/commands.cpp" line="112"/>
+ <source>Inserting %1 bytes</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../../src/commands.cpp" line="134"/>
+ <source>Delete %1 chars</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../../src/commands.cpp" line="159"/>
+ <source>Overwrite %1 chars</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
diff --git a/example/translations/qhexedit_de.qm b/example/translations/qhexedit_de.qm
new file mode 100644
index 0000000..3346266
--- /dev/null
+++ b/example/translations/qhexedit_de.qm
Binary files differ
diff --git a/example/translations/qhexedit_de.ts b/example/translations/qhexedit_de.ts
new file mode 100644
index 0000000..3c9cbef
--- /dev/null
+++ b/example/translations/qhexedit_de.ts
@@ -0,0 +1,468 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="de_DE">
+<context>
+ <name>MainWindow</name>
+ <message>
+ <source>About HexEdit</source>
+ <translation type="obsolete">Ãœber HexEdit</translation>
+ </message>
+ <message>
+ <source>The HexEdit example is a short Demo of the QHexEdit Widget.</source>
+ <translation type="obsolete">Das HexEdit Beispiel ist eine einfache Demo Anwendung für das QHexEdit Widget.</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="100"/>
+ <source>Save As</source>
+ <translation>Speichern unter</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="110"/>
+ <location filename="../mainwindow.cpp" line="132"/>
+ <source>Save To Readable File</source>
+ <translation>Als lesbare Datei speichern</translation>
+ </message>
+ <message>
+ <source>HexEdit</source>
+ <translation type="obsolete">HexEdit</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="61"/>
+ <source>About QHexEdit</source>
+ <translation>Ãœber QHexEdit</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="62"/>
+ <source>The QHexEdit example is a short Demo of the QHexEdit Widget.</source>
+ <translation>Das QHexEdit Beispiel ist eine einfache Demo Anwendung für das QHexEdit Widget.</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="115"/>
+ <location filename="../mainwindow.cpp" line="137"/>
+ <location filename="../mainwindow.cpp" line="347"/>
+ <location filename="../mainwindow.cpp" line="399"/>
+ <source>QHexEdit</source>
+ <translation>QHexEdit</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="116"/>
+ <location filename="../mainwindow.cpp" line="138"/>
+ <source>Cannot write file %1:
+%2.</source>
+ <translation>Kann Detei %1 nicht schreiben:
+%2.</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="126"/>
+ <location filename="../mainwindow.cpp" line="148"/>
+ <location filename="../mainwindow.cpp" line="406"/>
+ <source>File saved</source>
+ <translation>Datei gespeichert</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="162"/>
+ <source>Overwrite</source>
+ <translation>Ãœberschreiben</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="164"/>
+ <source>Insert</source>
+ <translation>Einfügen</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="210"/>
+ <source>&amp;Open...</source>
+ <translation>Öf&amp;fnen...</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="212"/>
+ <source>Open an existing file</source>
+ <translation>Existierende Datei öffnen</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="215"/>
+ <source>&amp;Save</source>
+ <translation>&amp;Speichern</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="217"/>
+ <source>Save the document to disk</source>
+ <translation>Dokument auf Platte speichern</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="220"/>
+ <source>Save &amp;As...</source>
+ <translation>Speichern &amp;unter...</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="222"/>
+ <source>Save the document under a new name</source>
+ <translation>Dokument unter neuem Namen speichern</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="225"/>
+ <source>Save &amp;Readable...</source>
+ <translation>Als &amp;lesbare Datei speichern...</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="226"/>
+ <source>Save document in readable form</source>
+ <translation>Das Dokument in lesbarer From speichern</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="229"/>
+ <source>E&amp;xit</source>
+ <translation>&amp;Beenden</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="231"/>
+ <source>Exit the application</source>
+ <translation>Applikation beenden</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="234"/>
+ <source>&amp;Undo</source>
+ <translation>&amp;Wiederherstellen</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="238"/>
+ <source>&amp;Redo</source>
+ <translation>&amp;Rückgängig</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="242"/>
+ <source>&amp;Save Selection Readable...</source>
+ <translation>&amp;Auswahl in lesbarer Form speichern...</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="243"/>
+ <source>Save selection in readable form</source>
+ <translation>Speichere die Auswahl in lesbarer Form</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="246"/>
+ <source>&amp;About</source>
+ <translation>Ü&amp;ber</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="247"/>
+ <source>Show the application&apos;s About box</source>
+ <translation>Zeige Informationen zur Anwendungj</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="250"/>
+ <source>About &amp;Qt</source>
+ <translation>Ãœber &amp;Qt</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="251"/>
+ <source>Show the Qt library&apos;s About box</source>
+ <translation>Zeige Informationen über Qt</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="261"/>
+ <source>Find next occurrence of the searched pattern</source>
+ <translation>Zeige die nächste Fundstelle mit dem gleichen Suchmuster</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="264"/>
+ <source>&amp;Options</source>
+ <translation>&amp;Optionen</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="265"/>
+ <source>Show the Dialog to select applications options</source>
+ <translation>Zeige den Dialog, um Optionen der Anwendunge einzustellen</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="337"/>
+ <source>Edit</source>
+ <translation type="unfinished">Bearbeiten</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="400"/>
+ <source>Cannot write file %1.</source>
+ <translation type="unfinished">Kann Datei %1 nicht schreiben.</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="254"/>
+ <source>&amp;Find/Replace</source>
+ <translation>&amp;Suchen/Ersetzen</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="41"/>
+ <source>Drop File: </source>
+ <translation type="unfinished">Datei erhalten:</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="256"/>
+ <source>Show the Dialog for finding and replacing</source>
+ <translation>Zeige den Suchen/Ersetzen Dialog</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="259"/>
+ <source>Find &amp;next</source>
+ <translation>&amp;Weitersuchen</translation>
+ </message>
+ <message>
+ <source>Find next occurance of the sarched pattern</source>
+ <translation type="obsolete">Zeige die nächste Fundstelle mit dem gleichen Suchmuster</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="271"/>
+ <source>&amp;File</source>
+ <translation>&amp;Datei</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="279"/>
+ <source>&amp;Edit</source>
+ <translation>&amp;Beearbeiten</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="289"/>
+ <source>&amp;Help</source>
+ <translation>&amp;Hilfe</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="298"/>
+ <source>Address:</source>
+ <translation>Adresse:</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="309"/>
+ <source>Size:</source>
+ <translation>Größe:</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="320"/>
+ <source>Mode:</source>
+ <translation>Mode:</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="329"/>
+ <source>Ready</source>
+ <translation>Fertig</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="334"/>
+ <source>File</source>
+ <translation>Datei</translation>
+ </message>
+ <message>
+ <source>SDI</source>
+ <translation type="vanished">SDI</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="348"/>
+ <source>Cannot read file %1:
+%2.</source>
+ <translation>Kann Datei %1 nicht lesen:
+%2.</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="354"/>
+ <source>File loaded</source>
+ <translation>Datei geladen</translation>
+ </message>
+</context>
+<context>
+ <name>OptionsDialog</name>
+ <message>
+ <source>Dialog</source>
+ <translation type="obsolete">Optionen</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="14"/>
+ <source>QHexEdit - Options</source>
+ <translation>QHexEdit - Optionen</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="20"/>
+ <source>Flags</source>
+ <translation>Eigenschaften</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="26"/>
+ <source>ReadOnly</source>
+ <translation>Nur lesen</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="33"/>
+ <source>Higlighting</source>
+ <translation>Hervorheben</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="40"/>
+ <source>Overwrite Mode</source>
+ <translation>Ãœberschreibe Modus</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="47"/>
+ <location filename="../optionsdialog.ui" line="195"/>
+ <source>Address Area</source>
+ <translation>Adressfeld</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="54"/>
+ <source>Ascii Area</source>
+ <translation>Ascii-Feld</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="64"/>
+ <source>Colors and Fonts</source>
+ <translation>Farben und Schriftarten</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="70"/>
+ <source>Highlighting Color</source>
+ <translation>Farbe Hervorhebung</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="102"/>
+ <source>Address Area Color</source>
+ <translation>Farbe Adressfeld</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="159"/>
+ <source>Selection Color</source>
+ <translation>Farbe Markierung</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="166"/>
+ <source>Widget Font</source>
+ <translation>Font-Auswahl</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="185"/>
+ <source>01 23 45 67 89 ab cd ef</source>
+ <translation></translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="201"/>
+ <source>Address Area Width</source>
+ <translation></translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="224"/>
+ <source>Hex Area</source>
+ <translation type="unfinished">Hexadezimalfeld</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="230"/>
+ <source>Bytes per Line</source>
+ <translation type="unfinished">Bytes pro Zeile</translation>
+ </message>
+</context>
+<context>
+ <name>SearchDialog</name>
+ <message>
+ <source>Dialog</source>
+ <translation type="obsolete">Optionen</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="14"/>
+ <source>QHexEdit - Find/Replace</source>
+ <translation>QHexEdit - Suchen/Ersetzen</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="22"/>
+ <source>Find</source>
+ <translation>Suchen</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="29"/>
+ <location filename="../searchdialog.ui" line="65"/>
+ <source>Hex</source>
+ <translation>Hex</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="34"/>
+ <location filename="../searchdialog.ui" line="70"/>
+ <source>UTF-8</source>
+ <translation>UTF-8</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="58"/>
+ <source>Replace</source>
+ <translation>Ersetzen</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="94"/>
+ <source>Options</source>
+ <translation>Optionen</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="100"/>
+ <source>&amp;Backwards</source>
+ <translation>&amp;Rückwärts</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="107"/>
+ <source>&amp;Prompt on replace</source>
+ <translation>Vor dem Ersetzen &amp;nachfragen</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="121"/>
+ <source>&amp;Find</source>
+ <translation>&amp;Suchen</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="124"/>
+ <source>F3</source>
+ <translation></translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="134"/>
+ <source>&amp;Replace</source>
+ <translation>&amp;Ersetzen</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="141"/>
+ <source>Replace &amp;All</source>
+ <translation>&amp;Alle ersetzen</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="148"/>
+ <source>&amp;Close</source>
+ <translation>&amp;Schließen</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.cpp" line="73"/>
+ <location filename="../searchdialog.cpp" line="99"/>
+ <source>QHexEdit</source>
+ <translation>QHexEdit</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.cpp" line="73"/>
+ <source>%1 occurrences replaced.</source>
+ <translation>%1 Vorkommnisse ersetzt.</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.cpp" line="100"/>
+ <source>Replace occurrence?</source>
+ <translation>Vorkommnis ersetzen?</translation>
+ </message>
+ <message>
+ <source>Replace occurrance?</source>
+ <translation type="obsolete">Vorkommnis ersetzen?</translation>
+ </message>
+</context>
+<context>
+ <name>UndoStack</name>
+ <message>
+ <location filename="../../src/commands.cpp" line="112"/>
+ <source>Inserting %1 bytes</source>
+ <translation type="unfinished">%1 Bytes eingefügt</translation>
+ </message>
+ <message>
+ <location filename="../../src/commands.cpp" line="134"/>
+ <source>Delete %1 chars</source>
+ <translation type="unfinished">%1 Zeiche(n) gelöscht</translation>
+ </message>
+ <message>
+ <location filename="../../src/commands.cpp" line="159"/>
+ <source>Overwrite %1 chars</source>
+ <translation type="unfinished">%1 Zeichen überschrieben</translation>
+ </message>
+</context>
+</TS>
diff --git a/example/translations/qhexedit_ru.qm b/example/translations/qhexedit_ru.qm
new file mode 100644
index 0000000..936e9df
--- /dev/null
+++ b/example/translations/qhexedit_ru.qm
Binary files differ
diff --git a/example/translations/qhexedit_ru.ts b/example/translations/qhexedit_ru.ts
new file mode 100644
index 0000000..0beb03e
--- /dev/null
+++ b/example/translations/qhexedit_ru.ts
@@ -0,0 +1,432 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="ru_RU">
+<context>
+ <name>MainWindow</name>
+ <message>
+ <location filename="../mainwindow.cpp" line="58"/>
+ <source>About QHexEdit</source>
+ <translation>Про QHexEdit</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="59"/>
+ <source>The QHexEdit example is a short Demo of the QHexEdit Widget.</source>
+ <translation>QHexEdit пример Ñто ÐºÐ¾Ñ€Ð¾Ñ‚ÐºÐ°Ñ Ð´ÐµÐ¼Ð¾Ð½ÑÑ‚Ñ€Ð°Ñ†Ð¸Ñ Ñ€Ð°Ð±Ð¾Ñ‚Ñ‹ QHexEdit компоненты.</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="97"/>
+ <source>Save As</source>
+ <translation>Сохранить как</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="107"/>
+ <location filename="../mainwindow.cpp" line="129"/>
+ <source>Save To Readable File</source>
+ <translatorcomment>i hope it is text file with hex dump</translatorcomment>
+ <translation>Сохранить как читаемый файл</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="112"/>
+ <location filename="../mainwindow.cpp" line="134"/>
+ <location filename="../mainwindow.cpp" line="344"/>
+ <location filename="../mainwindow.cpp" line="396"/>
+ <source>QHexEdit</source>
+ <translation>QHexEdit</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="113"/>
+ <location filename="../mainwindow.cpp" line="135"/>
+ <source>Cannot write file %1:
+%2.</source>
+ <translation>Ðе могу запиÑать файл %1:
+%2.</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="123"/>
+ <location filename="../mainwindow.cpp" line="145"/>
+ <location filename="../mainwindow.cpp" line="403"/>
+ <source>File saved</source>
+ <translation>Файл Ñохранен</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="159"/>
+ <source>Overwrite</source>
+ <translation>Замена</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="161"/>
+ <source>Insert</source>
+ <translation>Ð’Ñтавка</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="207"/>
+ <source>&amp;Open...</source>
+ <translation>&amp;Открыть...</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="209"/>
+ <source>Open an existing file</source>
+ <translation>Открыть ÑущеÑтвующий файл</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="212"/>
+ <source>&amp;Save</source>
+ <translation>&amp;Сохранить</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="214"/>
+ <source>Save the document to disk</source>
+ <translation>Сохранить документ на диÑк</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="217"/>
+ <source>Save &amp;As...</source>
+ <translation>Сохранить &amp;как...</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="219"/>
+ <source>Save the document under a new name</source>
+ <translation>Сохранить документ под новым именем</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="222"/>
+ <source>Save &amp;Readable...</source>
+ <translation>Сохранить как &amp;читаемый...</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="223"/>
+ <source>Save document in readable form</source>
+ <translation>Сохранить документ в читабельной форме</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="226"/>
+ <source>E&amp;xit</source>
+ <translation>В&amp;ыход</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="228"/>
+ <source>Exit the application</source>
+ <translation>Выход из приложениÑ</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="231"/>
+ <source>&amp;Undo</source>
+ <translation>&amp;Отмена</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="235"/>
+ <source>&amp;Redo</source>
+ <translation>&amp;Повторение</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="239"/>
+ <source>&amp;Save Selection Readable...</source>
+ <translation>&amp;Сохранить выделеное читабельно...</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="240"/>
+ <source>Save selection in readable form</source>
+ <translation>Сохранить выделеное в читабельной форме</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="243"/>
+ <source>&amp;About</source>
+ <translation>&amp;О программе</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="244"/>
+ <source>Show the application&apos;s About box</source>
+ <translation>Показать Ñообщение раÑÑказывающее о программе</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="247"/>
+ <source>About &amp;Qt</source>
+ <translation>Про &amp;QT</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="248"/>
+ <source>Show the Qt library&apos;s About box</source>
+ <translation>Показать Ñообщение о библиотеке QT</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="251"/>
+ <source>&amp;Find/Replace</source>
+ <translation>&amp;ПоиÑк/Замена</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="253"/>
+ <source>Show the Dialog for finding and replacing</source>
+ <translation>Показать диалоговое окно Ð´Ð»Ñ Ð¿Ð¾Ð¸Ñка и замены</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="256"/>
+ <source>Find &amp;next</source>
+ <translation>Ðайти &amp;Ñледующий</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="258"/>
+ <source>Find next occurrence of the searched pattern</source>
+ <translation>Ðайти Ñледующие вхождение поиÑкового шаблона</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="261"/>
+ <source>&amp;Options</source>
+ <translation>&amp;ÐаÑтройки</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="262"/>
+ <source>Show the Dialog to select applications options</source>
+ <translation>Показать диалоговое окно Ð´Ð»Ñ ÑƒÑтановок приложениÑ</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="268"/>
+ <source>&amp;File</source>
+ <translation>&amp;Файл</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="276"/>
+ <source>&amp;Edit</source>
+ <translation>&amp;Редактирование</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="286"/>
+ <source>&amp;Help</source>
+ <translation>&amp;Помощь</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="295"/>
+ <source>Address:</source>
+ <translation>ÐдреÑ:</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="306"/>
+ <source>Size:</source>
+ <translation>Размер:</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="317"/>
+ <source>Mode:</source>
+ <translation>Режим:</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="326"/>
+ <source>Ready</source>
+ <translation>Готово</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="331"/>
+ <source>File</source>
+ <translation>Файл</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="334"/>
+ <source>Edit</source>
+ <translation>Редактирование</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="345"/>
+ <source>Cannot read file %1:
+%2.</source>
+ <translation>Ðе могу прочитать файл %1:
+%2.</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="351"/>
+ <source>File loaded</source>
+ <translation>Файл загружен</translation>
+ </message>
+ <message>
+ <location filename="../mainwindow.cpp" line="397"/>
+ <source>Cannot write file %1.</source>
+ <translation>Ðе могу запиÑать файл %1.</translation>
+ </message>
+</context>
+<context>
+ <name>OptionsDialog</name>
+ <message>
+ <location filename="../optionsdialog.ui" line="14"/>
+ <source>QHexEdit - Options</source>
+ <translation>QHexEdit - ÐаÑтройки</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="20"/>
+ <source>Flags</source>
+ <translation>Флаги</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="26"/>
+ <source>ReadOnly</source>
+ <translation>Только чтение</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="33"/>
+ <source>Higlighting</source>
+ <translation>ПодÑвечивание</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="40"/>
+ <source>Overwrite Mode</source>
+ <translation>Режим замены</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="47"/>
+ <location filename="../optionsdialog.ui" line="195"/>
+ <source>Address Area</source>
+ <translation>ÐдреÑÐ½Ð°Ñ Ð¾Ð±Ð»Ð°ÑÑ‚ÑŒ</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="54"/>
+ <source>Ascii Area</source>
+ <translation>ОблаÑÑ‚ÑŒ ASCII</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="64"/>
+ <source>Colors and Fonts</source>
+ <translation>Цвета и Шрифты</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="70"/>
+ <source>Highlighting Color</source>
+ <translation>Цвет подÑвечиваниÑ</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="102"/>
+ <source>Address Area Color</source>
+ <translation>Цвет адреÑной облаÑти</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="159"/>
+ <source>Selection Color</source>
+ <translation>Цвет Ð´Ð»Ñ Ð²Ñ‹Ð±Ñ€Ð°Ð½Ð¾Ð¹ облаÑти</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="166"/>
+ <source>Widget Font</source>
+ <translation>Шрифт Ð´Ð»Ñ ÐºÐ¾Ð¼Ð¿Ð¾Ð½ÐµÐ½Ñ‚Ñ‹</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="185"/>
+ <source>01 23 45 67 89 ab cd ef</source>
+ <translation>01 23 45 67 89 ab cd ef</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="201"/>
+ <source>Address Area Width</source>
+ <translation>Ширина адреÑной облаÑти</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="224"/>
+ <source>Hex Area</source>
+ <translation>ШеÑÑ‚Ð½Ð°Ð´Ñ†Ð°Ñ‚Ð¸Ñ€Ð¸Ñ‡Ð½Ð°Ñ Ð¾Ð±Ð»Ð°ÑÑ‚ÑŒ</translation>
+ </message>
+ <message>
+ <location filename="../optionsdialog.ui" line="230"/>
+ <source>Bytes per Line</source>
+ <translation>Байт в Ñтроке</translation>
+ </message>
+</context>
+<context>
+ <name>SearchDialog</name>
+ <message>
+ <location filename="../searchdialog.ui" line="14"/>
+ <source>QHexEdit - Find/Replace</source>
+ <translation>QHExEdit - ПоиÑк/Замена</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="22"/>
+ <source>Find</source>
+ <translation>Ðайти</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="29"/>
+ <location filename="../searchdialog.ui" line="65"/>
+ <source>Hex</source>
+ <translation>Hex</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="34"/>
+ <location filename="../searchdialog.ui" line="70"/>
+ <source>UTF-8</source>
+ <translation>UTF-8</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="58"/>
+ <source>Replace</source>
+ <translation>Замена</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="94"/>
+ <source>Options</source>
+ <translation>ÐаÑтройки</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="100"/>
+ <source>&amp;Backwards</source>
+ <translation>&amp;Обратный поиÑк</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="107"/>
+ <source>&amp;Prompt on replace</source>
+ <translation>&amp;Предупреждать перед заменой</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="121"/>
+ <source>&amp;Find</source>
+ <translation>&amp;Ðайти</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="124"/>
+ <source>F3</source>
+ <translation>F3</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="134"/>
+ <source>&amp;Replace</source>
+ <translation>За&amp;менить</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="141"/>
+ <source>Replace &amp;All</source>
+ <translation>Заменить &amp;вÑÑ‘</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.ui" line="148"/>
+ <source>&amp;Close</source>
+ <translation>&amp;Закрыть</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.cpp" line="73"/>
+ <location filename="../searchdialog.cpp" line="99"/>
+ <source>QHexEdit</source>
+ <translation>QHexEdit</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.cpp" line="73"/>
+ <source>%1 occurrences replaced.</source>
+ <translation>%1 найденых фрагментов заменено.</translation>
+ </message>
+ <message>
+ <location filename="../searchdialog.cpp" line="100"/>
+ <source>Replace occurrence?</source>
+ <translation>заменить найденое?</translation>
+ </message>
+</context>
+<context>
+ <name>UndoStack</name>
+ <message>
+ <location filename="../../src/commands.cpp" line="112"/>
+ <source>Inserting %1 bytes</source>
+ <translation>Ð’Ñтавить %1 байт</translation>
+ </message>
+ <message>
+ <location filename="../../src/commands.cpp" line="134"/>
+ <source>Delete %1 chars</source>
+ <translation>Удалить %1 Ñимволов</translation>
+ </message>
+ <message>
+ <location filename="../../src/commands.cpp" line="159"/>
+ <source>Overwrite %1 chars</source>
+ <translation>Заменить %1 Ñимволов</translation>
+ </message>
+</context>
+</TS>
diff --git a/project.py b/project.py
new file mode 100644
index 0000000..c9ee67f
--- /dev/null
+++ b/project.py
@@ -0,0 +1,29 @@
+"""The build configuration file for QHexEdit, used by sip."""
+
+import os
+from os.path import abspath, join
+from sipbuild import Option
+from pyqtbuild import PyQtBindings, PyQtProject
+import PyQt5
+
+
+class QHexEditProject(PyQtProject):
+ """The QHexEdit Project class."""
+
+ def __init__(self):
+ super().__init__()
+ self.bindings_factories = [QHexEditBindings]
+
+ def update(self, tool):
+ """Allows SIP to find PyQt5 .sip files."""
+ super().update(tool)
+ self.sip_include_dirs.append(join(PyQt5.__path__[0], 'bindings'))
+
+
+class QHexEditBindings(PyQtBindings):
+ """The QHexEdit Bindings class."""
+
+ def __init__(self, project):
+ super().__init__(project, name='QHexEdit',
+ sip_file='qhexedit.sip',
+ qmake_QT=['widgets'])
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..b5edaa4
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,14 @@
+[build-system]
+requires = ["sip >=5", "PyQt-builder", "PyQt5"]
+build-backend = "sipbuild.api"
+
+[tool.sip.metadata]
+name = "QHexEdit"
+version = "0.8.9"
+
+[tools.sip]
+abi-version = "12.8"
+project-factory = "pyqtbuild:PyQtProject"
+
+[tool.sip.project]
+sip-files-dir = "src"
diff --git a/python/python2_pyqt4/Ui_optionsdialog.py b/python/python2_pyqt4/Ui_optionsdialog.py
new file mode 100644
index 0000000..3487708
--- /dev/null
+++ b/python/python2_pyqt4/Ui_optionsdialog.py
@@ -0,0 +1,150 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'optionsdialog.ui'
+#
+# Created: Thu May 28 21:45:32 2015
+# by: PyQt4 UI code generator 4.10.4
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt4 import QtCore, QtGui
+
+try:
+ _fromUtf8 = QtCore.QString.fromUtf8
+except AttributeError:
+ def _fromUtf8(s):
+ return s
+
+try:
+ _encoding = QtGui.QApplication.UnicodeUTF8
+ def _translate(context, text, disambig):
+ return QtGui.QApplication.translate(context, text, disambig, _encoding)
+except AttributeError:
+ def _translate(context, text, disambig):
+ return QtGui.QApplication.translate(context, text, disambig)
+
+class Ui_OptionsDialog(object):
+ def setupUi(self, OptionsDialog):
+ OptionsDialog.setObjectName(_fromUtf8("OptionsDialog"))
+ OptionsDialog.resize(395, 351)
+ self.verticalLayout = QtGui.QVBoxLayout(OptionsDialog)
+ self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
+ self.gbFlags = QtGui.QGroupBox(OptionsDialog)
+ self.gbFlags.setObjectName(_fromUtf8("gbFlags"))
+ self.gridLayout_2 = QtGui.QGridLayout(self.gbFlags)
+ self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
+ self.cbReadOnly = QtGui.QCheckBox(self.gbFlags)
+ self.cbReadOnly.setObjectName(_fromUtf8("cbReadOnly"))
+ self.gridLayout_2.addWidget(self.cbReadOnly, 3, 0, 1, 1)
+ self.cbHighlighting = QtGui.QCheckBox(self.gbFlags)
+ self.cbHighlighting.setObjectName(_fromUtf8("cbHighlighting"))
+ self.gridLayout_2.addWidget(self.cbHighlighting, 2, 0, 1, 1)
+ self.cbOverwriteMode = QtGui.QCheckBox(self.gbFlags)
+ self.cbOverwriteMode.setObjectName(_fromUtf8("cbOverwriteMode"))
+ self.gridLayout_2.addWidget(self.cbOverwriteMode, 1, 0, 1, 1)
+ self.cbAddressArea = QtGui.QCheckBox(self.gbFlags)
+ self.cbAddressArea.setObjectName(_fromUtf8("cbAddressArea"))
+ self.gridLayout_2.addWidget(self.cbAddressArea, 1, 1, 1, 1)
+ self.cbAsciiArea = QtGui.QCheckBox(self.gbFlags)
+ self.cbAsciiArea.setObjectName(_fromUtf8("cbAsciiArea"))
+ self.gridLayout_2.addWidget(self.cbAsciiArea, 2, 1, 1, 1)
+ self.verticalLayout.addWidget(self.gbFlags)
+ self.gbColors = QtGui.QGroupBox(OptionsDialog)
+ self.gbColors.setObjectName(_fromUtf8("gbColors"))
+ self.gridLayout = QtGui.QGridLayout(self.gbColors)
+ self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
+ self.pbHighlightingColor = QtGui.QPushButton(self.gbColors)
+ self.pbHighlightingColor.setObjectName(_fromUtf8("pbHighlightingColor"))
+ self.gridLayout.addWidget(self.pbHighlightingColor, 0, 0, 1, 1)
+ self.lbHighlightingColor = QtGui.QLabel(self.gbColors)
+ self.lbHighlightingColor.setMinimumSize(QtCore.QSize(100, 0))
+ self.lbHighlightingColor.setMaximumSize(QtCore.QSize(16777215, 16777215))
+ self.lbHighlightingColor.setFrameShape(QtGui.QFrame.Panel)
+ self.lbHighlightingColor.setFrameShadow(QtGui.QFrame.Sunken)
+ self.lbHighlightingColor.setText(_fromUtf8(""))
+ self.lbHighlightingColor.setObjectName(_fromUtf8("lbHighlightingColor"))
+ self.gridLayout.addWidget(self.lbHighlightingColor, 0, 1, 1, 1)
+ self.pbAddressAreaColor = QtGui.QPushButton(self.gbColors)
+ self.pbAddressAreaColor.setObjectName(_fromUtf8("pbAddressAreaColor"))
+ self.gridLayout.addWidget(self.pbAddressAreaColor, 1, 0, 2, 1)
+ self.lbAddressAreaColor = QtGui.QLabel(self.gbColors)
+ self.lbAddressAreaColor.setMinimumSize(QtCore.QSize(100, 0))
+ self.lbAddressAreaColor.setMaximumSize(QtCore.QSize(16777215, 16777215))
+ self.lbAddressAreaColor.setFrameShape(QtGui.QFrame.Panel)
+ self.lbAddressAreaColor.setFrameShadow(QtGui.QFrame.Sunken)
+ self.lbAddressAreaColor.setText(_fromUtf8(""))
+ self.lbAddressAreaColor.setObjectName(_fromUtf8("lbAddressAreaColor"))
+ self.gridLayout.addWidget(self.lbAddressAreaColor, 1, 1, 2, 1)
+ self.lbSelectionColor = QtGui.QLabel(self.gbColors)
+ self.lbSelectionColor.setMinimumSize(QtCore.QSize(100, 0))
+ self.lbSelectionColor.setMaximumSize(QtCore.QSize(16777215, 16777215))
+ self.lbSelectionColor.setFrameShape(QtGui.QFrame.Panel)
+ self.lbSelectionColor.setFrameShadow(QtGui.QFrame.Sunken)
+ self.lbSelectionColor.setText(_fromUtf8(""))
+ self.lbSelectionColor.setObjectName(_fromUtf8("lbSelectionColor"))
+ self.gridLayout.addWidget(self.lbSelectionColor, 3, 1, 1, 1)
+ self.pbSelectionColor = QtGui.QPushButton(self.gbColors)
+ self.pbSelectionColor.setObjectName(_fromUtf8("pbSelectionColor"))
+ self.gridLayout.addWidget(self.pbSelectionColor, 3, 0, 1, 1)
+ self.pbWidgetFont = QtGui.QPushButton(self.gbColors)
+ self.pbWidgetFont.setObjectName(_fromUtf8("pbWidgetFont"))
+ self.gridLayout.addWidget(self.pbWidgetFont, 4, 0, 1, 1)
+ self.leWidgetFont = QtGui.QLineEdit(self.gbColors)
+ sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.leWidgetFont.sizePolicy().hasHeightForWidth())
+ self.leWidgetFont.setSizePolicy(sizePolicy)
+ font = QtGui.QFont()
+ font.setFamily(_fromUtf8("Courier New"))
+ font.setPointSize(10)
+ self.leWidgetFont.setFont(font)
+ self.leWidgetFont.setObjectName(_fromUtf8("leWidgetFont"))
+ self.gridLayout.addWidget(self.leWidgetFont, 4, 1, 1, 1)
+ self.verticalLayout.addWidget(self.gbColors)
+ self.gbAddressAreaWidth = QtGui.QGroupBox(OptionsDialog)
+ self.gbAddressAreaWidth.setObjectName(_fromUtf8("gbAddressAreaWidth"))
+ self.gridLayout_3 = QtGui.QGridLayout(self.gbAddressAreaWidth)
+ self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
+ self.lbAddressAreaWidth = QtGui.QLabel(self.gbAddressAreaWidth)
+ self.lbAddressAreaWidth.setObjectName(_fromUtf8("lbAddressAreaWidth"))
+ self.gridLayout_3.addWidget(self.lbAddressAreaWidth, 0, 0, 1, 1)
+ self.sbAddressAreaWidth = QtGui.QSpinBox(self.gbAddressAreaWidth)
+ self.sbAddressAreaWidth.setMinimum(1)
+ self.sbAddressAreaWidth.setMaximum(6)
+ self.sbAddressAreaWidth.setProperty("value", 4)
+ self.sbAddressAreaWidth.setObjectName(_fromUtf8("sbAddressAreaWidth"))
+ self.gridLayout_3.addWidget(self.sbAddressAreaWidth, 0, 1, 1, 1)
+ self.verticalLayout.addWidget(self.gbAddressAreaWidth)
+ spacerItem = QtGui.QSpacerItem(20, 28, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem)
+ self.buttonBox = QtGui.QDialogButtonBox(OptionsDialog)
+ self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
+ self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
+ self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
+ self.verticalLayout.addWidget(self.buttonBox)
+
+ self.retranslateUi(OptionsDialog)
+ QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), OptionsDialog.accept)
+ QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), OptionsDialog.reject)
+ QtCore.QMetaObject.connectSlotsByName(OptionsDialog)
+ OptionsDialog.setTabOrder(self.pbHighlightingColor, self.pbAddressAreaColor)
+ OptionsDialog.setTabOrder(self.pbAddressAreaColor, self.buttonBox)
+
+ def retranslateUi(self, OptionsDialog):
+ OptionsDialog.setWindowTitle(_translate("OptionsDialog", "Dialog", None))
+ self.gbFlags.setTitle(_translate("OptionsDialog", "Flags", None))
+ self.cbReadOnly.setText(_translate("OptionsDialog", "ReadOnly", None))
+ self.cbHighlighting.setText(_translate("OptionsDialog", "Higlighting", None))
+ self.cbOverwriteMode.setText(_translate("OptionsDialog", "Overwrite Mode", None))
+ self.cbAddressArea.setText(_translate("OptionsDialog", "Address Area", None))
+ self.cbAsciiArea.setText(_translate("OptionsDialog", "Ascii Area", None))
+ self.gbColors.setTitle(_translate("OptionsDialog", "Colors and Fonts", None))
+ self.pbHighlightingColor.setText(_translate("OptionsDialog", "Highlighting Color", None))
+ self.pbAddressAreaColor.setText(_translate("OptionsDialog", "Address Area Color", None))
+ self.pbSelectionColor.setText(_translate("OptionsDialog", "Selection Color", None))
+ self.pbWidgetFont.setText(_translate("OptionsDialog", "Widget Font", None))
+ self.leWidgetFont.setText(_translate("OptionsDialog", "01 23 45 67 89 ab cd ef", None))
+ self.gbAddressAreaWidth.setTitle(_translate("OptionsDialog", "Address Area", None))
+ self.lbAddressAreaWidth.setText(_translate("OptionsDialog", "Address Area Width", None))
+
diff --git a/python/python2_pyqt4/Ui_searchdialog.py b/python/python2_pyqt4/Ui_searchdialog.py
new file mode 100644
index 0000000..e5fb121
--- /dev/null
+++ b/python/python2_pyqt4/Ui_searchdialog.py
@@ -0,0 +1,132 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'searchdialog.ui'
+#
+# Created: Thu May 28 21:45:19 2015
+# by: PyQt4 UI code generator 4.10.4
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt4 import QtCore, QtGui
+
+try:
+ _fromUtf8 = QtCore.QString.fromUtf8
+except AttributeError:
+ def _fromUtf8(s):
+ return s
+
+try:
+ _encoding = QtGui.QApplication.UnicodeUTF8
+ def _translate(context, text, disambig):
+ return QtGui.QApplication.translate(context, text, disambig, _encoding)
+except AttributeError:
+ def _translate(context, text, disambig):
+ return QtGui.QApplication.translate(context, text, disambig)
+
+class Ui_SearchDialog(object):
+ def setupUi(self, SearchDialog):
+ SearchDialog.setObjectName(_fromUtf8("SearchDialog"))
+ SearchDialog.resize(436, 223)
+ self.horizontalLayout_3 = QtGui.QHBoxLayout(SearchDialog)
+ self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
+ self.verticalLayout_2 = QtGui.QVBoxLayout()
+ self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
+ self.gbFind = QtGui.QGroupBox(SearchDialog)
+ self.gbFind.setObjectName(_fromUtf8("gbFind"))
+ self.horizontalLayout = QtGui.QHBoxLayout(self.gbFind)
+ self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
+ self.cbFindFormat = QtGui.QComboBox(self.gbFind)
+ self.cbFindFormat.setObjectName(_fromUtf8("cbFindFormat"))
+ self.cbFindFormat.addItem(_fromUtf8(""))
+ self.cbFindFormat.addItem(_fromUtf8(""))
+ self.horizontalLayout.addWidget(self.cbFindFormat)
+ self.cbFind = QtGui.QComboBox(self.gbFind)
+ sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.cbFind.sizePolicy().hasHeightForWidth())
+ self.cbFind.setSizePolicy(sizePolicy)
+ self.cbFind.setEditable(True)
+ self.cbFind.setObjectName(_fromUtf8("cbFind"))
+ self.horizontalLayout.addWidget(self.cbFind)
+ self.verticalLayout_2.addWidget(self.gbFind)
+ self.gbReplace = QtGui.QGroupBox(SearchDialog)
+ self.gbReplace.setObjectName(_fromUtf8("gbReplace"))
+ self.horizontalLayout_2 = QtGui.QHBoxLayout(self.gbReplace)
+ self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
+ self.cbReplaceFormat = QtGui.QComboBox(self.gbReplace)
+ self.cbReplaceFormat.setObjectName(_fromUtf8("cbReplaceFormat"))
+ self.cbReplaceFormat.addItem(_fromUtf8(""))
+ self.cbReplaceFormat.addItem(_fromUtf8(""))
+ self.horizontalLayout_2.addWidget(self.cbReplaceFormat)
+ self.cbReplace = QtGui.QComboBox(self.gbReplace)
+ sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.cbReplace.sizePolicy().hasHeightForWidth())
+ self.cbReplace.setSizePolicy(sizePolicy)
+ self.cbReplace.setEditable(True)
+ self.cbReplace.setObjectName(_fromUtf8("cbReplace"))
+ self.horizontalLayout_2.addWidget(self.cbReplace)
+ self.verticalLayout_2.addWidget(self.gbReplace)
+ self.gbOptions = QtGui.QGroupBox(SearchDialog)
+ self.gbOptions.setObjectName(_fromUtf8("gbOptions"))
+ self.verticalLayout_3 = QtGui.QVBoxLayout(self.gbOptions)
+ self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
+ self.cbBackwards = QtGui.QCheckBox(self.gbOptions)
+ self.cbBackwards.setObjectName(_fromUtf8("cbBackwards"))
+ self.verticalLayout_3.addWidget(self.cbBackwards)
+ self.cbPrompt = QtGui.QCheckBox(self.gbOptions)
+ self.cbPrompt.setObjectName(_fromUtf8("cbPrompt"))
+ self.verticalLayout_3.addWidget(self.cbPrompt)
+ self.verticalLayout_2.addWidget(self.gbOptions)
+ self.horizontalLayout_3.addLayout(self.verticalLayout_2)
+ self.verticalLayout = QtGui.QVBoxLayout()
+ self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
+ self.pbFind = QtGui.QPushButton(SearchDialog)
+ self.pbFind.setDefault(True)
+ self.pbFind.setObjectName(_fromUtf8("pbFind"))
+ self.verticalLayout.addWidget(self.pbFind)
+ self.pbReplace = QtGui.QPushButton(SearchDialog)
+ self.pbReplace.setObjectName(_fromUtf8("pbReplace"))
+ self.verticalLayout.addWidget(self.pbReplace)
+ self.pbReplaceAll = QtGui.QPushButton(SearchDialog)
+ self.pbReplaceAll.setObjectName(_fromUtf8("pbReplaceAll"))
+ self.verticalLayout.addWidget(self.pbReplaceAll)
+ self.pbCancel = QtGui.QPushButton(SearchDialog)
+ self.pbCancel.setObjectName(_fromUtf8("pbCancel"))
+ self.verticalLayout.addWidget(self.pbCancel)
+ spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
+ self.verticalLayout.addItem(spacerItem)
+ self.horizontalLayout_3.addLayout(self.verticalLayout)
+
+ self.retranslateUi(SearchDialog)
+ QtCore.QObject.connect(self.pbCancel, QtCore.SIGNAL(_fromUtf8("clicked()")), SearchDialog.hide)
+ QtCore.QMetaObject.connectSlotsByName(SearchDialog)
+ SearchDialog.setTabOrder(self.cbFind, self.cbReplace)
+ SearchDialog.setTabOrder(self.cbReplace, self.cbFindFormat)
+ SearchDialog.setTabOrder(self.cbFindFormat, self.cbReplaceFormat)
+ SearchDialog.setTabOrder(self.cbReplaceFormat, self.cbBackwards)
+ SearchDialog.setTabOrder(self.cbBackwards, self.cbPrompt)
+ SearchDialog.setTabOrder(self.cbPrompt, self.pbFind)
+ SearchDialog.setTabOrder(self.pbFind, self.pbReplace)
+ SearchDialog.setTabOrder(self.pbReplace, self.pbReplaceAll)
+ SearchDialog.setTabOrder(self.pbReplaceAll, self.pbCancel)
+
+ def retranslateUi(self, SearchDialog):
+ SearchDialog.setWindowTitle(_translate("SearchDialog", "QHexEdit - Find/Replace", None))
+ self.gbFind.setTitle(_translate("SearchDialog", "Find", None))
+ self.cbFindFormat.setItemText(0, _translate("SearchDialog", "Hex", None))
+ self.cbFindFormat.setItemText(1, _translate("SearchDialog", "UTF-8", None))
+ self.gbReplace.setTitle(_translate("SearchDialog", "Replace", None))
+ self.cbReplaceFormat.setItemText(0, _translate("SearchDialog", "Hex", None))
+ self.cbReplaceFormat.setItemText(1, _translate("SearchDialog", "UTF-8", None))
+ self.gbOptions.setTitle(_translate("SearchDialog", "Options", None))
+ self.cbBackwards.setText(_translate("SearchDialog", "&Backwards", None))
+ self.cbPrompt.setText(_translate("SearchDialog", "&Prompt on replace", None))
+ self.pbFind.setText(_translate("SearchDialog", "&Find", None))
+ self.pbFind.setShortcut(_translate("SearchDialog", "F3", None))
+ self.pbReplace.setText(_translate("SearchDialog", "&Replace", None))
+ self.pbReplaceAll.setText(_translate("SearchDialog", "Replace &All", None))
+ self.pbCancel.setText(_translate("SearchDialog", "&Close", None))
+
diff --git a/python/python2_pyqt4/images/open.png b/python/python2_pyqt4/images/open.png
new file mode 100644
index 0000000..45fa288
--- /dev/null
+++ b/python/python2_pyqt4/images/open.png
Binary files differ
diff --git a/python/python2_pyqt4/images/save.png b/python/python2_pyqt4/images/save.png
new file mode 100644
index 0000000..daba865
--- /dev/null
+++ b/python/python2_pyqt4/images/save.png
Binary files differ
diff --git a/python/python2_pyqt4/mainwindow.py b/python/python2_pyqt4/mainwindow.py
new file mode 100644
index 0000000..9f1c400
--- /dev/null
+++ b/python/python2_pyqt4/mainwindow.py
@@ -0,0 +1,295 @@
+#!/usr/bin/env python
+
+import sys
+from PyQt4 import QtCore, QtGui
+from qhexedit import QHexEdit
+
+from optionsdialog import OptionsDialog
+from searchdialog import SearchDialog
+import qhexedit_rc
+
+
+class MainWindow(QtGui.QMainWindow):
+
+ def __init__(self, fileName=None):
+ super(MainWindow, self).__init__()
+ self.init()
+ self.setCurrentFile('')
+
+ def about(self):
+ QtGui.QMessageBox.about(self, "About HexEdit",
+ "The HexEdit example is a short Demo of the QHexEdit Widget.");
+
+ def closeEvent(self, event):
+ self.writeSettings()
+ del self.optionsDialog
+ self.close()
+
+ def createActions(self):
+ self.openAct = QtGui.QAction(QtGui.QIcon(':/images/open.png'),
+ "&Open...", self, shortcut=QtGui.QKeySequence.Open,
+ statusTip="Open an existing file", triggered=self.open)
+
+ self.saveAct = QtGui.QAction(QtGui.QIcon(':/images/save.png'),
+ "&Save", self, shortcut=QtGui.QKeySequence.Save,
+ statusTip="Save the document to disk", triggered=self.save)
+
+ self.saveAsAct = QtGui.QAction("Save &As...", self,
+ shortcut=QtGui.QKeySequence.SaveAs,
+ statusTip="Save the document under a new name", triggered=self.saveAs)
+
+ self.saveReadable = QtGui.QAction("Save as &Readable...", self,
+ statusTip="Save in a readable format", triggered=self.saveToReadableFile)
+
+ self.exitAct = QtGui.QAction("E&xit", self, shortcut="Ctrl+Q",
+ statusTip="Exit the application", triggered=self.close)
+
+ self.undoAct = QtGui.QAction("&Undo", self, shortcut=QtGui.QKeySequence.Undo,
+ triggered=self.hexEdit.undo)
+
+ self.redoAct = QtGui.QAction("&Redo", self, shortcut=QtGui.QKeySequence.Redo,
+ triggered=self.hexEdit.redo)
+
+ self.saveSelectionReadable = QtGui.QAction("Save Selection Readable...", self,
+ statusTip="Save selection in a readable format",
+ triggered=self.saveSelectionToReadableFile)
+
+ self.aboutAct = QtGui.QAction("&About", self,
+ statusTip="Show the application's About box", triggered=self.about)
+
+ self.findAct = QtGui.QAction("&Find/Replace", self, shortcut=QtGui.QKeySequence.Find,
+ statusTip="Show the Dialog for finding and replacing", triggered=self.showSearchDialog)
+
+ self.findNextAct = QtGui.QAction("Find &next", self, shortcut=QtGui.QKeySequence.FindNext,
+ statusTip="Find next occurrence of the searched pattern", triggered=self.findNext)
+
+ self.optionsAct = QtGui.QAction("&Options", self,
+ statusTip="Show the options dialog", triggered=self.showOptionsDialog)
+
+ def createMenus(self):
+ self.fileMenu = self.menuBar().addMenu("&File")
+ self.fileMenu.addAction(self.openAct)
+ self.fileMenu.addAction(self.saveAct)
+ self.fileMenu.addAction(self.saveAsAct)
+ self.fileMenu.addAction(self.saveReadable)
+ self.fileMenu.addSeparator()
+ self.fileMenu.addAction(self.exitAct)
+
+ self.editMenu = self.menuBar().addMenu("&Edit")
+ self.editMenu.addAction(self.undoAct)
+ self.editMenu.addAction(self.redoAct)
+ self.editMenu.addAction(self.saveSelectionReadable)
+ self.editMenu.addSeparator()
+ self.editMenu.addAction(self.findAct)
+ self.editMenu.addAction(self.findNextAct)
+ self.editMenu.addSeparator()
+ self.editMenu.addAction(self.optionsAct)
+
+ self.helpMenu = self.menuBar().addMenu("&Help")
+ self.helpMenu.addAction(self.aboutAct)
+
+ def createStatusBar(self):
+ # Address Label
+ self.lbAddressName = QtGui.QLabel()
+ self.lbAddressName.setText("Address:")
+ self.statusBar().addPermanentWidget(self.lbAddressName)
+ self.lbAddress = QtGui.QLabel()
+ self.lbAddress.setFrameShape(QtGui.QFrame.Panel)
+ self.lbAddress.setFrameShadow(QtGui.QFrame.Sunken)
+ self.lbAddress.setMinimumWidth(70)
+ self.statusBar().addPermanentWidget(self.lbAddress)
+ self.hexEdit.currentAddressChanged.connect(self.setAddress)
+
+ # Address Size
+ self.lbSizeName = QtGui.QLabel()
+ self.lbSizeName.setText("Size:")
+ self.statusBar().addPermanentWidget(self.lbSizeName)
+ self.lbSize = QtGui.QLabel()
+ self.lbSize.setFrameShape(QtGui.QFrame.Panel)
+ self.lbSize.setFrameShadow(QtGui.QFrame.Sunken)
+ self.lbSize.setMinimumWidth(70)
+ self.statusBar().addPermanentWidget(self.lbSize)
+ self.hexEdit.currentSizeChanged.connect(self.setSize)
+
+ # Overwrite Mode label
+ self.lbOverwriteModeName = QtGui.QLabel()
+ self.lbOverwriteModeName.setText("Mode:")
+ self.statusBar().addPermanentWidget(self.lbOverwriteModeName)
+ self.lbOverwriteMode = QtGui.QLabel()
+ self.lbOverwriteMode.setFrameShape(QtGui.QFrame.Panel)
+ self.lbOverwriteMode.setFrameShadow(QtGui.QFrame.Sunken)
+ self.lbOverwriteMode.setMinimumWidth(70)
+ self.statusBar().addPermanentWidget(self.lbOverwriteMode)
+ self.setOverwriteMode(self.hexEdit.overwriteMode())
+
+ self.statusBar().showMessage("Ready")
+
+ def createToolBars(self):
+ self.fileToolBar = self.addToolBar("File")
+ self.fileToolBar.addAction(self.openAct)
+ self.fileToolBar.addAction(self.saveAct)
+
+ def init(self):
+ self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
+ self.isUntitled = True
+
+ self.hexEdit = QHexEdit()
+ self.setCentralWidget(self.hexEdit)
+ self.hexEdit.overwriteModeChanged.connect(self.setOverwriteMode)
+
+ self.optionsDialog = OptionsDialog(self)
+ self.optionsDialog.accepted.connect(self.optionsAccepted)
+ self.searchDialog = SearchDialog(self, self.hexEdit)
+
+ self.createActions()
+ self.createMenus()
+ self.createToolBars()
+ self.createStatusBar()
+
+ self.readSettings()
+
+ def loadFile(self, fileName):
+ file = QtCore.QFile(fileName)
+ if not file.open( QtCore.QFile.ReadOnly | QtCore.QFile.Text):
+ QtGui.QMessageBox.warning(self, "QHexEdit",
+ "Cannot read file %s:\n%s." % (fileName, file.errorString()))
+ return
+
+ QtGui.QApplication.setOverrideCursor(QtCore.Qt.WaitCursor)
+ self.hexEdit.setData(file.readAll())
+ QtGui.QApplication.restoreOverrideCursor()
+
+ self.setCurrentFile(fileName)
+ self.statusBar().showMessage("File loaded", 2000)
+
+ def open(self):
+ fileName = QtGui.QFileDialog.getOpenFileName(self)
+ if fileName:
+ self.loadFile(fileName)
+
+ def optionsAccepted(self):
+ self.writeSettings()
+ self.readSettings()
+
+ def findNext(self):
+ self.searchDialog.findNext()
+
+ def readSettings(self):
+ settings = QtCore.QSettings()
+
+ if sys.version_info >= (3, 0):
+ pos = settings.value('pos', QtCore.QPoint(200, 200))
+ size = settings.value('size', QtCore.QSize(610, 460))
+ self.hexEdit.setAddressArea(settings.value("AddressArea")=='true')
+ self.hexEdit.setAsciiArea(settings.value("AsciiArea")=='true')
+ self.hexEdit.setHighlighting(settings.value("Highlighting")=='true')
+ self.hexEdit.setOverwriteMode(settings.value("OverwriteMode")=='true')
+ self.hexEdit.setReadOnly(settings.value("ReadOnly")=='true')
+
+ self.hexEdit.setHighlightingColor(QtGui.QColor(settings.value("HighlightingColor")))
+ self.hexEdit.setAddressAreaColor(QtGui.QColor(settings.value("AddressAreaColor")))
+ self.hexEdit.setSelectionColor(QtGui.QColor(settings.value("SelectionColor")))
+ self.hexEdit.setFont(QtGui.QFont(settings.value("WidgetFont", QtGui.QFont(QtGui.QFont("Courier New", 10)))))
+
+ self.hexEdit.setAddressWidth(int(settings.value("AddressAreaWidth")));
+ else:
+ pos = settings.value('pos', QtCore.QPoint(200, 200)).toPoint()
+ size = settings.value('size', QtCore.QSize(610, 460)).toSize()
+ self.hexEdit.setAddressArea(settings.value("AddressArea").toBool())
+ self.hexEdit.setAsciiArea(settings.value("AsciiArea").toBool())
+ self.hexEdit.setHighlighting(settings.value("Highlighting").toBool())
+ self.hexEdit.setOverwriteMode(settings.value("OverwriteMode").toBool())
+ self.hexEdit.setReadOnly(settings.value("ReadOnly").toBool())
+
+ self.hexEdit.setHighlightingColor(QtGui.QColor(settings.value("HighlightingColor")))
+ self.hexEdit.setAddressAreaColor(QtGui.QColor(settings.value("AddressAreaColor")))
+ self.hexEdit.setSelectionColor(QtGui.QColor(settings.value("SelectionColor")))
+ self.hexEdit.setFont(QtGui.QFont(settings.value("WidgetFont", QtGui.QFont(QtGui.QFont("Courier New", 10)))))
+
+ self.hexEdit.setAddressWidth(settings.value("AddressAreaWidth").toInt()[0]);
+
+ self.move(pos)
+ self.resize(size)
+
+
+ def save(self):
+ if self.isUntitled:
+ return self.saveAs()
+ else:
+ return self.saveFile(self.curFile)
+
+ def saveAs(self):
+ fileName = QtGui.QFileDialog.getSaveFileName(self, "Save As", self.curFile)
+ if not fileName:
+ return False
+ return self.saveFile(fileName)
+
+ def showOptionsDialog(self):
+ self.optionsDialog.show()
+
+ def showSearchDialog(self):
+ self.searchDialog.show()
+
+ def setAddress(self, address):
+ self.lbAddress.setText('%x' % address)
+
+ def setOverwriteMode(self, mode):
+ settings = QtCore.QSettings()
+ settings.setValue("OverwriteMode", mode)
+ if mode:
+ self.lbOverwriteMode.setText("Overwrite")
+ else:
+ self.lbOverwriteMode.setText("Insert")
+
+ def setSize(self, size):
+ self.lbSize.setText('%d' % size)
+
+ def saveFile(self, fileName):
+ file = QtCore.QFile(fileName)
+ if not file.open( QtCore.QFile.WriteOnly | QtCore.QFile.Truncate):
+ QtGui.QMessageBox.warning(self, "HexEdit",
+ "Cannot write file %s:\n%s." % (fileName, file.errorString()))
+ return False
+
+ file.write(self.hexEdit.data())
+
+ self.setCurrentFile(fileName)
+ self.statusBar().showMessage("File saved", 2000)
+ return True
+
+ def saveToReadableFile(self):
+ fileName = QtGui.QFileDialog.getSaveFileName(self, "Save To Readable File")
+ if not fileName.isEmpty():
+ file = open(str(fileName), "wb")
+ file.write(str(self.hexEdit.toReadableString()))
+ self.statusBar().showMessage("File saved", 2000);
+
+ def saveSelectionToReadableFile(self):
+ fileName = QtGui.QFileDialog.getSaveFileName(self, "Save To Readable File")
+ if not fileName.isEmpty():
+ file = open(str(fileName), "wb")
+ file.write(str(self.hexEdit.selectionToReadableString()))
+ self.statusBar().showMessage("File saved", 2000);
+
+ def setCurrentFile(self, fileName):
+ self.curFile = fileName
+ self.isUntitled = (fileName == "")
+ self.setWindowModified(False)
+ self.setWindowTitle("%s[*] - QHexEdit" % self.strippedName(self.curFile))
+
+ def strippedName(self, fullFileName):
+ return QtCore.QFileInfo(fullFileName).fileName()
+
+ def writeSettings(self):
+ settings = QtCore.QSettings()
+ settings.setValue('pos', self.pos())
+ settings.setValue('size', self.size())
+
+if __name__ == '__main__':
+ app = QtGui.QApplication(sys.argv)
+ app.setApplicationName("QHexEdit");
+ app.setOrganizationName("QHexEdit");
+ mainWin = MainWindow()
+ mainWin.show()
+ sys.exit(app.exec_())
+
diff --git a/python/python2_pyqt4/optionsdialog.py b/python/python2_pyqt4/optionsdialog.py
new file mode 100644
index 0000000..4b10a32
--- /dev/null
+++ b/python/python2_pyqt4/optionsdialog.py
@@ -0,0 +1,107 @@
+#!/usr/bin/env python
+
+import sys
+from PyQt4 import QtCore, QtGui
+
+from Ui_optionsdialog import Ui_OptionsDialog
+
+
+class OptionsDialog(QtGui.QDialog):
+ accepted = QtCore.pyqtSignal()
+
+ def __init__(self, fileName=None):
+ super(OptionsDialog, self).__init__()
+ self.ui = Ui_OptionsDialog()
+ self.ui.setupUi(self)
+
+ self.readSettings()
+ self.writeSettings()
+
+ def show(self):
+ self.readSettings()
+ super(OptionsDialog, self).show()
+
+ def accept(self):
+ self.writeSettings()
+ self.accepted.emit()
+ super(OptionsDialog, self).hide()
+
+ def readSettings(self):
+ settings = QtCore.QSettings()
+
+ self.setColor(self.ui.lbHighlightingColor, QtGui.QColor(settings.value("HighlightingColor", QtGui.QColor(0xff, 0xff, 0x99, 0xff))))
+ self.setColor(self.ui.lbAddressAreaColor, QtGui.QColor(settings.value("AddressAreaColor", QtGui.QColor(0xd4, 0xd4, 0xd4, 0xff))))
+ self.setColor(self.ui.lbSelectionColor, QtGui.QColor(settings.value("SelectionColor", QtGui.QColor(0x6d, 0x9e, 0xff, 0xff))))
+ self.ui.leWidgetFont.setFont(QtGui.QFont(settings.value("WidgetFont", QtGui.QFont(QtGui.QFont("Courier New", 10)))))
+
+ if sys.version_info >= (3, 0):
+ self.ui.sbAddressAreaWidth.setValue(int(settings.value("AddressAreaWidth", 4)))
+ self.ui.cbAddressArea.setChecked(settings.value("AddressArea", 'true')=='true')
+ self.ui.cbAsciiArea.setChecked(settings.value("AsciiArea", 'true')=='true')
+ self.ui.cbHighlighting.setChecked(settings.value("Highlighting", 'true')=='true')
+ self.ui.cbOverwriteMode.setChecked(settings.value("OverwriteMode", 'true')=='true')
+ self.ui.cbReadOnly.setChecked(settings.value("ReadOnly", 'false')=='true')
+
+ else:
+ self.ui.sbAddressAreaWidth.setValue(settings.value("AddressAreaWidth", 4).toInt()[0])
+ self.ui.cbAddressArea.setChecked(settings.value("AddressArea", True).toBool())
+ self.ui.cbAsciiArea.setChecked(settings.value("AsciiArea", True).toBool())
+ self.ui.cbHighlighting.setChecked(settings.value("Highlighting", True).toBool())
+ self.ui.cbOverwriteMode.setChecked(settings.value("OverwriteMode", True).toBool())
+ self.ui.cbReadOnly.setChecked(settings.value("ReadOnly", False).toBool())
+
+
+ def writeSettings(self):
+ settings = QtCore.QSettings()
+ if sys.version_info >= (3, 0):
+ def b(b):
+ if b: return 'true'
+ else: return 'false'
+ settings.setValue("AddressArea", b(self.ui.cbAddressArea.isChecked()))
+ settings.setValue("AsciiArea", b(self.ui.cbAsciiArea.isChecked()))
+ settings.setValue("Highlighting", b(self.ui.cbHighlighting.isChecked()))
+ settings.setValue("OverwriteMode", b(self.ui.cbOverwriteMode.isChecked()))
+ settings.setValue("ReadOnly", b(self.ui.cbReadOnly.isChecked()))
+ else:
+ settings.setValue("AddressArea", self.ui.cbAddressArea.isChecked())
+ settings.setValue("AsciiArea", self.ui.cbAsciiArea.isChecked())
+ settings.setValue("Highlighting", self.ui.cbHighlighting.isChecked())
+ settings.setValue("OverwriteMode", self.ui.cbOverwriteMode.isChecked())
+ settings.setValue("ReadOnly", self.ui.cbReadOnly.isChecked())
+
+ settings.setValue("HighlightingColor", self.ui.lbHighlightingColor.palette().color(QtGui.QPalette.Background))
+ settings.setValue("AddressAreaColor", self.ui.lbAddressAreaColor.palette().color(QtGui.QPalette.Background))
+ settings.setValue("SelectionColor", self.ui.lbSelectionColor.palette().color(QtGui.QPalette.Background))
+ settings.setValue("WidgetFont", self.ui.leWidgetFont.font())
+
+ settings.setValue("AddressAreaWidth", self.ui.sbAddressAreaWidth.value())
+
+ def reject(self):
+ super(OptionsDialog, self).hide()
+
+ def setColor(self, label, color):
+ palette = label.palette()
+ palette.setColor(QtGui.QPalette.Background, color)
+ label.setPalette(palette)
+ label.setAutoFillBackground(True)
+
+ def on_pbHighlightingColor_pressed(self):
+ print("hier")
+ color = QtGui.QColorDialog.getColor(self.ui.lbHighlightingColor.palette().color(QtGui.QPalette.Background), self)
+ if color.isValid():
+ self.setColor(self.ui.lbHighlightingColor, color)
+
+ def on_pbAddressAreaColor_pressed(self):
+ color = QtGui.QColorDialog.getColor(self.ui.lbAddressAreaColor.palette().color(QtGui.QPalette.Background), self)
+ if color.isValid():
+ self.setColor(self.ui.lbAddressAreaColor, color)
+
+ def on_pbSelectionColor_pressed(self):
+ color = QtGui.QColorDialog.getColor(self.ui.lbSelectionColor.palette().color(QtGui.QPalette.Background), self)
+ if color.isValid():
+ self.setColor(self.ui.lbSelectioncColor, color)
+
+ def on_pbWidgetFont_pressed(self):
+ font, ok = QtGui.QFontDialog().getFont(self.ui.leWidgetFont.font(), self)
+ if ok:
+ self.ui.leWidgetFont.setFont(font)
diff --git a/python/python2_pyqt4/optionsdialog.ui b/python/python2_pyqt4/optionsdialog.ui
new file mode 100644
index 0000000..a2c85f1
--- /dev/null
+++ b/python/python2_pyqt4/optionsdialog.ui
@@ -0,0 +1,286 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>OptionsDialog</class>
+ <widget class="QDialog" name="OptionsDialog">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>395</width>
+ <height>351</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>Dialog</string>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <widget class="QGroupBox" name="gbFlags">
+ <property name="title">
+ <string>Flags</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout_2">
+ <item row="3" column="0">
+ <widget class="QCheckBox" name="cbReadOnly">
+ <property name="text">
+ <string>ReadOnly</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0">
+ <widget class="QCheckBox" name="cbHighlighting">
+ <property name="text">
+ <string>Higlighting</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QCheckBox" name="cbOverwriteMode">
+ <property name="text">
+ <string>Overwrite Mode</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QCheckBox" name="cbAddressArea">
+ <property name="text">
+ <string>Address Area</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="1">
+ <widget class="QCheckBox" name="cbAsciiArea">
+ <property name="text">
+ <string>Ascii Area</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="gbColors">
+ <property name="title">
+ <string>Colors and Fonts</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="0">
+ <widget class="QPushButton" name="pbHighlightingColor">
+ <property name="text">
+ <string>Highlighting Color</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QLabel" name="lbHighlightingColor">
+ <property name="minimumSize">
+ <size>
+ <width>100</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>16777215</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::Panel</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Sunken</enum>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0" rowspan="2">
+ <widget class="QPushButton" name="pbAddressAreaColor">
+ <property name="text">
+ <string>Address Area Color</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1" rowspan="2">
+ <widget class="QLabel" name="lbAddressAreaColor">
+ <property name="minimumSize">
+ <size>
+ <width>100</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>16777215</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::Panel</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Sunken</enum>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="1">
+ <widget class="QLabel" name="lbSelectionColor">
+ <property name="minimumSize">
+ <size>
+ <width>100</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>16777215</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::Panel</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>QFrame::Sunken</enum>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="0">
+ <widget class="QPushButton" name="pbSelectionColor">
+ <property name="text">
+ <string>Selection Color</string>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="0">
+ <widget class="QPushButton" name="pbWidgetFont">
+ <property name="text">
+ <string>Widget Font</string>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="1">
+ <widget class="QLineEdit" name="leWidgetFont">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="font">
+ <font>
+ <family>Courier New</family>
+ <pointsize>10</pointsize>
+ </font>
+ </property>
+ <property name="text">
+ <string>01 23 45 67 89 ab cd ef</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="gbAddressAreaWidth">
+ <property name="title">
+ <string>Address Area</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout_3">
+ <item row="0" column="0">
+ <widget class="QLabel" name="lbAddressAreaWidth">
+ <property name="text">
+ <string>Address Area Width</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QSpinBox" name="sbAddressAreaWidth">
+ <property name="minimum">
+ <number>1</number>
+ </property>
+ <property name="maximum">
+ <number>6</number>
+ </property>
+ <property name="value">
+ <number>4</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>28</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QDialogButtonBox" name="buttonBox">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="standardButtons">
+ <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <tabstops>
+ <tabstop>pbHighlightingColor</tabstop>
+ <tabstop>pbAddressAreaColor</tabstop>
+ <tabstop>buttonBox</tabstop>
+ </tabstops>
+ <resources/>
+ <connections>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>accepted()</signal>
+ <receiver>OptionsDialog</receiver>
+ <slot>accept()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>222</x>
+ <y>154</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>157</x>
+ <y>168</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>rejected()</signal>
+ <receiver>OptionsDialog</receiver>
+ <slot>reject()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>290</x>
+ <y>160</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>286</x>
+ <y>168</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+</ui>
diff --git a/python/python2_pyqt4/qhexedit.qrc b/python/python2_pyqt4/qhexedit.qrc
new file mode 100644
index 0000000..ec3b80a
--- /dev/null
+++ b/python/python2_pyqt4/qhexedit.qrc
@@ -0,0 +1,6 @@
+<!DOCTYPE RCC><RCC version="1.0">
+<qresource>
+ <file>images/open.png</file>
+ <file>images/save.png</file>
+</qresource>
+</RCC>
diff --git a/python/python2_pyqt4/qhexedit_rc.py b/python/python2_pyqt4/qhexedit_rc.py
new file mode 100644
index 0000000..a02d7de
--- /dev/null
+++ b/python/python2_pyqt4/qhexedit_rc.py
@@ -0,0 +1,252 @@
+# -*- coding: utf-8 -*-
+
+# Resource object code
+#
+# Created: Do. Apr 16 20:55:39 2015
+# by: The Resource Compiler for PyQt (Qt v4.8.6)
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt4 import QtCore
+
+qt_resource_data = b"\
+\x00\x00\x04\xa3\
+\x89\
+\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
+\x00\x00\x20\x00\x00\x00\x20\x08\x06\x00\x00\x00\x73\x7a\x7a\xf4\
+\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xd6\xd8\xd4\x4f\x58\x32\
+\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
+\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
+\x79\x71\xc9\x65\x3c\x00\x00\x04\x35\x49\x44\x41\x54\x58\xc3\xe5\
+\x97\xcd\x8f\x54\x45\x14\xc5\x7f\xb7\xea\xd6\x7b\xaf\xdb\x6e\xc7\
+\xf9\x40\x9d\x89\x46\x4d\x34\x99\x44\x8d\x1a\x48\x98\xc4\x8c\x1f\
+\x1b\xfe\x02\x4c\x5c\xf1\x07\x18\x16\x2e\x4d\x5c\x6b\x58\xc3\x8e\
+\xc4\x8d\x1b\x17\xce\x82\x68\x74\x41\x5c\x18\x0d\xe2\xc4\xc6\x00\
+\x3d\x60\x50\x51\x19\x60\x02\xa2\x0e\x0c\x83\xd3\xfd\x5e\xf7\x94\
+\x8b\xaa\xee\xf9\x60\xe6\x0d\x84\x51\x16\x56\x52\xa9\xce\x7b\xb7\
+\xeb\x9e\x3a\xf7\xd4\xa9\x7a\xea\xbd\xe7\x7e\x36\xe5\x3e\xb7\x3e\
+\x80\x5d\xbb\x76\xbd\x03\xec\xfd\x8f\xf2\x4e\x35\x1a\x8d\x03\xeb\
+\x19\xd8\xbb\xef\xbd\xa3\x3b\x1f\x1f\x76\x00\x9c\x3c\x3a\xcf\xcc\
+\x97\x37\x58\x9c\xef\xdc\x53\xa6\xda\xa0\xf2\xdc\x6b\x03\xbc\xb8\
+\x67\x10\x80\x8b\x7f\x16\x7c\xf8\xee\x1e\x80\xdb\x00\x70\xfc\xec\
+\x1c\xdf\x3f\x30\x04\x78\x2e\xfd\xb8\xc0\xfe\xb7\xce\x6f\xcb\x72\
+\x0f\x1d\x79\x9a\x0b\x23\x96\xd3\x9f\x1f\x64\xfc\xd5\x7d\x9b\x6b\
+\x40\x45\xb0\x16\x40\x78\x70\x2c\x23\xcb\xb2\x6d\x01\x30\x30\x96\
+\x61\x8d\x50\x1b\x7c\x14\x23\x25\x22\x14\x2b\xd8\x18\x91\xd5\x95\
+\x73\xe7\xce\x83\x2a\xb8\x04\xd2\x14\xb2\x0c\xd2\x2c\x8c\x49\x0a\
+\x49\x12\xde\x77\x3a\x90\xe7\x90\xb7\xa1\xd5\x82\x76\x2b\x8e\x6d\
+\x28\x72\xb2\xfa\x38\xd6\x0a\xe3\xaf\xbc\x49\x6b\xf1\xfa\xe6\x00\
+\xac\x15\xac\x15\x04\xb0\x46\xd8\xbd\x7b\xe7\x16\x6b\xeb\x86\xae\
+\x80\x5a\xa8\x56\x81\xea\x6d\x51\x8d\xaf\x04\xb5\x82\xf7\xa0\xa6\
+\x84\x01\x67\x05\x35\x82\x08\xa8\x0a\x95\x2c\xc3\x23\x20\x1e\x08\
+\xc0\xf0\x1e\x2f\x02\xde\x23\x12\x26\x15\x7c\x88\x23\xc4\x21\x1e\
+\x3c\x21\x5e\x40\x4d\x58\x18\x40\xd7\x4a\x89\x06\xac\xa0\xda\x63\
+\x00\x9a\x33\xbf\x05\x8a\x53\x07\x69\x02\x95\x04\xb2\x34\xf6\x04\
+\x12\x07\x4e\xa1\xe8\x40\x5e\x40\x2b\x8f\xbd\x05\x4b\x39\xb4\x73\
+\xc8\x0b\x54\x87\x71\x3d\x00\x2a\xe5\x25\x70\x31\x40\xd5\x30\x39\
+\xf9\xd2\xd6\x0a\xf3\x3e\xd0\xaf\x16\xaa\x1b\x8b\xf6\xd8\x27\x61\
+\x61\xbd\x1c\x25\x25\x20\x00\xf0\x81\x8d\x34\x4d\xa3\x3a\xc3\xb3\
+\x98\x11\x89\x6c\x07\xda\x63\x09\x56\x98\x5f\x29\x46\xfc\x61\xcd\
+\x72\x7f\x61\x1d\x2d\xd1\x80\x3a\x09\x54\x49\x18\x4f\x34\x2f\xe0\
+\x9d\x85\xc4\x21\x89\xc3\x67\x09\x92\x69\xd8\x11\x89\xe2\x13\x87\
+\x58\x8b\xef\x76\x91\xbc\x80\xbc\x03\xed\x02\xdf\x6a\x23\xed\x02\
+\xf2\x02\x9f\x77\x50\x1d\x45\xd5\x20\x78\x3a\xeb\x54\x78\x9b\x06\
+\x9c\x33\x78\x0f\x03\x8f\x24\xbc\xfe\xf2\xf3\x77\x68\xe8\x36\x68\
+\xa4\xbe\xf1\xeb\xc6\xfc\xdf\xb1\x04\x52\x5e\x82\x44\x4d\x5f\x84\
+\x8f\x0d\xa5\x38\xe7\xb6\xc5\x88\x9e\x18\x4b\xb9\x76\xb3\x03\x08\
+\x9d\x52\x11\xaa\x90\xb8\x50\xef\x5a\xc5\x30\x7d\xb1\xcb\x40\xc5\
+\xb0\x0e\xf4\x26\xad\x57\xf9\x55\x2e\xe1\xe1\xc6\xd2\x32\xf5\xcc\
+\x70\x7d\xc9\x84\x2d\xe9\x4a\x19\x10\x9c\x1a\xc0\x73\xe5\x66\x97\
+\x2b\x37\xbb\xac\x51\x57\x3f\xd7\xaa\x64\x7e\xc5\x27\xa2\x29\xac\
+\x05\x15\xc3\x9c\x0b\xb5\x77\xa6\x6c\x17\xa8\xc1\xa9\x20\xc8\x1a\
+\x35\xaf\x9b\x35\x1a\x8f\x59\x31\x9e\xfe\x7b\xe9\xef\x14\x00\xf1\
+\x82\xef\x9b\x58\x30\x2b\x57\x56\x02\x55\x21\xd1\x90\xfc\xe7\x53\
+\xdf\xf2\xeb\x99\x13\x2c\x2d\xde\xb8\xa7\xfa\x57\x6a\x03\x3c\xf5\
+\xec\x4e\x9e\x79\x61\x02\x0f\xa8\x33\x5b\x31\x10\x03\x7c\x87\xf7\
+\xf7\xbf\xc1\xc2\xc2\x02\xb7\x6e\xdd\xa2\x28\x0a\x44\x04\x6b\x2d\
+\xd6\x5a\x54\x15\x55\xc5\x39\x87\xaa\x62\xad\xc5\x98\xf0\xdf\xe5\
+\xe5\x65\xf2\x3c\xef\xf7\x23\xcd\xf9\xb8\xf2\x2d\x18\x70\x56\x50\
+\x17\x18\xdc\x31\x3a\xb6\x72\x4f\x38\x7e\x9c\xe9\xe9\x69\x8c\x31\
+\x78\xef\x99\x98\x98\x60\x72\x72\xf2\x8e\x59\xd8\x31\x3a\xd6\xdf\
+\x86\xae\xd4\x09\x55\x70\x36\xac\xa2\x56\xaf\xf7\x6b\x39\x33\x33\
+\xc3\xd0\xd0\x10\xd6\x5a\xbc\xf7\x34\x9b\xcd\xbb\x02\x50\xab\xd7\
+\x70\xd1\x88\xb4\xd4\x88\x14\x9c\x0b\x27\x5c\xa0\x2a\x00\xa8\x56\
+\xab\x64\x59\xd6\xa7\xb8\x37\xde\x69\x73\x1a\xa9\x17\x41\x4b\xad\
+\x38\x1e\xc7\xbd\x23\xb4\xd7\x8c\x31\x88\x44\xdf\x8f\x3a\xb8\xab\
+\x9b\xaf\x35\xa8\x0d\xf3\xf6\x18\x2e\x3d\x8e\x83\x29\x6d\xe3\xd5\
+\xdb\x12\xa9\xf7\xe5\x56\x6c\xad\xf4\x91\x0e\x8e\x0c\xc3\xf2\xef\
+\xdb\x02\xe0\xa1\x91\x61\xd4\xc2\xb5\x2b\x97\x59\x9c\xbf\xbe\x05\
+\x03\x36\xf8\xc0\x60\xad\x02\x0b\xdb\xc3\xc0\x50\xad\xc2\xec\xc5\
+\x4b\x9c\xfd\xee\x1b\xce\x9f\x9c\x9e\x03\xa6\x36\x04\x60\x24\x5e\
+\x4a\x05\x12\x0b\xed\x91\x27\xa9\x3d\x0c\x6f\x1f\x38\xc8\x66\xc7\
+\x81\x27\x3a\xf1\x2a\xe7\x35\x1e\x32\x81\x14\x28\xba\x70\xf9\xea\
+\x55\xce\x34\x8e\xd1\xfc\xfa\x8b\xb9\xd9\x1f\x4e\x1d\x02\x0e\x6f\
+\x08\xe0\xb3\x8f\x3e\xe0\xa7\xd3\x27\x57\x99\xe9\xda\xa3\x86\x55\
+\xe6\xbb\x1e\x04\x1b\x3c\x5f\x1d\x6f\x7c\x77\xee\x8f\xd9\x5f\x0e\
+\x01\x87\x1b\x8d\xc6\x5f\x1b\x01\x98\x9a\xfe\xf4\xe3\x7f\xf5\x73\
+\x6c\x7d\xf2\x35\x00\xe2\xb7\xda\x81\xff\xdd\xd7\xf1\x3f\x4d\xf0\
+\x4b\xb9\xe8\x46\x89\xaf\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\
+\x60\x82\
+\x00\x00\x08\x19\
+\x89\
+\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
+\x00\x00\x20\x00\x00\x00\x20\x08\x06\x00\x00\x00\x73\x7a\x7a\xf4\
+\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xd6\xd8\xd4\x4f\x58\x32\
+\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
+\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
+\x79\x71\xc9\x65\x3c\x00\x00\x07\xab\x49\x44\x41\x54\x58\xc3\xad\
+\x57\x5b\x50\x93\x67\x1a\xf6\xca\xce\xec\xcc\xf6\x62\x2f\xbc\xd9\
+\xe9\xce\xec\x6e\xbd\xda\xd9\x9b\xb5\xce\xba\x3b\x7b\xb0\xad\xcc\
+\x7a\xb1\xce\xce\x3a\xb3\x76\x54\x70\x75\xdb\xe2\x81\xd6\xb6\x54\
+\x04\xbb\xa5\x20\x6d\xc1\x82\x06\x08\x07\x51\x42\x80\x80\x80\x02\
+\x21\x81\x10\x92\x40\x48\x10\x73\x24\x21\x67\x72\x80\x04\x42\x20\
+\x9c\x09\x47\xb5\x54\x78\xf6\xfb\x7e\x13\x16\x30\x58\x8b\x7d\x67\
+\x9e\xf9\x2f\x92\xfc\xcf\xfb\x3e\xcf\xfb\xbe\xdf\x97\x5d\x00\x76\
+\xfd\x98\x20\xf1\x0b\x82\x14\x02\x03\xc1\x75\x82\x03\xcf\xfd\xfe\
+\x8f\x48\xbc\x9b\x20\xe1\x57\xaf\xef\xb5\x2a\x8c\xd6\x65\xdb\x02\
+\x60\x19\x1e\x5b\x09\x27\xf1\x33\xfa\x19\x81\x22\xfc\xdc\x3e\x76\
+\x48\x7e\x8a\xa0\xb9\xb6\x59\x1c\x32\xcf\xad\x42\x39\xfe\x1d\x44\
+\xf6\x51\xd8\xc7\xe6\xe8\x87\x86\x3d\x7b\xf6\x58\x53\x52\xae\x2c\
+\xca\x3a\x3a\x10\x4e\xe2\xe5\x49\xc3\xc4\x31\x04\xb7\x3e\x49\xf9\
+\x2c\x60\x9b\x5d\x59\x53\x4d\x03\x4d\xb6\x11\x34\xeb\xfb\x20\x31\
+\x79\x60\x19\x9d\xc5\xbb\xef\xbe\x3f\xc5\xab\xbe\x83\xf1\x89\x29\
+\x4c\x4f\xcf\xae\x92\xef\xd7\xbc\x74\x02\x11\x9f\x0f\xbe\x1d\xe3\
+\xb2\x04\x43\x4f\xb4\x33\x40\x8b\x7b\x06\xcd\x3d\x2e\x34\xeb\xec\
+\xa8\x57\xf6\x20\x87\x53\x85\x32\x5e\x35\x43\xbc\xb0\xf4\x90\x81\
+\xc1\x60\x5c\x26\xbf\x4b\x7c\xe1\x04\x48\x1c\x24\x38\x41\xfd\xdd\
+\xea\x73\x27\xf1\xb9\x27\x04\x48\x87\x97\xc1\xd7\xbb\x20\x22\x55\
+\x37\xdc\x37\xa2\xb8\x4e\x88\x2c\x56\x3e\xcc\x56\xdb\x3a\x71\x04\
+\x2c\x16\x6b\x2c\xfc\xce\xe7\x27\x10\x91\x36\x93\x95\x3f\x46\x7d\
+\xa5\xfe\x12\xc4\x6f\xf4\x59\x31\xb6\x02\x7e\xef\x20\x5a\x7b\x9c\
+\xe0\x3f\x30\xa1\x4c\x28\x43\x46\x0e\x1b\xb2\x0e\xf9\x26\xd2\xf9\
+\xc5\x65\xcc\x2d\x2c\x21\x34\xbf\x88\xbd\x7b\xf7\x5a\xc9\x3b\x7e\
+\xba\x6d\x02\x24\x7e\x43\x90\x46\x3d\x35\x13\x69\x75\xb3\x80\xd2\
+\x3f\x0f\xcb\xc4\xe2\x9a\x50\xa1\x5a\xb4\x6c\xf1\x59\xa0\xb6\xa0\
+\xa6\x5d\x8d\x2f\xb2\x73\x71\xb7\x9e\xff\x0c\x31\x25\x9d\x09\xcd\
+\x63\x62\x6a\x06\x83\x43\x81\x27\xe4\xdd\xbc\x2d\xd3\xb0\x3b\x92\
+\x03\x33\x26\xd4\x53\xb5\xd3\xfb\x58\x4f\x88\xc5\x03\x21\x88\x2c\
+\x43\x50\xba\x46\xd0\xed\x09\x42\xe5\x9b\x42\x9b\x73\xfc\xa9\xcf\
+\x5a\x1b\xee\x2a\x74\xc8\xbc\xc9\x45\x09\xa7\x6c\x93\xcf\x9b\x88\
+\x27\xa7\x11\x18\x1d\xc3\x80\x6f\x08\xa2\xd6\xd6\x25\xc2\x51\xdb\
+\x28\x12\x87\xc6\x1f\xaf\x82\x2f\x62\x94\x4d\x89\x24\x90\x22\xea\
+\x52\x2d\x9a\x42\xab\xe8\x18\x79\x04\xa1\xc5\xcf\x10\x53\x74\xf6\
+\x0d\xa3\xd3\xe1\x87\xd4\x3c\x80\x16\xbd\x03\x0d\x5d\x06\x14\xd5\
+\x0a\x90\x91\x95\x0d\x2f\x79\xf1\xc6\xaa\xa9\xd4\xb3\x73\x0b\x4c\
+\xc5\x94\xd8\xdd\xef\x85\xc9\x62\x05\xb7\xbc\x12\xa5\xe5\x95\x4b\
+\x13\xf3\xcb\xab\x23\x0f\x01\x37\xd9\x11\xe6\xd9\x15\x84\x97\x15\
+\x13\x06\xcb\x3c\xd0\x68\xf2\xa3\xdd\xee\x5f\x27\x96\x3b\x86\x20\
+\xb3\x78\xd7\x7d\xe6\x08\xa4\xf8\x3c\x33\x1b\x2a\x8d\x36\xaa\xdc\
+\x53\x33\x21\x8c\x8e\x8d\x33\x15\xd3\x26\xe4\x37\x09\xf1\xc1\xc5\
+\x8f\x51\x73\xaf\x01\xbe\x65\x60\xfc\x11\xa0\x23\x13\x23\xf2\xce\
+\xa1\xbe\x5d\xb9\xb8\x51\x01\x83\x81\x74\x74\x4d\xa7\x1e\x0a\x67\
+\x80\xa9\xb8\xdd\xea\x83\xd8\xe8\x42\x93\xca\xcc\xf8\x7c\xe5\xcb\
+\x2c\x88\xda\x24\x51\x89\xa7\x67\xe7\x18\x1b\x86\x86\x47\x60\x77\
+\x38\x49\x82\x3a\x24\x7c\xf8\x21\xae\xb3\x0b\xe1\x99\x5c\x80\x6f\
+\x09\xd0\x90\xde\xe1\x0f\x2c\x81\xab\x1f\xc4\x7d\xef\x04\xdd\x07\
+\x1d\x61\xeb\xff\x9f\xc0\x1d\xb9\x16\x1d\xf6\x21\x48\xcc\xfd\x4f\
+\x7d\xee\xd4\x22\x9d\x55\x84\xaa\x9a\xba\x4d\x3e\x47\xe4\x8e\xf8\
+\x3c\x3c\x12\x84\xd3\xdd\x0f\xbd\xc1\x88\xc2\xe2\x62\x9c\x7e\x2f\
+\x1e\x3d\x03\x01\xf4\x2f\x02\x83\x84\xbc\xc5\xff\x2d\xee\x3a\x43\
+\x28\x51\x91\xf7\xf6\x05\xf1\x4e\xdc\xbf\x7d\x84\x33\x69\xe3\x20\
+\x18\xf4\x33\xab\xe0\xc9\x54\x68\x35\x38\xd1\xd8\xdd\x0b\x9e\x58\
+\x89\xac\x5c\xf6\x33\x3e\x47\xaa\x9e\x9c\x9e\x65\xe4\xee\xf7\x0e\
+\xa2\xd7\x6c\x41\x43\x03\x1f\x27\x62\xe3\x20\xe9\xd6\xc0\x45\xcf\
+\x01\x52\x90\x24\xb8\x86\xb2\x9e\x00\x6e\xb4\xdb\x50\xd1\x1b\x44\
+\x85\xce\x8b\x4a\x7e\x0b\x6d\xbe\x9b\x5b\x27\xd1\xa0\x99\xf8\x16\
+\x65\x22\x05\xee\x29\xf4\x28\x13\xc8\x90\x78\x35\x0b\x1a\xad\x3e\
+\xaa\xdc\x63\x13\x93\xf0\x0d\x0d\xc3\x66\xef\x83\xb4\x5d\x8e\xc4\
+\x4b\x97\x90\xc3\xca\xc3\xd4\x63\xc0\x4e\x7a\x49\x31\x4e\xfa\x89\
+\x94\x7f\x5b\x3b\x84\x7c\x85\x13\x25\x6a\x1f\x4a\xd5\x03\xe8\xf2\
+\x30\xa3\x28\x22\xf8\xf9\x33\x09\x74\x8f\x2e\xa1\xa8\xbe\x15\xa5\
+\x7c\x09\xb2\x4a\x2a\xf0\xcf\xe3\x71\x51\xe5\xf6\x07\x46\xd1\xe7\
+\xf2\x40\xab\x37\x20\xfd\x6a\x06\x92\xbf\x48\x83\xcd\x37\x02\x27\
+\xa9\xda\x40\x1a\x4c\xe0\x7b\x88\x52\x9d\x1f\x45\xdd\xfd\x0c\x71\
+\x41\x97\x1b\xc5\xdd\x1e\x88\x9c\x41\xfc\xf9\xcd\xb7\x5d\x84\xeb\
+\x6c\xb4\x43\xd0\x28\xf7\x4e\x23\xa7\xfc\x1e\xb2\x4b\xab\xf1\x51\
+\xea\x57\x48\xfe\x6f\xea\xfa\x58\x51\xb9\x47\x82\xe3\xf0\x0c\xf8\
+\x60\x34\x99\x51\xc9\xab\xc2\xfb\x67\xcf\x41\xfe\x40\x03\x3f\xe9\
+\x6e\xb2\x8d\x19\xb9\x6f\x69\x06\x19\xd2\x9b\x2a\x2f\x72\xe5\x0e\
+\xe4\x75\xf6\xa1\xf0\xbe\x1b\x1c\x95\x1b\xf9\x9c\xca\x29\xc2\x53\
+\xb8\xdd\x29\xdc\x2b\x76\x04\x90\x51\xc8\xc5\x95\x6b\x79\x38\x11\
+\x9f\x80\x9b\xb7\x6e\x33\x63\x15\x91\xdb\x6a\x73\x40\x22\x6d\xc7\
+\x85\x84\x0f\x50\x74\xbb\x0c\xf3\x2b\x80\x9f\x34\x58\xf7\x24\x20\
+\x1c\x7c\x84\x4a\xd3\x18\x38\xfa\x61\x86\x9c\x56\xfd\x55\xb3\x1e\
+\xac\x0e\x3b\xb8\x3a\x1f\xd9\x21\x1e\x7a\x2f\xe0\x13\xbc\xba\x5d\
+\x02\x26\xbe\xc1\x83\x94\x6f\xd8\x38\x9f\x9c\x8a\x03\x7f\x3d\x04\
+\x63\xaf\x99\xe9\x6e\x2a\xb7\x46\xd7\x83\xa4\xcb\xc9\x48\xff\x3a\
+\x8b\x8c\xd5\x3c\x53\xb5\x71\xf6\xa9\xdc\x35\xf6\x69\x5c\x97\x59\
+\x19\xd9\xbf\x6e\x21\xa7\xa0\xd4\x82\x74\xbe\x1a\x57\x9b\x34\x60\
+\xc9\xcc\x10\xbb\x82\xf8\xe5\xaf\x5f\xa7\x67\xc0\x3b\xe1\x75\x1f\
+\x35\xcc\x35\xdd\x66\x7c\x94\x96\x85\xb8\x73\x17\xf1\x97\x43\x31\
+\x4c\xd5\x74\x99\xf0\xaa\xaa\x71\xfa\xf4\x19\x68\xcc\x0e\x8c\x92\
+\x2d\x36\x14\x1e\xab\x5a\xc7\x0c\x78\xe6\x71\x70\x0d\x23\x4c\xa3\
+\x65\x8a\x0c\x8c\xec\xb4\xfa\x9c\xb6\x5e\x94\x74\x39\xd0\x66\xf7\
+\xaf\x1e\x3d\x11\x4b\x47\x2e\x6f\xc3\x79\x13\x35\x2c\x5c\x99\x1a\
+\xf1\x97\x3e\xc7\xd1\xd8\x33\xf8\x38\x31\x09\x86\x5e\x13\x1a\x9b\
+\x04\xf8\xdd\x1b\xfb\x51\x4f\xd4\xf1\x90\x99\xee\x9a\x00\xaa\xad\
+\x93\x60\x2b\x5d\x0c\x39\xf5\xbc\xf0\xbe\x67\xbd\xea\xcc\x16\x3d\
+\x4a\x55\x1e\x08\x6d\x01\x94\xd4\xf1\x43\xe1\x65\x53\x40\xf0\xca\
+\xf7\x25\x60\x2b\x6e\x6a\xc7\xa9\x84\x44\xc4\x1c\x39\x8a\xdc\x7c\
+\x36\x5a\x5a\xc5\x38\x14\x13\x83\x2f\x39\x35\xc8\x14\x6a\x98\xe6\
+\xa2\xd5\xd2\x27\xf5\x9a\x7a\x4c\x13\xa1\x49\x64\xb7\x99\x90\xdb\
+\x6e\x46\xb9\xda\x8d\x06\xa5\x76\x39\x2c\x39\x3d\xf9\x4e\x13\xec\
+\xd9\x72\xd4\x47\x0d\x3b\xab\x46\x88\x63\xff\x39\x8f\xdf\xee\xfb\
+\x3d\x1a\xf9\x02\x9c\xbf\x90\x80\x93\xf1\x17\x70\xa3\xad\x07\x19\
+\xc4\x4f\x4a\x14\xe9\x6e\xba\x58\xa8\xef\x2c\xfa\x94\x98\x50\x28\
+\xb7\x40\xe9\x0e\x3c\xf9\x57\xec\x29\x2a\x77\x2d\xc1\x67\x04\xfb\
+\xb6\xb9\xe4\x44\x8d\xbe\xcc\xb2\x5a\xfc\xe3\xe4\x19\x1c\x3c\xf4\
+\x37\xb0\x72\xf3\xb0\xef\xc0\x1f\x50\x20\xd1\x21\x89\x27\x65\x2a\
+\xa6\x4b\x85\x3e\xbf\x21\xd5\x46\xe4\x2e\x90\x5b\x21\xb0\x0c\xae\
+\xe5\xdc\xe2\xd2\x11\x13\x13\xe4\x87\x6f\x3c\xaf\x3c\xe7\x96\x15\
+\x35\x9c\x69\x45\xe5\xf8\xfb\xb1\x58\x1c\x3f\x19\x87\x37\xf6\xef\
+\xc7\x8d\x3a\x11\x92\xab\xa4\x0c\x21\xed\x70\xea\x35\x55\x21\x8b\
+\x34\x5b\xc9\x03\x37\x2a\x34\x6e\xd4\x49\x3a\x17\xc3\x72\x73\x08\
+\x8e\x6d\x95\xfb\x87\x24\xe0\x4a\x65\x73\x70\xe4\xf8\x29\x1c\x3e\
+\x7c\x98\x8c\x63\x2e\x32\x05\x2a\x5c\x22\xd5\xd3\x5d\x7e\x4d\xdc\
+\x0b\x36\xe9\x74\x76\xa7\x1d\x77\x8c\xe4\x88\xb6\xf9\x9e\x84\xb7\
+\x1a\x95\xfb\x22\xbd\x49\xfd\x80\x0b\x6d\xf4\x04\x32\x4a\x78\x4c\
+\x0f\x9c\x4b\x49\xc3\xb5\xa6\x2e\x7c\xc2\x6d\x65\x36\x59\xf1\x83\
+\x01\x5c\x97\x9a\xc1\x51\x7b\x20\xf3\x04\xd7\xce\x25\x26\x05\x36\
+\xc8\xfd\xc7\x9d\xc8\x1d\xd5\x82\xdc\x1a\x01\xce\x5e\x4e\x45\x81\
+\x58\x85\x78\xf6\x5d\x5c\xa9\x55\x90\xaa\xfb\xc0\x96\xdb\x50\xad\
+\x75\xe3\xae\x54\x41\x2f\x10\xca\x0d\x72\xbf\xba\xd3\x6a\xa3\x05\
+\xb7\xa2\x51\xf8\x1d\xaf\x43\x8d\x4f\xb9\x2d\x88\xcb\xe6\xe1\x9a\
+\x48\x8f\xaa\x1e\x2f\x9a\x35\xe6\xc7\x7f\x7a\xf3\x2d\x57\x78\xac\
+\xa8\xdc\xaf\xbd\xac\xdc\xd1\xe2\x08\xdd\x05\x5c\x75\x1f\xde\xcb\
+\xaf\x45\xb9\x76\x00\x32\x67\x60\xf5\xc2\xa7\x97\xa9\xdc\xf7\x08\
+\xd2\xa9\xdc\x3b\xf8\x03\xf3\xc2\xf1\x13\x82\xca\x1c\xee\x9d\x50\
+\x0b\x39\x94\xb8\x0d\xc2\xc8\x16\xa3\x17\x87\xc3\x2f\x22\xf7\x0e\
+\xff\xda\x6d\x8a\xdd\x61\x99\xd5\x1b\xb6\xd8\x6b\xbb\x5e\x32\xbe\
+\x2f\x89\xff\x01\x66\xb9\x5f\xfc\x11\x80\x3d\xcf\x00\x00\x00\x00\
+\x49\x45\x4e\x44\xae\x42\x60\x82\
+"
+
+qt_resource_name = b"\
+\x00\x06\
+\x07\x03\x7d\xc3\
+\x00\x69\
+\x00\x6d\x00\x61\x00\x67\x00\x65\x00\x73\
+\x00\x08\
+\x08\xc8\x58\x67\
+\x00\x73\
+\x00\x61\x00\x76\x00\x65\x00\x2e\x00\x70\x00\x6e\x00\x67\
+\x00\x08\
+\x06\xc1\x59\x87\
+\x00\x6f\
+\x00\x70\x00\x65\x00\x6e\x00\x2e\x00\x70\x00\x6e\x00\x67\
+"
+
+qt_resource_struct = b"\
+\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
+\x00\x00\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x02\
+\x00\x00\x00\x28\x00\x00\x00\x00\x00\x01\x00\x00\x04\xa7\
+\x00\x00\x00\x12\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
+"
+
+def qInitResources():
+ QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
+
+def qCleanupResources():
+ QtCore.qUnregisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
+
+qInitResources()
diff --git a/python/python2_pyqt4/searchdialog.py b/python/python2_pyqt4/searchdialog.py
new file mode 100644
index 0000000..03cab58
--- /dev/null
+++ b/python/python2_pyqt4/searchdialog.py
@@ -0,0 +1,84 @@
+#!/usr/bin/env python
+
+from PyQt4 import QtCore, QtGui
+
+from Ui_searchdialog import Ui_SearchDialog
+
+
+class SearchDialog(QtGui.QDialog):
+ def __init__(self, parent, hexEdit):
+ super(SearchDialog, self).__init__()
+ self.ui = Ui_SearchDialog()
+ self.ui.setupUi(self)
+ self._hexEdit = hexEdit
+
+ def findNext(self):
+ startIdx = self._hexEdit.cursorPosition()
+ findBa = self.getContent(self.ui.cbFindFormat.currentIndex(), self.ui.cbFind.currentText())
+ idx = -1
+
+ if findBa.length() > 0:
+ if self.ui.cbBackwards.isChecked():
+ idx = self._hexEdit.lastIndexOf(findBa, startIdx)
+ else:
+ idx = self._hexEdit.indexOf(findBa, startIdx)
+
+ return idx
+
+ @QtCore.pyqtSlot()
+ def on_pbFind_clicked(self):
+ self.findNext()
+
+ @QtCore.pyqtSlot()
+ def on_pbReplace_clicked(self):
+ idx = self.findNext()
+ if idx >= 0:
+ replaceBa = self.getContent(self.ui.cbReplaceFormat.currentIndex(), self.ui.cbReplace.currentText())
+ self.replaceOccurrence(idx, replaceBa)
+
+ @QtCore.pyqtSlot()
+ def on_pbReplaceAll_clicked(self):
+ replaceCounter = 0
+ idx = 0
+ goOn = QtGui.QMessageBox.Yes
+
+ while (idx >= 0) and (goOn == QtGui.QMessageBox.Yes):
+ idx = self.findNext()
+ if idx >= 0:
+ replaceBa = self.getContent(self.ui.cbReplaceFormat.currentIndex(), self.ui.cbReplace.currentText())
+ result = self.replaceOccurrence(idx, replaceBa)
+
+ if result == QtGui.QMessageBox.Yes:
+ replaceCounter += 1
+
+ if result == QtGui.QMessageBox.Cancel:
+ goOn = QtGui.QMessageBox.Cancel
+
+ if replaceCounter > 0:
+ QtGui.QMessageBox.information(self, "QHexEdit", "%s occurrences replaced" % replaceCounter)
+
+ def getContent(self, comboIndex, inputStr):
+ if comboIndex == 0: # hex
+ findBa = QtCore.QByteArray.fromHex(inputStr.toAscii())
+ elif comboIndex == 1: # text
+ findBa = inputStr.toUtf8()
+ return findBa
+
+ def replaceOccurrence(self, idx, replaceBa):
+ result = QtGui.QMessageBox.Yes
+
+ if replaceBa.length() >= 0:
+ if self.ui.cbPrompt.isChecked():
+ result = QtGui.QMessageBox.question(self, "QHexEdit", "Replace occurrence?",
+ QtGui.QMessageBox.Yes | QtGui.QMessageBox.No | QtGui.QMessageBox.Cancel)
+
+ if result == QtGui.QMessageBox.Yes:
+ self._hexEdit.replace(idx, replaceBa.length(), replaceBa)
+ self._hexEdit.update()
+
+ else:
+ self._hexEdit.replace(idx, replaceBa.length(), replaceBa)
+
+ return result
+
+ \ No newline at end of file
diff --git a/python/python2_pyqt4/searchdialog.ui b/python/python2_pyqt4/searchdialog.ui
new file mode 100644
index 0000000..d98560f
--- /dev/null
+++ b/python/python2_pyqt4/searchdialog.ui
@@ -0,0 +1,200 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>SearchDialog</class>
+ <widget class="QDialog" name="SearchDialog">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>436</width>
+ <height>223</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>QHexEdit - Find/Replace</string>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout_2">
+ <item>
+ <widget class="QGroupBox" name="gbFind">
+ <property name="title">
+ <string>Find</string>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <widget class="QComboBox" name="cbFindFormat">
+ <item>
+ <property name="text">
+ <string>Hex</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>UTF-8</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="cbFind">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="editable">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="gbReplace">
+ <property name="title">
+ <string>Replace</string>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <item>
+ <widget class="QComboBox" name="cbReplaceFormat">
+ <item>
+ <property name="text">
+ <string>Hex</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>UTF-8</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="cbReplace">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="editable">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="gbOptions">
+ <property name="title">
+ <string>Options</string>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout_3">
+ <item>
+ <widget class="QCheckBox" name="cbBackwards">
+ <property name="text">
+ <string>&amp;Backwards</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="cbPrompt">
+ <property name="text">
+ <string>&amp;Prompt on replace</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <widget class="QPushButton" name="pbFind">
+ <property name="text">
+ <string>&amp;Find</string>
+ </property>
+ <property name="shortcut">
+ <string>F3</string>
+ </property>
+ <property name="default">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="pbReplace">
+ <property name="text">
+ <string>&amp;Replace</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="pbReplaceAll">
+ <property name="text">
+ <string>Replace &amp;All</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="pbCancel">
+ <property name="text">
+ <string>&amp;Close</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ <tabstops>
+ <tabstop>cbFind</tabstop>
+ <tabstop>cbReplace</tabstop>
+ <tabstop>cbFindFormat</tabstop>
+ <tabstop>cbReplaceFormat</tabstop>
+ <tabstop>cbBackwards</tabstop>
+ <tabstop>cbPrompt</tabstop>
+ <tabstop>pbFind</tabstop>
+ <tabstop>pbReplace</tabstop>
+ <tabstop>pbReplaceAll</tabstop>
+ <tabstop>pbCancel</tabstop>
+ </tabstops>
+ <resources/>
+ <connections>
+ <connection>
+ <sender>pbCancel</sender>
+ <signal>clicked()</signal>
+ <receiver>SearchDialog</receiver>
+ <slot>hide()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>360</x>
+ <y>134</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>364</x>
+ <y>162</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+</ui>
diff --git a/python/python3_pyqt5/mainwindow.py b/python/python3_pyqt5/mainwindow.py
new file mode 100644
index 0000000..f583d7e
--- /dev/null
+++ b/python/python3_pyqt5/mainwindow.py
@@ -0,0 +1,23 @@
+import sys
+from PyQt5 import QtWidgets
+from qhexedit import QHexEdit
+
+
+class HexEdit(QHexEdit):
+
+ def __init__(self, fileName=None):
+ super(HexEdit, self).__init__()
+ file = open(fileName, 'rb')
+ data = file.read()
+ self.setData(data)
+ self.setReadOnly(False)
+
+
+if __name__ == '__main__':
+ app = QtWidgets.QApplication(sys.argv)
+ mainWin = HexEdit('mainwindow.py')
+ mainWin.resize(600, 400)
+ mainWin.move(300, 300)
+ mainWin.show()
+ sys.exit(app.exec_())
+
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..0a75a9c
--- /dev/null
+++ b/readme.md
@@ -0,0 +1,39 @@
+QHexEdit2
+=========
+![Application QHexEdit2 in Action](http://simsys.github.io/qhexedit.png)
+
+
+QHexEdit is a hex editor widget written in C++ for the Qt (Qt4, Qt5) framework. It is a simple editor for binary data, just like QPlainTextEdit is for text data. There are sip configuration files included, so it is easy to create bindings for PyQt and you can use this widget also in python 2 and 3.
+
+QHexEdit takes the data of a QByteArray (setData()) and shows it. You can use the mouse or the keyboard to navigate inside the widget. If you hit the keys (0..9, a..f) you will change the data. Changed data is highlighted and can be accessed via data().
+
+Normally QHexEdit works in the overwrite mode. You can set overwrite mode(false) and insert data. In this case the size of data() increases. It is also possible to delete bytes (del or backspace), here the size of data decreases.
+
+You can select data with keyboard hits or mouse movements. The copy-key will copy the selected data into the clipboard. The cut-key copies also but deletes it afterwards. In overwrite mode, the paste function overwrites the content of the (does not change the length) data. In insert mode, clipboard data will be inserted. The clipboard content is expected in ASCII Hex notation. Unknown characters will be ignored.
+
+QHexEdit comes with undo/redo functionality. All changes can be undone, by pressing the undo-key (usually ctr-z). They can also be redone afterwards. The undo/redo framework is cleared, when setData() sets up a new content for the editor. You can search data inside the content with indexOf() and lastIndexOf(). The replace() function is to change located subdata. This 'replaced' data can also be undone by the undo/redo framework.
+
+QHexEdit is based on QIODevice, that's why QHexEdit can handle big amounts of data. The size of edited data can be more then two gigabytes without any restrictions.
+
+## Using QHexEdit
+You can read the documentation of the project [here](http://simsys.github.io/). You find in the sources a [C++ example](https://github.com/Simsys/qhexedit2/tree/master/example), that shows how tu use the QHexedit widget. There is also a [python example](https://github.com/Simsys/qhexedit2/tree/master/python/python3_pyqt5) available.
+
+## Contributing to QHexEdit
+We love to receive contributions. You can submit bug reports [here](https://github.com/Simsys/qhexedit2/issues). If you are a developer, you can pick up a work item and start to realize super exciting features or fix bugs. We also like to receive enhancement proposals or translation support.
+
+## License
+```
+Copyright (C) 2015-2016 Winfried Simon
+
+This software may be used under the terms of the GNU Lesser General
+Public License version 2.1 as published by the Free Software Foundation
+and appearing in the file license.txt included in the packaging of this file.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Lesser General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+```
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..1906a07
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,138 @@
+#!/usr/bin/env python
+
+from distutils.core import setup, Extension
+from distutils import log
+
+import os
+import subprocess
+import sipdistutils
+import sipconfig
+
+cfg = sipconfig.Configuration()
+pyqt_sip_dir = cfg.default_sip_dir
+for p in (os.path.join(pyqt_sip_dir, "PyQt5"),
+ os.path.join(pyqt_sip_dir, "PyQt5-3"),
+ os.path.join(pyqt_sip_dir, "PyQt4"),
+ pyqt_sip_dir,
+ os.path.join(cfg.default_mod_dir, "PyQt5", "bindings")):
+ if os.path.exists(os.path.join(p, "QtCore", "QtCoremod.sip")):
+ pyqt_sip_dir = p
+ break
+
+try:
+ import PyQt5
+ PyQt_Version = 'PyQt5'
+except:
+ PyQt_Version = 'PyQt4'
+
+
+include_dirs = ['src']
+
+
+class build_pyqt_ext(sipdistutils.build_ext):
+ description = "Build a qhexedit PyQt extension."
+
+ user_options = sipdistutils.build_ext.user_options + [(
+ "required",
+ None,
+ "qhexedit is required (failure to build will raise an error)"
+ )]
+
+ boolean_options = sipdistutils.build_ext.boolean_options + ["required"]
+
+ def initialize_options(self):
+ sipdistutils.build_ext.initialize_options(self)
+ self.required = False
+
+ def finalize_options(self):
+ if PyQt_Version == 'PyQt5':
+ from PyQt5.QtCore import PYQT_CONFIGURATION
+ else:
+ from PyQt4.QtCore import PYQT_CONFIGURATION
+ sipdistutils.build_ext.finalize_options(self)
+ self.sip_opts = self.sip_opts + PYQT_CONFIGURATION['sip_flags'].split()
+ self.sip_opts.append('-I%s/%s' % (pyqt_sip_dir, PyQt_Version))
+ if self.required is not None:
+ self.required = True
+
+ def build_extension(self, ext):
+ cppsources = (s for s in ext.sources if s.endswith(".cpp"))
+ if not os.path.exists(self.build_temp):
+ os.makedirs(self.build_temp)
+ for source in cppsources:
+ header = source.replace(".cpp", ".h")
+ if os.path.exists(header):
+ moc_file = os.path.basename(header).replace(".h", ".moc")
+ call_arg = (
+ "moc",
+ "-o",
+ os.path.join(self.build_temp, moc_file),
+ header
+ )
+ log.info("Calling: " + " ".join(call_arg))
+ try:
+ subprocess.call(call_arg)
+ except OSError:
+ raise OSError(
+ "Could not locate 'moc' executable."
+ )
+ sipdistutils.build_ext.build_extension(self, ext)
+
+ def run(self):
+ try:
+ sipdistutils.build_ext.run(self)
+ except Exception as ex:
+ if self.required:
+ raise
+ else:
+ log.info("Could not build qhexedit extension (%r)\n"
+ "Skipping." % ex)
+
+ # For sipdistutils to find PyQt's .sip files
+ def _sip_sipfiles_dir(self):
+ return pyqt_sip_dir
+
+
+# Used Qt libs
+if PyQt_Version == 'PyQt5':
+ qt_libs = ["QtCore", "QtGui", "QtWidgets"]
+else:
+ qt_libs = ["QtCore", "QtGui"]
+
+
+if cfg.qt_framework:
+ for lib in qt_libs:
+ include_dirs += [os.path.join(cfg.qt_lib_dir,
+ lib + ".framework", "Headers")]
+else:
+ if PyQt_Version == 'PyQt5':
+ for qt_inc_dir in ('/usr/include/qt', '/usr/include/x86_64-linux-gnu/qt5'):
+ include_dirs.append(qt_inc_dir)
+ include_dirs += [os.path.join(qt_inc_dir, lib) for lib in qt_libs]
+ libraries = ["Qt5" + lib[2:] for lib in qt_libs]
+ else:
+ for qt_inc_dir in ('/usr/include/qt', '/usr/include/qt4'):
+ include_dirs.append(qt_inc_dir)
+ include_dirs += [os.path.join(qt_inc_dir, lib) for lib in qt_libs]
+ libraries = ["Qt" + lib[2:] for lib in qt_libs]
+
+libraries.append("qhexedit")
+
+dirname = os.path.dirname(__file__)
+
+setup(
+ name='QHexEdit',
+ version='0.8.9',
+ ext_modules=[
+ Extension(
+ "qhexedit",
+ sources=[
+ os.path.join(dirname, "src/qhexedit.sip"),
+ ],
+ include_dirs=include_dirs,
+ libraries=libraries,
+ )
+ ],
+ cmdclass={"build_ext": build_pyqt_ext},
+)
+
diff --git a/src/QHexEditPlugin.cpp b/src/QHexEditPlugin.cpp
new file mode 100644
index 0000000..543f149
--- /dev/null
+++ b/src/QHexEditPlugin.cpp
@@ -0,0 +1,89 @@
+#include "QHexEditPlugin.h"
+#include "qhexedit.h"
+
+#include <QtPlugin>
+
+QHexEditPlugin::QHexEditPlugin(QObject * parent) : QObject(parent)
+{
+ initialized = false;
+}
+
+
+bool QHexEditPlugin::isContainer() const
+{
+ return false;
+}
+
+bool QHexEditPlugin::isInitialized() const
+{
+ return initialized;
+}
+
+QIcon QHexEditPlugin::icon() const
+{
+ return QIcon();
+}
+
+QString QHexEditPlugin::domXml() const
+{
+ return "<ui language=\"c++\">\n"
+ " <widget class=\"QHexEdit\" name=\"hexEdit\">\n"
+ " <property name=\"geometry\">\n"
+ " <rect>\n"
+ " <x>0</x>\n"
+ " <y>0</y>\n"
+ " <width>100</width>\n"
+ " <height>100</height>\n"
+ " </rect>\n"
+ " </property>\n"
+ " <property name=\"toolTip\" >\n"
+ " <string>QHexEditWidget</string>\n"
+ " </property>\n"
+ " <property name=\"whatsThis\" >\n"
+ " <string>QHexEdit widget allow to edit the data in hex view.</string>\n"
+ " </property>\n"
+ " </widget>\n"
+ "</ui>\n";
+}
+
+QString QHexEditPlugin::group() const
+{
+ return "Input Widgets";
+}
+
+QString QHexEditPlugin::includeFile() const
+{
+ return "qhexedit.h";
+}
+
+QString QHexEditPlugin::name() const
+{
+ return "QHexEdit";
+}
+
+QString QHexEditPlugin::toolTip() const
+{
+ return "";
+}
+
+QString QHexEditPlugin::whatsThis() const
+{
+ return "";
+}
+
+QWidget * QHexEditPlugin::createWidget(QWidget *parent)
+{
+ return new QHexEdit(parent);
+}
+
+void QHexEditPlugin::initialize(QDesignerFormEditorInterface * /*core*/)
+{
+ if (initialized)
+ return;
+
+ initialized = true;
+}
+
+#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
+Q_EXPORT_PLUGIN2(QHexEditPlugin, QHexEditPlugin)
+#endif
diff --git a/src/QHexEditPlugin.h b/src/QHexEditPlugin.h
new file mode 100644
index 0000000..a67179c
--- /dev/null
+++ b/src/QHexEditPlugin.h
@@ -0,0 +1,40 @@
+#ifndef QHEXEDITPLUGIN_H
+#define QHEXEDITPLUGIN_H
+
+#include <QObject>
+
+#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
+#include <QtDesigner/QDesignerCustomWidgetInterface>
+#else
+#include <QDesignerCustomWidgetInterface>
+#endif
+
+class QHexEditPlugin : public QObject, public QDesignerCustomWidgetInterface
+{
+ Q_OBJECT
+ Q_INTERFACES(QDesignerCustomWidgetInterface)
+#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
+ Q_PLUGIN_METADATA(IID "com.qt-project.Qt.QHexEditPlugin")
+#endif
+
+public:
+ QHexEditPlugin(QObject * parent = 0);
+
+ bool isContainer() const;
+ bool isInitialized() const;
+ QIcon icon() const;
+ QString domXml() const;
+ QString group() const;
+ QString includeFile() const;
+ QString name() const;
+ QString toolTip() const;
+ QString whatsThis() const;
+ QWidget *createWidget(QWidget *parent);
+ void initialize(QDesignerFormEditorInterface *core);
+
+private:
+ bool initialized;
+
+};
+
+#endif
diff --git a/src/chunks.cpp b/src/chunks.cpp
new file mode 100644
index 0000000..f550f15
--- /dev/null
+++ b/src/chunks.cpp
@@ -0,0 +1,323 @@
+#include "chunks.h"
+#include <limits.h>
+
+#define NORMAL 0
+#define HIGHLIGHTED 1
+
+#define BUFFER_SIZE 0x10000
+#define CHUNK_SIZE 0x1000
+#define READ_CHUNK_MASK Q_INT64_C(0xfffffffffffff000)
+
+// ***************************************** Constructors and file settings
+
+Chunks::Chunks(QObject *parent): QObject(parent)
+{
+ QBuffer *buf = new QBuffer(this);
+ setIODevice(*buf);
+}
+
+Chunks::Chunks(QIODevice &ioDevice, QObject *parent): QObject(parent)
+{
+ setIODevice(ioDevice);
+}
+
+bool Chunks::setIODevice(QIODevice &ioDevice)
+{
+ _ioDevice = &ioDevice;
+ bool ok = _ioDevice->open(QIODevice::ReadOnly);
+ if (ok) // Try to open IODevice
+ {
+ _size = _ioDevice->size();
+ _ioDevice->close();
+ }
+ else // Fallback is an empty buffer
+ {
+ QBuffer *buf = new QBuffer(this);
+ _ioDevice = buf;
+ _size = 0;
+ }
+ _chunks.clear();
+ _pos = 0;
+ return ok;
+}
+
+
+// ***************************************** Getting data out of Chunks
+
+QByteArray Chunks::data(qint64 pos, qint64 maxSize, QByteArray *highlighted)
+{
+ qint64 ioDelta = 0;
+ int chunkIdx = 0;
+
+ Chunk chunk;
+ QByteArray buffer;
+
+ // Do some checks and some arrangements
+ if (highlighted)
+ highlighted->clear();
+
+ if (pos >= _size)
+ return buffer;
+
+ if (maxSize < 0)
+ maxSize = _size;
+ else
+ if ((pos + maxSize) > _size)
+ maxSize = _size - pos;
+
+ _ioDevice->open(QIODevice::ReadOnly);
+
+ while (maxSize > 0)
+ {
+ chunk.absPos = LLONG_MAX;
+ bool chunksLoopOngoing = true;
+ while ((chunkIdx < _chunks.count()) && chunksLoopOngoing)
+ {
+ // In this section, we track changes before our required data and
+ // we take the editdet data, if availible. ioDelta is a difference
+ // counter to justify the read pointer to the original data, if
+ // data in between was deleted or inserted.
+
+ chunk = _chunks[chunkIdx];
+ if (chunk.absPos > pos)
+ chunksLoopOngoing = false;
+ else
+ {
+ chunkIdx += 1;
+ qint64 count;
+ qint64 chunkOfs = pos - chunk.absPos;
+ if (maxSize > ((qint64)chunk.data.size() - chunkOfs))
+ {
+ count = (qint64)chunk.data.size() - chunkOfs;
+ ioDelta += CHUNK_SIZE - chunk.data.size();
+ }
+ else
+ count = maxSize;
+ if (count > 0)
+ {
+ buffer += chunk.data.mid(chunkOfs, (int)count);
+ maxSize -= count;
+ pos += count;
+ if (highlighted)
+ *highlighted += chunk.dataChanged.mid(chunkOfs, (int)count);
+ }
+ }
+ }
+
+ if ((maxSize > 0) && (pos < chunk.absPos))
+ {
+ // In this section, we read data from the original source. This only will
+ // happen, whe no copied data is available
+
+ qint64 byteCount;
+ QByteArray readBuffer;
+ if ((chunk.absPos - pos) > maxSize)
+ byteCount = maxSize;
+ else
+ byteCount = chunk.absPos - pos;
+
+ maxSize -= byteCount;
+ _ioDevice->seek(pos + ioDelta);
+ readBuffer = _ioDevice->read(byteCount);
+ buffer += readBuffer;
+ if (highlighted)
+ *highlighted += QByteArray(readBuffer.size(), NORMAL);
+ pos += readBuffer.size();
+ }
+ }
+ _ioDevice->close();
+ return buffer;
+}
+
+bool Chunks::write(QIODevice &iODevice, qint64 pos, qint64 count)
+{
+ if (count == -1)
+ count = _size;
+ bool ok = iODevice.open(QIODevice::WriteOnly);
+ if (ok)
+ {
+ for (qint64 idx=pos; idx < count; idx += BUFFER_SIZE)
+ {
+ QByteArray ba = data(idx, BUFFER_SIZE);
+ iODevice.write(ba);
+ }
+ iODevice.close();
+ }
+ return ok;
+}
+
+
+// ***************************************** Set and get highlighting infos
+
+void Chunks::setDataChanged(qint64 pos, bool dataChanged)
+{
+ if ((pos < 0) || (pos >= _size))
+ return;
+ int chunkIdx = getChunkIndex(pos);
+ qint64 posInBa = pos - _chunks[chunkIdx].absPos;
+ _chunks[chunkIdx].dataChanged[(int)posInBa] = char(dataChanged);
+}
+
+bool Chunks::dataChanged(qint64 pos)
+{
+ QByteArray highlighted;
+ data(pos, 1, &highlighted);
+ return bool(highlighted.at(0));
+}
+
+
+// ***************************************** Search API
+
+qint64 Chunks::indexOf(const QByteArray &ba, qint64 from)
+{
+ qint64 result = -1;
+ QByteArray buffer;
+
+ for (qint64 pos=from; (pos < _size) && (result < 0); pos += BUFFER_SIZE)
+ {
+ buffer = data(pos, BUFFER_SIZE + ba.size() - 1);
+ int findPos = buffer.indexOf(ba);
+ if (findPos >= 0)
+ result = pos + (qint64)findPos;
+ }
+ return result;
+}
+
+qint64 Chunks::lastIndexOf(const QByteArray &ba, qint64 from)
+{
+ qint64 result = -1;
+ QByteArray buffer;
+
+ for (qint64 pos=from; (pos > 0) && (result < 0); pos -= BUFFER_SIZE)
+ {
+ qint64 sPos = pos - BUFFER_SIZE - (qint64)ba.size() + 1;
+ if (sPos < 0)
+ sPos = 0;
+ buffer = data(sPos, pos - sPos);
+ int findPos = buffer.lastIndexOf(ba);
+ if (findPos >= 0)
+ result = sPos + (qint64)findPos;
+ }
+ return result;
+}
+
+
+// ***************************************** Char manipulations
+
+bool Chunks::insert(qint64 pos, char b)
+{
+ if ((pos < 0) || (pos > _size))
+ return false;
+ int chunkIdx;
+ if (pos == _size)
+ chunkIdx = getChunkIndex(pos-1);
+ else
+ chunkIdx = getChunkIndex(pos);
+ qint64 posInBa = pos - _chunks[chunkIdx].absPos;
+ _chunks[chunkIdx].data.insert(posInBa, b);
+ _chunks[chunkIdx].dataChanged.insert(posInBa, char(1));
+ for (int idx=chunkIdx+1; idx < _chunks.size(); idx++)
+ _chunks[idx].absPos += 1;
+ _size += 1;
+ _pos = pos;
+ return true;
+}
+
+bool Chunks::overwrite(qint64 pos, char b)
+{
+ if ((pos < 0) || (pos >= _size))
+ return false;
+ int chunkIdx = getChunkIndex(pos);
+ qint64 posInBa = pos - _chunks[chunkIdx].absPos;
+ _chunks[chunkIdx].data[(int)posInBa] = b;
+ _chunks[chunkIdx].dataChanged[(int)posInBa] = char(1);
+ _pos = pos;
+ return true;
+}
+
+bool Chunks::removeAt(qint64 pos)
+{
+ if ((pos < 0) || (pos >= _size))
+ return false;
+ int chunkIdx = getChunkIndex(pos);
+ qint64 posInBa = pos - _chunks[chunkIdx].absPos;
+ _chunks[chunkIdx].data.remove(posInBa, 1);
+ _chunks[chunkIdx].dataChanged.remove(posInBa, 1);
+ for (int idx=chunkIdx+1; idx < _chunks.size(); idx++)
+ _chunks[idx].absPos -= 1;
+ _size -= 1;
+ _pos = pos;
+ return true;
+}
+
+
+// ***************************************** Utility functions
+
+char Chunks::operator[](qint64 pos)
+{
+ return data(pos, 1).at(0);
+}
+
+qint64 Chunks::pos()
+{
+ return _pos;
+}
+
+qint64 Chunks::size()
+{
+ return _size;
+}
+
+int Chunks::getChunkIndex(qint64 absPos)
+{
+ // This routine checks, if there is already a copied chunk available. If os, it
+ // returns a reference to it. If there is no copied chunk available, original
+ // data will be copied into a new chunk.
+
+ int foundIdx = -1;
+ int insertIdx = 0;
+ qint64 ioDelta = 0;
+
+
+ for (int idx=0; idx < _chunks.size(); idx++)
+ {
+ Chunk chunk = _chunks[idx];
+ if ((absPos >= chunk.absPos) && (absPos < (chunk.absPos + chunk.data.size())))
+ {
+ foundIdx = idx;
+ break;
+ }
+ if (absPos < chunk.absPos)
+ {
+ insertIdx = idx;
+ break;
+ }
+ ioDelta += chunk.data.size() - CHUNK_SIZE;
+ insertIdx = idx + 1;
+ }
+
+ if (foundIdx == -1)
+ {
+ Chunk newChunk;
+ qint64 readAbsPos = absPos - ioDelta;
+ qint64 readPos = (readAbsPos & READ_CHUNK_MASK);
+ _ioDevice->open(QIODevice::ReadOnly);
+ _ioDevice->seek(readPos);
+ newChunk.data = _ioDevice->read(CHUNK_SIZE);
+ _ioDevice->close();
+ newChunk.absPos = absPos - (readAbsPos - readPos);
+ newChunk.dataChanged = QByteArray(newChunk.data.size(), char(0));
+ _chunks.insert(insertIdx, newChunk);
+ foundIdx = insertIdx;
+ }
+ return foundIdx;
+}
+
+
+#ifdef MODUL_TEST
+int Chunks::chunkSize()
+{
+ return _chunks.size();
+}
+
+#endif
diff --git a/src/chunks.h b/src/chunks.h
new file mode 100644
index 0000000..43df76c
--- /dev/null
+++ b/src/chunks.h
@@ -0,0 +1,77 @@
+#ifndef CHUNKS_H
+#define CHUNKS_H
+
+/** \cond docNever */
+
+/*! The Chunks class is the storage backend for QHexEdit.
+ *
+ * When QHexEdit loads data, Chunks access them using a QIODevice interface. When the app uses
+ * a QByteArray interface, QBuffer is used to provide again a QIODevice like interface. No data
+ * will be changed, therefore Chunks opens the QIODevice in QIODevice::ReadOnly mode. After every
+ * access Chunks closes the QIODevice, that's why external applications can overwrite files while
+ * QHexEdit shows them.
+ *
+ * When the the user starts to edit the data, Chunks creates a local copy of a chunk of data (4
+ * kilobytes) and notes all changes there. Parallel to that chunk, there is a second chunk,
+ * which keep track of which bytes are changed and which not.
+ *
+ */
+
+#include <QtCore>
+
+struct Chunk
+{
+ QByteArray data;
+ QByteArray dataChanged;
+ qint64 absPos;
+};
+
+class Chunks: public QObject
+{
+Q_OBJECT
+public:
+ // Constructors and file settings
+ Chunks(QObject *parent);
+ Chunks(QIODevice &ioDevice, QObject *parent);
+ bool setIODevice(QIODevice &ioDevice);
+
+ // Getting data out of Chunks
+ QByteArray data(qint64 pos=0, qint64 count=-1, QByteArray *highlighted=0);
+ bool write(QIODevice &iODevice, qint64 pos=0, qint64 count=-1);
+
+ // Set and get highlighting infos
+ void setDataChanged(qint64 pos, bool dataChanged);
+ bool dataChanged(qint64 pos);
+
+ // Search API
+ qint64 indexOf(const QByteArray &ba, qint64 from);
+ qint64 lastIndexOf(const QByteArray &ba, qint64 from);
+
+ // Char manipulations
+ bool insert(qint64 pos, char b);
+ bool overwrite(qint64 pos, char b);
+ bool removeAt(qint64 pos);
+
+ // Utility functions
+ char operator[](qint64 pos);
+ qint64 pos();
+ qint64 size();
+
+
+private:
+ int getChunkIndex(qint64 absPos);
+
+ QIODevice * _ioDevice;
+ qint64 _pos;
+ qint64 _size;
+ QList<Chunk> _chunks;
+
+#ifdef MODUL_TEST
+public:
+ int chunkSize();
+#endif
+};
+
+/** \endcond docNever */
+
+#endif // CHUNKS_H
diff --git a/src/commands.cpp b/src/commands.cpp
new file mode 100644
index 0000000..5b99cbf
--- /dev/null
+++ b/src/commands.cpp
@@ -0,0 +1,168 @@
+#include "commands.h"
+#include <QUndoCommand>
+
+
+// Helper class to store single byte commands
+class CharCommand : public QUndoCommand
+{
+public:
+ enum CCmd {insert, removeAt, overwrite};
+
+ CharCommand(Chunks * chunks, CCmd cmd, qint64 charPos, char newChar,
+ QUndoCommand *parent=0);
+
+ void undo();
+ void redo();
+ bool mergeWith(const QUndoCommand *command);
+ int id() const { return 1234; }
+
+private:
+ Chunks * _chunks;
+ qint64 _charPos;
+ bool _wasChanged;
+ char _newChar;
+ char _oldChar;
+ CCmd _cmd;
+};
+
+CharCommand::CharCommand(Chunks * chunks, CCmd cmd, qint64 charPos, char newChar, QUndoCommand *parent)
+ : QUndoCommand(parent)
+ , _chunks(chunks)
+ , _charPos(charPos)
+ , _wasChanged(false)
+ , _newChar(newChar)
+ , _oldChar('\0')
+ , _cmd(cmd)
+{
+}
+
+bool CharCommand::mergeWith(const QUndoCommand *command)
+{
+ const CharCommand *nextCommand = static_cast<const CharCommand *>(command);
+ bool result = false;
+
+ if (_cmd != CharCommand::removeAt)
+ {
+ if (nextCommand->_cmd == overwrite)
+ if (nextCommand->_charPos == _charPos)
+ {
+ _newChar = nextCommand->_newChar;
+ result = true;
+ }
+ }
+ return result;
+}
+
+void CharCommand::undo()
+{
+ switch (_cmd)
+ {
+ case insert:
+ _chunks->removeAt(_charPos);
+ break;
+ case overwrite:
+ _chunks->overwrite(_charPos, _oldChar);
+ _chunks->setDataChanged(_charPos, _wasChanged);
+ break;
+ case removeAt:
+ _chunks->insert(_charPos, _oldChar);
+ _chunks->setDataChanged(_charPos, _wasChanged);
+ break;
+ }
+}
+
+void CharCommand::redo()
+{
+ switch (_cmd)
+ {
+ case insert:
+ _chunks->insert(_charPos, _newChar);
+ break;
+ case overwrite:
+ _oldChar = (*_chunks)[_charPos];
+ _wasChanged = _chunks->dataChanged(_charPos);
+ _chunks->overwrite(_charPos, _newChar);
+ break;
+ case removeAt:
+ _oldChar = (*_chunks)[_charPos];
+ _wasChanged = _chunks->dataChanged(_charPos);
+ _chunks->removeAt(_charPos);
+ break;
+ }
+}
+
+UndoStack::UndoStack(Chunks * chunks, QObject * parent)
+ : QUndoStack(parent)
+{
+ _chunks = chunks;
+ _parent = parent;
+ this->setUndoLimit(1000);
+}
+
+void UndoStack::insert(qint64 pos, char c)
+{
+ if ((pos >= 0) && (pos <= _chunks->size()))
+ {
+ QUndoCommand *cc = new CharCommand(_chunks, CharCommand::insert, pos, c);
+ this->push(cc);
+ }
+}
+
+void UndoStack::insert(qint64 pos, const QByteArray &ba)
+{
+ if ((pos >= 0) && (pos <= _chunks->size()))
+ {
+ QString txt = QString(tr("Inserting %1 bytes")).arg(ba.size());
+ beginMacro(txt);
+ for (int idx=0; idx < ba.size(); idx++)
+ {
+ QUndoCommand *cc = new CharCommand(_chunks, CharCommand::insert, pos + idx, ba.at(idx));
+ this->push(cc);
+ }
+ endMacro();
+ }
+}
+
+void UndoStack::removeAt(qint64 pos, qint64 len)
+{
+ if ((pos >= 0) && (pos < _chunks->size()))
+ {
+ if (len==1)
+ {
+ QUndoCommand *cc = new CharCommand(_chunks, CharCommand::removeAt, pos, char(0));
+ this->push(cc);
+ }
+ else
+ {
+ QString txt = QString(tr("Delete %1 chars")).arg(len);
+ beginMacro(txt);
+ for (qint64 cnt=0; cnt<len; cnt++)
+ {
+ QUndoCommand *cc = new CharCommand(_chunks, CharCommand::removeAt, pos, char(0));
+ push(cc);
+ }
+ endMacro();
+ }
+ }
+}
+
+void UndoStack::overwrite(qint64 pos, char c)
+{
+ if ((pos >= 0) && (pos < _chunks->size()))
+ {
+ QUndoCommand *cc = new CharCommand(_chunks, CharCommand::overwrite, pos, c);
+ this->push(cc);
+ }
+}
+
+void UndoStack::overwrite(qint64 pos, int len, const QByteArray &ba)
+{
+ if ((pos >= 0) && (pos < _chunks->size()))
+ {
+ QString txt = QString(tr("Overwrite %1 chars")).arg(len);
+ beginMacro(txt);
+ removeAt(pos, len);
+ insert(pos, ba);
+ endMacro();
+ }
+}
diff --git a/src/commands.h b/src/commands.h
new file mode 100644
index 0000000..51450c5
--- /dev/null
+++ b/src/commands.h
@@ -0,0 +1,47 @@
+#ifndef COMMANDS_H
+#define COMMANDS_H
+
+/** \cond docNever */
+
+#include <QUndoStack>
+
+#include "chunks.h"
+
+/*! CharCommand is a class to provid undo/redo functionality in QHexEdit.
+A QUndoCommand represents a single editing action on a document. CharCommand
+is responsable for manipulations on single chars. It can insert. overwrite and
+remove characters. A manipulation stores allways two actions
+1. redo (or do) action
+2. undo action.
+
+CharCommand also supports command compression via mergeWith(). This enables
+the user to perform an undo command e.g. 3 steps in a single command.
+If you for example insert a new byt "34" this means for the editor doing 3
+steps: insert a "00", overwrite it with "03" and the overwrite it with "34". These
+3 steps are combined into a single step, insert a "34".
+
+The byte array oriented commands are just put into a set of single byte commands,
+which are pooled together with the macroBegin() and macroEnd() functionality of
+Qt's QUndoStack.
+*/
+
+class UndoStack : public QUndoStack
+{
+ Q_OBJECT
+
+public:
+ UndoStack(Chunks *chunks, QObject * parent=0);
+ void insert(qint64 pos, char c);
+ void insert(qint64 pos, const QByteArray &ba);
+ void removeAt(qint64 pos, qint64 len=1);
+ void overwrite(qint64 pos, char c);
+ void overwrite(qint64 pos, int len, const QByteArray &ba);
+
+private:
+ Chunks * _chunks;
+ QObject * _parent;
+};
+
+/** \endcond docNever */
+
+#endif // COMMANDS_H
diff --git a/src/license.txt b/src/license.txt
new file mode 100644
index 0000000..f166cc5
--- /dev/null
+++ b/src/license.txt
@@ -0,0 +1,502 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the library's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ <signature of Ty Coon>, 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it! \ No newline at end of file
diff --git a/src/qhexedit.cpp b/src/qhexedit.cpp
new file mode 100644
index 0000000..4137192
--- /dev/null
+++ b/src/qhexedit.cpp
@@ -0,0 +1,1206 @@
+#include <QApplication>
+#include <QClipboard>
+#include <QKeyEvent>
+#include <QPainter>
+#include <QScrollBar>
+
+#include "qhexedit.h"
+#include <algorithm>
+
+
+// ********************************************************************** Constructor, destructor
+
+QHexEdit::QHexEdit(QWidget *parent) : QAbstractScrollArea(parent)
+ , _addressArea(true)
+ , _addressWidth(4)
+ , _asciiArea(true)
+ , _bytesPerLine(16)
+ , _hexCharsInLine(47)
+ , _highlighting(true)
+ , _overwriteMode(true)
+ , _readOnly(false)
+ , _hexCaps(false)
+ , _dynamicBytesPerLine(false)
+ , _editAreaIsAscii(false)
+ , _chunks(new Chunks(this))
+ , _cursorPosition(0)
+ , _lastEventSize(0)
+ , _undoStack(new UndoStack(_chunks, this))
+{
+#ifdef Q_OS_WIN32
+ setFont(QFont("Courier", 10));
+#else
+ setFont(QFont("Monospace", 10));
+#endif
+ setAddressAreaColor(this->palette().alternateBase().color());
+ setHighlightingColor(QColor(0xff, 0xff, 0x99, 0xff));
+ setSelectionColor(this->palette().highlight().color());
+ setAddressFontColor(QPalette::WindowText);
+ setAsciiAreaColor(this->palette().alternateBase().color());
+ setAsciiFontColor(QPalette::WindowText);
+
+ connect(&_cursorTimer, SIGNAL(timeout()), this, SLOT(updateCursor()));
+ connect(verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(adjust()));
+ connect(horizontalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(adjust()));
+ connect(_undoStack, SIGNAL(indexChanged(int)), this, SLOT(dataChangedPrivate(int)));
+
+ _cursorTimer.setInterval(500);
+ _cursorTimer.start();
+
+ setAddressWidth(4);
+ setAddressArea(true);
+ setAsciiArea(true);
+ setOverwriteMode(true);
+ setHighlighting(true);
+ setReadOnly(false);
+
+ init();
+
+}
+
+QHexEdit::~QHexEdit()
+{
+}
+
+// ********************************************************************** Properties
+
+void QHexEdit::setAddressArea(bool addressArea)
+{
+ _addressArea = addressArea;
+ adjust();
+ setCursorPosition(_cursorPosition);
+ viewport()->update();
+}
+
+bool QHexEdit::addressArea()
+{
+ return _addressArea;
+}
+
+void QHexEdit::setAddressAreaColor(const QColor &color)
+{
+ _addressAreaColor = color;
+ viewport()->update();
+}
+
+QColor QHexEdit::addressAreaColor()
+{
+ return _addressAreaColor;
+}
+
+void QHexEdit::setAddressFontColor(const QColor &color)
+{
+ _addressFontColor = color;
+ viewport()->update();
+}
+
+QColor QHexEdit::addressFontColor()
+{
+ return _addressFontColor;
+}
+
+void QHexEdit::setAsciiAreaColor(const QColor &color)
+{
+ _asciiAreaColor = color;
+ viewport()->update();
+}
+
+QColor QHexEdit::asciiAreaColor()
+{
+ return _asciiAreaColor;
+}
+
+void QHexEdit::setAsciiFontColor(const QColor &color)
+{
+ _asciiFontColor = color;
+ viewport()->update();
+}
+
+QColor QHexEdit::asciiFontColor()
+{
+ return _asciiFontColor;
+}
+
+void QHexEdit::setHexFontColor(const QColor &color)
+{
+ _hexFontColor = color;
+ viewport()->update();
+}
+
+QColor QHexEdit::hexFontColor()
+{
+ return _hexFontColor;
+}
+
+void QHexEdit::setAddressOffset(qint64 addressOffset)
+{
+ _addressOffset = addressOffset;
+ adjust();
+ setCursorPosition(_cursorPosition);
+ viewport()->update();
+}
+
+qint64 QHexEdit::addressOffset()
+{
+ return _addressOffset;
+}
+
+void QHexEdit::setAddressWidth(int addressWidth)
+{
+ _addressWidth = addressWidth;
+ adjust();
+ setCursorPosition(_cursorPosition);
+ viewport()->update();
+}
+
+int QHexEdit::addressWidth()
+{
+ qint64 size = _chunks->size();
+ int n = 1;
+ if (size > Q_INT64_C(0x100000000)){ n += 8; size /= Q_INT64_C(0x100000000);}
+ if (size > 0x10000){ n += 4; size /= 0x10000;}
+ if (size > 0x100){ n += 2; size /= 0x100;}
+ if (size > 0x10){ n += 1;}
+
+ if (n > _addressWidth)
+ return n;
+ else
+ return _addressWidth;
+}
+
+void QHexEdit::setAsciiArea(bool asciiArea)
+{
+ if (!asciiArea)
+ _editAreaIsAscii = false;
+ _asciiArea = asciiArea;
+ adjust();
+ setCursorPosition(_cursorPosition);
+ viewport()->update();
+}
+
+bool QHexEdit::asciiArea()
+{
+ return _asciiArea;
+}
+
+void QHexEdit::setBytesPerLine(int count)
+{
+ _bytesPerLine = count;
+ _hexCharsInLine = count * 3 - 1;
+
+ adjust();
+ setCursorPosition(_cursorPosition);
+ viewport()->update();
+}
+
+int QHexEdit::bytesPerLine()
+{
+ return _bytesPerLine;
+}
+
+void QHexEdit::setCursorPosition(qint64 position)
+{
+ // 1. delete old cursor
+ _blink = false;
+ viewport()->update(_cursorRect);
+
+ // 2. Check, if cursor in range?
+ if (position > (_chunks->size() * 2 - 1))
+ position = _chunks->size() * 2 - (_overwriteMode ? 1 : 0);
+
+ if (position < 0)
+ position = 0;
+
+ // 3. Calc new position of cursor
+ _bPosCurrent = position / 2;
+ _pxCursorY = ((position / 2 - _bPosFirst) / _bytesPerLine + 1) * _pxCharHeight;
+ int x = (position % (2 * _bytesPerLine));
+ if (_editAreaIsAscii)
+ {
+ _pxCursorX = x / 2 * _pxCharWidth + _pxPosAsciiX;
+ _cursorPosition = position & 0xFFFFFFFFFFFFFFFE;
+ } else {
+ _pxCursorX = (((x / 2) * 3) + (x % 2)) * _pxCharWidth + _pxPosHexX;
+ _cursorPosition = position;
+ }
+
+ if (_overwriteMode)
+ _cursorRect = QRect(_pxCursorX - horizontalScrollBar()->value(), _pxCursorY + _pxCursorWidth, _pxCharWidth, _pxCursorWidth);
+ else
+ _cursorRect = QRect(_pxCursorX - horizontalScrollBar()->value(), _pxCursorY - _pxCharHeight + 4, _pxCursorWidth, _pxCharHeight);
+
+ // 4. Immediately draw new cursor
+ _blink = true;
+ viewport()->update(_cursorRect);
+ emit currentAddressChanged(_bPosCurrent);
+}
+
+qint64 QHexEdit::cursorPosition(QPoint pos)
+{
+ // Calc cursor position depending on a graphical position
+ qint64 result = -1;
+ int posX = pos.x() + horizontalScrollBar()->value();
+ int posY = pos.y() - 3;
+ if ((posX >= _pxPosHexX) && (posX < (_pxPosHexX + (1 + _hexCharsInLine) * _pxCharWidth)))
+ {
+ _editAreaIsAscii = false;
+ int x = (posX - _pxPosHexX) / _pxCharWidth;
+ x = (x / 3) * 2 + x % 3;
+ int y = (posY / _pxCharHeight) * 2 * _bytesPerLine;
+ result = _bPosFirst * 2 + x + y;
+ }
+ else
+ if (_asciiArea && (posX >= _pxPosAsciiX) && (posX < (_pxPosAsciiX + (1 + _bytesPerLine) * _pxCharWidth)))
+ {
+ _editAreaIsAscii = true;
+ int x = 2 * (posX - _pxPosAsciiX) / _pxCharWidth;
+ int y = (posY / _pxCharHeight) * 2 * _bytesPerLine;
+ result = _bPosFirst * 2 + x + y;
+ }
+ return result;
+}
+
+qint64 QHexEdit::cursorPosition()
+{
+ return _cursorPosition;
+}
+
+void QHexEdit::setData(const QByteArray &ba)
+{
+ _data = ba;
+ _bData.setData(_data);
+ setData(_bData);
+}
+
+QByteArray QHexEdit::data()
+{
+ return _chunks->data(0, -1);
+}
+
+void QHexEdit::setHighlighting(bool highlighting)
+{
+ _highlighting = highlighting;
+ viewport()->update();
+}
+
+bool QHexEdit::highlighting()
+{
+ return _highlighting;
+}
+
+void QHexEdit::setHighlightingColor(const QColor &color)
+{
+ _brushHighlighted = QBrush(color);
+ _penHighlighted = QPen(viewport()->palette().color(QPalette::WindowText));
+ viewport()->update();
+}
+
+QColor QHexEdit::highlightingColor()
+{
+ return _brushHighlighted.color();
+}
+
+void QHexEdit::setOverwriteMode(bool overwriteMode)
+{
+ _overwriteMode = overwriteMode;
+ emit overwriteModeChanged(overwriteMode);
+}
+
+bool QHexEdit::overwriteMode()
+{
+ return _overwriteMode;
+}
+
+void QHexEdit::setSelectionColor(const QColor &color)
+{
+ _brushSelection = QBrush(color);
+ _penSelection = QPen(Qt::white);
+ viewport()->update();
+}
+
+QColor QHexEdit::selectionColor()
+{
+ return _brushSelection.color();
+}
+
+bool QHexEdit::isReadOnly()
+{
+ return _readOnly;
+}
+
+void QHexEdit::setReadOnly(bool readOnly)
+{
+ _readOnly = readOnly;
+}
+
+void QHexEdit::setHexCaps(const bool isCaps)
+{
+ if (_hexCaps != isCaps)
+ {
+ _hexCaps = isCaps;
+ viewport()->update();
+ }
+}
+
+bool QHexEdit::hexCaps()
+{
+ return _hexCaps;
+}
+
+void QHexEdit::setDynamicBytesPerLine(const bool isDynamic)
+{
+ _dynamicBytesPerLine = isDynamic;
+ resizeEvent(NULL);
+}
+
+bool QHexEdit::dynamicBytesPerLine()
+{
+ return _dynamicBytesPerLine;
+}
+
+// ********************************************************************** Access to data of qhexedit
+bool QHexEdit::setData(QIODevice &iODevice)
+{
+ bool ok = _chunks->setIODevice(iODevice);
+ init();
+ dataChangedPrivate();
+ return ok;
+}
+
+QByteArray QHexEdit::dataAt(qint64 pos, qint64 count)
+{
+ return _chunks->data(pos, count);
+}
+
+bool QHexEdit::write(QIODevice &iODevice, qint64 pos, qint64 count)
+{
+ return _chunks->write(iODevice, pos, count);
+}
+
+// ********************************************************************** Char handling
+void QHexEdit::insert(qint64 index, char ch)
+{
+ _undoStack->insert(index, ch);
+ refresh();
+}
+
+void QHexEdit::remove(qint64 index, qint64 len)
+{
+ _undoStack->removeAt(index, len);
+ refresh();
+}
+
+void QHexEdit::replace(qint64 index, char ch)
+{
+ _undoStack->overwrite(index, ch);
+ refresh();
+}
+
+// ********************************************************************** ByteArray handling
+void QHexEdit::insert(qint64 pos, const QByteArray &ba)
+{
+ _undoStack->insert(pos, ba);
+ refresh();
+}
+
+void QHexEdit::replace(qint64 pos, qint64 len, const QByteArray &ba)
+{
+ _undoStack->overwrite(pos, len, ba);
+ refresh();
+}
+
+// ********************************************************************** Utility functions
+void QHexEdit::ensureVisible()
+{
+ if (_cursorPosition < (_bPosFirst * 2))
+ verticalScrollBar()->setValue((int)(_cursorPosition / 2 / _bytesPerLine));
+ if (_cursorPosition > ((_bPosFirst + (_rowsShown - 1)*_bytesPerLine) * 2))
+ verticalScrollBar()->setValue((int)(_cursorPosition / 2 / _bytesPerLine) - _rowsShown + 1);
+ if (_pxCursorX < horizontalScrollBar()->value())
+ horizontalScrollBar()->setValue(_pxCursorX);
+ if ((_pxCursorX + _pxCharWidth) > (horizontalScrollBar()->value() + viewport()->width()))
+ horizontalScrollBar()->setValue(_pxCursorX + _pxCharWidth - viewport()->width());
+ viewport()->update();
+}
+
+qint64 QHexEdit::indexOf(const QByteArray &ba, qint64 from)
+{
+ qint64 pos = _chunks->indexOf(ba, from);
+ if (pos > -1)
+ {
+ qint64 curPos = pos*2;
+ setCursorPosition(curPos + ba.length()*2);
+ resetSelection(curPos);
+ setSelection(curPos + ba.length()*2);
+ ensureVisible();
+ }
+ return pos;
+}
+
+bool QHexEdit::isModified()
+{
+ return _modified;
+}
+
+qint64 QHexEdit::lastIndexOf(const QByteArray &ba, qint64 from)
+{
+ qint64 pos = _chunks->lastIndexOf(ba, from);
+ if (pos > -1)
+ {
+ qint64 curPos = pos*2;
+ setCursorPosition(curPos - 1);
+ resetSelection(curPos);
+ setSelection(curPos + ba.length()*2);
+ ensureVisible();
+ }
+ return pos;
+}
+
+void QHexEdit::redo()
+{
+ _undoStack->redo();
+ setCursorPosition(_chunks->pos()*(_editAreaIsAscii ? 1 : 2));
+ refresh();
+}
+
+QString QHexEdit::selectionToReadableString()
+{
+ QByteArray ba = _chunks->data(getSelectionBegin(), getSelectionEnd() - getSelectionBegin());
+ return toReadable(ba);
+}
+
+QString QHexEdit::selectedData()
+{
+ QByteArray ba = _chunks->data(getSelectionBegin(), getSelectionEnd() - getSelectionBegin()).toHex();
+ return ba;
+}
+
+void QHexEdit::setFont(const QFont &font)
+{
+ QFont theFont(font);
+ theFont.setStyleHint(QFont::Monospace);
+ QWidget::setFont(theFont);
+ QFontMetrics metrics = fontMetrics();
+#if QT_VERSION > QT_VERSION_CHECK(5, 11, 0)
+ _pxCharWidth = metrics.horizontalAdvance(QLatin1Char('2'));
+#else
+ _pxCharWidth = metrics.width(QLatin1Char('2'));
+#endif
+ _pxCharHeight = metrics.height();
+ _pxGapAdr = _pxCharWidth / 2;
+ _pxGapAdrHex = _pxCharWidth;
+ _pxGapHexAscii = 2 * _pxCharWidth;
+ _pxCursorWidth = _pxCharHeight / 7;
+ _pxSelectionSub = _pxCharHeight / 5;
+ viewport()->update();
+}
+
+QString QHexEdit::toReadableString()
+{
+ QByteArray ba = _chunks->data();
+ return toReadable(ba);
+}
+
+void QHexEdit::undo()
+{
+ _undoStack->undo();
+ setCursorPosition(_chunks->pos()*(_editAreaIsAscii ? 1 : 2));
+ refresh();
+}
+
+// ********************************************************************** Handle events
+void QHexEdit::keyPressEvent(QKeyEvent *event)
+{
+ // Cursor movements
+ if (event->matches(QKeySequence::MoveToNextChar))
+ {
+ qint64 pos = _cursorPosition + 1;
+ if (_editAreaIsAscii)
+ pos += 1;
+ setCursorPosition(pos);
+ resetSelection(pos);
+ }
+ if (event->matches(QKeySequence::MoveToPreviousChar))
+ {
+ qint64 pos = _cursorPosition - 1;
+ if (_editAreaIsAscii)
+ pos -= 1;
+ setCursorPosition(pos);
+ resetSelection(pos);
+ }
+ if (event->matches(QKeySequence::MoveToEndOfLine))
+ {
+ qint64 pos = _cursorPosition - (_cursorPosition % (2 * _bytesPerLine)) + (2 * _bytesPerLine) - 1;
+ setCursorPosition(pos);
+ resetSelection(_cursorPosition);
+ }
+ if (event->matches(QKeySequence::MoveToStartOfLine))
+ {
+ qint64 pos = _cursorPosition - (_cursorPosition % (2 * _bytesPerLine));
+ setCursorPosition(pos);
+ resetSelection(_cursorPosition);
+ }
+ if (event->matches(QKeySequence::MoveToPreviousLine))
+ {
+ setCursorPosition(_cursorPosition - (2 * _bytesPerLine));
+ resetSelection(_cursorPosition);
+ }
+ if (event->matches(QKeySequence::MoveToNextLine))
+ {
+ setCursorPosition(_cursorPosition + (2 * _bytesPerLine));
+ resetSelection(_cursorPosition);
+ }
+ if (event->matches(QKeySequence::MoveToNextPage))
+ {
+ setCursorPosition(_cursorPosition + (((_rowsShown - 1) * 2 * _bytesPerLine)));
+ resetSelection(_cursorPosition);
+ }
+ if (event->matches(QKeySequence::MoveToPreviousPage))
+ {
+ setCursorPosition(_cursorPosition - (((_rowsShown - 1) * 2 * _bytesPerLine)));
+ resetSelection(_cursorPosition);
+ }
+ if (event->matches(QKeySequence::MoveToEndOfDocument))
+ {
+ setCursorPosition(_chunks->size() * 2 );
+ resetSelection(_cursorPosition);
+ }
+ if (event->matches(QKeySequence::MoveToStartOfDocument))
+ {
+ setCursorPosition(0);
+ resetSelection(_cursorPosition);
+ }
+
+ // Select commands
+ if (event->matches(QKeySequence::SelectAll))
+ {
+ resetSelection(0);
+ setSelection(2 * _chunks->size() + 1);
+ }
+ if (event->matches(QKeySequence::SelectNextChar))
+ {
+ qint64 pos = _cursorPosition + 1;
+ if (_editAreaIsAscii)
+ pos += 1;
+ setCursorPosition(pos);
+ setSelection(pos);
+ }
+ if (event->matches(QKeySequence::SelectPreviousChar))
+ {
+ qint64 pos = _cursorPosition - 1;
+ if (_editAreaIsAscii)
+ pos -= 1;
+ setSelection(pos);
+ setCursorPosition(pos);
+ }
+ if (event->matches(QKeySequence::SelectEndOfLine))
+ {
+ qint64 pos = _cursorPosition - (_cursorPosition % (2 * _bytesPerLine)) + (2 * _bytesPerLine) - 1;
+ setCursorPosition(pos);
+ setSelection(pos);
+ }
+ if (event->matches(QKeySequence::SelectStartOfLine))
+ {
+ qint64 pos = _cursorPosition - (_cursorPosition % (2 * _bytesPerLine));
+ setCursorPosition(pos);
+ setSelection(pos);
+ }
+ if (event->matches(QKeySequence::SelectPreviousLine))
+ {
+ qint64 pos = _cursorPosition - (2 * _bytesPerLine);
+ setCursorPosition(pos);
+ setSelection(pos);
+ }
+ if (event->matches(QKeySequence::SelectNextLine))
+ {
+ qint64 pos = _cursorPosition + (2 * _bytesPerLine);
+ setCursorPosition(pos);
+ setSelection(pos);
+ }
+ if (event->matches(QKeySequence::SelectNextPage))
+ {
+ qint64 pos = _cursorPosition + (((viewport()->height() / _pxCharHeight) - 1) * 2 * _bytesPerLine);
+ setCursorPosition(pos);
+ setSelection(pos);
+ }
+ if (event->matches(QKeySequence::SelectPreviousPage))
+ {
+ qint64 pos = _cursorPosition - (((viewport()->height() / _pxCharHeight) - 1) * 2 * _bytesPerLine);
+ setCursorPosition(pos);
+ setSelection(pos);
+ }
+ if (event->matches(QKeySequence::SelectEndOfDocument))
+ {
+ qint64 pos = _chunks->size() * 2;
+ setCursorPosition(pos);
+ setSelection(pos);
+ }
+ if (event->matches(QKeySequence::SelectStartOfDocument))
+ {
+ qint64 pos = 0;
+ setCursorPosition(pos);
+ setSelection(pos);
+ }
+
+ // Edit Commands
+ if (!_readOnly)
+ {
+ /* Cut */
+ if (event->matches(QKeySequence::Cut))
+ {
+ QByteArray ba = _chunks->data(getSelectionBegin(), getSelectionEnd() - getSelectionBegin()).toHex();
+ for (qint64 idx = 32; idx < ba.size(); idx +=33)
+ ba.insert(idx, "\n");
+ QClipboard *clipboard = QApplication::clipboard();
+ clipboard->setText(ba);
+ if (_overwriteMode)
+ {
+ qint64 len = getSelectionEnd() - getSelectionBegin();
+ replace(getSelectionBegin(), (int)len, QByteArray((int)len, char(0)));
+ }
+ else
+ {
+ remove(getSelectionBegin(), getSelectionEnd() - getSelectionBegin());
+ }
+ setCursorPosition(2 * getSelectionBegin());
+ resetSelection(2 * getSelectionBegin());
+ } else
+
+ /* Paste */
+ if (event->matches(QKeySequence::Paste))
+ {
+ QClipboard *clipboard = QApplication::clipboard();
+ QByteArray ba = QByteArray().fromHex(clipboard->text().toLatin1());
+ if (_overwriteMode)
+ {
+ ba = ba.left(std::min<qint64>(ba.size(), (_chunks->size() - _bPosCurrent)));
+ replace(_bPosCurrent, ba.size(), ba);
+ }
+ else
+ insert(_bPosCurrent, ba);
+ setCursorPosition(_cursorPosition + 2 * ba.size());
+ resetSelection(getSelectionBegin());
+ } else
+
+ /* Delete char */
+ if (event->matches(QKeySequence::Delete))
+ {
+ if (getSelectionBegin() != getSelectionEnd())
+ {
+ _bPosCurrent = getSelectionBegin();
+ if (_overwriteMode)
+ {
+ QByteArray ba = QByteArray(getSelectionEnd() - getSelectionBegin(), char(0));
+ replace(_bPosCurrent, ba.size(), ba);
+ }
+ else
+ {
+ remove(_bPosCurrent, getSelectionEnd() - getSelectionBegin());
+ }
+ }
+ else
+ {
+ if (_overwriteMode)
+ replace(_bPosCurrent, char(0));
+ else
+ remove(_bPosCurrent, 1);
+ }
+ setCursorPosition(2 * _bPosCurrent);
+ resetSelection(2 * _bPosCurrent);
+ } else
+
+ /* Backspace */
+ if ((event->key() == Qt::Key_Backspace) && (event->modifiers() == Qt::NoModifier))
+ {
+ if (getSelectionBegin() != getSelectionEnd())
+ {
+ _bPosCurrent = getSelectionBegin();
+ setCursorPosition(2 * _bPosCurrent);
+ if (_overwriteMode)
+ {
+ QByteArray ba = QByteArray(getSelectionEnd() - getSelectionBegin(), char(0));
+ replace(_bPosCurrent, ba.size(), ba);
+ }
+ else
+ {
+ remove(_bPosCurrent, getSelectionEnd() - getSelectionBegin());
+ }
+ resetSelection(2 * _bPosCurrent);
+ }
+ else
+ {
+ bool behindLastByte = false;
+ if ((_cursorPosition / 2) == _chunks->size())
+ behindLastByte = true;
+
+ _bPosCurrent -= 1;
+ if (_overwriteMode)
+ replace(_bPosCurrent, char(0));
+ else
+ remove(_bPosCurrent, 1);
+
+ if (!behindLastByte)
+ _bPosCurrent -= 1;
+
+ setCursorPosition(2 * _bPosCurrent);
+ resetSelection(2 * _bPosCurrent);
+ }
+ } else
+
+ /* undo */
+ if (event->matches(QKeySequence::Undo))
+ {
+ undo();
+ } else
+
+ /* redo */
+ if (event->matches(QKeySequence::Redo))
+ {
+ redo();
+ } else
+
+ if ((QApplication::keyboardModifiers() == Qt::NoModifier) ||
+ (QApplication::keyboardModifiers() == Qt::KeypadModifier) ||
+ (QApplication::keyboardModifiers() == Qt::ShiftModifier) ||
+ (QApplication::keyboardModifiers() == (Qt::AltModifier | Qt::ControlModifier)) ||
+ (QApplication::keyboardModifiers() == Qt::GroupSwitchModifier))
+ {
+ /* Hex and ascii input */
+ int key = 0;
+ QString text = event->text();
+ if (!text.isEmpty())
+ {
+ if (_editAreaIsAscii)
+ key = (uchar)text.at(0).toLatin1();
+ else
+ key = int(text.at(0).toLower().toLatin1());
+ }
+
+ if ((((key >= '0' && key <= '9') || (key >= 'a' && key <= 'f')) && _editAreaIsAscii == false)
+ || (key >= ' ' && _editAreaIsAscii))
+ {
+ if (getSelectionBegin() != getSelectionEnd())
+ {
+ if (_overwriteMode)
+ {
+ qint64 len = getSelectionEnd() - getSelectionBegin();
+ replace(getSelectionBegin(), (int)len, QByteArray((int)len, char(0)));
+ } else
+ {
+ remove(getSelectionBegin(), getSelectionEnd() - getSelectionBegin());
+ _bPosCurrent = getSelectionBegin();
+ }
+ setCursorPosition(2 * _bPosCurrent);
+ resetSelection(2 * _bPosCurrent);
+ }
+
+ // If insert mode, then insert a byte
+ if (_overwriteMode == false)
+ if ((_cursorPosition % 2) == 0)
+ insert(_bPosCurrent, char(0));
+
+ // Change content
+ if (_chunks->size() > 0)
+ {
+ char ch = key;
+ if (!_editAreaIsAscii){
+ QByteArray hexValue = _chunks->data(_bPosCurrent, 1).toHex();
+ if ((_cursorPosition % 2) == 0)
+ hexValue[0] = key;
+ else
+ hexValue[1] = key;
+ ch = QByteArray().fromHex(hexValue)[0];
+ }
+ replace(_bPosCurrent, ch);
+ if (_editAreaIsAscii)
+ setCursorPosition(_cursorPosition + 2);
+ else
+ setCursorPosition(_cursorPosition + 1);
+ resetSelection(_cursorPosition);
+ }
+ }
+ }
+
+
+ }
+
+ /* Copy */
+ if (event->matches(QKeySequence::Copy))
+ {
+ QByteArray ba = _chunks->data(getSelectionBegin(), getSelectionEnd() - getSelectionBegin()).toHex();
+ for (qint64 idx = 32; idx < ba.size(); idx +=33)
+ ba.insert(idx, "\n");
+ QClipboard *clipboard = QApplication::clipboard();
+ clipboard->setText(ba);
+ }
+
+ // Switch between insert/overwrite mode
+ if ((event->key() == Qt::Key_Insert) && (event->modifiers() == Qt::NoModifier))
+ {
+ setOverwriteMode(!overwriteMode());
+ setCursorPosition(_cursorPosition);
+ }
+
+ // switch from hex to ascii edit
+ if (event->key() == Qt::Key_Tab && !_editAreaIsAscii){
+ _editAreaIsAscii = true;
+ setCursorPosition(_cursorPosition);
+ }
+
+ // switch from ascii to hex edit
+ if (event->key() == Qt::Key_Backtab && _editAreaIsAscii){
+ _editAreaIsAscii = false;
+ setCursorPosition(_cursorPosition);
+ }
+
+ refresh();
+ QAbstractScrollArea::keyPressEvent(event);
+}
+
+void QHexEdit::mouseMoveEvent(QMouseEvent * event)
+{
+ _blink = false;
+ viewport()->update();
+ qint64 actPos = cursorPosition(event->pos());
+ if (actPos >= 0)
+ {
+ setCursorPosition(actPos);
+ setSelection(actPos);
+ }
+}
+
+void QHexEdit::mousePressEvent(QMouseEvent * event)
+{
+ _blink = false;
+ viewport()->update();
+ qint64 cPos = cursorPosition(event->pos());
+ if (cPos >= 0)
+ {
+ if (event->button() != Qt::RightButton)
+ resetSelection(cPos);
+ setCursorPosition(cPos);
+ }
+}
+
+void QHexEdit::paintEvent(QPaintEvent *event)
+{
+ QPainter painter(viewport());
+ int pxOfsX = horizontalScrollBar()->value();
+
+ if (event->rect() != _cursorRect)
+ {
+ int pxPosStartY = _pxCharHeight;
+
+ // draw some patterns if needed
+ painter.fillRect(event->rect(), viewport()->palette().color(QPalette::Base));
+ if (_addressArea)
+ painter.fillRect(QRect(-pxOfsX, event->rect().top(), _pxPosHexX - _pxGapAdrHex/2, height()), _addressAreaColor);
+ if (_asciiArea)
+ {
+ int linePos = _pxPosAsciiX - (_pxGapHexAscii / 2);
+ painter.setPen(Qt::gray);
+ painter.drawLine(linePos - pxOfsX, event->rect().top(), linePos - pxOfsX, height());
+ }
+
+ painter.setPen(viewport()->palette().color(QPalette::WindowText));
+
+ // paint address area
+ if (_addressArea)
+ {
+ QString address;
+ for (int row=0, pxPosY = _pxCharHeight; row <= (_dataShown.size()/_bytesPerLine); row++, pxPosY +=_pxCharHeight)
+ {
+ address = QString("%1").arg(_bPosFirst + row*_bytesPerLine + _addressOffset, _addrDigits, 16, QChar('0'));
+ painter.setPen(QPen(_addressFontColor));
+ painter.drawText(_pxPosAdrX - pxOfsX, pxPosY, hexCaps() ? address.toUpper() : address);
+ }
+ }
+
+ // paint hex and ascii area
+ QPen colStandard = QPen(viewport()->palette().color(QPalette::WindowText));
+
+ painter.setBackgroundMode(Qt::TransparentMode);
+
+ for (int row = 0, pxPosY = pxPosStartY; row <= _rowsShown; row++, pxPosY +=_pxCharHeight)
+ {
+ QByteArray hex;
+ int pxPosX = _pxPosHexX - pxOfsX;
+ int pxPosAsciiX2 = _pxPosAsciiX - pxOfsX;
+ qint64 bPosLine = row * _bytesPerLine;
+ for (int colIdx = 0; ((bPosLine + colIdx) < _dataShown.size() && (colIdx < _bytesPerLine)); colIdx++)
+ {
+ QColor c = viewport()->palette().color(QPalette::Base);
+ painter.setPen(QPen(_hexFontColor));
+
+ qint64 posBa = _bPosFirst + bPosLine + colIdx;
+ if ((getSelectionBegin() <= posBa) && (getSelectionEnd() > posBa))
+ {
+ c = _brushSelection.color();
+ painter.setPen(_penSelection);
+ }
+ else
+ {
+ if (_highlighting)
+ if (_markedShown.at((int)(posBa - _bPosFirst)))
+ {
+ c = _brushHighlighted.color();
+ painter.setPen(_penHighlighted);
+ }
+ }
+
+ // render hex value
+ QRect r;
+ if (colIdx == 0)
+ r.setRect(pxPosX, pxPosY - _pxCharHeight + _pxSelectionSub, 2*_pxCharWidth, _pxCharHeight);
+ else
+ r.setRect(pxPosX - _pxCharWidth, pxPosY - _pxCharHeight + _pxSelectionSub, 3*_pxCharWidth, _pxCharHeight);
+ painter.fillRect(r, c);
+ hex = _hexDataShown.mid((bPosLine + colIdx) * 2, 2);
+ painter.drawText(pxPosX, pxPosY, hexCaps()?hex.toUpper():hex);
+ pxPosX += 3*_pxCharWidth;
+
+ // render ascii value
+ if (_asciiArea)
+ {
+ if (c == viewport()->palette().color(QPalette::Base))
+ c = _asciiAreaColor;
+ int ch = (uchar)_dataShown.at(bPosLine + colIdx);
+ if ( ch < ' ' || ch > '~' )
+ ch = '.';
+ r.setRect(pxPosAsciiX2, pxPosY - _pxCharHeight + _pxSelectionSub, _pxCharWidth, _pxCharHeight);
+ painter.fillRect(r, c);
+ painter.setPen(QPen(_asciiFontColor));
+ painter.drawText(pxPosAsciiX2, pxPosY, QChar(ch));
+ pxPosAsciiX2 += _pxCharWidth;
+ }
+ }
+ }
+ painter.setBackgroundMode(Qt::TransparentMode);
+ painter.setPen(viewport()->palette().color(QPalette::WindowText));
+ }
+
+ // _cursorPosition counts in 2, _bPosFirst counts in 1
+ int hexPositionInShowData = _cursorPosition - 2 * _bPosFirst;
+
+ // due to scrolling the cursor can go out of the currently displayed data
+ if ((hexPositionInShowData >= 0) && (hexPositionInShowData < _hexDataShown.size()))
+ {
+ // paint cursor
+ if (_readOnly)
+ {
+ QColor color = viewport()->palette().dark().color();
+ painter.fillRect(QRect(_pxCursorX - pxOfsX, _pxCursorY - _pxCharHeight + _pxSelectionSub, _pxCharWidth, _pxCharHeight), color);
+ }
+ else
+ {
+ if (_blink && hasFocus())
+ painter.fillRect(_cursorRect, this->palette().color(QPalette::WindowText));
+ }
+ if (_editAreaIsAscii)
+ {
+ // every 2 hex there is 1 ascii
+ int asciiPositionInShowData = hexPositionInShowData / 2;
+ int ch = (uchar)_dataShown.at(asciiPositionInShowData);
+ if (ch < ' ' || ch > '~')
+ ch = '.';
+
+ painter.drawText(_pxCursorX - pxOfsX, _pxCursorY, QChar(ch));
+ }
+ else
+ {
+ painter.drawText(_pxCursorX - pxOfsX, _pxCursorY, hexCaps() ? _hexDataShown.mid(hexPositionInShowData, 1).toUpper() : _hexDataShown.mid(hexPositionInShowData, 1));
+ }
+ }
+
+ // emit event, if size has changed
+ if (_lastEventSize != _chunks->size())
+ {
+ _lastEventSize = _chunks->size();
+ emit currentSizeChanged(_lastEventSize);
+ }
+}
+
+void QHexEdit::resizeEvent(QResizeEvent *)
+{
+ if (_dynamicBytesPerLine)
+ {
+ int pxFixGaps = 0;
+ if (_addressArea)
+ pxFixGaps = addressWidth() * _pxCharWidth + _pxGapAdr;
+ pxFixGaps += _pxGapAdrHex;
+ if (_asciiArea)
+ pxFixGaps += _pxGapHexAscii;
+
+ // +1 because the last hex value do not have space. so it is effective one char more
+ int charWidth = (viewport()->width() - pxFixGaps ) / _pxCharWidth + 1;
+
+ // 2 hex alfa-digits 1 space 1 ascii per byte = 4; if ascii is disabled then 3
+ // to prevent devision by zero use the min value 1
+ setBytesPerLine(std::max(charWidth / (_asciiArea ? 4 : 3),1));
+ }
+ adjust();
+}
+
+bool QHexEdit::focusNextPrevChild(bool next)
+{
+ if (_addressArea)
+ {
+ if ( (next && _editAreaIsAscii) || (!next && !_editAreaIsAscii ))
+ return QWidget::focusNextPrevChild(next);
+ else
+ return false;
+ }
+ else
+ {
+ return QWidget::focusNextPrevChild(next);
+ }
+}
+
+// ********************************************************************** Handle selections
+void QHexEdit::resetSelection()
+{
+ _bSelectionBegin = _bSelectionInit;
+ _bSelectionEnd = _bSelectionInit;
+}
+
+void QHexEdit::resetSelection(qint64 pos)
+{
+ pos = pos / 2 ;
+ if (pos < 0)
+ pos = 0;
+ if (pos > _chunks->size())
+ pos = _chunks->size();
+
+ _bSelectionInit = pos;
+ _bSelectionBegin = pos;
+ _bSelectionEnd = pos;
+}
+
+void QHexEdit::setSelection(qint64 pos)
+{
+ pos = pos / 2;
+ if (pos < 0)
+ pos = 0;
+ if (pos > _chunks->size())
+ pos = _chunks->size();
+
+ if (pos >= _bSelectionInit)
+ {
+ _bSelectionEnd = pos;
+ _bSelectionBegin = _bSelectionInit;
+ }
+ else
+ {
+ _bSelectionBegin = pos;
+ _bSelectionEnd = _bSelectionInit;
+ }
+}
+
+qint64 QHexEdit::getSelectionBegin()
+{
+ return _bSelectionBegin;
+}
+
+qint64 QHexEdit::getSelectionEnd()
+{
+ return _bSelectionEnd;
+}
+
+// ********************************************************************** Private utility functions
+void QHexEdit::init()
+{
+ _undoStack->clear();
+ setAddressOffset(0);
+ resetSelection(0);
+ setCursorPosition(0);
+ verticalScrollBar()->setValue(0);
+ _modified = false;
+}
+
+void QHexEdit::adjust()
+{
+ // recalc Graphics
+ if (_addressArea)
+ {
+ _addrDigits = addressWidth();
+ _pxPosHexX = _pxGapAdr + _addrDigits*_pxCharWidth + _pxGapAdrHex;
+ }
+ else
+ _pxPosHexX = _pxGapAdrHex;
+ _pxPosAdrX = _pxGapAdr;
+ _pxPosAsciiX = _pxPosHexX + _hexCharsInLine * _pxCharWidth + _pxGapHexAscii;
+
+ // set horizontalScrollBar()
+ int pxWidth = _pxPosAsciiX;
+ if (_asciiArea)
+ pxWidth += _bytesPerLine*_pxCharWidth;
+ horizontalScrollBar()->setRange(0, pxWidth - viewport()->width());
+ horizontalScrollBar()->setPageStep(viewport()->width());
+
+ // set verticalScrollbar()
+ _rowsShown = ((viewport()->height()-4)/_pxCharHeight);
+ int lineCount = (int)(_chunks->size() / (qint64)_bytesPerLine) + 1;
+ verticalScrollBar()->setRange(0, lineCount - _rowsShown);
+ verticalScrollBar()->setPageStep(_rowsShown);
+
+ int value = verticalScrollBar()->value();
+ _bPosFirst = (qint64)value * _bytesPerLine;
+ _bPosLast = _bPosFirst + (qint64)(_rowsShown * _bytesPerLine) - 1;
+ if (_bPosLast >= _chunks->size())
+ _bPosLast = _chunks->size() - 1;
+ readBuffers();
+ setCursorPosition(_cursorPosition);
+}
+
+void QHexEdit::dataChangedPrivate(int)
+{
+ _modified = _undoStack->index() != 0;
+ adjust();
+ emit dataChanged();
+}
+
+void QHexEdit::refresh()
+{
+ ensureVisible();
+ readBuffers();
+}
+
+void QHexEdit::readBuffers()
+{
+ _dataShown = _chunks->data(_bPosFirst, _bPosLast - _bPosFirst + _bytesPerLine + 1, &_markedShown);
+ _hexDataShown = QByteArray(_dataShown.toHex());
+}
+
+QString QHexEdit::toReadable(const QByteArray &ba)
+{
+ QString result;
+
+ for (int i=0; i < ba.size(); i += 16)
+ {
+ QString addrStr = QString("%1").arg(_addressOffset + i, addressWidth(), 16, QChar('0'));
+ QString hexStr;
+ QString ascStr;
+ for (int j=0; j<16; j++)
+ {
+ if ((i + j) < ba.size())
+ {
+ hexStr.append(" ").append(ba.mid(i+j, 1).toHex());
+ char ch = ba[i + j];
+ if ((ch < 0x20) || (ch > 0x7e))
+ ch = '.';
+ ascStr.append(QChar(ch));
+ }
+ }
+ result += addrStr + " " + QString("%1").arg(hexStr, -48) + " " + QString("%1").arg(ascStr, -17) + "\n";
+ }
+ return result;
+}
+
+void QHexEdit::updateCursor()
+{
+ if (_blink)
+ _blink = false;
+ else
+ _blink = true;
+ viewport()->update(_cursorRect);
+}
diff --git a/src/qhexedit.h b/src/qhexedit.h
new file mode 100644
index 0000000..1a5801a
--- /dev/null
+++ b/src/qhexedit.h
@@ -0,0 +1,459 @@
+#ifndef QHEXEDIT_H
+#define QHEXEDIT_H
+
+#include <QAbstractScrollArea>
+#include <QPen>
+#include <QBrush>
+
+#include "chunks.h"
+#include "commands.h"
+
+#ifdef QHEXEDIT_EXPORTS
+#define QHEXEDIT_API Q_DECL_EXPORT
+#elif QHEXEDIT_IMPORTS
+#define QHEXEDIT_API Q_DECL_IMPORT
+#else
+#define QHEXEDIT_API
+#endif
+
+/** \mainpage
+QHexEdit is a binary editor widget for Qt.
+
+\version Version 0.8.9
+\image html qhexedit.png
+*/
+
+
+/** QHexEdit is a hex editor widget written in C++ for the Qt (Qt4, Qt5) framework.
+It is a simple editor for binary data, just like QPlainTextEdit is for text
+data. There are sip configuration files included, so it is easy to create
+bindings for PyQt and you can use this widget also in python 2 and 3.
+
+QHexEdit takes the data of a QByteArray (setData()) and shows it. You can use
+the mouse or the keyboard to navigate inside the widget. If you hit the keys
+(0..9, a..f) you will change the data. Changed data is highlighted and can be
+accessed via data().
+
+Normally QHexEdit works in the overwrite mode. You can set overwrite mode(false)
+and insert data. In this case the size of data() increases. It is also possible
+to delete bytes (del or backspace), here the size of data decreases.
+
+You can select data with keyboard hits or mouse movements. The copy-key will
+copy the selected data into the clipboard. The cut-key copies also but deletes
+it afterwards. In overwrite mode, the paste function overwrites the content of
+the (does not change the length) data. In insert mode, clipboard data will be
+inserted. The clipboard content is expected in ASCII Hex notation. Unknown
+characters will be ignored.
+
+QHexEdit comes with undo/redo functionality. All changes can be undone, by
+pressing the undo-key (usually ctr-z). They can also be redone afterwards.
+The undo/redo framework is cleared, when setData() sets up a new
+content for the editor. You can search data inside the content with indexOf()
+and lastIndexOf(). The replace() function is to change located subdata. This
+'replaced' data can also be undone by the undo/redo framework.
+
+QHexEdit is based on QIODevice, that's why QHexEdit can handle big amounts of
+data. The size of edited data can be more then two gigabytes without any
+restrictions.
+*/
+class QHEXEDIT_API QHexEdit : public QAbstractScrollArea
+{
+ Q_OBJECT
+
+ /*! Property address area switch the address area on or off. Set addressArea true
+ (show it), false (hide it).
+ */
+ Q_PROPERTY(bool addressArea READ addressArea WRITE setAddressArea)
+
+ /*! Property address area color sets (setAddressAreaColor()) the background
+ color of address areas. You can also read the color (addressAreaColor()).
+ */
+ Q_PROPERTY(QColor addressAreaColor READ addressAreaColor WRITE setAddressAreaColor)
+
+ /*! Property address font color sets (setAddressFontColor()) the text
+ color of address areas. You can also read the color (addressFontColor()).
+ */
+ Q_PROPERTY(QColor addressFontColor READ addressFontColor WRITE setAddressFontColor)
+
+ /*! Property ascii area color sets (setAsciiAreaColor()) the backgorund
+ color of ascii areas. You can also read the color (asciiAreaColor()).
+ */
+ Q_PROPERTY(QColor asciiAreaColor READ asciiAreaColor WRITE setAsciiAreaColor)
+
+ /*! Property ascii font color sets (setAsciiFontColor()) the text
+ color of ascii areas. You can also read the color (asciiFontColor()).
+ */
+ Q_PROPERTY(QColor asciiFontColor READ asciiFontColor WRITE setAsciiFontColor)
+
+ /*! Property hex font color sets (setHexFontColor()) the text
+ color of hex areas. You can also read the color (hexFontColor()).
+ */
+ Q_PROPERTY(QColor hexFontColor READ hexFontColor WRITE setHexFontColor)
+
+ /*! Property addressOffset is added to the Numbers of the Address Area.
+ A offset in the address area (left side) is sometimes useful, whe you show
+ only a segment of a complete memory picture. With setAddressOffset() you set
+ this property - with addressOffset() you get the current value.
+ */
+ Q_PROPERTY(qint64 addressOffset READ addressOffset WRITE setAddressOffset)
+
+ /*! Set and get the minimum width of the address area, width in characters.
+ */
+ Q_PROPERTY(int addressWidth READ addressWidth WRITE setAddressWidth)
+
+ /*! Switch the ascii area on (true, show it) or off (false, hide it).
+ */
+ Q_PROPERTY(bool asciiArea READ asciiArea WRITE setAsciiArea)
+
+ /*! Set and get bytes number per line.*/
+ Q_PROPERTY(int bytesPerLine READ bytesPerLine WRITE setBytesPerLine)
+
+ /*! Property cursorPosition sets or gets the position of the editor cursor
+ in QHexEdit. Every byte in data has two cursor positions: the lower and upper
+ Nibble. Maximum cursor position is factor two of data.size().
+ */
+ Q_PROPERTY(qint64 cursorPosition READ cursorPosition WRITE setCursorPosition)
+
+ /*! Property data holds the content of QHexEdit. Call setData() to set the
+ content of QHexEdit, data() returns the actual content. When calling setData()
+ with a QByteArray as argument, QHexEdit creates a internal copy of the data
+ If you want to edit big files please use setData(), based on QIODevice.
+ */
+ Q_PROPERTY(QByteArray data READ data WRITE setData NOTIFY dataChanged)
+
+ /*! That property defines if the hex values looks as a-f if the value is false(default)
+ or A-F if value is true.
+ */
+ Q_PROPERTY(bool hexCaps READ hexCaps WRITE setHexCaps)
+
+ /*! Property defines the dynamic calculation of bytesPerLine parameter depends of width of widget.
+ set this property true to avoid horizontal scrollbars and show the maximal possible data. defalut value is false*/
+ Q_PROPERTY(bool dynamicBytesPerLine READ dynamicBytesPerLine WRITE setDynamicBytesPerLine)
+
+ /*! Switch the highlighting feature on or of: true (show it), false (hide it).
+ */
+ Q_PROPERTY(bool highlighting READ highlighting WRITE setHighlighting)
+
+ /*! Property highlighting color sets (setHighlightingColor()) the background
+ color of highlighted text areas. You can also read the color
+ (highlightingColor()).
+ */
+ Q_PROPERTY(QColor highlightingColor READ highlightingColor WRITE setHighlightingColor)
+
+ /*! Property overwrite mode sets (setOverwriteMode()) or gets (overwriteMode()) the mode
+ in which the editor works. In overwrite mode the user will overwrite existing data. The
+ size of data will be constant. In insert mode the size will grow, when inserting
+ new data.
+ */
+ Q_PROPERTY(bool overwriteMode READ overwriteMode WRITE setOverwriteMode)
+
+ /*! Property selection color sets (setSelectionColor()) the background
+ color of selected text areas. You can also read the color
+ (selectionColor()).
+ */
+ Q_PROPERTY(QColor selectionColor READ selectionColor WRITE setSelectionColor)
+
+ /*! Property readOnly sets (setReadOnly()) or gets (isReadOnly) the mode
+ in which the editor works. In readonly mode the the user can only navigate
+ through the data and select data; modifying is not possible. This
+ property's default is false.
+ */
+ Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly)
+
+ /*! Set the font of the widget. Please use fixed width fonts like Mono or Courier.*/
+ Q_PROPERTY(QFont font READ font WRITE setFont)
+
+public:
+ /*! Creates an instance of QHexEdit.
+ \param parent Parent widget of QHexEdit.
+ */
+ QHexEdit(QWidget *parent=0);
+
+ // Access to data of qhexedit
+
+ /*! Sets the data of QHexEdit. The QIODevice will be opened just before reading
+ and closed immediately afterwards. This is to allow other programs to rewrite
+ the file while editing it.
+ */
+ bool setData(QIODevice &iODevice);
+
+ /*! Gives back the data as a QByteArray starting at position \param pos and
+ delivering \param count bytes.
+ */
+ QByteArray dataAt(qint64 pos, qint64 count=-1);
+
+ /*! Gives back the data into a \param iODevice starting at position \param pos
+ and delivering \param count bytes.
+ */
+ bool write(QIODevice &iODevice, qint64 pos=0, qint64 count=-1);
+
+
+ // Char handling
+
+ /*! Inserts a char.
+ \param pos Index position, where to insert
+ \param ch Char, which is to insert
+ The char will be inserted and size of data grows.
+ */
+ void insert(qint64 pos, char ch);
+
+ /*! Removes len bytes from the content.
+ \param pos Index position, where to remove
+ \param len Amount of bytes to remove
+ */
+ void remove(qint64 pos, qint64 len=1);
+
+ /*! Replaces a char.
+ \param pos Index position, where to overwrite
+ \param ch Char, which is to insert
+ The char will be overwritten and size remains constant.
+ */
+ void replace(qint64 pos, char ch);
+
+
+ // ByteArray handling
+
+ /*! Inserts a byte array.
+ \param pos Index position, where to insert
+ \param ba QByteArray, which is to insert
+ The QByteArray will be inserted and size of data grows.
+ */
+ void insert(qint64 pos, const QByteArray &ba);
+
+ /*! Replaces \param len bytes with a byte array \param ba
+ \param pos Index position, where to overwrite
+ \param ba QByteArray, which is inserted
+ \param len count of bytes to overwrite
+ The data is overwritten and size of data may change.
+ */
+ void replace(qint64 pos, qint64 len, const QByteArray &ba);
+
+
+ // Utility functions
+ /*! Calc cursor position from graphics position
+ * \param point from where the cursor position should be calculated
+ * \return Cursor position
+ */
+ qint64 cursorPosition(QPoint point);
+
+ /*! Ensure the cursor to be visbile
+ */
+ void ensureVisible();
+
+ /*! Find first occurrence of ba in QHexEdit data
+ * \param ba Data to find
+ * \param from Point where the search starts
+ * \return pos if fond, else -1
+ */
+ qint64 indexOf(const QByteArray &ba, qint64 from);
+
+ /*! Returns if any changes where done on document
+ * \return true when document is modified else false
+ */
+ bool isModified();
+
+ /*! Find last occurrence of ba in QHexEdit data
+ * \param ba Data to find
+ * \param from Point where the search starts
+ * \return pos if fond, else -1
+ */
+ qint64 lastIndexOf(const QByteArray &ba, qint64 from);
+
+ /*! Gives back a formatted image of the selected content of QHexEdit
+ */
+ QString selectionToReadableString();
+
+ /*! Return the selected content of QHexEdit as QByteArray
+ */
+ QString selectedData();
+
+ /*! Set Font of QHexEdit
+ * \param font
+ */
+ void setFont(const QFont &font);
+
+ /*! Gives back a formatted image of the content of QHexEdit
+ */
+ QString toReadableString();
+
+
+public slots:
+ /*! Redoes the last operation. If there is no operation to redo, i.e.
+ there is no redo step in the undo/redo history, nothing happens.
+ */
+ void redo();
+
+ /*! Undoes the last operation. If there is no operation to undo, i.e.
+ there is no undo step in the undo/redo history, nothing happens.
+ */
+ void undo();
+
+signals:
+
+ /*! Contains the address, where the cursor is located. */
+ void currentAddressChanged(qint64 address);
+
+ /*! Contains the size of the data to edit. */
+ void currentSizeChanged(qint64 size);
+
+ /*! The signal is emitted every time, the data is changed. */
+ void dataChanged();
+
+ /*! The signal is emitted every time, the overwrite mode is changed. */
+ void overwriteModeChanged(bool state);
+
+
+/*! \cond docNever */
+public:
+ ~QHexEdit();
+
+ // Properties
+ bool addressArea();
+ void setAddressArea(bool addressArea);
+
+ QColor addressAreaColor();
+ void setAddressAreaColor(const QColor &color);
+
+ QColor addressFontColor();
+ void setAddressFontColor(const QColor &color);
+
+ QColor asciiAreaColor();
+ void setAsciiAreaColor(const QColor &color);
+
+ QColor asciiFontColor();
+ void setAsciiFontColor(const QColor &color);
+
+ QColor hexFontColor();
+ void setHexFontColor(const QColor &color);
+
+ qint64 addressOffset();
+ void setAddressOffset(qint64 addressArea);
+
+ int addressWidth();
+ void setAddressWidth(int addressWidth);
+
+ bool asciiArea();
+ void setAsciiArea(bool asciiArea);
+
+ int bytesPerLine();
+ void setBytesPerLine(int count);
+
+ qint64 cursorPosition();
+ void setCursorPosition(qint64 position);
+
+ QByteArray data();
+ void setData(const QByteArray &ba);
+
+ void setHexCaps(const bool isCaps);
+ bool hexCaps();
+
+ void setDynamicBytesPerLine(const bool isDynamic);
+ bool dynamicBytesPerLine();
+
+ bool highlighting();
+ void setHighlighting(bool mode);
+
+ QColor highlightingColor();
+ void setHighlightingColor(const QColor &color);
+
+ bool overwriteMode();
+ void setOverwriteMode(bool overwriteMode);
+
+ bool isReadOnly();
+ void setReadOnly(bool readOnly);
+
+ QColor selectionColor();
+ void setSelectionColor(const QColor &color);
+
+protected:
+ // Handle events
+ void keyPressEvent(QKeyEvent *event);
+ void mouseMoveEvent(QMouseEvent * event);
+ void mousePressEvent(QMouseEvent * event);
+ void paintEvent(QPaintEvent *event);
+ void resizeEvent(QResizeEvent *);
+ virtual bool focusNextPrevChild(bool next);
+private:
+ // Handle selections
+ void resetSelection(qint64 pos); // set selectionStart and selectionEnd to pos
+ void resetSelection(); // set selectionEnd to selectionStart
+ void setSelection(qint64 pos); // set min (if below init) or max (if greater init)
+ qint64 getSelectionBegin();
+ qint64 getSelectionEnd();
+
+ // Private utility functions
+ void init();
+ void readBuffers();
+ QString toReadable(const QByteArray &ba);
+
+private slots:
+ void adjust(); // recalc pixel positions
+ void dataChangedPrivate(int idx=0); // emit dataChanged() signal
+ void refresh(); // ensureVisible() and readBuffers()
+ void updateCursor(); // update blinking cursor
+
+private:
+ // Name convention: pixel positions start with _px
+ int _pxCharWidth, _pxCharHeight; // char dimensions (dependend on font)
+ int _pxPosHexX; // X-Pos of HeaxArea
+ int _pxPosAdrX; // X-Pos of Address Area
+ int _pxPosAsciiX; // X-Pos of Ascii Area
+ int _pxGapAdr; // gap left from AddressArea
+ int _pxGapAdrHex; // gap between AddressArea and HexAerea
+ int _pxGapHexAscii; // gap between HexArea and AsciiArea
+ int _pxCursorWidth; // cursor width
+ int _pxSelectionSub; // offset selection rect
+ int _pxCursorX; // current cursor pos
+ int _pxCursorY; // current cursor pos
+
+ // Name convention: absolute byte positions in chunks start with _b
+ qint64 _bSelectionBegin; // first position of Selection
+ qint64 _bSelectionEnd; // end of Selection
+ qint64 _bSelectionInit; // memory position of Selection
+ qint64 _bPosFirst; // position of first byte shown
+ qint64 _bPosLast; // position of last byte shown
+ qint64 _bPosCurrent; // current position
+
+ // variables to store the property values
+ bool _addressArea; // left area of QHexEdit
+ QColor _addressAreaColor;
+ QColor _asciiAreaColor;
+ QColor _addressFontColor;
+ QColor _asciiFontColor;
+ QColor _hexFontColor;
+ int _addressWidth;
+ bool _asciiArea;
+ qint64 _addressOffset;
+ int _bytesPerLine;
+ int _hexCharsInLine;
+ bool _highlighting;
+ bool _overwriteMode;
+ QBrush _brushSelection;
+ QPen _penSelection;
+ QBrush _brushHighlighted;
+ QPen _penHighlighted;
+ bool _readOnly;
+ bool _hexCaps;
+ bool _dynamicBytesPerLine;
+
+ // other variables
+ bool _editAreaIsAscii; // flag about the ascii mode edited
+ int _addrDigits; // real no of addressdigits, may be > addressWidth
+ bool _blink; // help get cursor blinking
+ QBuffer _bData; // buffer, when setup with QByteArray
+ Chunks *_chunks; // IODevice based access to data
+ QTimer _cursorTimer; // for blinking cursor
+ qint64 _cursorPosition; // absolute position of cursor, 1 Byte == 2 tics
+ QRect _cursorRect; // physical dimensions of cursor
+ QByteArray _data; // QHexEdit's data, when setup with QByteArray
+ QByteArray _dataShown; // data in the current View
+ QByteArray _hexDataShown; // data in view, transformed to hex
+ qint64 _lastEventSize; // size, which was emitted last time
+ QByteArray _markedShown; // marked data in view
+ bool _modified; // Is any data in editor modified?
+ int _rowsShown; // lines of text shown
+ UndoStack * _undoStack; // Stack to store edit actions for undo/redo
+ /*! \endcond docNever */
+};
+
+#endif // QHEXEDIT_H
diff --git a/src/qhexedit.pro b/src/qhexedit.pro
new file mode 100644
index 0000000..2a94016
--- /dev/null
+++ b/src/qhexedit.pro
@@ -0,0 +1,27 @@
+
+greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
+
+QT += core gui
+TEMPLATE = lib
+
+VERSION = 4.2.0
+
+DEFINES += QHEXEDIT_EXPORTS
+
+HEADERS = \
+ qhexedit.h \
+ chunks.h \
+ commands.h
+
+
+SOURCES = \
+ qhexedit.cpp \
+ chunks.cpp \
+ commands.cpp
+
+Release:TARGET = qhexedit
+Debug:TARGET = qhexeditd
+
+
+unix:DESTDIR = /usr/lib
+win32:DESTDIR = ../lib
diff --git a/src/qhexedit.sip b/src/qhexedit.sip
new file mode 100644
index 0000000..a7ef4e7
--- /dev/null
+++ b/src/qhexedit.sip
@@ -0,0 +1,94 @@
+%Module(name=qhexedit)
+
+%Import QtCore/QtCoremod.sip
+%Import QtGui/QtGuimod.sip
+
+%If (Qt_5_0_0 -)
+%Import QtWidgets/QtWidgetsmod.sip
+%End
+
+class QHexEdit : QAbstractScrollArea
+{
+%TypeHeaderCode
+#include "../src/qhexedit.h"
+%End
+
+public:
+ explicit QHexEdit(QWidget *parent /TransferThis/ = 0);
+ virtual ~QHexEdit();
+
+ bool setData(QIODevice &);
+ QByteArray dataAt(qint64, qint64=-1);
+ bool write(QIODevice &iODevice, qint64=0, qint64=-1);
+
+ void insert(qint64, char);
+ void remove(qint64, qint64);
+ void replace(qint64, char);
+
+ void insert(qint64, QByteArray &);
+ void replace(qint64, qint64, QByteArray &);
+
+ bool addressArea();
+ bool addressWidth();
+ bool asciiArea();
+ qint64 cursorPosition(QPoint);
+ void ensureVisible();
+ qint64 indexOf(QByteArray &, qint64);
+ bool isModified();
+ bool highlighting();
+ qint64 lastIndexOf(QByteArray &, qint64);
+ QString selectionToReadableString();
+ QString selectedData();
+ void setFont(const QFont &);
+ QString toReadableString();
+
+ QColor addressAreaColor();
+ void setAddressAreaColor(const QColor &);
+
+ QColor addressFontColor();
+ void setAddressFontColor(const QColor &);
+
+ QColor asciiAreaColor();
+ void setAsciiAreaColor(const QColor &);
+
+ QColor asciiFontColor();
+ void setAsciiFontColor(const QColor &);
+
+ QColor hexFontColor();
+ void setHexFontColor(const QColor &);
+
+ qint64 addressOffset();
+ void setAddressOffset(qint64);
+
+ qint64 cursorPosition();
+ void setCursorPosition(qint64);
+
+ QByteArray data();
+ void setData(const QByteArray &);
+
+ QColor highlightingColor();
+ void setHighlightingColor(const QColor &);
+
+ bool overwriteMode();
+ void setOverwriteMode(bool);
+
+ bool isReadOnly();
+ void setReadOnly(bool);
+
+ QColor selectionColor();
+ void setSelectionColor(const QColor &);
+
+public slots:
+ void redo();
+ void setAddressArea(bool);
+ void setAddressWidth(int);
+ void setAsciiArea(bool);
+ void setHighlighting(bool);
+ void undo();
+
+signals:
+ void currentAddressChanged(qint64);
+ void currentSizeChanged(qint64);
+ void dataChanged();
+ void overwriteModeChanged(bool);
+};
diff --git a/src/qhexeditplugin.pro b/src/qhexeditplugin.pro
new file mode 100644
index 0000000..2f05e1a
--- /dev/null
+++ b/src/qhexeditplugin.pro
@@ -0,0 +1,40 @@
+#! [0] #! [1]
+greaterThan(QT_MAJOR_VERSION, 4) {
+ QT += widgets uiplugin
+}
+
+lessThan(QT_MAJOR_VERSION, 5) {
+ CONFIG += designer
+}
+
+CONFIG += plugin
+#! [0]
+TARGET = $$qtLibraryTarget($$TARGET)
+#! [2]
+TEMPLATE = lib
+#! [1] #! [2]
+QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/designer
+
+#! [3]
+HEADERS = \
+ qhexedit.h \
+ chunks.h \
+ commands.h \
+ QHexEditPlugin.h
+
+
+SOURCES = \
+ qhexedit.cpp \
+ chunks.cpp \
+ commands.cpp \
+ QHexEditPlugin.cpp
+
+#! [3]
+
+# install
+target.path = $$[QT_INSTALL_PLUGINS]/designer
+sources.files = $$SOURCES $$HEADERS *.pro
+sources.path = $$[QT_INSTALL_EXAMPLES]/designer/QHexEditPlugin
+INSTALLS += target
+
+symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
diff --git a/test/chunks.pro b/test/chunks.pro
new file mode 100644
index 0000000..52843fe
--- /dev/null
+++ b/test/chunks.pro
@@ -0,0 +1,18 @@
+#-------------------------------------------------
+#
+# Project created by QtCreator 2015-04-20T13:35:52
+#
+#-------------------------------------------------
+
+#greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
+
+DEFINES += MODUL_TEST
+
+SOURCES += \
+ main.cpp \
+ ../src/chunks.cpp \
+ testchunks.cpp
+
+HEADERS += \
+ ../src/chunks.h \
+ testchunks.h
diff --git a/test/main.cpp b/test/main.cpp
new file mode 100644
index 0000000..bf03695
--- /dev/null
+++ b/test/main.cpp
@@ -0,0 +1,63 @@
+#include <QCoreApplication>
+#include <QtCore>
+#include <QDir>
+
+#include "testchunks.h"
+
+
+int main()
+{
+ QDir dir("logs");
+ dir.setNameFilters(QStringList() << "*.*");
+ dir.setFilter(QDir::Files);
+ foreach(QString dirFile, dir.entryList())
+ dir.remove(dirFile);
+
+ QString logFilename = "logs/Summary.log";
+ QFile outFile(logFilename);
+ outFile.open(QIODevice::WriteOnly | QIODevice::Text);
+ QTextStream sumLog(&outFile);
+
+ TestChunks tc(sumLog, "overwrite", 0x4000, true);
+ tc.overwrite(4379, 25);
+ tc.overwrite(0, '.');
+ tc.overwrite(0x50, '.');
+ tc.overwrite(0x100, '.');
+ tc.overwrite(0xfff, '.');
+ tc.overwrite(0x1000, '.');
+ tc.overwrite(0x1fff, '.');
+ tc.overwrite(0x3000, '.');
+ tc.overwrite(0x3fff, '.');
+ tc.overwrite(0x2000, '.');
+ tc.overwrite(0x2fff, '.');
+
+ TestChunks tc2(sumLog, "insert", 0x4000, true);
+ tc2.insert(0, 'E'); // 0
+ tc2.insert(0x50, 'x'); // 1
+ tc2.insert(0x100, 'x'); // 2
+ tc2.insert(0x1002, 'L'); // 3
+ tc2.insert(0x1004, 'E'); // 4
+ tc2.insert(0x2004, 'L'); // 5
+ tc2.insert(0x4005, 'L'); // 6
+ tc2.insert(0x3007, 'E'); // 7
+ tc2.insert(0x2008, 'E'); // 8
+ tc2.insert(0x3008, 'L'); // 9
+
+ TestChunks tc3(sumLog, "remove", 0x4000, true);
+ tc3.removeAt(0); // 0
+ tc3.removeAt(0x50); // f
+ tc3.removeAt(0x100); // e
+ tc3.removeAt(0xffc); // d
+ tc3.removeAt(0xffc); // c
+ tc3.removeAt(0x1ffa); // b
+ tc3.removeAt(0x3ff9); // a
+ tc3.removeAt(0x2ffa); // 9
+ tc3.removeAt(0x2ff7); // 8
+ tc3.removeAt(0x1ff7); // 7
+
+ TestChunks tc4(sumLog, "random", 0x40000, true);
+ tc4.random(1000);
+
+ outFile.close();
+ return 0;
+}
diff --git a/test/testchunks.cpp b/test/testchunks.cpp
new file mode 100644
index 0000000..24fcded
--- /dev/null
+++ b/test/testchunks.cpp
@@ -0,0 +1,123 @@
+#include "testchunks.h"
+#include <cstdlib>
+
+
+TestChunks::TestChunks(QTextStream &log, QString tName, int size, bool random, int saveFile) : _chunks(nullptr)
+{
+ char hex[] = "0123456789abcdef";
+ srand(0);
+ for (int idx=0; idx < size; idx++)
+ {
+ if (random)
+ _data += char(rand() % 0x100);
+ else
+ _data += hex[idx & 0x0f];
+ _highlighted += char(0);
+ }
+ _copy = _data;
+ _cData.setData(_copy);
+ _chunks.setIODevice(_cData);
+ _tCnt = 0;
+ _log = &log;
+ _tName = tName;
+ _saveFile = saveFile;
+ compare();
+}
+
+void TestChunks::random(int count)
+{
+ for (int idx=1; idx < count; idx++)
+ {
+ int action = rand() % 3;
+ int pos = rand() % _data.size();
+ char b = char(rand() % 0x100);
+ switch (action)
+ {
+ case 0:
+ removeAt(pos);
+ break;
+ case 1:
+ insert(pos, b);
+ break;
+ case 2:
+ overwrite(pos, b);
+ break;
+ }
+ }
+}
+
+void TestChunks::insert(qint64 pos, char b)
+{
+ _data.insert((int)pos, b);
+ _copy.insert((int)pos, char(0));
+ _highlighted.insert((int)pos, 1);
+ _chunks.insert(pos, b);
+ compare();
+}
+
+void TestChunks::overwrite(qint64 pos, char b)
+{
+ _data[(int)pos] = b;
+ _highlighted[(int)pos] = 1;
+ _chunks.overwrite(pos, b);
+ compare();
+}
+
+void TestChunks::removeAt(qint64 pos)
+{
+ _data.remove((int)pos, 1);
+ _highlighted.remove((int)pos, 1);
+ _chunks.removeAt(pos);
+ compare();
+}
+
+void TestChunks::compare()
+{
+ QByteArray rHighLighted;
+ QByteArray rData = _chunks.data(0, -1, &rHighLighted);
+ bool error = false;
+
+ if (rData != _data)
+ error = true;
+ if (rHighLighted != _highlighted)
+ error = true;
+
+ _tCnt += 1;
+
+ int chunkSize = _chunks.chunkSize();
+ QString tName = QString("logs/%1_%2_%3").arg(_tName).arg(_tCnt).arg(chunkSize);
+ if (error || (_tCnt >= _saveFile))
+ {
+ QFile file1(tName + "_data.txt");
+ file1.open(QIODevice::WriteOnly);
+ file1.write(_data);
+ file1.close();
+
+ QFile file2(tName + "_highlighted.txt");
+ file2.open(QIODevice::WriteOnly);
+ file2.write(_highlighted);
+ file2.close();
+
+ QFile file3(tName + "_rData.txt");
+ file3.open(QIODevice::WriteOnly);
+ file3.write(rData);
+ file3.close();
+
+ QFile file4(tName + "_rHighlighted.txt");
+ file4.open(QIODevice::WriteOnly);
+ file4.write(rHighLighted);
+ file4.close();
+ }
+
+ if (error)
+ {
+ qDebug() << "NOK " << tName;
+ *_log << "NOK " << tName << "\n";
+ }
+ else
+ {
+ qDebug() << "OK " << tName;
+ *_log << "OK " << tName << "\n";
+ }
+
+}
diff --git a/test/testchunks.h b/test/testchunks.h
new file mode 100644
index 0000000..1304125
--- /dev/null
+++ b/test/testchunks.h
@@ -0,0 +1,32 @@
+#ifndef TESTASBYTEARRAY_H
+#define TESTASBYTEARRAY_H
+
+#include <QBuffer>
+#include <QByteArray>
+#include <QString>
+#include <QTextStream>
+
+#include "../src/chunks.h"
+
+class TestChunks
+{
+public:
+ TestChunks(QTextStream &log, QString tName, int size, bool random=true, int saveFile=0x7fffffff);
+ void insert(qint64 pos, char b);
+ void overwrite(qint64 pos, char b);
+ void removeAt(qint64 pos);
+ void random(int count);
+ void compare();
+
+
+private:
+ QByteArray _data, _highlighted, _copy;
+ QBuffer _cData;
+ Chunks _chunks;
+ int _tCnt;
+ QString _tName;
+ int _saveFile;
+ QTextStream *_log;
+};
+
+#endif // TESTASBYTEARRAY_H
diff --git a/test/testdata/1.bin b/test/testdata/1.bin
new file mode 100644
index 0000000..f1b3829
--- /dev/null
+++ b/test/testdata/1.bin
@@ -0,0 +1 @@
+ó \ No newline at end of file
diff --git a/test/testdata/16.bin b/test/testdata/16.bin
new file mode 100644
index 0000000..b66efb8
--- /dev/null
+++ b/test/testdata/16.bin
Binary files differ
diff --git a/test/testdata/32.bin b/test/testdata/32.bin
new file mode 100644
index 0000000..fefa1cc
--- /dev/null
+++ b/test/testdata/32.bin
Binary files differ
diff --git a/test/testdata/33.bin b/test/testdata/33.bin
new file mode 100644
index 0000000..3ef70ac
--- /dev/null
+++ b/test/testdata/33.bin
Binary files differ
diff --git a/test/testdata/4.bin b/test/testdata/4.bin
new file mode 100644
index 0000000..10b156c
--- /dev/null
+++ b/test/testdata/4.bin
Binary files differ