summaryrefslogtreecommitdiff
path: root/src/fl_ask.cxx
AgeCommit message (Collapse)Author
2 dayswi[maxim nikonov
3 dayswipmaxim nikonov
2025-07-02Remove deprecated methods and functionsAlbrecht Schlosser
In FLTK 1.5 we remove most (but not all) methods and functions that were deprecated in FLTK 1.3 or earlier.
2025-03-19Remove obsolete build option 'FLTK_OPTION_STD'Albrecht Schlosser
This option is no longer needed since FLTK 1.5 always requires C++11.
2023-12-09Documentation: remove obsolete deprecation warningAlbrecht Schlosser
This warning was only useful when we used Fl_String in our public interface which is no longer true.
2023-10-27FLUID: Documentation and typos.Matthias Melcher
2023-10-22Make Fl_String and Fl_Int_Vector private (#789)Albrecht Schlosser
- add CMake option 'OPTION_USE_STD' - add configure option '--enable-use_std' - move FL/Fl_String.H to src/Fl_String.H - move FL/Fl_Int_Vector.H to src/Fl_Int_Vector.H - remove Fl_String from demo program examples/callbacks.cxx - remove Fl_Int_Vector from public header FL/Fl_Table.H - some methods of Fl_Table are no longer inline - add CMake option OPTION_USE_STD to allow std::string in some selected functions and methods Experimental, may be removed before release: - use either Fl_Int_Vector or std::vector in Fl_Table depending on CMake OPTION_USE_STD or configure --enable-use_std Move all fl_filename* functions that use Fl_String to fluid Main changes in fluid: - add fluid_filename.h and .cxx - include "fluid_filename.h" rather than <FL/filename.H> Update fl_input(), fl_password() and test/ask - add maxchar parameter to fl_input() and fl_password() - fl_input_str() and fl_password_str() are optional and return std::string if enabled (FLTK_USE_STD)
2023-02-23Fl_String refactoring and extension (#683)Matthias Melcher
- add true unittest and Fl_String testing - interface and printout are similar to gtest without requiring external linkage. just run `unittest --core`. - new Fl_String API - extended API to fl_input_str and fl_password_str - co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
2023-01-26STR 2936: FLUID: option to ignore syntax check in DeclBlockMatthias Melcher
2022-12-30Remove commented fl_beep calls (#620)Adam Chyła
2022-11-11Improve and clarify documentation of fl_beep()Albrecht Schlosser
2022-02-16Fix "fl_message_icon() regression" (#395)Albrecht Schlosser
Some attributes of the default message icon had not been copied to the new Fl_Message class when opening a new dialog. Clarify documentation about supported icon attributes.
2021-12-04Add fl_message_icon_label() function (STR #2762)Albrecht Schlosser
This message icon label (usually one character) will be used in the next call of one of the common dialogs. test/ask.cxx: use fl_message_icon_label()
2021-12-04Re-enable nested (aka recursive) common dialogs (STR 3242, #282)Albrecht Schlosser
Apply Fl_Dialog_r10831.patch as given in STR 3242: https://www.fltk.org/strfiles/3242/Fl_Dialog_r10831.patch Reformat, add missing pieces, rename private members, cleanup... Improve documentation, add fl_choice_n() (issue #282) New methods fl_input_str() and fl_password_str() return Fl_String
2021-03-21Remove unnecessary system includes from public headersAlbrecht Schlosser
Add includes of system headers in the implementation files where necessary.
2020-08-01Implement + deploy fl_strdup()Greg Ercolano
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-05-08Fix doxygen docs (wrong argument name)Albrecht Schlosser
2020-05-07Extend fl_message_position() with 'center' optionAlbrecht Schlosser
Add argument 'center' to position the message box centered over the given x/y coordinates. Add another method to supply a widget or window to center the message box over. Fix documentation and don't use INT_MIN to avoid having to include limits.h in user code.
2020-05-07Add (x,y) positioning mode to common dialogsairbrett
Add new function to set (x,y) position. Reset to previous mode after innards is called by fl_* function. Use magic number for preferred position state. Note: several commits squashed and commit messages edited by AlbrechtS.
2019-03-27Call to Fl_Group::init_sizes() needed after resize of widgets.ManoloFLTK
2018-06-26Move Fl_Screen_Driver.H from FL/ to src/Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-18Clarified the fl_choice ordering in first example with an image and arrows,Greg Ercolano
as it's not clear in the text how the code order is reversed on-screen. Also, the whole 'three musketeers' thing with the case values not matching the numeric button names has always been confusing: case 0: .. // One case 1: .. // Two (default) case 2: .. // Three Changed that so it's a Zero/One/Two example instead. case 0: .. // "Zero" case 1: .. // "One" (default) case 2: .. // "Two" git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12853 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-18Docs for fl_choice() clarify argument order, added missing image for one of ↵Greg Ercolano
the examples. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12847 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-01-31Replace FL/x.H with FL/platform.H - step 2 (STR #3435).Albrecht Schlosser
This second step replaces FL/x.H with FL/platform.H in all source files. Dependencies have been adjusted as well. This commit completes the replacement of FL/x.H with FL/platform.H. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-22Bringing over fix [r11842] from 1.3 current to the porting branch.Greg Ercolano
Fixes to fl_choice() docs, added screenshots. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11843 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-10Moving fl_beep into screen driver.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11152 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-03Updated platform specific #if's to report unimplemented code when compiling ↵Matthias Melcher
with FL_PORTING defined and WIN32 and __APPLE__ undefined> git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@10989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-22Prevent common dialogs, e.g., fl_alert(), from changing the currently active ↵Manolo Gouy
Fl_Group. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10808 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-21Fix window resizing of common dialogs under certain rare conditions.Albrecht Schlosser
The modified test program test/ask.cxx showed a problem that the active dialog window was resized when fl_message_icon() was called while it was open, because this call makeform() which resized the window. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-10Added doxygen docs to clarify:Greg Ercolano
o fl_ask() is deprecated (since compiler warns about its use) o fl_choice() includes example code for various usage forms git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10569 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21Mark a few symbols static. This is the bulk from STR #3111.Lauri Kasanen
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-02Fix STR#3039.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10142 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-11Properly Doxygen-comment fl_beep() and the associated enumeration.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9748 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-22Fixed linux 64 gcc 4.6.1 compilation problemsFabien Costantini
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9373 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-10fixes to build on IRIX.Greg Ercolano
(scoping rules for variables declared within for() loops) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9337 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-05Fixed build error in msvs because Fl ref to FULLSCREEN enum was not ↵Fabien Costantini
accessible in Fl_Widget. new inline is_fullscreen() getter has been implemented to avoid a build error with (at least) msvc compilers. Fixed a ton of warnings / problems when bilding on windows 64 bits target with ms toolchain. cleaned up about 200 warnings raised when building win74 targets. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2673: stop the annoying beeps when opening modal dialogs (this was so '80s)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19Modifications to all LGPL headers for STR #2685.Greg Ercolano
(to clarify static exception LGPL by changing license references) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-20Fixed keyboard navigation in fl_choice() (STR #2591)Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8616 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-18Added a default window title function for common dialogs (STR #2562).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8441 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-12Common dialogs like fl_message() and fl_ask() can now have a windowAlbrecht Schlosser
title (STR #2562). Added a test case for disabling the hotspot and using a window title to test/ask.cxx. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8417 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-12Hotspot behavior of fl_message() and other common dialogs is nowAlbrecht Schlosser
optional (STR #2561). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8415 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-08Fix STR #2558: use more consistently FL_NORMAL_SIZE to define the default ↵Manolo Gouy
font size of interface elements. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8405 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-16Replaced "foreign language" by "another language" in doc.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8280 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-29Mac OS X: keep Mac-specific fl_beep() code in file src/fl_ask.cxxManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8136 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-29Mac OS X: removed dependency from AudioToolbox.framework by calling NSBeep() ↵Manolo Gouy
from Cocoa. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8135 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-08Fixed Compiling with mingw-w64 (STR #2308).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7978 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-01Doxygen changes to indicate what to #include for functions documented in ↵Manolo Gouy
modules. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7932 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28Fixed Copyright to 2010.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121