Commit Graph

987 Commits

Author SHA1 Message Date
Volker Ruppert
a31ba3c195 - simple string dialog box uses the label of the parameter if present 2006-02-28 15:48:59 +00:00
Volker Ruppert
388747feec - removed unnecessary strdup() calls (memory leaks)
- strdup() is necessary for the ata device name (master/slave)
- added missing initialization of the member 'enable_handler'
- clone() method now uses the original title for the new list
2006-02-28 14:02:06 +00:00
Volker Ruppert
32c03a3965 - enable ATA channels 1 - 3 in menu only if supported
- runtime setup for ATA channels now uses limit BX_MAX_ATA_CHANNEL
- simple string dialog box uses the label of the parameter if present
  (otherwise the name is used)
2006-02-27 12:03:56 +00:00
Volker Ruppert
48bb9719a6 - fixed number of initializers for ATA options if BX_MAX_ATA_CHANNEL < 4
- changed ask_param() method argument to param pointer (fixes win32 cdrom dialog)
2006-02-27 09:37:58 +00:00
Volker Ruppert
f1acec3ffd - fixed win32 floppy dialog after implementing new parameter handling
- fixed enabling of two ATA controllers by default
2006-02-26 22:36:01 +00:00
Volker Ruppert
15efba10dd - ata/atapi options rewritten to a parameter tree
- siminterface get_param_*() methods num support a base parameter like the generic
  get_param() method
- new parameter lists now also have a generated id
- test function print_tree() now handles enum parameters correctly
- proposed parameter tree updated
2006-02-26 19:11:20 +00:00
Volker Ruppert
6cd4ffff28 - floppy options rewritten to a parameter tree
- enum parameter type method set_by_name() fixed
2006-02-24 22:35:46 +00:00
Volker Ruppert
4ef1a50a35 - new method get_param_path() returns the full path of new-style parameters
- keyboard type option handling simplified
- wx: show the list title as the group box title of pcidev options
2006-02-24 12:05:24 +00:00
Volker Ruppert
a4f412d3e8 - boot and loader options rewritten to a parameter tree
- wx: ParamDialog method EnableParam can now handle new-style parameters
- saving of pcidev options fixed
2006-02-23 22:48:57 +00:00
Volker Ruppert
689d233c4f - fixed parameter access functions in some guis 2006-02-22 19:43:55 +00:00
Volker Ruppert
c47508bdb1 - keyboard and mouse options rewritten to a parameter tree
- siminterface method ask_param() can now handle new-style parameters
- proposed parameter tree updated
2006-02-22 19:18:29 +00:00
Volker Ruppert
d4d4cbf6dd - display and interface options rewritten to a parameter tree
- new enum parameter method get_selected() returns a pointer to the selected string
- proposed parameter tree updated
2006-02-21 21:35:09 +00:00
Volker Ruppert
d364481bed - pcidev options rewritten to a subtree of parameter "pci"
- save pcidev config line if enabled
- load pcidev plugin if requested
- pci parameter dependencies improved
- textconfig: show the title of a disabled submenu
2006-02-20 21:29:13 +00:00
Volker Ruppert
6311fface8 - pci options rewritten to a parameter tree
- proposed parameter tree updated
- pci presence flag stored in the memory code
2006-02-19 21:35:50 +00:00
Volker Ruppert
509900dff4 - clock and cmos options rewritten to a parameter tree
- clock/cmos menu added in textconfig and wx
- enum parameter type now supports new parameter handling
- long text format for numeric parameters added (useful when both textconfig and
  wx are present)
- wx: handling of list flag USE_BOX_TITLE fixed
- textconfig: optional memory features moved to submenus
- siminterface generates a unique id for new parameters (used for wx dependencies)
- proposed parameter tree updated
- floppy options init code cleanup (still using old-style parameters)
2006-02-19 15:43:03 +00:00
Volker Ruppert
2a6261fba7 - cpu options rewritten to a parameter tree
- boolean parameter type now supports new parameter handling
- new parameter object constructors now supports label initialization
- bx_list_c constructor now supports title initialization
- textconfig: initial support for new parameter handling
- wx: missing CPU config dialog added
- wx: ParamDialog now handles disabled parameters correctly
- removed unnecessary spaces from function calls
2006-02-18 16:53:18 +00:00
Volker Ruppert
a14b2a9720 - memory parameter handling rewrite completed
- added BXPN_* symbols for parameter names (taken from old save/restore branch)
2006-02-17 22:27:38 +00:00
Volker Ruppert
4cece81589 - started implementation of the parameter tree based on patch.param-tree
* memory parameter handling rewritten (not yet complete)
  * new reset() method for bx_list_c for recursive reset of all list members
  * memory options in wx now handled in a ParamDialog (ConfigMemoryDialog removed)
  * removed obsolete BXP_* constants in siminterface.h
  * updated proposed parameter tree
- constant BX_N_OPTRAM_IMAGES for optional RAM images limit added
2006-02-16 21:44:17 +00:00
Volker Ruppert
4bd442e80e - updated proposed parameter tree (cpu and keyboard stuff for save/restore removed)
- removed unused BXP_* constants in siminterface.h
2006-02-12 20:43:12 +00:00
Stanislav Shwartsman
0bf03f370d Support for DC and HT in SMP configurations
Extended format of CPU::COUNT .bochsrc option to define number of core/threads
2006-02-11 15:28:43 +00:00
Stanislav Shwartsman
6ca296de8b Move --enable-reset-on-triple-fault option to runtime CPU::reste_on_triple-fault option in .bocshrc
Cleanup and optimize parser for debugger
2006-02-01 18:12:08 +00:00
Volker Ruppert
7646a3ecbd - siminterface now uses the new value BX_LOG_NOTIFY_FAILED in case of failure
(no notify handler registered). The ask() function doesn't set the variable
  bx_user_quit to 1 in that case. This prevents win32 from closing the console
  window immediately in case of a bochsrc error.
