Commit graph

80 commits

Author SHA1 Message Date
Louai Al-Khanji
b1bc93fd22 Use QCoreApplication::translate instead of QObject::tr. Fixes core
translations
2008-11-23 04:46:27 +00:00
Louai Al-Khanji
cc64200f58 Add support for translations to the Qt4 gui. I gave up on finding a good generic approach that's easy to implement and punted to Qt. Translators need to translate mupen64plus.ts. update_qt4_translations.sh should be run whenever a user-visible string changes. 2008-11-22 14:40:11 +00:00
Richard Goedeken
9c16087ce3 merged rev 1160 through 1162 back into trunk 2008-11-21 13:25:21 +00:00
Richard Goedeken
48fe5adc27 reverted commits 1160-1163 2008-11-20 13:23:56 +00:00
Louai Al-Khanji
2d0b8b4c37 Beginnings of gui managed render window. This makes SDL paint into a window provided by the GUI. Currently breaks SDL input processing and full screen mode. It does make the GUI handle all input however; this means that all shortcuts (like load/save state etc.) are now handled in one place. It also opens the door to embedding the render window inside the GUI. 2008-11-20 04:42:26 +00:00
Louai Al-Khanji
cf0369f553 Add missing break statement 2008-11-19 12:15:22 +00:00
Louai Al-Khanji
f322d9f5b4 Start working on a solution to plugins needing to query users for input. Qt4 does not allow the plugin thread to interact with the user directly, so I'm looking into how to best handle it with events and locks. This already works; glide64 does not crash the emulator anymore when playing lylat wars for instance. It's quite ugly though, especially the QWaitCondition pointer. 2008-11-19 08:29:59 +00:00
Louai Al-Khanji
11b8ef45be Make data function have a single exit point again. 2008-10-12 23:09:08 +00:00
Louai Al-Khanji
72b498d391 Some trivial code style changes. 2008-10-12 23:02:11 +00:00
Scott Knauert
37c8e5c42b Fixes issue 154 (Qt4 GUI crashes if all ROMs removed). 2008-10-12 22:49:23 +00:00
Scott Knauert
a8dfd0e785 License header changes for Debian inclusion (wrong FSF address). 2008-10-11 05:48:50 +00:00
Louai Al-Khanji
98d3f99fe0 Rework the gui state api a bit. Don't pass the enum through an unsigned
char. Changed the way the Qt4 ui handles things internally a bit.
Changed the gui_message to not use an unsigned char as well while I was
at it.
2008-10-05 15:18:59 +00:00
Scott Knauert
008a65eaeb Primarily implementation of new GUI state API and associated Gtk2 and Qt4 implementations. Fixed one minor Gtk bug (unable to select large toolbar icons). Fixed a could of NO_GUI warnings. Changed romcache.h to not define RCS structures in NO_GUI mode (more optimized NO_GUI binary). Fixed some non-ANSI static code analysis "bugs" mainly function() -> function(void) in C declarations. Also some GPL header updates to the newest template. Sorry for the large commit. 2008-10-05 03:33:52 +00:00
Scott Knauert
acfef370c1 Fixed accidental rcs bug. Some new comments for rom.h and fixed Fullscreen crashing on the Qt4 GUI. 2008-10-02 21:15:17 +00:00
Richard Goedeken
210f946cae added newlines to the end of every source file which was missing one 2008-09-27 15:22:21 +00:00
Louai Al-Khanji
fd0464af60 Another attempt to fix compilation on windows 2008-09-17 16:32:05 +00:00
Louai Al-Khanji
8a48dfbfb4 Possibly fix compile errors on windows 2008-09-17 16:28:20 +00:00
Louai Al-Khanji
5563e5e610 Fix a few warnings 2008-09-08 23:25:53 +00:00
Louai Al-Khanji
4a2c71a9ec Add reset button to config dialog. Restore Defaults button still
missing.
2008-09-08 23:00:47 +00:00
Louai Al-Khanji
a06e9c517a Draw focus in ratings column 2008-09-08 22:23:28 +00:00
Louai Al-Khanji
1f8659fc82 Fix ratings painter to work even when 16x16 star icon is missing.
Nicer look for disabled stars.
2008-09-08 21:17:43 +00:00
Scott Knauert
a8f52ca62b More Gtk GUI fixes. Finished transitioning to Gtk icon theme. Themable empty status stars. Minor UI additions to address issue 141. More removal of depreciated gtk functions. Fixed a number of minor bugs. First stab at better debugger GUI integration, strncpy fixes. Minor GUI API change from updaterombrowser() to update_rombroswer(). 2008-09-08 11:13:02 +00:00
Louai Al-Khanji
870fde202c Use the plugin config, about, and test calls that take a window id. 2008-09-07 22:22:11 +00:00
Louai Al-Khanji
9868a13a57 Make sure string is null-terminated. 2008-09-06 21:05:17 +00:00
Louai Al-Khanji
2bbd453a87 Make sure never to overflow buffer 2008-09-06 18:36:35 +00:00
Louai Al-Khanji
c2dbc1decb Work around a crash in gtk with qt + gtk both enabled at the same time. 2008-09-06 12:01:55 +00:00
Louai Al-Khanji
44109dbcd8 Improve settings dialog a bit. Add cancel button, make header a bit nicer, make the dialog modal. 2008-09-06 10:10:54 +00:00
Louai Al-Khanji
269272b74c A few gui updates. 2008-09-04 11:14:32 +00:00
Louai Al-Khanji
fa8c663eec Fix g_MainWindow symbol collision 2008-09-03 01:37:56 +00:00
Louai Al-Khanji
925ce5e74f Fix rendering of stars 2008-09-01 19:56:49 +00:00
Louai Al-Khanji
44004b4ae8 Make shortcuts work in render window. 2008-09-01 17:57:16 +00:00
Louai Al-Khanji
9e254a02c9 Remove two debug prints that slipped through. 2008-09-01 15:59:19 +00:00
Louai Al-Khanji
cddfd0c8a1 A few more fixes. 2008-09-01 15:06:21 +00:00
Louai Al-Khanji
10709ef7c6 Fix up various things that broke in the merge. 2008-09-01 14:55:44 +00:00
Louai Al-Khanji
7ccc6450aa Improve some config things 2008-09-01 13:14:31 +00:00
Louai Al-Khanji
75f324cfc6 Merge win32 branch 2008-09-01 12:44:16 +00:00
Louai Al-Khanji
cbed397228 Show crc2 if asked for it, instead of crc1. 2008-08-26 21:48:34 +00:00
Louai Al-Khanji
4dc31ac232 Use qmake to build the qt4 gui. It creates nicer makefiles, which means
that not the whole gui needs to be rebuilt when a header or ui file 
changes. That was starting to become very, very annoying.
2008-08-26 08:03:51 +00:00
Scott Knauert
3b48f27806 Remove timestamp from Qt4 GUI more completely. 2008-08-25 21:52:13 +00:00
Louai Al-Khanji
4a1fb7ef59 Small label change. 2008-08-25 19:38:05 +00:00
Scott Knauert
1ec07a2632 Cleanup QT rombrowser columns. 2008-08-25 19:21:05 +00:00
Louai Al-Khanji
0944d403ad Somewhat nicer rom properties dialog. 2008-08-25 17:13:30 +00:00
Louai Al-Khanji
ee1b47e8ac Implement rom comment editing. 2008-08-25 15:53:31 +00:00
Louai Al-Khanji
fb3598ee81 Polish. 2008-08-25 10:43:03 +00:00
Louai Al-Khanji
3ac958becf Don't leave temporaries around. 2008-08-25 10:20:39 +00:00
Louai Al-Khanji
d6fe67e252 Immediate menu popup. 2008-08-25 10:19:29 +00:00
Louai Al-Khanji
bbbaea3104 Introduce star label for properties dialog. 2008-08-25 10:11:21 +00:00
Louai Al-Khanji
0ac8a38484 Add rom propperties dialog. 2008-08-25 07:09:46 +00:00
Louai Al-Khanji
d795b8d055 Slight icon/pixmap code refactoring. 2008-08-25 06:19:48 +00:00
Scott Knauert
7262abc3c6 Update QT4 GUI to standard formatting functions in util.c, add prototypes for them. 2008-08-25 05:41:49 +00:00