Warning: session_start(): open(/var/lib/php/sessions/sess_k7fftjpbl83q4ee0oa47vaddfv, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
import javax.swing.plaf.InternalFrameUI;
import javax.swing.plaf.basic.BasicInternalFrameUI;
svoid stefansOS_popOutModule(Module m) ctex {
final JInternalFrame myFrame = cast getPossiblyInternalFrame(m.vis);
if (myFrame == null) ret;
if (getParent(myFrame) != main.desktop) ret; // popped out already
Rectangle boundsOnScreen = boundsOnScreen(myFrame);
// make a new frame with a new DesktopPane
JDesktopPane desktopPane = jDesktopPane();
autoFixDesktopPane(desktopPane);
showFrame(m.moduleName(), desktopPane);
JFrame frame = getFrame(desktopPane);
// title popup menu items
if (!frameTitlePopupMenuItems(frame,
"Pop Back In", r { stefansOS_popInModule(m) },
jCheckBoxMenuItem("Always On Top", false, r { toggleAlwaysOnTop(frame) })))
// can't add title menu - add button instead
replaceComponent(desktopPane, func(JComponent dp) -> Component {
withRightAlignedButtons(dp,
onChange(jCheckBox("Always On Top"), r { toggleAlwaysOnTop(frame) }),
"Pop Back In", r { stefansOS_popInModule(m) }) });
// position, listeners, flags, show
setFrameBounds(desktopPane, boundsOnScreen);
swing {
removeFromParent(myFrame);
onResizeAndNow(desktopPane, r {
myFrame.setBounds(0, 0, desktopPane.getWidth(), desktopPane.getHeight())
});
desktopPane.add(myFrame);
myFrame.setMaximum(true);
myFrame.setMaximizable(false);
myFrame.setClosable(false);
myFrame.setIconifiable(false);
if (m.hasFlag(m.ALWAYSONTOPWHENPOPPEDOUT))
frame.setAlwaysOnTop(true);
InternalFrameUI ui = myFrame.getUI();
if (ui cast BasicInternalFrameUI) {
ui.setNorthPane(null);
}
}
}