Changeset 74501 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 27, 2018 2:09:07 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneGlobal.cpp
r74321 r74501 97 97 /* Create Desktop pane: */ 98 98 m_pPaneDesktop = new UIWelcomePane; 99 AssertPtrReturnVoid(m_pPaneDesktop);99 if (m_pPaneDesktop) 100 100 { 101 101 /* Configure pane: */ … … 183 183 { 184 184 /* Update desktop pane: */ 185 AssertPtrReturnVoid(m_pPaneDesktop);186 m_pPaneDesktop->updateDetailsError(strError);185 if (m_pPaneDesktop) 186 m_pPaneDesktop->updateDetailsError(strError); 187 187 } 188 188 189 189 void UIToolPaneGlobal::retranslateUi() 190 190 { 191 /* Translate Global Tools welcome screen: */ 192 m_pPaneDesktop->setToolsPaneIcon(UIIconPool::iconSet(":/tools_banner_global_200px.png")); 193 m_pPaneDesktop->setToolsPaneText( 194 tr("<h3>Welcome to VirtualBox!</h3>" 195 "<p>This window represents a set of global tools " 196 "which are currently opened (or can be opened). " 197 "They are not related to any particular machine but " 198 "to the complete VM collection. For a list of currently " 199 "available tools check the corresponding menu at the right " 200 "side of the main tool bar located at the top of the window. " 201 "This list will be extended with new tools in future releases.</p>" 202 "<p>You can press the <b>%1</b> key to get instant help, or visit " 203 "<a href=https://www.virtualbox.org>www.virtualbox.org</a> " 204 "for more information and latest news.</p>") 205 .arg(QKeySequence(QKeySequence::HelpContents).toString(QKeySequence::NativeText))); 206 207 /* Wipe out the tool descriptions: */ 208 m_pPaneDesktop->removeToolDescriptions(); 209 210 /* Add tool descriptions: */ 211 QAction *pAction1 = m_pActionPool->action(UIActionIndexST_M_Tools_M_Global_S_VirtualMediaManager); 212 m_pPaneDesktop->addToolDescription(pAction1, 213 tr("Tool to observe virtual storage media. " 214 "Reflects all the chains of virtual disks you have registered " 215 "(per each storage type) within your virtual machines and allows for media " 216 "operations like copy, remove, release " 217 "(detach it from VMs where it is currently attached to) and observe their properties. " 218 "Allows to edit medium attributes like type, " 219 "location/name, description and size (for dynamical storages " 220 "only).")); 221 QAction *pAction2 = m_pActionPool->action(UIActionIndexST_M_Tools_M_Global_S_HostNetworkManager); 222 m_pPaneDesktop->addToolDescription(pAction2, 223 tr("Tool to control host-only network interfaces. " 224 "Reflects host-only networks, their DHCP servers and allows " 225 "for operations on the networks like possibility to create, remove " 226 "and observe their properties. Allows to edit various " 227 "attributes for host-only interface and corresponding DHCP server.")); 191 if (m_pPaneDesktop) 192 { 193 /* Translate Global Tools welcome screen: */ 194 m_pPaneDesktop->setToolsPaneIcon(UIIconPool::iconSet(":/tools_banner_global_200px.png")); 195 m_pPaneDesktop->setToolsPaneText( 196 tr("<h3>Welcome to VirtualBox!</h3>" 197 "<p>This window represents a set of global tools " 198 "which are currently opened (or can be opened). " 199 "They are not related to any particular machine but " 200 "to the complete VM collection. For a list of currently " 201 "available tools check the corresponding menu at the right " 202 "side of the main tool bar located at the top of the window. " 203 "This list will be extended with new tools in future releases.</p>" 204 "<p>You can press the <b>%1</b> key to get instant help, or visit " 205 "<a href=https://www.virtualbox.org>www.virtualbox.org</a> " 206 "for more information and latest news.</p>") 207 .arg(QKeySequence(QKeySequence::HelpContents).toString(QKeySequence::NativeText))); 208 209 /* Wipe out the tool descriptions: */ 210 m_pPaneDesktop->removeToolDescriptions(); 211 212 /* Add tool descriptions: */ 213 QAction *pAction1 = m_pActionPool->action(UIActionIndexST_M_Tools_M_Global_S_VirtualMediaManager); 214 m_pPaneDesktop->addToolDescription(pAction1, 215 tr("Tool to observe virtual storage media. " 216 "Reflects all the chains of virtual disks you have registered " 217 "(per each storage type) within your virtual machines and allows for media " 218 "operations like copy, remove, release " 219 "(detach it from VMs where it is currently attached to) and observe their properties. " 220 "Allows to edit medium attributes like type, " 221 "location/name, description and size (for dynamical storages " 222 "only).")); 223 QAction *pAction2 = m_pActionPool->action(UIActionIndexST_M_Tools_M_Global_S_HostNetworkManager); 224 m_pPaneDesktop->addToolDescription(pAction2, 225 tr("Tool to control host-only network interfaces. " 226 "Reflects host-only networks, their DHCP servers and allows " 227 "for operations on the networks like possibility to create, remove " 228 "and observe their properties. Allows to edit various " 229 "attributes for host-only interface and corresponding DHCP server.")); 230 } 228 231 } 229 232 … … 234 237 235 238 /* Create desktop pane: */ 236 openTool(ToolTypeGlobal_ Desktop);239 openTool(ToolTypeGlobal_VirtualMedia); 237 240 238 241 /* Apply language settings: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.cpp
r74321 r74501 101 101 /* Create Desktop pane: */ 102 102 m_pPaneDesktop = new UIWelcomePane(m_pActionPool->action(UIActionIndexST_M_Group_S_Refresh)); 103 AssertPtrReturnVoid(m_pPaneDesktop);103 if (m_pPaneDesktop) 104 104 { 105 105 /* Configure pane: */ … … 207 207 { 208 208 /* Update desktop pane: */ 209 AssertPtrReturnVoid(m_pPaneDesktop);210 m_pPaneDesktop->updateDetailsError(strError);209 if (m_pPaneDesktop) 210 m_pPaneDesktop->updateDetailsError(strError); 211 211 } 212 212 … … 255 255 void UIToolPaneMachine::retranslateUi() 256 256 { 257 /* Translate Machine Tools welcome screen: */ 258 if (!m_pItem || !m_pItem->accessible()) 259 { 260 m_pPaneDesktop->setToolsPaneIcon(UIIconPool::iconSet(":/welcome_200px.png")); 261 m_pPaneDesktop->setToolsPaneText( 262 tr("<h3>Welcome to VirtualBox!</h3>" 263 "<p>The left part of this window lists all virtual " 264 "machines and virtual machine groups on your computer. " 265 "The list is empty now because you haven't created any " 266 "virtual machines yet.</p>" 267 "<p>In order to create a new virtual machine, press the " 268 "<b>New</b> button in the main tool bar located at the " 269 "top of the window.</p>" 270 "<p>You can press the <b>%1</b> key to get instant help, or visit " 271 "<a href=https://www.virtualbox.org>www.virtualbox.org</a> " 272 "for more information and latest news.</p>") 273 .arg(QKeySequence(QKeySequence::HelpContents).toString(QKeySequence::NativeText))); 274 } 275 else 276 { 277 m_pPaneDesktop->setToolsPaneIcon(UIIconPool::iconSet(":/tools_banner_machine_200px.png")); 278 m_pPaneDesktop->setToolsPaneText( 279 tr("<h3>Welcome to VirtualBox!</h3>" 280 "<p>The left part of this window lists all virtual " 281 "machines and virtual machine groups on your computer.</p>" 282 "<p>The right part of this window represents a set of " 283 "tools which are currently opened (or can be opened) for " 284 "the currently chosen machine. For a list of currently " 285 "available tools check the corresponding menu at the right " 286 "side of the main tool bar located at the top of the window. " 287 "This list will be extended with new tools in future releases.</p>" 288 "<p>You can press the <b>%1</b> key to get instant help, or visit " 289 "<a href=https://www.virtualbox.org>www.virtualbox.org</a> " 290 "for more information and latest news.</p>") 291 .arg(QKeySequence(QKeySequence::HelpContents).toString(QKeySequence::NativeText))); 292 } 293 294 /* Wipe out the tool descriptions: */ 295 m_pPaneDesktop->removeToolDescriptions(); 296 297 /* Add tool descriptions: */ 298 if (m_pItem && m_pItem->accessible()) 299 { 300 QAction *pAction1 = m_pActionPool->action(UIActionIndexST_M_Tools_M_Machine_S_Details); 301 m_pPaneDesktop->addToolDescription(pAction1, 302 tr("Tool to observe virtual machine (VM) details. " 303 "Reflects groups of properties for the currently chosen VM and allows " 304 "basic operations on certain properties (like the machine storage devices).")); 305 QAction *pAction2 = m_pActionPool->action(UIActionIndexST_M_Tools_M_Machine_S_Snapshots); 306 m_pPaneDesktop->addToolDescription(pAction2, 307 tr("Tool to control virtual machine (VM) snapshots. " 308 "Reflects snapshots created for the currently selected VM and allows " 309 "snapshot operations like create, remove, " 310 "restore (make current) and observe their properties. Allows to " 311 "edit snapshot attributes like name and description.")); 312 QAction *pAction3 = m_pActionPool->action(UIActionIndexST_M_Tools_M_Machine_S_LogViewer); 313 m_pPaneDesktop->addToolDescription(pAction3, 314 tr("Tool to display virtual machine (VM) logs. ")); 257 if (m_pPaneDesktop) 258 { 259 /* Translate Machine Tools welcome screen: */ 260 if (!m_pItem || !m_pItem->accessible()) 261 { 262 m_pPaneDesktop->setToolsPaneIcon(UIIconPool::iconSet(":/welcome_200px.png")); 263 m_pPaneDesktop->setToolsPaneText( 264 tr("<h3>Welcome to VirtualBox!</h3>" 265 "<p>The left part of this window lists all virtual " 266 "machines and virtual machine groups on your computer. " 267 "The list is empty now because you haven't created any " 268 "virtual machines yet.</p>" 269 "<p>In order to create a new virtual machine, press the " 270 "<b>New</b> button in the main tool bar located at the " 271 "top of the window.</p>" 272 "<p>You can press the <b>%1</b> key to get instant help, or visit " 273 "<a href=https://www.virtualbox.org>www.virtualbox.org</a> " 274 "for more information and latest news.</p>") 275 .arg(QKeySequence(QKeySequence::HelpContents).toString(QKeySequence::NativeText))); 276 } 277 else 278 { 279 m_pPaneDesktop->setToolsPaneIcon(UIIconPool::iconSet(":/tools_banner_machine_200px.png")); 280 m_pPaneDesktop->setToolsPaneText( 281 tr("<h3>Welcome to VirtualBox!</h3>" 282 "<p>The left part of this window lists all virtual " 283 "machines and virtual machine groups on your computer.</p>" 284 "<p>The right part of this window represents a set of " 285 "tools which are currently opened (or can be opened) for " 286 "the currently chosen machine. For a list of currently " 287 "available tools check the corresponding menu at the right " 288 "side of the main tool bar located at the top of the window. " 289 "This list will be extended with new tools in future releases.</p>" 290 "<p>You can press the <b>%1</b> key to get instant help, or visit " 291 "<a href=https://www.virtualbox.org>www.virtualbox.org</a> " 292 "for more information and latest news.</p>") 293 .arg(QKeySequence(QKeySequence::HelpContents).toString(QKeySequence::NativeText))); 294 } 295 296 /* Wipe out the tool descriptions: */ 297 m_pPaneDesktop->removeToolDescriptions(); 298 299 /* Add tool descriptions: */ 300 if (m_pItem && m_pItem->accessible()) 301 { 302 QAction *pAction1 = m_pActionPool->action(UIActionIndexST_M_Tools_M_Machine_S_Details); 303 m_pPaneDesktop->addToolDescription(pAction1, 304 tr("Tool to observe virtual machine (VM) details. " 305 "Reflects groups of properties for the currently chosen VM and allows " 306 "basic operations on certain properties (like the machine storage devices).")); 307 QAction *pAction2 = m_pActionPool->action(UIActionIndexST_M_Tools_M_Machine_S_Snapshots); 308 m_pPaneDesktop->addToolDescription(pAction2, 309 tr("Tool to control virtual machine (VM) snapshots. " 310 "Reflects snapshots created for the currently selected VM and allows " 311 "snapshot operations like create, remove, " 312 "restore (make current) and observe their properties. Allows to " 313 "edit snapshot attributes like name and description.")); 314 QAction *pAction3 = m_pActionPool->action(UIActionIndexST_M_Tools_M_Machine_S_LogViewer); 315 m_pPaneDesktop->addToolDescription(pAction3, 316 tr("Tool to display virtual machine (VM) logs. ")); 317 } 315 318 } 316 319 } … … 322 325 323 326 /* Create desktop pane: */ 324 openTool(ToolTypeMachine_De sktop);327 openTool(ToolTypeMachine_Details); 325 328 326 329 /* Apply language settings: */
Note:
See TracChangeset
for help on using the changeset viewer.