Simon Howard
8c43337af2
textscreen: Allow any widget in action area.
...
It may be desirable to wrap a window action in a txt_conditional_t
sometimes so that actions dynamically appear based on how the config
changes. So change the TXT_SetWindowAction() API to accept any widget
instead of mandating a txt_window_action_t.
2018-10-21 17:40:18 -04:00
Mike Swanson
cc9c4ef380
Makefile.am: add CMakeLists.txt and win32 to EXTRA_DIST
...
Closes : #1055
2018-06-05 10:41:38 -07:00
Alex Mayfield
2eb722d3a4
Link against libpng and libm
...
Tested against Ubuntu 18.04.
2018-05-26 17:12:02 -04:00
Alex Mayfield
f8810f763c
Chocolate Doom now builds
2018-05-02 21:23:00 -04:00
Alex Mayfield
b9422484fb
Initial stab at SDL2 and textscreen
2018-05-01 23:10:46 -04:00
Turo Lamminen
f186ecd1ae
textscreen: Fix const correctness issue in guitest
2018-03-27 19:35:13 +03:00
Turo Lamminen
695895ddb2
textscreen: Make AddOperatorButton label parameter const in calculator example
2018-03-27 19:33:52 +03:00
Turo Lamminen
fccdde81b5
Make TXT_NewDropdownList values parameter const
2018-03-27 19:28:43 +03:00
Turo Lamminen
0c4fe5bbe5
Make TXT_NewFileSelector prompt parameter const
2018-03-27 19:21:38 +03:00
Turo Lamminen
061a1dee44
textscreen: Make txt_fileselect_s prompt member const
2018-03-27 19:20:18 +03:00
Turo Lamminen
d4ef25a0cf
Make TXT_SelectFile extensions parameter const
...
This is complicated because we must fix all the callers at the same time
2018-03-24 16:02:00 +02:00
Turo Lamminen
cd65e9dae0
textscreen: Fix constness issue in TXT_SelectFile
2018-03-20 19:02:49 +02:00
Turo Lamminen
4c069fef88
textscreen: Fix one more variant of TXT_SelectFile
...
It's unused but in case someone wants to turn it back on.
2018-03-20 19:02:45 +02:00
Ioan Chera
cc8faa989c
Clean-up of AppleScript-generating C string processing
...
* Functions which return something that must be freed now have a Create or Generate in their name
* Fix a buffer overflow risk in CreateEscapedString
* Ensure const-correctness
* Verify malloc result
* Updated guitest with file extensions which would have crashed the previous code.
2018-03-18 12:08:35 +02:00
Ioan Chera
2ecf987df1
Fix TXT_SelectFile for macOS
...
First parameter needed to be const, and the content updated to work under this restriction.
2018-03-18 09:42:17 +02:00
Mike Swanson
3fd5eed6b0
Add a const for TXT_SelectFile in the Windows build too
2018-03-17 10:29:12 -07:00
Mike Swanson
de175686e6
Merge pull request #999 from turol/const
...
Improve const correctness
2018-03-16 22:00:18 -07:00
Simon Howard
1db716fa17
textscreen: Simplify AppleScript for fileselect.
...
Since macOS 10.9 it is no longer to "tell an application" in order
to display pop-up UI elements like the file select dialogs. Quote:
> osascript(1) is now a “UI element” process and can therefore display
> its own UI, such as using display dialog; telling another application
> such as System Events is no longer necessary. [12365409]
As well as simplifying the wrapper this also fixes some issues with the
pop-up dialogs where window focus was getting messed up after selecting
a file.
2018-03-16 23:41:44 -04:00
Turo Lamminen
aacff41c26
Make TXT_NewRadioButton label parameter const
2018-03-13 19:57:07 +02:00
Turo Lamminen
71ea0f904f
Make TXT_SetRadioButtonLabel value parameter const
2018-03-13 19:53:42 +02:00
Turo Lamminen
569787da58
Make TXT_NewSeparator parameter const
2018-03-13 19:47:59 +02:00
Turo Lamminen
a6fbae76cd
Make TXT_SetSeparatorLabel label parameter const
2018-03-13 19:46:36 +02:00
Turo Lamminen
94d85c51b0
Make TXT_SetWindowHelpURL help_url parameter const
2018-03-13 19:44:25 +02:00
Turo Lamminen
232c968ed9
textscreen: Make help_url member const in txt_window_s
2018-03-13 19:33:51 +02:00
Turo Lamminen
592edc0d87
Make TXT_OpenURL parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
10fda2ac53
Make TXT_MessageBox title character const
2018-03-13 19:33:51 +02:00
Turo Lamminen
334232d3b4
Make TXT_MessageBox message parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
6283e91fbd
Make TXT_NewLabel parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
50e55526b3
Make TXT_SetLabel value parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
aa555a22c1
textscreen: Use more const-correct loop in TXT_SetLabel
2018-03-13 19:33:51 +02:00
Turo Lamminen
19a0939300
Make TXT_NewWindow parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
49b5751693
Make TXT_SelectFile window_title parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
90ded64b2b
textscreen: Make ExpandExtension parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
5f82ebd75b
Make TXT_NewInvertedCheckBox label parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
27a28b8ad9
Make TXT_NewCheckBox label parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
898442b101
Make TXT_NewButton2 label parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
4b48cd7f9d
Make TXT_NewButton parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
44b80b2a7a
Make TXT_SetButtonLabel label parameter const
2018-03-13 19:33:47 +02:00
Turo Lamminen
1758e89080
textscreen: Make SDLWheelToTXTButton parameter const
2018-03-13 19:33:47 +02:00
Turo Lamminen
10d2130a2a
textscreen: Make TranslateKeysym parameter const
2018-03-13 19:33:47 +02:00
Turo Lamminen
fff3741c78
textscreen: Make FontForName parameter const
2018-03-13 19:33:47 +02:00
Turo Lamminen
54a38844f7
textscreen: Make name member const in txt_font_t
2018-03-13 19:33:38 +02:00
Turo Lamminen
83d0f369df
Make TXT_SetDesktopTitle parameter const
2018-03-13 12:31:51 +02:00
Turo Lamminen
8ec41dca6c
Make TXT_SetWindowTitle parameter const
2018-03-13 12:31:51 +02:00
Turo Lamminen
14e9e56571
Add format string attribute to TXT_snprintf
2018-02-17 16:15:13 +02:00
Turo Lamminen
5e2df0a52e
textscreen: Don't ignore return value of system() call
2018-01-27 16:46:04 +02:00
Simon Howard
58006edc22
textscreen: Add extern "C" for C++ imports.
...
This fixes #941 . Thanks to @Altazimuth for the suggestion.
2017-10-22 18:39:22 -04:00
Simon Howard
75bedca7fb
textscreen: Check return value from realloc().
...
This fixes a static analysis warning detected in #939 . Thanks to
@turol for finding this.
2017-09-02 19:02:54 -04:00
David Carlier
5409a57f13
Tiny memory leak fix in call error path.
2017-06-20 15:16:11 +01:00
Jonathan Dowland
7f27e795c6
textscreen: zenity chooser file filter tweaks ( #909 )
...
Adjust the pattern passed to zenity to be case-insensitive
(e.g., if the input pattern was "wad", generate "[Ww][Aa][Dd]").
This means the chooser will show the following, which would otherwise
be hidden:
* TEST2.WAD
* test3.WAD
2017-05-02 13:11:17 -04:00