Changeset 19191 in vbox
- Timestamp:
- Apr 26, 2009 5:31:59 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 46517
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h
r19184 r19191 296 296 bool isDebuggerAutoShowStatisticsEnabled() const { return mDbgAutoShowStatistics; } 297 297 RTLDRMOD getDebuggerModule() const { return mhVBoxDbg; } 298 299 bool isStartPausedEnabled() const { return mStartPaused; } 298 300 #else 299 301 bool isDebuggerAutoShowEnabled() const { return false; } 300 302 bool isDebuggerAutoShowCommandLineEnabled() const { return false; } 301 303 bool isDebuggerAutoShowStatisticsEnabled() const { return false; } 304 305 bool isStartPausedEnabled() const { false; } 302 306 #endif 303 307 … … 875 879 /** VBoxDbg module handle. */ 876 880 RTLDRMOD mhVBoxDbg; 881 882 /** Whether to start the VM in paused state or not. */ 883 bool mStartPaused; 877 884 #endif 878 885 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r19134 r19191 977 977 QSize VBoxConsoleView::sizeHint() const 978 978 { 979 #ifdef VBOX_WITH_DEBUGGER /** @todo figure out a more proper fix. */ 980 /* HACK ALERT! Really ugly workaround for the resizing to 9x1 done 981 * by DevVGA if provoked before power on. */ 982 QSize fb(mFrameBuf->width(), mFrameBuf->height()); 983 if ( ( fb.width() < 16 984 || fb.height() < 16) 985 && ( vboxGlobal().isStartPausedEnabled() 986 || vboxGlobal().isDebuggerAutoShowEnabled()) ) 987 fb = QSize(640, 480); 988 return QSize (fb.width() + frameWidth() * 2, 989 fb.height() + frameWidth() * 2); 990 #else 979 991 return QSize (mFrameBuf->width() + frameWidth() * 2, 980 992 mFrameBuf->height() + frameWidth() * 2); 993 #endif 981 994 } 982 995 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r19184 r19191 999 999 1000 1000 /* start the VM */ 1001 CProgress progress = vboxGlobal().isDebuggerAutoShowEnabled() 1001 CProgress progress = vboxGlobal().isStartPausedEnabled() 1002 || vboxGlobal().isDebuggerAutoShowEnabled() 1002 1003 ? cconsole.PowerUpPaused() 1003 1004 : cconsole.PowerUp(); … … 1079 1080 if (vboxGlobal().isDebuggerAutoShowCommandLineEnabled()) 1080 1081 dbgShowCommandLine(); 1082 1083 if (!vboxGlobal().isStartPausedEnabled()) 1084 console->pause (false); 1081 1085 } 1082 1086 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r19184 r19191 5349 5349 mDbgAutoShow = mDbgAutoShowCommandLine = mDbgAutoShowStatistics 5350 5350 = RTEnvExist("VBOX_GUI_DBG_AUTO_SHOW"); 5351 mStartPaused = false; 5351 5352 #endif 5352 5353 … … 5406 5407 mDbgEnabled = true; 5407 5408 mDbgAutoShow = mDbgAutoShowCommandLine = mDbgAutoShowStatistics = true; 5409 mStartPaused = true; 5408 5410 } 5409 5411 else if (!::strcmp (arg, "--debug-command-line")) … … 5411 5413 mDbgEnabled = true; 5412 5414 mDbgAutoShow = mDbgAutoShowCommandLine = true; 5415 mStartPaused = true; 5413 5416 } 5414 5417 else if (!::strcmp (arg, "--debug-statistics")) … … 5416 5419 mDbgEnabled = true; 5417 5420 mDbgAutoShow = mDbgAutoShowStatistics = true; 5421 mStartPaused = true; 5418 5422 } 5419 5423 else if (!::strcmp (arg, "-no-debug") || !::strcmp (arg, "--no-debug")) … … 5423 5427 mDbgAutoShowCommandLine = false; 5424 5428 mDbgAutoShowStatistics = false; 5429 } 5430 /* Not quite debug options, but they're only useful with the debugger bits. */ 5431 else if (!::strcmp (arg, "--start-paused")) 5432 { 5433 mStartPaused = true; 5434 } 5435 else if (!::strcmp (arg, "--start-running")) 5436 { 5437 mStartPaused = false; 5425 5438 } 5426 5439 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r19184 r19191 241 241 " --debug-statistics like --dbg and show statistics window at VM startup\n" 242 242 " --no-debug disable the GUI debug menu and debug windows\n" 243 " --start-paused start the VM in the paused state\n" 244 " --start-running start the VM running (for overriding --debug*)\n" 243 245 "\n" 244 246 "The following environment variables are evaluated:\n"
Note:
See TracChangeset
for help on using the changeset viewer.