VBoxSharedFoldersSettings :mode=html:tabSize=4:indentSize=4:noTabs=true: :folding=explicit:collapseFolds=1: # Copyright (C) 2006-2007 innotek GmbH # # This file is part of VirtualBox Open Source Edition (OSE), as # available from http://www.virtualbox.org. This file is free software; # you can redistribute it and/or modify it under the terms of the GNU # General Public License as published by the Free Software Foundation, # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE # distribution. VirtualBox OSE is distributed in the hope that it will # be useful, but WITHOUT ANY WARRANTY of any kind. # # If you received this file as part of a commercial VirtualBox # distribution, then only the terms of your commercial VirtualBox # license agreement apply instead of the previous paragraph. VBoxSharedFoldersSettings 0 0 286 247 7 7 0 0 VBoxUSBFilterSettings don't translate unnamed 0 10 gbSharedFolders Shared &Folders unnamed Name true true Path true true listView true AllColumns <qt>Lists all shared folders accessible to this machine. Use <tt>net use x: \\vboxsvr\share</tt> to access a shared folder named <i>share</i> from a DOS-like OS, or <tt>mount -t vboxsf share mount_point</tt> to access it from a Linux OS. This feature requires Guest Additions.</qt> layout101 unnamed 0 tbAdd TabFocus Add true Adds a new shared folder definition. tbEdit TabFocus Edit true Edits the selected shared folder definition. tbRemove TabFocus Remove true Removes the selected shared folder definition. spacer76 Vertical Expanding 21 101 VBoxGlobal.h VBoxUtils.h VBoxProblemReporter.h qfiledialog.h qlabel.h qlineedit.h qregexp.h enum SFDialogType { WrongType = 0, GlobalType = 1, MachineType = 2, ConsoleType = 3 }; bool mIsListViewChanged; SFDialogType mDialogType; CMachine mMachine; CConsole mConsole; tbAddPressed() tbEditPressed() tbRemovePressed() processOnItem( QListViewItem* ) processCurrentChanged( QListViewItem* ) init() setDialogType( VBoxSharedFoldersSettings::SFDialogType ) removeSharedFolder( const QString &, const QString &, VBoxSharedFoldersSettings::SFDialogType ) createSharedFolder( const QString &, const QString &, VBoxSharedFoldersSettings::SFDialogType ) getFromGlobal() getFromMachine( const CMachine & ) getFromConsole( const CConsole & ) getFrom( const CSharedFolderEnumerator &, QListViewItem* ) putBackToGlobal() putBackToMachine() putBackToConsole() putBackTo( CSharedFolderEnumerator &, QListViewItem* ) isEditable( const QString & )