2006-01-31 19:37:56 +00:00
Volker Ruppert
4ecd8eae70 - show IPS value in a separate field in the status bar (initial patch by sshwarts) 2006-01-27 18:04:49 +00:00
Volker Ruppert
d87085d55c - Bochs with SDL on win32 now works with BX_SHOW_IPS enabled (FIXME: window resize
forces all status bar leds to enabled
2006-01-26 22:13:20 +00:00
Volker Ruppert
8de434138d - gui tooltip support added (currently used by win32 gui only)
- win32 gui overrides default mouse tooltip setting depending on the configuration
2006-01-25 17:37:22 +00:00
Volker Ruppert
01367548ca - show win32 mouse message for min. 2 seconds when BX_SHOW_IPS is enabled 2006-01-23 21:53:57 +00:00
Volker Ruppert
cf5215b11e - fixed possible hangs of the 'sdl' and 'x' gui on Linux/X11 with BX_SHOW_IPS
- x gui: show mouse toggle message for around 2.5 seconds after a change if
  BX_SHOW_IPS is enabled
- format of the ips value changed to right aligned
2006-01-23 18:34:47 +00:00
Stanislav Shwartsman
1ff08c3d6d Print IPS instead of mIPS to the status bar
Do not create show_ips virtual function if BX_SHOW_IPS is OFF
2006-01-22 18:15:48 +00:00
Volker Ruppert
8a1b7ca245 - if BX_SHOW_IPS is enabled, show mIPS value in the status bar of the Bochs
window (rfb, sdl and wx)
2006-01-22 16:30:48 +00:00
Volker Ruppert
a0f880b06d - show IPS value in the status bar of the Bochs window (win32 and x11)
- Bochs now compiles with BX_SHOW_IPS enabled on MSVC
2006-01-22 12:31:16 +00:00
Stanislav Shwartsman
2c8f6f7720 Merged patch: determine number of processors to emulate through .bochsrc 2006-01-18 18:35:38 +00:00
Volker Ruppert
626149f6f2 - fixes for gcc 4.0 (grabbed from Debian unstable) 2006-01-17 17:15:29 +00:00
Volker Ruppert
22187086d7 - new user shortcut "bksl" (backslash) 2006-01-09 18:37:29 +00:00
Volker Ruppert
e350c8cb5c - added Slovenian keymap contributed by Mitja Ursic 2005-12-26 21:20:42 +00:00
Volker Ruppert
1890507b7d - disable USB runtime options if USB support is disabled 2005-12-26 18:10:21 +00:00
Volker Ruppert
f32f291008 - USB runtime options dialog prepared (still needs some changes in the USB code
to make the device change work)
2005-11-30 18:06:24 +00:00
Volker Ruppert
48a1740910 - gcc warning fixed 2005-11-27 14:15:11 +00:00
Volker Ruppert
a2a8234d71 - wrong location of setting floppy media type autodetection fixed
- function BrowseTextCtrl() now only returns true if OK was clicked
- missing handling of the floppy media type status added
- serial/parallel options dialog is now available at runtime (for USB devices)
2005-11-26 09:22:58 +00:00
Volker Ruppert
6d003090a6 - select floppy media type autodetection and disable "Create Image" button after
successfully browsing for an image
- floppy media type control now selectable with the tab key
2005-11-25 22:44:18 +00:00
Volker Ruppert
d62e775d5e - capacity choice should not change to "auto" when typing a filename
- added floppy media change hint
- removed wx console log message that appeared very often
- converted tabs to spaces
2005-11-25 16:24:47 +00:00
Volker Ruppert
dfbf7c7238 - enable button "Create Image" only if a valid capacity is selected
- radio button "Not present" is not valid at runtime
- select capacity autodetection after browsing for an image
- set valid wildcard for file browser
2005-11-24 18:51:55 +00:00
Volker Ruppert
35375dd574 - floppy image size autodetection now available in the whole config interface
(it was only present in bochsrc parser)
- floppy media type is now a runtime parameter (TODO: full media type support
  needs some work in the floppy emulation code)
- floppy media type added to win32 floppy dialog
2005-11-20 17:22:44 +00:00
Volker Ruppert
6683d7c88d - set maximum length of text for string parameters 2005-11-18 23:29:41 +00:00
Volker Ruppert
8be27bf03d - gui dialog capability flags added to simplify the button handler code 2005-11-12 16:09:55 +00:00
Volker Ruppert
e0f02463f9 - the step delay for the recalibrate and seek commands is now calculated from the
number of steps to do, the step rate time and the date rate
- the option floppy_command_delay is obsolete now, since all floppy delays are
  based on the hardware specs. The usage of this option caused a warning now.
2005-11-12 10:38:51 +00:00
Volker Ruppert
9934d3b46b - prepared USB flash stick implementation (patch by Ben Lunt - not yet complete) 2005-11-07 19:06:05 +00:00
Volker Ruppert
93355486d2 - in text runtime config skip non-runtime options in lists with SERIES_ASK set
- added runtime flag for floppy options
2005-11-06 09:11:09 +00:00
Volker Ruppert
a398c1be2a - ask dialog changes
* added word wrap to a second line for large messages
  * dialog dimensions changed
  * default button changed to "quit"
2005-10-28 17:17:34 +00:00
Volker Ruppert
426582fcfc - fixed compile error in case the unimplemented compressed hd support is enabled
- using unimplemented hd mode causes error "not implemented yet"
2005-10-28 13:49:24 +00:00
Kevin Lawton
641650e7e1 Added optramimage directive for .bochsrc files, with same syntax as
optromimage.  You can load up to 4 arbitrary binary images into RAM.
  I didn't do any checking on the addresses, so it's up to you to make
  sure they don't collide with anything else.  Should only be used for
  placing files into standard RAM.
2005-10-28 00:12:27 +00:00
Stanislav Shwartsman
2aa6984fbc Fixed compilation error in last commit 2005-10-26 22:26:02 +00:00
Volker Ruppert
3f7617180e - common file dialogs don't accept raw device names; using empty string in that case 2005-10-26 09:14:24 +00:00
Volker Ruppert
9b4db66efd - rewrite of the win32 dialog handling based on the "overwrite ask" example
- user shortcut dialog string limit fixed
- fixed keyboard focus in user shortcut and cdrom dialog
2005-10-22 11:00:00 +00:00
Volker Ruppert
3658399a4a - maximum length of user shortcut string set to 20
- old-style user shortcut detection fixed
- bx_param_string_c value needs one byte more space for the final null character
2005-10-22 08:07:53 +00:00
Volker Ruppert
feb97a65a0 - new gui variable 'user_dialog' indicates the presence of a gui dialog box for
editing the userbutton shortcut before sending it
- simple userbutton shortcut dialog for the X11 gui implemented
- small fixes in the X11 "ask" dialog code
2005-10-21 18:00:17 +00:00
Stanislav Shwartsman
915c2d9eea Fix compilation warnings 2005-10-20 17:34:22 +00:00
Volker Ruppert
cab7d939de - simple "ask" dialog for the X11 gui implemented based on the override ask patch 2005-10-16 13:11:38 +00:00
Volker Ruppert
d2e158abf1 - now method set_initial_val() for string parameters allows setting the default
value for romimage/vgaromimage  options based on the builtin BXSHARE variable
- default ips value increased to 2000000
2005-10-15 10:43:55 +00:00
Volker Ruppert
e29eba137a - function type bxevent_handler now accessible from outside of class bx_simulator_interface_c
(required for extensions based on patch.example-override-ask)
2005-10-13 17:36:32 +00:00
Stanislav Shwartsman
469358aaf9 Move SHOW_IPS action to bx_gui object, may be some GUI will be able to print IPS online in the simulation window status bar ...
Small code cleanup
2005-10-13 16:22:21 +00:00
Volker Ruppert
847f1d293e - some more keys supported by user shortcut feature with new-style syntax
- usage of old-style syntax for 'user_shortcut' now causes a warning
- deprecated options 'pit' and 'time0' now cause an error
- old disk options completely removed from bochsrc parser
- documentation changes: 'pit' and 'time0' removed, 'user_shortcut' updated
2005-10-10 19:32:53 +00:00
Volker Ruppert
6f506fcf96 - modified syntax of the user shortcut string. The key names are now separated
with a '-' character. Added support for some more keys. The old-style syntax
  is still supported for a few key combinations.
- updated/added documentation for the 'cmosimage' option
2005-10-08 11:41:18 +00:00
Volker Ruppert
978ab4f6c6 - reimplemented runtime options dialog as a property sheet 2005-10-07 23:28:43 +00:00
Volker Ruppert
85afaff11d - fixed keycode generation for the right alt/ctrl/shift keys. Windows generates
multiple keypresses when holding down these keys.
2005-10-02 17:37:56 +00:00
Volker Ruppert
0cacb9af0c - deprecated option 'newharddrivesupport' removed from hard drive code
- sense code ASC_ILLEGAL_OPCODE added for unimplemented/unknown ATAPI commands
- some panics changed to errors
- unsupported bits message in drive and head register changed to BX_DEBUG
- improved info about not existing drive
- indent mode fixed in ATAPI packet command section
2005-10-02 10:16:54 +00:00
Volker Ruppert
0a0ddf1820 - info about media change added in floppy dialog (from SF patch #1294930 by Ben Lunt) 2005-09-24 14:59:36 +00:00
Volker Ruppert
ae3621fb5f - removed temporary PCI base address initialization in the reset() functions
- removed obsolete parameters for usb1 and pnic (now assigned by the PCI BIOS)
- PCI base address register mechanism now leaves the flags untouched
- missing reset of pnic options added
2005-09-22 21:12:26 +00:00
Volker Ruppert
0706c5bcfb - renamed cmos image parameter to 'rtc_init'
- bochsrc sample: example for serial mode 'socket' added
2005-09-18 07:16:28 +00:00
Volker Ruppert
fb44fe9ed1 - removed disabled code for obsolete split-HD support
- missing return value added
- fixed indent mode in modified section
- fixed some typos
2005-09-14 19:52:41 +00:00
Volker Ruppert
c58b8b54c3 - binary RTC mode implemented
- cmos image options renamed
- new cmos option controls the usage of the RTC values from image
- report time0 in use after handling the cmos image stuff
- MSVC warning fixed
2005-09-11 20:03:56 +00:00
Volker Ruppert
26d900cabe - minor comment updates (from patch.param-tree) 2005-07-31 14:49:45 +00:00
Volker Ruppert
ec5b0000a9 - get mouse wheel data only if wheel support is present in SDL 2005-07-30 18:57:02 +00:00
Volker Ruppert
5ec69e8eec - some fixes for OS X Tiger (10.4.1) by brianonn@telus.net 2005-07-24 07:25:02 +00:00
Volker Ruppert
ee8a6d56ba - display libraries 'rfb' and 'nogui' added to the default MSVC workspace and
the shortcut script .conf.win32-vcpp
- updated list of include files for the gui directory in both workspaces
- added check for BX_WITH_NOGUI in nogui.cc (needed for MSVC)
- updated description of the siminterface implementation
2005-07-10 09:02:30 +00:00
Stanislav Shwartsman
3a1bee370f Merge IDLE_HACK fix by h.johansson. Fixes the bug IDLE_HACK floods console with error messages reported by ci-dev 2005-07-04 18:08:36 +00:00
Volker Ruppert
8380541a8f - replacing uint* types by Bit*u types since they are identical (BeOS code untouched) 2005-06-26 10:54:49 +00:00
Volker Ruppert
048467681c - fixes for compiling on MorphOS (configure script, cdrom, sdl) 2005-06-23 18:40:35 +00:00
Volker Ruppert
3d9495bb45 - implemented idle hack for the term gui (patch by H. Johansson) 2005-06-17 18:37:51 +00:00
Volker Ruppert
d133c74339 - fixed MSVC warnings in the rfb and debugger code 2005-06-09 20:08:17 +00:00
Volker Ruppert
5e75dc3a10 - some more warnings in MSVC fixed 2005-06-06 20:14:50 +00:00
Volker Ruppert
12491e8b50 - some fixes for wxWidgets 2.6 compatiblity
* added hack to detect GTK 2 and set include path
  * don't use obsolete wxNotebookSizer
  * TODO: wxGTK version is still buggy (wrong dialogs when pressing toolbar buttons)
- updated version number and strings
2005-05-17 18:07:04 +00:00
Volker Ruppert
fc343985c5 - applied SF patch #1198308: fix incorrect moving mouse cursor when wheel using
on win32
2005-05-11 18:00:02 +00:00
Volker Ruppert
6df7a5135f - applied SF patch #843328: flat style toolbar for the win32 gui
- partial fix for resize problems when moving the Bochs window
  (TODO: resize after moving is complete)
2005-05-08 19:10:21 +00:00
Stanislav Shwartsman
d112bd5eb6 Change BOCHS_WINDOW_NAME 2005-04-29 19:06:24 +00:00
Volker Ruppert
b49ece26ac - fixed including of the sdl font for the status bar if plugins are enabled 2005-04-25 17:10:12 +00:00
Volker Ruppert
f20eb9ec7a - fixed multiple definitions if both sdl and rfb are compiled in one binary
without plugins
- cleaned up sdl.h
2005-04-25 16:20:14 +00:00
Volker Ruppert
143be5e6e9 - status bar text support added 2005-04-07 19:08:01 +00:00
Volker Ruppert
aeb62ff6b1 - panic message for unknown key symbols improved 2005-03-27 14:50:07 +00:00
Volker Ruppert
b438da759a - save/redirect the first 3 palette values while using the entries for the RGB mask
in 16 bpp modes
2005-03-23 20:46:52 +00:00
Volker Ruppert
be03140315 - space for bx_status_info_text was too small 2005-02-27 16:55:34 +00:00
Stanislav Shwartsman
5701f62a42 Fix compiler warnings with -wall 2005-02-03 18:43:23 +00:00
Volker Ruppert
a16fbc293a - vga extension option partially implemented (Bochs VBE interface and PCI VGA
dummy interface are now disabled if the extension isn't set to "vbe"
- writing charmap data in graphics mode now supported (SF patch #1059199)
- fixed set_ask_format() for the mouse type option
2005-02-01 19:16:39 +00:00
Stanislav Shwartsman
acd1d8f14f Merged patch
[1104695] msvc6 compatibility update (Royce Mitchell III)
2005-01-19 18:21:40 +00:00
Volker Ruppert
f98ecd09b1 - changed wxWindows to wxWidgets (includes SF patch #1094407 by Alexander Schuch) 2005-01-05 19:54:32 +00:00
Volker Ruppert
aa5fa1daf3 - prepared usb port configuration parameter and removed usb irq parameter
(assigned by BIOS)
- fixed some issues in bx_write_configuration()
- fixed bug in ne2k/pnic option parser (failed when disabling disabled device)
2004-12-30 14:50:37 +00:00
Volker Ruppert
afb809a4f9 - enabling the mouse at startup works now
- periodic mouse status update not necessary
2004-12-28 14:38:30 +00:00
Volker Ruppert
6ea5349724 - fixed mouse button order (swap #2 and #3) 2004-12-20 19:32:05 +00:00
Volker Ruppert
17b29a0b30 - applied a set of patches from SF patch #1083218 by Ben Lunt with some changes
- mouse type constants changed to enum values and related changes in config.cc
2004-12-16 19:05:01 +00:00
Volker Ruppert
d5684940a1 - renamed parameters that control the sb16 and ne2k presence to "enabled"
- ne2k and sb16 config lines now support the parameter "enabled=0|1"
- config parser code for ne2k and pnic now working the same way
- ne2k enable option now present in config menu / dialog
2004-12-14 19:27:42 +00:00
Volker Ruppert
02ae558db8 - removed old unused code designed for a save/restore feature
- fixed pcidev targets in iodev/Makefile.in
- updated all Makefile dependencies using a default setup (.conf.linux).
  TODO: dependencies should be generated at compile time since they depend on
  the config settings
2004-12-13 19:10:38 +00:00
Volker Ruppert
78218d8b1b - implementation of bus mouse and usb mouse started - NOT YET COMPLETE !
(SF patch #1082584 by Ben Lunt)
2004-12-11 08:35:33 +00:00
Volker Ruppert
2ff1cd7b54 - mouse wheel support for sdl added 2004-12-10 15:57:46 +00:00
Volker Ruppert
5ed6a80f69 - mouse type definitions moved to siminterface.h and BX_* prefix added
- mouse type 'ps2' is now the default again
2004-12-09 18:47:36 +00:00
Volker Ruppert
1d5eb60ec8 - fixed 'imps2' mouse emulation - wheel data is okay now
- wheel mouse support for the 'x' display library added
2004-12-06 21:12:11 +00:00
Volker Ruppert
202734a5a3 - first attempt to implement a wheel mouse (PS/2 or serial) based on patch
#1079240 by Ben Lunt. There are still some problems:
  - PS/2 mouse is always present (some code to emulate a disconnected mouse needed)
  - PS/2 wheel mouse doesn't work properly
  - serial wheel mouse detected as a standard mouse and doesn't work at all
2004-12-05 20:23:39 +00:00
Volker Ruppert
df0b868e94 - fixed compile error with wxWidgets 2.5.x and debugger enabled 2004-12-04 13:49:27 +00:00
Volker Ruppert
6cc4cd8c4b - mouse type option prepared (TODO: device code for wheel and serial mouse) 2004-11-30 21:03:16 +00:00
Alexander Krisak
efc5edc58b Preparing for QNX6 port. 2004-11-22 13:14:54 +00:00
Volker Ruppert
3360441ea7 - rfb key press/release bug fix (SF patch 1063329 by Remko van der Vossen) 2004-11-20 16:44:14 +00:00
Volker Ruppert
975cd53fa5 - vbe update code now uses the new graphics API
- old update code removed from display libraries sdl, wx and x
- wx.cc: fixed a warning
2004-11-06 17:03:44 +00:00
Volker Ruppert
ec05b63532 - wx: building memory config dialog simplified
- textconfig now supports lists in a list
- network configuration divided in two menus / groupboxes
- ips setting now belongs to the clock menu / dialog
- wx.cc: center status bar items (wxMSW port only)
- wxmain.cc: obsolete stuff removed
2004-10-24 20:04:52 +00:00
Volker Ruppert
7be933aabd - russian keymap for X11 added (SF patch #1048327 by Dmitry Soshnikov) 2004-10-17 17:16:43 +00:00
Volker Ruppert
7b4a245d9a - new boot options menu for wx for 3 boot drives and the floppy bootsig check option 2004-10-17 16:25:10 +00:00
Volker Ruppert
06b249ebc6 - boot sequence support added in the config interface and the hard drive init
code. Up to 3 boot drives are supported now. TODO: new boot dialog for wx.
- config.cc: missing ask formats for enum parameters added
- wxdialog.cc: tab window now uses the label instead of the ask format if defined
2004-10-16 15:44:00 +00:00
Volker Ruppert
31e4cb1fee - dependencies between NE2k and PCI Pseudo-NIC removed from the config interface
- menu and option names for the network configuration fixed
- NIC init code passes script name to ethernet module init code
- VDE module added to the list of ethernet modules
- constant BX_PACKET_BUFSIZE moved to eth.h
2004-10-07 17:38:03 +00:00
Volker Ruppert
53d8ec7959 - fixed type problem in method OnTimer() (found with wxGTK 2.5.2)
- replaced obsolete method ConvertToBitmap() by wxBitmap(wxImage) constructor
- PCI config dialog must be disabled at runtime
- wxWindows has been renamed to wxWidgets, source files updated (TODO: update docs)
2004-10-03 09:11:28 +00:00
Volker Ruppert
0819a15cd4 - applied patch.guess-flp-img-size (SF patch #567595) by Tal Benavidor with some
changes (moved to config.cc, use stat(), support more types)
- bochs.h: unused floppy stuff removed
- bochsrc sample: updated 'floppya' description
2004-09-07 18:02:29 +00:00
Volker Ruppert
14d5b69d96 - win32dialog: set / restore cdrom path only if changed in the dialog
- insert cdrom now loads the media before trying to read a sector (Win NT/2k/XP)
2004-08-30 10:47:09 +00:00
Volker Ruppert
b5c7ab5880 - fixed BX_INFO for win32 specific options 2004-08-22 16:22:09 +00:00
Volker Ruppert
0b31945d64 - enable/disable mouse capture fixed for a 2-button mouse (part #1 of SF patch #1005422)
- mouse messages for the status bar fixed
2004-08-18 09:03:48 +00:00
Volker Ruppert
98ef1412c3 - new graphics update API implemented (patch from Robin Kay)
Description from the author:
  This API allows framebuffer device plugins to draw directly on to the
  GUI's tile buffer and hence eliminates the need to memcpy(3C) tiles to
  an intermediate buffer. Functions like update_hardware_cursor function
  are rendered unnecessary as framebuffer device plugins can now draw the
  full range of host colours. svga_cirrus will fallback to calling
  graphics_tile_update without a hardware cursor if the GUI doesn't support
  the new API. This patch includes implementations of graphics_tile_info,
  graphics_tile_get, and graphics_tile_update_in_place (the new API) for SDL
  and X11.
- new graphics update API implemented in wx and rfb
- common update functions for guis without support for the new API added (should
  be removed after implementing the new API in all display libraries)
2004-08-15 19:27:15 +00:00
Volker Ruppert
d06c80cee3 - changed all iodev config macros to BX_SUPPORT_xxx
- removed incorrect SDL/ prefix from include paths (patch from Robin KAY)
2004-08-06 15:49:55 +00:00
Volker Ruppert
f1a0f56d55 - support for serial port modes added. The mode defines what to do with the
data written to the port and where to get the data read from it. Available
  modes are 'null' (no input/output), 'file' (output to a file specified as
  the 'dev' parameter), 'term' (serial terminal) and 'raw' (use the real serial
  port - under construction for win32).
- descriptions for serial and parallel options in bochsrc sample updated
2004-07-28 19:36:42 +00:00
Volker Ruppert
94a736e1dc - pci options now available in start menu
- removed unnecessary ne2k option handling
- names and lables for usb options improved
- don't allow editing of disabled options
2004-07-10 11:05:29 +00:00
Volker Ruppert
816795805e - wx: new dialog for the pci configuration added
- fixed dependencies between ne2k and pnic options
2004-07-09 21:40:49 +00:00
Volker Ruppert
242b9a2c3a - level sensitive irq mode prepared
- pci reset mechanism implemented
- obsolete ResetSignal stuff removed
- ioapic: irq handling functions renamed to raise_irq/lower_irq
- pic: fixed two warnings
2004-07-06 19:59:10 +00:00
Volker Ruppert
ae180cc46a - pci slot register mechanism added
* up to 5 slots can be specified with the 'i440fxsupport' config option
  * the pci slot number are hardwired to pci device numbers
  * the 'devfunc' value is returned the calling device (useful for multi-function
    devices)
  * the core of the i440FX chipset is hardwired to pci device 1 + 2; usb is still
    optional and appears at device 1, function 2
- ne2k: enable pci features if connected to a pci slot
- ne2k: asic data port supports 32-bit access if ne2k-pci is active
- pci2isa: improved error messages for ELCR1 and ELCR2
2004-06-29 19:24:34 +00:00
Stanislav Shwartsman
4b4538619e Fix compilation error 2004-06-26 07:06:23 +00:00
Stanislav Shwartsman
5873b26a82 Speed up compilation process.
bochs.h already not include iodev.h which reduces compilation dependences for almost all cpu and fpu files, now cpu files will not be recompiled if iodev includes was changed
2004-06-19 15:20:15 +00:00
Volker Ruppert
1f9cedb44d - added new keysym for the right alt (AltGr) key (XFree86 4.3) 2004-06-05 15:45:05 +00:00
Volker Ruppert
30254dfa13 - behaviour of numlock and capslock key fixed
- fixed a warning
2004-06-05 12:16:33 +00:00
Volker Ruppert
7e8bfef3d6 - textconfig: runtime menu numbers replaced by enum symbols
- win32 runtime dialog: visibility of the SB16 dmatimer edit box fixed
- win32 runtime dialog: buttons 'continue' and 'quit' work again
2004-06-05 08:40:24 +00:00
Volker Ruppert
b9d3ca2490 - Misc runtime options menu works now 2004-05-31 13:08:43 +00:00
Volker Ruppert
8ba66c78a3 - sb16 options dmatimer and loglevel now present in the textconfig runtime options
- textconfig runtime menu: some options moved to submenu "Misc runtime options"
- bx_param_c: variable group_name and methods set_group() / get_group() added
- bx_list_c: new flag SHOW_GROUP_NAME added (used for SB16 options in runtime menu)
2004-05-30 08:28:52 +00:00
Volker Ruppert
98916b7710 - SB16 options dmatimer and loglevel now available at runtime (wx and win32)
- wxmain.cc: unused stuff removed
2004-05-23 10:47:00 +00:00
Volker Ruppert
7e63c5fa1b - 9 pixels character width support added
- limited dimension_update() support added (for char width 8/9)
- some variable types and names changed
- some comments updated
2004-04-13 19:07:36 +00:00
Volker Ruppert
0764b02ced - status bar with indicators for cdrom, floppy, harddisk and keyboard added (TODO: display text)
- function replace_bitmap() completed
- already present feature 'charmap change' removed from TODO list
2004-04-11 18:04:34 +00:00
Volker Ruppert
654ad2db94 - text mode split screen feature now present in display library x
- variable 'dimension_y' now used to store the vertical vga screen size
- text_update(): changed some variable types and names
2004-04-11 10:58:09 +00:00
Volker Ruppert
9b70ffc9ac - text mode split screen feature now present in display library win32
- character height now used when copying the font bitmaps
- text_update(): changed some variable types and names
2004-04-11 08:01:22 +00:00
Volker Ruppert
699241040a - fixed possible crash if the cursor location is below the visible screen
- text_update(): variable renamed
2004-04-10 20:58:42 +00:00
Volker Ruppert
f674f73591 - calculation of the remaining rows in split screen mode fixed
- split in the first text row fixed
- text_update(): some variable types and names changed
2004-04-10 16:35:47 +00:00
Volker Ruppert
852c895452 - text mode split screen feature now present in display library wx 2004-04-10 13:40:01 +00:00
Volker Ruppert
1a637de59e - fixed possible destruction of the status bar if both split screen and vertical
pel panning are active
2004-04-09 17:54:20 +00:00
Volker Ruppert
ac6bed9a17 - vga code prepared for the split screen feature in text mode
- display library sdl: text mode split screen implemented
2004-04-09 15:04:54 +00:00
Volker Ruppert
f7e99553b5 - compile error on win32 fixed 2004-04-09 10:25:55 +00:00
Volker Ruppert
3d85db14cc - width of X font bitmaps is always 9 2004-04-08 18:54:21 +00:00
Christophe Bothamy
3e71ae79fd - remove swap macros, use hton*, ntoh* instead
- define various rfbEncodings
- display and keep track of the rfbEncodings supported by the client
- add todo at start of file
- set sockets option (REUSE_ADDR), useful on solaris
2004-04-08 17:36:26 +00:00
Volker Ruppert
b5ea41a349 - fixed a warning (too few arguments for format)
- removed "\n" from messages
2004-04-05 19:51:11 +00:00
Christophe Bothamy
8c4efa8d87 - remove GPL'd rfbproto.h
- add LGPL'd rfb protocol specification, thanks to Frederic Bothamy, rewrite based on the rfb protocol document.
- add specific rfb readme to warn about the color depth.

Still to do:
- BigEndian client support (I suspect the current implementation is not clean).
- depth > 8bpp support
- on-board vga card font support instead of vgafont.h
- dimension update support
- optional compression support
2004-04-05 12:09:25 +00:00
Stanislav Shwartsman
9512484966 Drop #include "Windows32/CommonFunctions.h" for MINGW compilation,
anyway it just generates compilation error and no more
2004-03-08 05:30:38 +00:00
Volker Ruppert
88d73f9d27 - return the capabilities of the rfb window 2004-03-07 20:12:16 +00:00
Volker Ruppert
20ad97daf5 - rfb specific option "timeout" added (number of seconds to wait for client)
- define symbol INVALID_SOCKET if not present
- unnecessary comment removed
2004-03-02 16:30:21 +00:00
Volker Ruppert
7d1df421d8 - display text in the sdl status bar (max. 4 characters) 2004-02-29 21:16:18 +00:00
Volker Ruppert
591c13df7a - fix tilesize at the bottom of the window if necessary (don't erase status bar)
- status bar initialization fixes
2004-02-27 18:42:53 +00:00
Volker Ruppert
dc1b0dfebc - FloppyDlgProc(): restore the original path only if necessary
- fixed FloppyDlgProc() return values
2004-02-26 19:25:00 +00:00
Volker Ruppert
7f9edd09c8 - convert the display library option string (options separated with commas) to an
array of strings in vga init
- added sdl specific option "fullscreen" (startup in fullscreen mode)
2004-02-24 19:21:48 +00:00
Volker Ruppert
2a4acc61c5 - win32 specific option "legacyF12" added (use F12 to toggle mouse)
- display library specific options now handled in bx_reset_options() and
  bx_write_configuration()
2004-02-23 16:33:52 +00:00
Volker Ruppert
d5f337e1ef - prepared implementation of display library specific options
- fixed bug #890734 (commas in strings enclosed with double quotes)
2004-02-22 18:51:38 +00:00
Volker Ruppert
d748f22ed0 - new gui function get_capabilities() returns the maximum values for xres, yres
and bpp (done for the x display library)
- new switch VBE_DISPI_GETCAPS. The xres, yres and bpp registers return the gui
  capabilities if enabled.
- VBE_DISPI_ID3 defined
2004-02-22 13:03:02 +00:00
Volker Ruppert
4e9909760c - charmap change support added
- VBE 8bpp modes 800x600 and 1024x768 now supported
- fixed possible segfault in graphics_tile_update()
- save VGA palette while changing the mode
2004-02-20 18:29:58 +00:00
Volker Ruppert
02d86cb52c - text mode colors fixed
- CVS Id line added
2004-02-19 21:10:26 +00:00
Volker Ruppert
ee5f8e6ed1 - now the mouse can be enabled using the "mouse" toolbar button and the "mouse"
option in the runtime dialog
2004-02-16 21:47:08 +00:00
Volker Ruppert
7485fc195c - 3rd mouse button now supported by the x display library
- CTRL key + 3rd (middle) mouse button now toggles the mouse
- status bar text color and item positions changed
- unnecessary comments removed
2004-02-15 19:46:13 +00:00
Volker Ruppert
cc87172c28 - 3rd mouse button now supported by the sdl display library
- CTRL key + 3rd (middle) mouse button now toggles the mouse
- unnecessary stuff removed
2004-02-15 17:12:55 +00:00
Volker Ruppert
16c5bc8786 - 3rd mouse button now supported by the wx display library
- CTRL key + 3rd (middle) mouse button now toggles the mouse (F12 key is now
  usable in the guest OS)
- initial comments fixed
2004-02-15 12:40:06 +00:00
Volker Ruppert
ee8d40c11d - CTRL key + 3rd (middle) mouse button now toggles the mouse (F12 key is now
usable in the guest OS)
- problem with the modifier keys and the win32 key repeat feature fixed
- unnecessary comments removed
2004-02-15 11:30:28 +00:00
Volker Ruppert
5d2376d93d - 3rd mouse button now supported by the win32 display library 2004-02-15 00:03:16 +00:00
Daniel Gimpelevich
69a6ede259 Fixed Mac conflict with softfloat. 2004-02-14 06:33:29 +00:00
Volker Ruppert
eb7d88587a - status bar with indicators for cdrom, floppy, hardisk and keyboard added (TODO:
display text)
2004-02-13 21:45:28 +00:00
Volker Ruppert
9f1baf9fe3 - force an update of the status bar after resizing 2004-02-13 15:56:05 +00:00
Volker Ruppert
8fad41734d - statusbar with cdrom, floppy, harddisk and keyboard indicators added 2004-02-12 19:39:13 +00:00
Volker Ruppert
1f44ea57fd - cdrom, floppy, harddisk and keyboard indicators added using the default status bar 2004-02-10 20:30:14 +00:00
Volker Ruppert
d78f3da836 - win32 statusbar now shows active items with light green background
- harddisk/cdrom status light feature prepared
2004-02-08 18:38:26 +00:00
Daniel Gimpelevich
f4b51462d7 Backported changes from carbon.cc 2004-02-08 18:11:45 +00:00
Volker Ruppert
107c109d04 - win32 statusbar now shows all inactive items grayed
- update floppy items in statusbar on status change only
- initialize statusbar and set all items inactive before the simulation starts
2004-02-08 10:25:50 +00:00
Volker Ruppert
f5c165e32a - statusbar items for floppy and keyboard added (win32 gui only). TODO: implement
statusbar in other display libraries and add items for harddisk/cdrom and network.
2004-02-07 14:34:35 +00:00
Daniel Gimpelevich
126971af49 Made to compile on MacOS9 2004-02-06 22:28:00 +00:00
Volker Ruppert
72ee925994 - runtime dialog box: advanced log options added 2004-02-05 20:02:53 +00:00
Volker Ruppert
050de9ef04 - use the bochsrc path for the initial directory of the win32 file dialogs
- runtime config: update the options of the modified tab items only
- removed brackets from the device prefixes in the log options listbox
2004-02-04 19:54:58 +00:00
Volker Ruppert
e32f7e5fe4 - prepared listbox for the advanced log options
- disabled textconfig functions no longer used on win32
- fixed CommDlgExtendedError message text
2004-02-03 22:40:33 +00:00
Volker Ruppert
6508a43188 - changed the message for CommDlgExtendedError 0x3002 to "illegal filename" 2004-02-02 18:34:24 +00:00
Christophe Bothamy
8ad4cf6056 - add speaker log, pluginSpeaker, and beep_on/off methods in guis 2004-02-01 23:48:57 +00:00
Volker Ruppert
6827709ea0 - standard log options now present in the runtime dialog box
- dialog control identifiers renamed
2004-02-01 19:22:41 +00:00
Volker Ruppert
278c6e9f38 - new gui dialogs for the first cdrom and the runtime options (log options are
still handled on the console)
- minor changes in other win32dialog functions
2004-02-01 01:40:14 +00:00
Volker Ruppert
fd0a5cac9b - fixed unterminated #if statement 2004-01-30 17:36:30 +00:00
Volker Ruppert
c3d9a977f8 - new symbol BX_USE_TEXTCONFIG controls the presence of the text mode configuration
interface. It should be set to 1 unless Bochs is compiled for wxWindows only.
- 'user_shortcut' is now available at runtime (wx version only)
2004-01-29 18:50:33 +00:00
Daniel Gimpelevich
8173180387 Applied Volker's patch to fix the floppy browse bug. 2004-01-26 04:29:47 +00:00
Volker Ruppert
20f80ecac6 - fixed bug #878771 Symbol conflict in rfb.o and x.o 2004-01-18 19:51:36 +00:00
Daniel Gimpelevich
ae66bb33c0 Applied Russ Cox's CPU panic debug patch from Oct 2003. 2004-01-17 08:36:29 +00:00
Daniel Gimpelevich
6c26e6a65f Introduced Frank Cornelis's PCIDEV patch. 2004-01-15 02:08:37 +00:00
Michael Brown
299947f64f Added the PCI Pseudo-NIC (pnic). Mainly useful for running Etherboot
inside Bochs.
2004-01-13 19:21:21 +00:00
Christophe Bothamy
4374561364 - comment out compressed disk references, as they interfere with wx.
- Enable/disable the redolog path field in the wx config interface,
  depending on the selected disk image type.
2004-01-05 22:18:01 +00:00
Volker Ruppert
f731c1774c - DEV_set_media_status() not necessary in gui floppy handlers when using the
win32 floppy dialog
- report geometry with BX_INFO after inserting new floppy media
2003-12-18 20:04:49 +00:00
Volker Ruppert
360caceb6f - stretching of the simulation window in graphics mode disabled. For now stretching
is only used by text mode CO40 (40x25).
- variables hFont and FontId are only required if Windows fonts are used in text mode
2003-12-14 09:51:58 +00:00
Daniel Gimpelevich
fff74a6f83 Fixed incompatibility with gcc3.3, I think. 2003-11-28 15:07:29 +00:00
Daniel Gimpelevich
9e6e7609e3 Rewrote Alt/Ctrl/Shift key handling & added SysRq/Ctrl-Break. Needs further testing!! 2003-11-17 04:21:16 +00:00
Volker Ruppert
bc19ad6c26 - applied patch #838401: fixed redrawing of toolbar if the host environment is
at high load
2003-11-14 15:43:12 +00:00
Daniel Gimpelevich
8d963231d3 Added support for all bits per pixel values. 2003-11-08 06:46:03 +00:00
Volker Ruppert
b034b7f331 - applied patch #834962: dimension update to the same size but different bpp
now works on win32
2003-11-05 17:25:29 +00:00
Daniel Gimpelevich
219269b08b Fixed problem where gui code was writing to nonexistent memory on host.
Carbon gui now compatible with VBE.
TODO: support for pixel depths != 8
2003-11-02 04:05:02 +00:00