virtManager: move vmwindow components to virtManager/details

This commit is contained in:
Cole Robinson 2019-06-16 21:56:34 -04:00
parent 9be836102e
commit 16a608c37b
8 changed files with 26 additions and 26 deletions

View File

View File

@ -10,11 +10,11 @@ from gi.repository import Gdk
from virtinst import log from virtinst import log
from .baseclass import vmmGObject, vmmGObjectUI
from .serialcon import vmmSerialConsole from .serialcon import vmmSerialConsole
from .sshtunnels import ConnectionInfo from .sshtunnels import ConnectionInfo
from .viewers import SpiceViewer, VNCViewer, have_spice_gtk from .viewers import SpiceViewer, VNCViewer, have_spice_gtk
from .vmwindow import DETAILS_PAGE_CONSOLE from ..baseclass import vmmGObject, vmmGObjectUI
from ..vmwindow import DETAILS_PAGE_CONSOLE
# console-pages IDs # console-pages IDs
@ -947,7 +947,7 @@ class vmmConsolePages(vmmGObjectUI):
radio=False, sensitive=False) radio=False, sensitive=False)
return return
from .device.gfxdetails import vmmGraphicsDetails from ..device.gfxdetails import vmmGraphicsDetails
active = (self.widget("console-pages").get_current_page() != active = (self.widget("console-pages").get_current_page() !=
_CONSOLE_PAGE_SERIAL) _CONSOLE_PAGE_SERIAL)

View File

@ -14,19 +14,19 @@ import libvirt
import virtinst import virtinst
from virtinst import log from virtinst import log
from . import uiutil from .. import uiutil
from .addhardware import vmmAddHardware from ..addhardware import vmmAddHardware
from .baseclass import vmmGObjectUI from ..baseclass import vmmGObjectUI
from .device.addstorage import vmmAddStorage from ..device.addstorage import vmmAddStorage
from .device.fsdetails import vmmFSDetails from ..device.fsdetails import vmmFSDetails
from .device.gfxdetails import vmmGraphicsDetails from ..device.gfxdetails import vmmGraphicsDetails
from .device.mediacombo import vmmMediaCombo from ..device.mediacombo import vmmMediaCombo
from .device.netlist import vmmNetworkList from ..device.netlist import vmmNetworkList
from .device.vsockdetails import vmmVsockDetails from ..device.vsockdetails import vmmVsockDetails
from .graphwidgets import Sparkline from ..graphwidgets import Sparkline
from .oslist import vmmOSList from ..oslist import vmmOSList
from .storagebrowse import vmmStorageBrowser from ..storagebrowse import vmmStorageBrowser
from .xmleditor import vmmXMLEditor from ..xmleditor import vmmXMLEditor
# Parameters that can be edited in the details window # Parameters that can be edited in the details window
@ -1147,7 +1147,7 @@ class vmmDetails(vmmGObjectUI):
return key return key
def inspection_refresh(self, _src): def inspection_refresh(self, _src):
from .inspection import vmmInspection from ..inspection import vmmInspection
inspection = vmmInspection.get_instance() inspection = vmmInspection.get_instance()
if inspection: if inspection:
inspection.vm_refresh(self.vm) inspection.vm_refresh(self.vm)

View File

@ -22,7 +22,7 @@ from gi.repository import Vte
import libvirt import libvirt
from .baseclass import vmmGObject from ..baseclass import vmmGObject
class ConsoleConnection(vmmGObject): class ConsoleConnection(vmmGObject):

View File

@ -19,9 +19,9 @@ from virtinst import generatename
from virtinst import log from virtinst import log
from virtinst import xmlutil from virtinst import xmlutil
from . import uiutil from .. import uiutil
from .baseclass import vmmGObjectUI from ..asyncjob import vmmAsyncJob
from .asyncjob import vmmAsyncJob from ..baseclass import vmmGObjectUI
mimemap = { mimemap = {

View File

@ -13,7 +13,7 @@ import ipaddress
from virtinst import log from virtinst import log
from .baseclass import vmmGObject from ..baseclass import vmmGObject
class ConnectionInfo(object): class ConnectionInfo(object):

View File

@ -23,8 +23,8 @@ except (ValueError, ImportError):
from virtinst import log from virtinst import log
from .baseclass import vmmGObject
from .sshtunnels import SSHTunnels from .sshtunnels import SSHTunnels
from ..baseclass import vmmGObject
################################## ##################################

View File

@ -11,9 +11,9 @@ from virtinst import log
from . import vmmenu from . import vmmenu
from .baseclass import vmmGObjectUI from .baseclass import vmmGObjectUI
from .details import vmmDetails
from .engine import vmmEngine from .engine import vmmEngine
from .snapshots import vmmSnapshotPage from .details.details import vmmDetails
from .details.snapshots import vmmSnapshotPage
# Main tab pages # Main tab pages
@ -69,7 +69,7 @@ class vmmVMWindow(vmmGObjectUI):
self.ignoreDetails = False self.ignoreDetails = False
from .console import vmmConsolePages from .details.console import vmmConsolePages
self.console = vmmConsolePages(self.vm, self.builder, self.topwin) self.console = vmmConsolePages(self.vm, self.builder, self.topwin)
self.snapshots = vmmSnapshotPage(self.vm, self.builder, self.topwin) self.snapshots = vmmSnapshotPage(self.vm, self.builder, self.topwin)
self.widget("snapshot-placeholder").add(self.snapshots.top_box) self.widget("snapshot-placeholder").add(self.snapshots.top_box)