Package com.biglybt.ui.swt.devices
Class DeviceManagerUI
- java.lang.Object
-
- com.biglybt.ui.swt.devices.DeviceManagerUI
-
public class DeviceManagerUI extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DeviceManagerUI.categoryView
protected static class
DeviceManagerUI.categoryViewGeneric
private static class
DeviceManagerUI.deviceItem
static class
DeviceManagerUI.deviceView
private static class
DeviceManagerUI.ValueSourceImpl
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DeviceManagerUI(Core core)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAllDevices()
protected void
addDefaultDropListener(MdiEntry mainSbEntry)
protected DeviceManagerUI.categoryView
addDeviceCategory(int device_type, java.lang.String category_title, java.lang.String category_image_id)
protected static void
addDirectory(TranscodeTarget target, TranscodeProfile profile, int transcode_requirement, java.io.File file)
protected static void
addDownload(TranscodeTarget target, TranscodeProfile profile, int transcode_requirement, byte[] hash)
protected static void
addDownload(TranscodeTarget target, TranscodeProfile profile, int transcode_requirement, Download download)
protected static void
addFile(TranscodeTarget target, TranscodeProfile profile, int transcode_requirement, DiskManagerFileInfo file)
protected static void
addFile(TranscodeTarget target, TranscodeProfile profile, int transcode_requirement, java.io.File file)
protected void
addNewDevice()
protected void
addOrChangeDevice(Device device)
private static void
addTagSubMenu(MenuManager menu_manager, MenuItem menu, DeviceMediaRenderer device)
protected static void
addURL(TranscodeTarget target, TranscodeProfile profile, int transcode_requirement, java.lang.String url)
private void
buildCategories(boolean full)
protected MdiEntry
buildSideBar(boolean rebuild)
private void
checkOXCState()
private void
createOverallMenu(MenuManager menu_manager, java.lang.String parentID)
void
createTranscodingSection()
void
dispose()
private void
export(Device device)
protected static java.lang.String[]
getDeviceImageIDs(Device device)
protected DeviceManager
getDeviceManager()
private java.lang.String
getHeaderToolTip()
protected PluginInterface
getPluginInterface()
protected static void
handleDrop(TranscodeTarget target, TranscodeProfile profile, java.lang.Object payload, int transcode_requirement)
static boolean
handleDrop(TranscodeTarget target, java.lang.Object payload)
private static boolean
handleDropSupport(TranscodeTarget target, java.lang.Object payload, boolean allow_retry)
protected static void
hideIcon(MdiEntryVitalityImage x)
protected int
nextSidebarID()
protected void
rebuildSideBar()
protected void
rebuildSideBarIfExists()
static void
registerDiskOps(MultipleDocumentInterface mdi, java.lang.String parent, boolean closeable)
protected void
removeAllDevices()
protected void
removeDevice(Device device)
protected void
search()
private void
setOXCState(java.lang.String new_action)
protected void
setStatus(Device device, DeviceManagerUI.deviceItem sbi)
void
setupConfigUI()
private void
setupEntry(DeviceManagerUI.deviceItem new_di, Device device, java.lang.String parent)
private void
setupHeader(MultipleDocumentInterface mdi, MdiEntry entryHeader)
protected void
setupListeners()
protected void
setupMenuListeners()
private void
setupTranscodeMenus()
protected void
setupUI(MultipleDocumentInterfaceSWT mdi)
private void
setupUIwithDeviceManager()
protected void
showDevice(Device device)
protected static void
showIcon(MdiEntryVitalityImage x, java.lang.String t)
protected void
showProperties(Device device)
private void
uiAttachedAndCoreRunning(Core core)
-
-
-
Field Detail
-
CONFIG_SECTION_ID
private static final java.lang.String CONFIG_SECTION_ID
- See Also:
- Constant Field Values
-
DISABLED
public static boolean DISABLED
-
DISABLED_TRANSCODING
public static boolean DISABLED_TRANSCODING
-
MIN_FILE_SIZE_FOR_XCODE
private static final int MIN_FILE_SIZE_FOR_XCODE
- See Also:
- Constant Field Values
-
MAX_FILES_FOR_MULTI_XCODE
private static final int MAX_FILES_FOR_MULTI_XCODE
- See Also:
- Constant Field Values
-
DEVICE_IVIEW_KEY
private static final java.lang.Object DEVICE_IVIEW_KEY
-
CONFIG_VIEW_TYPE
private static final java.lang.String CONFIG_VIEW_TYPE
- See Also:
- Constant Field Values
-
CONFIG_VIEW_HIDE_REND_GENERIC
public static final java.lang.String CONFIG_VIEW_HIDE_REND_GENERIC
- See Also:
- Constant Field Values
-
CONFIG_VIEW_SHOW_ONLY_TAGGED
public static final java.lang.String CONFIG_VIEW_SHOW_ONLY_TAGGED
- See Also:
- Constant Field Values
-
SPINNER_IMAGE_ID
private static final java.lang.String SPINNER_IMAGE_ID
- See Also:
- Constant Field Values
-
INFO_IMAGE_ID
private static final java.lang.String INFO_IMAGE_ID
- See Also:
- Constant Field Values
-
ALERT_IMAGE_ID
private static final java.lang.String ALERT_IMAGE_ID
- See Also:
- Constant Field Values
-
SHOW_RENDERER_VITALITY
private static final boolean SHOW_RENDERER_VITALITY
- See Also:
- Constant Field Values
-
SHOW_OD_VITALITY
private static final boolean SHOW_OD_VITALITY
- See Also:
- Constant Field Values
-
colors
private static org.eclipse.swt.graphics.Color[] colors
-
device_manager
private DeviceManager device_manager
-
device_manager_listener
private DeviceManagerListener device_manager_listener
-
device_manager_listener_added
private boolean device_manager_listener_added
-
plugin_interface
private final PluginInterface plugin_interface
-
ui_manager
private final UIManager ui_manager
-
swt_ui
private UISWTInstance swt_ui
-
ui_setup
private boolean ui_setup
-
mdi
private MultipleDocumentInterfaceSWT mdi
-
sidebar_built
private boolean sidebar_built
-
SBV_SIMPLE
private static final int SBV_SIMPLE
- See Also:
- Constant Field Values
-
SBV_FULL
private static final int SBV_FULL
- See Also:
- Constant Field Values
-
side_bar_view_type
private int side_bar_view_type
-
side_bar_hide_rend_gen
private boolean side_bar_hide_rend_gen
-
side_bar_show_tagged
private boolean side_bar_show_tagged
-
next_sidebar_id
private int next_sidebar_id
-
categories
private java.util.List<DeviceManagerUI.categoryView> categories
-
last_job_count
private int last_job_count
-
properties_listener
private MenuItemListener properties_listener
-
hide_listener
private MenuItemListener hide_listener
-
rename_listener
private MenuItemListener rename_listener
-
export_listener
private MenuItemListener export_listener
-
will_remove_listener
private MenuItemFillListener will_remove_listener
-
remove_listener
private MenuItemListener remove_listener
-
show_fill_listener
private MenuItemFillListener show_fill_listener
-
show_listener
private MenuItemListener show_listener
-
will_tag_listener
private MenuItemFillListener will_tag_listener
-
tag_listener
private MenuItemListener tag_listener
-
will_browse_listener
private MenuItemFillListener will_browse_listener
-
offline_menus_setup
private boolean offline_menus_setup
-
mdiEntryOverview
private MdiEntry mdiEntryOverview
-
needsAddAllDevices
private boolean needsAddAllDevices
-
entryHeader
private MdiEntry entryHeader
-
OXC_NOTHING
private static final java.lang.String OXC_NOTHING
- See Also:
- Constant Field Values
-
OXC_QUIT_VUZE
private static final java.lang.String OXC_QUIT_VUZE
- See Also:
- Constant Field Values
-
OXC_SLEEP
private static final java.lang.String OXC_SLEEP
- See Also:
- Constant Field Values
-
OXC_HIBERNATE
private static final java.lang.String OXC_HIBERNATE
- See Also:
- Constant Field Values
-
OXC_SHUTDOWN
private static final java.lang.String OXC_SHUTDOWN
- See Also:
- Constant Field Values
-
oxc_action
private java.lang.String oxc_action
-
oxc_trigger_set
private boolean oxc_trigger_set
-
MAX_MS_DISPLAY_LINE_DEFAULT
private static final int MAX_MS_DISPLAY_LINE_DEFAULT
- See Also:
- Constant Field Values
-
device_manager_listener_setupui
private DeviceManagerListener device_manager_listener_setupui
-
transcodeQueueListener
private TranscodeQueueListener transcodeQueueListener
-
configListener
private ParameterListener configListener
-
deviceManagerListener
private DeviceManagerListener deviceManagerListener
-
transcodeManagerListener
private TranscodeManagerListener transcodeManagerListener
-
parameterListener
private ParameterListener parameterListener
-
canCloseListener
private UIExitUtilsSWT.canCloseListener canCloseListener
-
configModel
private BasicPluginConfigModel configModel
-
-
Constructor Detail
-
DeviceManagerUI
public DeviceManagerUI(Core core)
-
-
Method Detail
-
uiAttachedAndCoreRunning
private void uiAttachedAndCoreRunning(Core core)
-
getDeviceManager
protected DeviceManager getDeviceManager()
-
getPluginInterface
protected PluginInterface getPluginInterface()
-
setupUI
protected void setupUI(MultipleDocumentInterfaceSWT mdi)
-
setupUIwithDeviceManager
private void setupUIwithDeviceManager()
-
setupConfigUI
public void setupConfigUI()
-
createTranscodingSection
public void createTranscodingSection()
-
setupMenuListeners
protected void setupMenuListeners()
-
export
private void export(Device device)
-
setupListeners
protected void setupListeners()
-
hideIcon
protected static void hideIcon(MdiEntryVitalityImage x)
-
showIcon
protected static void showIcon(MdiEntryVitalityImage x, java.lang.String t)
-
rebuildSideBarIfExists
protected void rebuildSideBarIfExists()
-
rebuildSideBar
protected void rebuildSideBar()
-
getHeaderToolTip
private java.lang.String getHeaderToolTip()
-
buildSideBar
protected MdiEntry buildSideBar(boolean rebuild)
-
registerDiskOps
public static void registerDiskOps(MultipleDocumentInterface mdi, java.lang.String parent, boolean closeable)
-
buildCategories
private void buildCategories(boolean full)
-
setupHeader
private void setupHeader(MultipleDocumentInterface mdi, MdiEntry entryHeader)
-
createOverallMenu
private void createOverallMenu(MenuManager menu_manager, java.lang.String parentID)
-
addNewDevice
protected void addNewDevice()
- Since:
- 4.1.0.5
-
setOXCState
private void setOXCState(java.lang.String new_action)
-
checkOXCState
private void checkOXCState()
-
setupTranscodeMenus
private void setupTranscodeMenus()
-
search
protected void search()
-
addOrChangeDevice
protected void addOrChangeDevice(Device device)
-
setupEntry
private void setupEntry(DeviceManagerUI.deviceItem new_di, Device device, java.lang.String parent)
-
getDeviceImageIDs
protected static java.lang.String[] getDeviceImageIDs(Device device)
-
addTagSubMenu
private static void addTagSubMenu(MenuManager menu_manager, MenuItem menu, DeviceMediaRenderer device)
-
showDevice
protected void showDevice(Device device)
-
handleDrop
public static boolean handleDrop(TranscodeTarget target, java.lang.Object payload)
-
handleDropSupport
private static boolean handleDropSupport(TranscodeTarget target, java.lang.Object payload, boolean allow_retry)
-
addDownload
protected static void addDownload(TranscodeTarget target, TranscodeProfile profile, int transcode_requirement, byte[] hash)
-
addDownload
protected static void addDownload(TranscodeTarget target, TranscodeProfile profile, int transcode_requirement, Download download)
-
addFile
protected static void addFile(TranscodeTarget target, TranscodeProfile profile, int transcode_requirement, DiskManagerFileInfo file)
-
addDirectory
protected static void addDirectory(TranscodeTarget target, TranscodeProfile profile, int transcode_requirement, java.io.File file)
-
addFile
protected static void addFile(TranscodeTarget target, TranscodeProfile profile, int transcode_requirement, java.io.File file)
-
addURL
protected static void addURL(TranscodeTarget target, TranscodeProfile profile, int transcode_requirement, java.lang.String url)
-
handleDrop
protected static void handleDrop(TranscodeTarget target, TranscodeProfile profile, java.lang.Object payload, int transcode_requirement)
-
setStatus
protected void setStatus(Device device, DeviceManagerUI.deviceItem sbi)
-
addAllDevices
protected void addAllDevices()
-
removeAllDevices
protected void removeAllDevices()
-
removeDevice
protected void removeDevice(Device device)
-
addDeviceCategory
protected DeviceManagerUI.categoryView addDeviceCategory(int device_type, java.lang.String category_title, java.lang.String category_image_id)
-
addDefaultDropListener
protected void addDefaultDropListener(MdiEntry mainSbEntry)
-
showProperties
protected void showProperties(Device device)
-
nextSidebarID
protected int nextSidebarID()
-
dispose
public void dispose()
-
-