Skip to content
This repository was archived by the owner on Jan 1, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 123 additions & 0 deletions embedded/fullscreen-toggle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
123 changes: 123 additions & 0 deletions embedded/fullscreen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion net/systemeD/potlatch2/EditController.as
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ package net.systemeD.potlatch2 {
Mouse.registerCursor(name, cursorData);
}

private function toggleSize():void {
public function toggleSize():void {
if (maximised) {
if (minimiseFunction) {
ExternalInterface.call(minimiseFunction);
Expand Down
3 changes: 3 additions & 0 deletions potlatch2.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
click="SaveManager.saveChanges(theMap.editableLayer.connection);" id="saveButton" enabled="false"/>
<mx:Button id="helpButton" label="Help" click="new HelpDialog().init();" styleName="appBarButton" />
<mx:Spacer width="40"/>
<mx:Button id="fullscreen" icon="@Embed('embedded/fullscreen.svg')" click="theController.toggleSize();" styleName="appBarButton"
enabled="{true}"
toolTip="Toggle fullscreen (M)" />
<mx:Button id="undo" label="Undo" click="MainUndoStack.getGlobalStack().undo();" styleName="appBarButton"
enabled="{MainUndoStack.getGlobalStack().canUndo()}"
toolTip="{MainUndoStack.getGlobalStack().getUndoDescription() ? 'Undo '+MainUndoStack.getGlobalStack().getUndoDescription() : 'Undo last action'}" />
Expand Down