remove resize options from the menu for now

i think these are probably somewhat confusing as-is, and i'd probably
need to change how they work somewhat with the new fixed-width window
option. easiest for now i think to just remove these menu options
as the window seems to be resizing automatically in a pretty good way
when the window autosize option is set. the only reason i can think of
that someone might want these options is to undo any manual window
resizings (done using the mouse, since the window is marked as user
resizable right now).
This commit is contained in:
Gered 2016-01-16 12:20:24 -05:00
parent 53e5e3a338
commit b0a2945ddc
2 changed files with 4 additions and 3 deletions

View file

@ -454,7 +454,7 @@ public class Llanfair extends BorderlessFrame implements TableModelListener,
} );
if (source.equals(MenuItem.EDIT)) {
/*
} else if (source.equals(MenuItem.RESIZE_DEFAULT)) {
setPreferredSize(null);
pack();
@ -462,6 +462,7 @@ public class Llanfair extends BorderlessFrame implements TableModelListener,
} else if (source.equals(MenuItem.RESIZE_PREFERRED)) {
setPreferredSize(preferredSize);
pack();
*/
}
}

View file

@ -32,8 +32,8 @@ enum MenuItem implements ActionListener {
RESET( true, State.ONGOING, State.STOPPED, State.PAUSED ),
LOCK( false, State.NULL, State.READY, State.STOPPED, State.ONGOING ),
UNLOCK( false, State.NULL, State.READY, State.STOPPED, State.ONGOING ),
RESIZE_DEFAULT( false, State.NULL, State.READY ),
RESIZE_PREFERRED( true, State.NULL, State.READY ),
//RESIZE_DEFAULT( false, State.NULL, State.READY ),
//RESIZE_PREFERRED( true, State.NULL, State.READY ),
SETTINGS( true, State.NULL, State.READY, State.STOPPED ),
ABOUT( true, State.NULL, State.READY, State.STOPPED, State.ONGOING ),
EXIT( false, State.NULL, State.READY, State.STOPPED, State.ONGOING );