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:
parent
53e5e3a338
commit
b0a2945ddc
|
@ -454,7 +454,7 @@ public class Llanfair extends BorderlessFrame implements TableModelListener,
|
||||||
} );
|
} );
|
||||||
|
|
||||||
if (source.equals(MenuItem.EDIT)) {
|
if (source.equals(MenuItem.EDIT)) {
|
||||||
|
/*
|
||||||
} else if (source.equals(MenuItem.RESIZE_DEFAULT)) {
|
} else if (source.equals(MenuItem.RESIZE_DEFAULT)) {
|
||||||
setPreferredSize(null);
|
setPreferredSize(null);
|
||||||
pack();
|
pack();
|
||||||
|
@ -462,6 +462,7 @@ public class Llanfair extends BorderlessFrame implements TableModelListener,
|
||||||
} else if (source.equals(MenuItem.RESIZE_PREFERRED)) {
|
} else if (source.equals(MenuItem.RESIZE_PREFERRED)) {
|
||||||
setPreferredSize(preferredSize);
|
setPreferredSize(preferredSize);
|
||||||
pack();
|
pack();
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,8 +32,8 @@ enum MenuItem implements ActionListener {
|
||||||
RESET( true, State.ONGOING, State.STOPPED, State.PAUSED ),
|
RESET( true, State.ONGOING, State.STOPPED, State.PAUSED ),
|
||||||
LOCK( false, State.NULL, State.READY, State.STOPPED, State.ONGOING ),
|
LOCK( false, State.NULL, State.READY, State.STOPPED, State.ONGOING ),
|
||||||
UNLOCK( 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_DEFAULT( false, State.NULL, State.READY ),
|
||||||
RESIZE_PREFERRED( true, State.NULL, State.READY ),
|
//RESIZE_PREFERRED( true, State.NULL, State.READY ),
|
||||||
SETTINGS( true, State.NULL, State.READY, State.STOPPED ),
|
SETTINGS( true, State.NULL, State.READY, State.STOPPED ),
|
||||||
ABOUT( true, State.NULL, State.READY, State.STOPPED, State.ONGOING ),
|
ABOUT( true, State.NULL, State.READY, State.STOPPED, State.ONGOING ),
|
||||||
EXIT( false, State.NULL, State.READY, State.STOPPED, State.ONGOING );
|
EXIT( false, State.NULL, State.READY, State.STOPPED, State.ONGOING );
|
||||||
|
|
Reference in a new issue