Search in sources :

Example 1 with TabbedMDI

use of com.biglybt.ui.swt.mdi.TabbedMDI in project BiglyBT by BiglySoftware.

the class MainWindowImpl method initMDI.

private BaseMDI initMDI() {
    SWTSkinObject skinObject = skin.getSkinObject(SkinConstants.VIEWID_MDI);
    if (null != skinObject) {
        BaseMDI mdi = Utils.isAZ2UI() ? new TabbedMDI() : new SideBar();
        mdi.buildMDI(skinObject);
        MainMDISetup.setupSideBar(mdi);
        return (mdi);
    }
    return (null);
}
Also used : BaseMDI(com.biglybt.ui.swt.mdi.BaseMDI) TabbedMDI(com.biglybt.ui.swt.mdi.TabbedMDI) SideBar(com.biglybt.ui.swt.views.skin.sidebar.SideBar)

Example 2 with TabbedMDI

use of com.biglybt.ui.swt.mdi.TabbedMDI in project BiglyBT by BiglySoftware.

the class StatsView method initialize.

private void initialize(Composite composite) {
    parent = composite;
    registerPluginViews();
    tabbedMDI = new TabbedMDI(null, VIEW_ID, VIEW_ID, swtView, dataSource);
    tabbedMDI.setDestroyEntriesOnDeactivate(true);
    tabbedMDI.buildMDI(composite);
    CTabFolder folder = tabbedMDI.getTabFolder();
    Label lblClose = new Label(folder, SWT.WRAP);
    lblClose.setText("x");
    lblClose.addListener(SWT.MouseUp, new Listener() {

        @Override
        public void handleEvent(Event event) {
            delete();
        }
    });
    folder.setTopRight(lblClose);
    updateThread = new UpdateThread();
    updateThread.setDaemon(true);
    updateThread.start();
    dataSourceChanged(dataSource);
}
Also used : CTabFolder(org.eclipse.swt.custom.CTabFolder) UISWTViewCoreEventListener(com.biglybt.ui.swt.pifimpl.UISWTViewCoreEventListener) TabbedMDI(com.biglybt.ui.swt.mdi.TabbedMDI) UISWTViewEvent(com.biglybt.ui.swt.pif.UISWTViewEvent)

Aggregations

TabbedMDI (com.biglybt.ui.swt.mdi.TabbedMDI)2 BaseMDI (com.biglybt.ui.swt.mdi.BaseMDI)1 UISWTViewEvent (com.biglybt.ui.swt.pif.UISWTViewEvent)1 UISWTViewCoreEventListener (com.biglybt.ui.swt.pifimpl.UISWTViewCoreEventListener)1 SideBar (com.biglybt.ui.swt.views.skin.sidebar.SideBar)1 CTabFolder (org.eclipse.swt.custom.CTabFolder)1