Charles Dang
8dfaac367b
Preferences Dialog: cleaned up Animate Map toggle code
2016-09-07 17:44:33 +11:00
Charles Dang
5ee75aa473
Preferences Dialog: refactored handling of friends list
2016-09-07 17:43:40 +11:00
Charles Dang
717aa892d2
Preferences Dialog: extensive refactor
2016-09-07 12:23:36 +11:00
Charles Dang
09a095b8b1
Preferences: refactored handling of initial page specification
2016-09-03 02:28:44 +11:00
Charles Dang
404f698a55
Preferences: cleaned up unused argument from initialize_tabs (fixup 0bbe26ec5e22)
2016-08-30 03:20:51 +11:00
Charles Dang
0bbe26ec5e
Made use of [list_data] for static lists in various dialogs
2016-08-29 19:10:04 +11:00
Celtic Minstrel
396f5dfc4c
Rename combobox -> menu_button
2016-08-22 19:37:14 -04:00
Charles Dang
119e095ccd
Added support for icons/entry tooltips in drop down dialogs/comboboxes
...
It now works on a vector of configs, meaning it's easy to add new data to entries
2016-08-18 17:20:14 +11:00
Charles Dang
a30d816ac7
Generalize listbox sorting option setup (thanks to gfgtdf)
...
Previously, an init_sorting_option class member had to be added to every dialog that
wanted to use sorting. This removes that need and also removes the need for individual
generator_sort_array objects.
2016-08-09 12:39:16 +11:00
Charles Dang
ff2a48aa09
tpreferences: use simpler method for initializing sorting options
2016-08-09 10:34:58 +11:00
Charles Dang
0ca4e6c943
Convert uses of boost functional to standard library variants
...
This commit converts the following function calls:
* boost::bind -> std::bind
* boost::function and boost::functionN -> std::function
* boost::ref and boost::cref -> std::ref and std::cref
* boost::bad_function_call -> std::bad_function_call
In the process, it was discovered that std::bind has trouble with overloaded
functions. There were two such cases in the code:
* gui2::twindow had an ancient unused overload to draw(). The overload was removed.
* gui2::trepeating_button was binding tdispatcher::fire. This case was converted
to a lambda.
2016-04-04 02:20:52 +11:00
Celtic Minstrel
fe0df45947
Consolidate formula and hotkey files in corresponding dirs
2016-03-20 16:15:50 -04:00
Charles Dang
11b941ab58
GUI2: removed CVideo argument from tdialog::preshow
...
In all but three cases, this argument was unused. In those remaining cases,
the argument could be replaced by twindow::video().
2016-03-15 02:15:28 +11:00
Charles Dang
dc8e937164
tpreferences: disable Animate Water when deselecting Animate Map
2016-03-05 01:02:56 +11:00
Charles Dang
3d0f1364fb
tpreferences: added support for opening preferences to specific main/tab pages
2016-03-04 00:47:48 +11:00
gfgtdf
e2a097ac38
fix gui2 hotkey preferences page.
2016-02-29 20:48:03 +01:00
gfgtdf
1bb7489e31
implement tpreferences::default_hotkey_callback
2016-02-29 19:33:02 +01:00
gfgtdf
0efda655b8
port hotkey preferences dialog to gui2
2016-02-29 19:33:00 +01:00
Charles Dang
6d883e10f4
tpreferences: reimplement radio toggle setup to use groups
2016-02-25 20:28:24 +11:00
Charles Dang
c08a87a255
tpreferences: hopefully silenced unused parameter warning
2016-02-21 21:28:36 +11:00
Charles Dang
07169f5e7a
tpreferences: fixup ad8468698916
...
The previous iteration caused a crash on exit if you weren't in the display tab,
since the scale slider couldn't be found. This keeps the value of the slider in
a class member variable so its always accessible.
2016-02-21 21:00:26 +11:00
Charles Dang
8952ca05a8
tpreferences: always apply suffix to bound status labels
2016-02-21 20:04:30 +11:00
Charles Dang
4f6be879a5
tpreferences: made font scaling apply during post show not when dragging slider
2016-02-21 20:01:47 +11:00
Celtic Minstrel
742d17932f
Merge pull request #603 from CelticMinstrel/prefs_stuff
...
Font scaling and reimplemented orb colors
2016-02-21 01:34:57 -05:00
Celtic Minstrel
270d3fd482
Preferences: Implement a font scaling option
...
This is currently incomplete - it only works for GUI2 text.
2016-02-18 01:12:56 -05:00
Celtic Minstrel
b238c42caf
preferences: Copy friend name and notes to field when selected, for easier editing
2016-02-18 01:11:16 -05:00
Ignacio R. Morelle
a7705d33d3
gui2/tpreferences: Make an exception for Skip AI Moves inversing its values
...
Fixes the option doing the opposite of what's intended.
2016-02-16 02:02:50 -03:00
Ignacio R. Morelle
5f5f7a185f
gui2/tpreferences: Correct copyright
2016-02-14 16:37:04 -03:00
Charles Dang
7740fe1f87
tpreferences: update file copyright
2016-02-10 23:49:35 +11:00
Charles Dang
77e2eb8228
tpreferences: display proper symbol for infinite autosaves
2016-02-10 23:47:13 +11:00
Charles Dang
4e5a42cc42
tpreferences: refactored Advanced section to use a listbox
...
This allows the details widgets to stay in the same listbox cell as the main
displayed names
2016-02-10 19:51:08 +11:00
Charles Dang
b7d56e0c11
gui2/tpreferences: implemented new gui2 Preferences dialog
2016-02-10 19:51:01 +11:00
Ignacio R. Morelle
677e7077ae
gui2/tpreferences: initial layout
2016-02-06 20:19:39 +11:00