64 | | * Make a new class in main.app.commons.book.panels- PreviewModeButton. It must extends BaseVisualElement and implement BookPanel element. It will have 2 LogicR3 buttons inside of it, displaying just one of them, depending on the inPreviewMode() property. Each of them will fire different event, respectively START_PREVIEW and STOP_PREVIEW. They will be handled in a newly created enum PreviewButtonOperation, implementing OperationDef. the first event will call BookLogic.userSetPreviewMode, the second one will close the current book. To do all of these, first move LogicR3Button from resourceMetaPalette to base.commons.gui.LogicR3Button and fix the problems. Add the corresponding logic in the OutlineFramesCheckBox in order to hide it in preview mode. After this, delete the ReaderModeCheckbox. |
| 64 | * Make a new class in main.app.commons.book.panels- PreviewModeButton. It must extends BaseVisualElement and implement BookPanel element. It will have 2 LogicR3 buttons inside of it, displaying just one of them, depending on the inPreviewMode() property. Each of them will fire different event, respectively START_PREVIEW and STOP_PREVIEW. They will be handled in a newly created enum PreviewButtonOperation, implementing OperationDef. the first event will call BookLogic.userSetPreviewMode, the second one will fire "new EventR3(bdw , null, null, null, DefaultDocumentWindow.UserWindowAction.CLOSE)" in order to close the book. To do all of these, first move LogicR3Button from resourceMetaPalette to base.commons.gui.LogicR3Button and fix the problems. Add the corresponding logic in the OutlineFramesCheckBox in order to hide it in preview mode. After this, delete the ReaderModeCheckbox. |