VBoxVMSettingsDlg.ui.h revision ecc056832bbee5c2478d4297c1096306499703a5
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * VBox frontends: Qt GUI ("VirtualBox"):
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * "VM settings" dialog UI include (Qt Designer)
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * Copyright (C) 2006 InnoTek Systemberatung GmbH
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * available from http://www.virtualbox.org. This file is free software;
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * you can redistribute it and/or modify it under the terms of the GNU
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * General Public License as published by the Free Software Foundation,
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * distribution. VirtualBox OSE is distributed in the hope that it will
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * be useful, but WITHOUT ANY WARRANTY of any kind.
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * If you received this file as part of a commercial VirtualBox
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * distribution, then only the terms of your commercial VirtualBox
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * license agreement apply instead of the previous paragraph.
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync/****************************************************************************
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync** ui.h extension file, included from the uic-generated form implementation.
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync** If you wish to add, delete or rename functions or slots use
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync** Qt Designer which will update this file, preserving your code. Create an
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync** init() function in place of a constructor, and a destroy() function in
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync** place of a destructor.
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync*****************************************************************************/
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * Calculates a suitable page step size for the given max value.
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * The returned size is so that there will be no more than 32 pages.
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * The minimum returned page size is 4.
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync /* reasonable max. number of page steps is 32 */
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync /* make it a power of 2 */
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync while ((p >>= 1))
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync return (int) p2;
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * QListView class reimplementation to use as boot items table.
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * It has one unsorted column without header with automated width
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * resize management.
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * Keymapping handlers for ctrl-up & ctrl-down are translated into
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync * boot-items up/down moving.
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync BootItemsTable (QWidget *aParent, const char *aName)
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync QWhatsThis::add (this, tr ("Defines the boot device order. "
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync "Use checkboxes to the left to enable or disable "
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync "individual boot devices. Move items up and down to "
9c5875d62215e6a088a86658e5553af6b8401f1cvboxsync "change the device order."));
~BootItemsTable() {}
void moveItemUp();
void moveItemDown();
if (!aItem)
~BootItemsList() {}
void fixTabStops()
int minimumWidth = 0;
while (item)
while (item)
void moveItemUp()
if (!itemAbove) return;
void moveItemDown()
if (!itemBelow) return;
// while (it.current() && p < 0)
// if (it.current() == li)
int mId;
QString p;
while (cur)
if (!p.isNull())
p = sep + p;
listView_Category = 0,
lvUSBFilters_Name = 0,
polished = false;
valid = true;
f.setBold (true);
cbHDA);
cbHDB);
cbHDD);
mLastUSBFilterNum = 0;
mUSBFilterListModified = false;
#if defined Q_WS_WIN32
#ifdef VBOX_WITH_WINMM
#ifdef VBOX_WITH_ALSA
updateInterfaces (0);
if (polished)
polished = true;
#if defined Q_WS_WIN
if (aWidget)
if (!aWidget) return;
#if defined Q_WS_WIN
updateInterfaces (0);
return notAttached;
if (!gotFocus)
updateWhatsThis (true);
if (item)
QWidget *p = w;
w->setFocus();
bool newValid = true;
++it;
delete l;
if (valid)
setWarning(0);
valid = true;
valid = false;
valid = false;
if (found)
if (valid)
valid = false;
if (found)
if (valid)
if (!valid)
if (!valid)
int index = 0;
if (!valid) break;
if (!valid)
valid = true;
} data;
diskSet[] =
int id = 0;
++ id;
int id = 0;
++ id;
if (usbItem)
if (vrdpItem)
} data;
diskSet[] =
return res;
mUSBFilterListModified = false;
return COMResult();
void VBoxVMSettingsDlg::showImageManagerISOFloppy() { showVDImageManager(&uuidISOFloppy, cbISOFloppy); }
#if defined Q_WS_WIN
if (isNew)
if (item)
mUSBFilterListModified = true;
mUSBFilterListModified = true;
mUSBFilterListModified = true;
if (!itemAbove)
mUSBFilterListModified = true;
mUSBFilterListModified = true;