Commit Graph

4767 Commits

Author SHA1 Message Date
mjbudd77 451b0f8474 For Qt GUI, change square pixel video option to be a force aspect ratio option and added a small list of preselect aspect options via video config window. Aspect ratio is now a configuration parameter for the video viewport. This addresses most of issue #341. Still TODO add custom aspect entry capability. 2021-03-21 07:17:01 -04:00
mjbudd77 afe54a5ab9 Fixed iNES_HEADER struct/class definition miscompare warning. 2021-03-19 22:05:20 -04:00
mjbudd77 fda056cdc3 Resolved a couple signed vs unsigned miscompare warnings. 2021-03-19 22:01:12 -04:00
mjbudd77 d52c4c24b6 Swapped out deprecated QPalette::Background symbol for QPalette::Window. 2021-03-19 21:53:10 -04:00
mjbudd77 2f097ff4b3 Resolved a couple bool/int comparision compiler warnings. Fixed Qt GUI crash when setting 4 score settings without a ROM loaded. 2021-03-19 21:37:27 -04:00
mjbudd77 bc3b156cf5 Compiler warning cleanup of unused variables and exception handling. 2021-03-19 20:59:03 -04:00
mjbudd77 456251861a Added a targeting reticle icon that can be used as a mouse cursor on the main viewport of Qt GUI. Easier to aim with for zapper games emulated by mouse. 2021-03-18 22:30:40 -04:00
mjbudd77 ffd5de60aa Added logic to Qt GUI to allow for the shape of the viewport cursor to be selectable between an arrow, cross, or blank. Also added a viewport cursor visibility configuration parameter. Cursor visibility and shape can be set via the video config option window. 2021-03-14 14:02:10 -04:00
mjbudd77 b1c0c4447f Successful test of using saved QPalette color settings. 2021-03-07 13:28:44 -05:00
mjbudd77 9642be0db1 Added functions to save QPalette color settings to a file and load then on request. 2021-03-06 22:30:56 -05:00
mjbudd77 7eb8ea9608 Added a GUI widget style test window. Contains most of the widget types for ease of seeing style changes. 2021-03-06 00:40:58 -05:00
mjbudd77 a9059517a5 Added menu to GUI palette color editor. 2021-03-05 22:26:32 -05:00
mjbudd77 037f1e04f9 Added color picker logic for GUI color palette selection. 2021-03-05 22:03:25 -05:00
mjbudd77 5ee2c6875e Created framework for GUI color palette edit window. 2021-03-05 21:29:50 -05:00
mjbudd77 0203344802 Added logic to look for a QResource (rcc) file along side a qss file when loading a new stylesheet. 2021-03-05 15:09:28 -05:00
mjbudd77 f7480c8560 Style fix for Qt gamepad config window button text. 2021-03-05 12:24:36 -05:00
mjbudd77 cb0bc74fd4 Added a styling wrapper class to allow for more control over palette colors. 2021-03-03 22:48:45 -05:00
mjbudd77 2a6a31fa48 Added Qt stylesheet GUI selection code. 2021-03-01 21:48:57 -05:00
mjbudd77 ac0f377873 Added a GUI style selection combo box. Lists all built in GUI styles available. This allows user to change the GUI style while it is running. Also, style setting is saved and used for future GUI startups. 2021-03-01 20:24:00 -05:00
mjbudd77 8347e2fd0b Bug fix for Qt GUI using default settings to force the minimum viewport until after the GUI has been drawn/resized at least once to ensure that the menu bar size has been finalized and the viewport meets demanded values. At the first resize event, the viewport minimum size is reset back to 1x values so that the window can still be shrunk by dragging the lower window corners and edges. 2021-02-27 19:29:50 -05:00
mjbudd77 8241973af1 Fixed order of execution bug to ensure that first startup of Qt GUI with default config sizes window exactly right. 2021-02-27 18:21:39 -05:00
mjbudd77 081d55ea45 Added menu bar to the Qt RAM search window. Currently only has a File->Close menu entry. 2021-02-27 17:16:04 -05:00
mjbudd77 623c2151a7 Added a menu bar to the Qt code data logger window with basic file load/save and window close functionality. 2021-02-27 17:07:20 -05:00
mjbudd77 c962e2bd43 Added --no-compiler-runtime command line option to windeployqt in qfceux appveyor build script. This will omit vc_redist_x64.exe from being included in the built zip file. 2021-02-27 09:30:34 -05:00
mjbudd77 194a2cfca2 Fixed file dialog code in input.cpp to use QFileDialog. 2021-02-27 09:08:15 -05:00
mjbudd77 8e4282fb42 Bug fix for Qt GUI ROM hard reset function. Function was using last open file config variable to determine which ROM to reload. Changed this function to read currently loaded ROM file path from core as this will always be correct. 2021-02-26 06:16:35 -05:00
mjbudd77 1cf00640c4 Added RAM init menu option to Qt GUI. 2021-02-25 20:19:41 -05:00
mjbudd77 ffc7e70b0d For Qt GUI fixed region auto detection logic to preserve dendy mode if an NTSC game is loaded. Also, added an option to enable/disable region auto detection functionality. This allows for the users selection via the GUI to be strictly enforced. Also, added a region select sub menu to the emulation main menu. Fixes issue #335. 2021-02-25 19:36:08 -05:00
mjbudd77 67c6386688 Logic for to allow for Qt GUI to auto detect NTSC/PAL at ROM load. 2021-02-24 19:23:07 -05:00
mjbudd77 2f83d11baa Added current window and viewport size readouts to Qt video config window. 2021-02-23 22:22:03 -05:00
mjbudd77 dda6cb33bb Added some protections to prevent user from reversing start/end scanlines via video config window. 2021-02-23 21:19:17 -05:00
mjbudd77 e3f2970dcd Added scanline start/end entry boxes for NTSC and PAL/Dendy to Qt Video config window. 2021-02-23 21:04:50 -05:00
mjbudd77 c544c137f5 Compiler warning cleanup for movie.cpp. Reordered initializer in constructor to match the order in which they are declared. Gave case statement a default for unhandled enum values. 2021-02-22 07:21:14 -05:00
mjbudd77 33882cb0d7 Fix for annoying compiler warning complaining about misleading indentation following if conditional. 2021-02-21 21:12:20 -05:00
mjbudd77 bf17e53335 Fix for mismatched fceu.cpp free()/malloc() error flagged by valgrind. 2021-02-21 21:04:02 -05:00
mjbudd77 3d2d3cbf26 Changed logic for Qt windows users for the config file to be located in the same directory as the executable by default. If a user wishes to override that behavior, they can set an FCEUX_HOME environment variable and that will become the users fceux config settings are stored. 2021-02-21 20:52:55 -05:00
mjbudd77 aacee3ddb9 Bug fixes for Qt hex editor ascii section key input. Key inputs now use character table. 2021-02-21 20:21:11 -05:00
mjbudd77 e07cd5ec52 Added a menu bar to the Qt trace logger with a File/Close option. 2021-02-21 18:39:18 -05:00
mjbudd77 79dcb51073 Auto Format of Qt code data and trace logger. Fix spaces/tabs code readability. 2021-02-21 18:32:30 -05:00
mjbudd77 9175eabf76 Added a close window button to the Qt game genie window. 2021-02-21 18:29:09 -05:00
mjbudd77 0bff7b7608 Added File/Close menu option to PPU tile editor window. 2021-02-21 18:24:30 -05:00
mjbudd77 7c4e8cfeec Added File/Close menu options to Qt debugger, ppu viewer, and name table viewer. 2021-02-21 18:21:00 -05:00
mjbudd77 348c26d78c Added TBL support to Qt hex editor. 2021-02-21 14:20:04 -05:00
mjbudd77 29e4825d12 Added code to free config memory at application exit. 2021-02-21 11:06:48 -05:00
mjbudd77 c107de92cd Cleanup code data logger allocated memory at application close. 2021-02-21 10:48:06 -05:00
mjbudd77 2a2e1b7bca Re-added code to free allocated video memory at application close. Free Qt NES wrapper memory at application close. 2021-02-21 10:39:21 -05:00
mjbudd77 b8e647fbc6 Fixed segmentation fault when offsetStringToInt is called without a loaded ROM. 2021-02-20 18:40:48 -05:00
mjbudd77 7dc77269b5 Added close buttons to Qt GUI config and tools windows. Debug windows still to be evaluated. Only exceptions are when the window has a menu bar with a file -> close option. 2021-02-20 06:57:25 -05:00
mjbudd77 e6754c87ba Added a recent ROMs sub menu to the Qt main menu. 2021-02-19 20:46:27 -05:00
mjbudd77 67fb5263cc Added a few context menu accelerators to debugger, hex editor, ppu viewer, and name table viewer Qt windows. 2021-02-19 00:15:23 -05:00