Cole Robinson
8c320509ed
opticalhelper: Move UI update routines to uihelpers
2009-11-30 16:21:04 -05:00
Cole Robinson
f9b7e9cdf4
Add new class vmmMediaDev, similar to vmmNetDev
...
Represents a physical media drive on the host (only cdrom for now, but could
be floppy later). Use this in opticalhelper
2009-11-30 16:20:06 -05:00
Cole Robinson
26f6ee3e18
manager: Remember previous window dimensions
2009-11-28 21:00:46 -05:00
Cole Robinson
71f54c0112
manager: Make code organization more readable
...
As has been done with other files, try to group similar functions in
commented blocks, and break apart massive __init__ functions into chunks.
2009-11-28 20:49:44 -05:00
Cole Robinson
108fa864d7
details: Disable send key menu entries if VM is paused
2009-11-28 20:13:55 -05:00
Cole Robinson
8b31e9afc3
details: Remember previous window dimensions
...
In order to do this, we can't auto resize the window to the VNC desktop
resolution when details is brought up. So, to make this desired behavior
easier, add a View menu item 'Resize to VM' which resizes the details window
to match the active desktop dimensions.
2009-11-28 20:07:01 -05:00
Cole Robinson
436d1c39e2
console: Rework VNC sizing: allow scaling down and maintain ratio
...
There were several defficiencies in the way we handled VNC widget sizing, so
try to fix them up. We now have:
- Ability to scale down
- Aspect ratio maintained while scaling
- Much better scrollbar handling without the hacks.
2009-11-28 18:48:56 -05:00
Cole Robinson
a1172eb32f
connection: Prefer libvirt APIs for net device enumeration
...
If a connection supports interface APIs and nodedev APIs, use them over
HAL to enumerate net devices.
2009-11-25 17:07:12 -05:00
Cole Robinson
d0873210a0
connection: Only fetch interface object in tick when needed
...
We don't need to look up the interface object ahead of time, only do it
if we appear to have a new interface.
2009-11-25 14:56:35 -05:00
Cole Robinson
22a2a4b57c
connection: Poll for node devices, rather than fetch on demand
...
This should hopefully be much less taxing on bandwidth, since hostdevices
shouldn't change too much, so every tick we only need to compare a couples
lists.
2009-11-25 14:50:27 -05:00
Cole Robinson
a21a91f6c9
connection: Clean up autoconnect get/set routines
...
No reason to cache the autoconnect value, use gconf as intended.
2009-11-25 14:16:31 -05:00
Cole Robinson
919e82b477
addhw: Drop paranoid lower() call
2009-11-25 14:02:32 -05:00
Cole Robinson
806dbec913
connection: Drop image validation for restore
...
Apps shouldn't be expected to do this. If we want it, should be done at
the libvirt level or the hypervisor level. Qemu and test drivers already do
the correct thing.
2009-11-25 14:01:34 -05:00
Cole Robinson
f635c176e7
connection: Clean up usage of get_type
...
Move users to either get_driver or is_* functions, which are self documenting.
2009-11-25 13:58:29 -05:00
Cole Robinson
0b094377b9
connection: Reorganize code placement
...
Similar to what's been done in some other files, try to group functionality
into relevant commented blocks.
2009-11-25 16:13:46 -05:00
Cole Robinson
ed8e00bad7
details: Fix a useless traceback if removing a device from inactive VM
2009-11-25 12:58:19 -05:00
Cole Robinson
e0075f8b5f
uihelpers: Some improvements for network device listing
...
Sort the device list by device type, and alphabetically within types
Make sure we have a sane default selection
List empty bridges
2009-11-25 16:12:45 -05:00
Cole Robinson
325a33de18
connection: Track netdevs natively, don't just use netdevhelper lists
...
Our lists are built up from netdev-added and netdev-removed signals.
2009-11-25 16:12:03 -05:00
Cole Robinson
6ee14c7a65
Fix toolbar priority text settings
2009-11-24 14:12:55 -05:00
Cole Robinson
1c02280e6e
addhw: Remove usermode networking skip-network-page hack
...
The previous network page had no place to choose usermode networking, but
the current one is a bit more flexible, so drop our original hack to skip
straight to the summary page.
2009-11-24 13:32:14 -05:00
Cole Robinson
0812c40428
A few more UI tweaks.
...
Make sure dialog button boxes aren't expanding.
Make storage browser a gtk Window, with a dialog type hint.
2009-11-24 13:24:46 -05:00
Cole Robinson
6c968e7944
addhw: Greatly simply 'Add Network' wizard
...
Use a single combo box for the source device, and drop the network hints.
Most people likely won't have virtual networking and bridging set up, and if
they do they probably know what they are doing.
This allows us to reuse the UI code from the create wizard.
2009-11-24 13:14:55 -05:00
Cole Robinson
333a37209e
addhw: Try to organize method placement
...
Also break apart some complex methods. This should be a no op.
2009-11-24 12:43:54 -05:00
Cole Robinson
37eeae37c0
Fix 'make check'
2009-11-23 11:54:21 -05:00
Cole Robinson
263da14aaa
console: Make sure previous dimensions are restored after fullscreen.
...
If scaling is always enabled, returning from fullscreen wouldn't restore
the original VNC dimensions.
2009-11-22 16:39:38 -05:00
Cole Robinson
2c40c07252
domain: Fix a small typo causing a useless backtrace
2009-11-22 16:11:25 -05:00
Cole Robinson
6bb6a44c31
console: s/Console/Graphical console/g in page messages
2009-11-24 09:39:32 -05:00
Cole Robinson
d03207304a
Actually add the new interface file
2009-11-22 11:18:53 -05:00
Cole Robinson
54cd0cafde
create: Break out network paremeter validation to uihelpers
...
This will also be used by addhardware.
2009-11-20 13:12:24 -05:00
Cole Robinson
72315a372b
error: Make sure we set proper transient parent
...
We were using widget.parent, which is the parent container widget (if
present), not the dialog transient parent.
2009-11-20 13:11:33 -05:00
Cole Robinson
d159a29914
console: Remove some redundant debugging
2009-11-20 13:10:07 -05:00
Cole Robinson
0eec8017f7
create: Break out network populate functions to new file uihelpers.py
...
We will use this in the addhardware wizard.
2009-11-20 11:39:22 -05:00
Cole Robinson
d257ead552
Make sure that persistent VM config is updated after successful hotplug.
2009-11-20 09:29:26 -05:00
Cole Robinson
f784eacf53
host: Add some basic UI work for viewing interfaces (not hooked up yet)
...
Won't be really implementing this for a while, but just push the basic
UI template in place, so any work done now will merge easier later.
2009-11-19 17:32:53 -05:00
Cole Robinson
28f87993ed
host: Fix some small UI issues with listing networks
...
- Desenitize list entry when network is inactive
- Have initial host window show sensitized network output
- Make sure network is selected when host window is open
2009-11-19 17:29:20 -05:00
Cole Robinson
05abf3c845
connection: Check for network API support before polling
2009-11-19 17:38:43 -05:00
Cole Robinson
d92fff5b98
connection: Poll for and track libvirt interfaces
2009-11-19 17:35:27 -05:00
Cole Robinson
5d57a2ff06
details: Confirm with user before removing a device
...
Allow this removal to be skipped using a similar 'Don't show this again'
option as the previous commit.
2009-11-18 16:46:36 -05:00
Cole Robinson
013283936b
Allow disabling 'force poweroff' prompt.
...
Also allow enabling poweroff, reboot, and pause prompts. This was folks
administering live servers can add extra security and be sure they don't
accidentally hit a button and cause damage.
2009-11-18 16:11:17 -05:00
Cole Robinson
21376d30bd
config: Move code around to make things more readable.
2009-11-18 15:16:57 -05:00
Cole Robinson
103c5536dd
engine: Remove status checks in state changing commands.
...
If these are needed, then we have UI bugs elsewhere. Better to expose the
error and solve the source issue.
2009-11-18 13:56:12 -05:00
Cole Robinson
f45db69b35
engine: Remove status checks in state changing commands.
...
If these are needed, then we have UI bugs elsewhere. Better to expose the
error and solve the source issue.
2009-11-18 13:53:37 -05:00
Cole Robinson
164d7eebd1
migrate: Storage connection list in the migrate dialog, not migrate menu.
2009-11-18 13:51:36 -05:00
Cole Robinson
64e5998ded
Add mnemonics for various menu items.
...
Also, try to be a bit more consistent between manager and details menus.
2009-11-17 17:47:34 -05:00
Cole Robinson
f02e525ae9
domain: Accurately cap max VCPUs to startup count, not just running count.
2009-11-17 17:18:09 -05:00
Cole Robinson
eb63b12e84
manager: Clean up setting context menu icons, and add a few
2009-11-17 16:20:23 -05:00
Cole Robinson
858736cdd6
host: Clean up the __init__ routine.
...
Break logical pieces into their own functions, so things are actually
readable.
2009-11-17 15:44:27 -05:00
Cole Robinson
4ae4c8877e
Make the host details window a first class citizen.
...
This means the host window can be the only window visible and the app
will still be running.
2009-11-17 15:18:38 -05:00
Cole Robinson
f78fe3c089
Numerous UI tweaks.
...
- Don't use custom button content, because it doesn't abide typical button
gtk button + image preferences. This forces us to set the button image in
the code since glade can't handle it.
- Use widget mnemonics _everywhere_
- Tweak some default widget focus, and other misc things.
2009-11-17 15:06:15 -05:00
Cole Robinson
e3ea9867e2
manager: Add 'delete' option in connection context menu.
2009-11-16 16:35:34 -05:00