diff --git a/InForm/UiEditor.bas b/InForm/UiEditor.bas index 1adfd60..d37a2f9 100644 --- a/InForm/UiEditor.bas +++ b/InForm/UiEditor.bas @@ -134,28 +134,6 @@ TYPE newInputBox Sent AS _BYTE END TYPE -CONST OffsetEditorPID = 1 -CONST OffsetPreviewPID = 5 -CONST OffsetWindowLeft = 9 -CONST OffsetWindowTop = 11 -CONST OffsetNewControl = 13 -CONST OffsetNewDataFromEditor = 15 -CONST OffsetNewDataFromPreview = 17 -CONST OffsetTotalControlsSelected = 19 -CONST OffsetFormID = 23 -CONST OffsetFirstSelectedID = 27 -CONST OffsetMenuPanelIsON = 31 -CONST OffsetAutoName = 33 -CONST OffsetShowPosSize = 35 -CONST OffsetSnapLines = 37 -CONST OffsetPropertyChanged = 39 -CONST OffsetMouseSwapped = 41 -CONST OffsetDefaultButtonID = 43 -CONST OffsetOriginalImageWidth = 47 -CONST OffsetOriginalImageHeight = 49 -CONST OffsetSelectionRectangle = 51 -CONST OffsetPropertyValue = 53 - REDIM SHARED PreviewCaptions(0) AS STRING REDIM SHARED PreviewTexts(0) AS STRING REDIM SHARED PreviewMasks(0) AS STRING diff --git a/InForm/UiEditorPreview.bas b/InForm/UiEditorPreview.bas index 8ae3b6c..ab3e503 100644 --- a/InForm/UiEditorPreview.bas +++ b/InForm/UiEditorPreview.bas @@ -1,27 +1,5 @@ OPTION _EXPLICIT -CONST OffsetEditorPID = 1 -CONST OffsetPreviewPID = 5 -CONST OffsetWindowLeft = 9 -CONST OffsetWindowTop = 11 -CONST OffsetNewControl = 13 -CONST OffsetNewDataFromEditor = 15 -CONST OffsetNewDataFromPreview = 17 -CONST OffsetTotalControlsSelected = 19 -CONST OffsetFormID = 23 -CONST OffsetFirstSelectedID = 27 -CONST OffsetMenuPanelIsON = 31 -CONST OffsetAutoName = 33 -CONST OffsetShowPosSize = 35 -CONST OffsetSnapLines = 37 -CONST OffsetPropertyChanged = 39 -CONST OffsetMouseSwapped = 41 -CONST OffsetDefaultButtonID = 43 -CONST OffsetOriginalImageWidth = 47 -CONST OffsetOriginalImageHeight = 49 -CONST OffsetSelectionRectangle = 51 -CONST OffsetPropertyValue = 53 - DIM SHARED UiEditorPID AS LONG, ExeIcon AS LONG DIM SHARED AutoNameControls AS _BYTE DIM SHARED UndoPointer AS INTEGER, TotalUndoImages AS INTEGER, MidUndo AS _BYTE diff --git a/InForm/docs/undo file format.txt b/InForm/docs/undo file format.txt deleted file mode 100644 index b34de1a..0000000 --- a/InForm/docs/undo file format.txt +++ /dev/null @@ -1,25 +0,0 @@ -InForm - GUI library for QB64 -Fellippe Heitor, 2016-2018 - fellippe@qb64.org - @fellippeheitor -https://github.com/FellippeHeitor/InForm ------------------------------------------------------------ -Below is the binary format for undo/redo data saved to file -'InForm/UiEditorUndo.dat'. Each time a new control is created or -a new property is changed, the preview saves the current state to -this file and adjusts 'total undo images' and sets 'undo pointer' -accordingly. - -This format is used in UiEditorPreview's methods: - - SaveUndoImage - - RestoreUndoImage - - RestoreRedoImage ------------------------------------------------------------ - -MAX UNDO ENTRIES: 100 -offset data description -1 INTEGER undo pointer -3 INTEGER total undo images - -Directory -entry size: 8 bytes - LONG size& - size& backup form data