Skip to content

Commit

Permalink
Move more ui files to libid/{include/,}ui
Browse files Browse the repository at this point in the history
  • Loading branch information
LegalizeAdulthood committed Jan 10, 2025
1 parent 439fbb2 commit c8c2af5
Show file tree
Hide file tree
Showing 157 changed files with 489 additions and 538 deletions.
12 changes: 6 additions & 6 deletions libid/3d/line3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@
#include "3d/line3d.h"

#include "3d/plot3d.h"
#include "cmdfiles.h"
#include "debug_flags.h"
#include "diskvid.h"
#include "drivers.h"
#include "engine/calcfrac.h"
#include "engine/id_data.h"
#include "engine/pixel_limits.h"
#include "framain2.h"
#include "id.h"
#include "io/check_write_file.h"
#include "io/dir_file.h"
Expand All @@ -24,11 +21,14 @@
#include "io/save_file.h"
#include "math/fixed_pt.h"
#include "math/rand15.h"
#include "rotate.h"
#include "stereo.h"
#include "ui/cmdfiles.h"
#include "ui/diskvid.h"
#include "ui/framain2.h"
#include "ui/rotate.h"
#include "ui/stereo.h"
#include "ui/stop_msg.h"
#include "ui/video.h"
#include "version.h"
#include "video.h"

#include <algorithm>
#include <climits>
Expand Down
10 changes: 5 additions & 5 deletions libid/3d/plot3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
#include "3d/plot3d.h"

#include "3d/line3d.h"
#include "cmdfiles.h"
#include "diskvid.h"
#include "engine/calcfrac.h"
#include "engine/id_data.h"
#include "fractals/fractype.h"
#include "io/loadmap.h"
#include "port.h"
#include "rotate.h"
#include "spindac.h"
#include "video.h"
#include "ui/cmdfiles.h"
#include "ui/diskvid.h"
#include "ui/rotate.h"
#include "ui/spindac.h"
#include "ui/video.h"

#include <cmath>

Expand Down
102 changes: 27 additions & 75 deletions libid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,8 @@ add_library(libid
include/fractals/unity.h fractals/unity.cpp
include/fractals/volterra_lotka.h fractals/volterra_lotka.cpp

include/cmdfiles.h cmdfiles.cpp
include/cmdfiles_test.h
include/diskvid.h diskvid.cpp
include/do_pause.h do_pause.cpp
include/editpal.h editpal.cpp
include/evolve.h evolve.cpp
include/lowerize_parameter.h lowerize_parameter.cpp
include/rotate.h rotate.cpp
include/slideshw.h slideshw.cpp
include/stereo.h stereo.cpp
include/video.h video.cpp

include/io/check_write_file.h io/check_write_file.cpp
include/io/decoder.h io/decoder.cpp
Expand Down Expand Up @@ -154,40 +145,32 @@ add_library(libid
include/engine/check_key.h engine/check_key.cpp
include/comments.h comments.cpp
include/double_to_string.h double_to_string.cpp
include/evolver_menu_switch.h evolver_menu_switch.cpp
include/find_extra_param.h find_extra_param.cpp
include/find_special_colors.h find_special_colors.cpp
include/flip_image.h flip_image.cpp
include/framain2.h framain2.cpp
include/get_calculation_time.h get_calculation_time.cpp
include/get_commands.h get_commands.cpp
include/get_key_no_help.h get_key_no_help.cpp
include/get_prec_big_float.h get_prec_big_float.cpp
include/history.h history.cpp
include/id_main.h id_main.cpp
include/load_params.h load_params.cpp
include/main_menu_switch.h main_menu_switch.cpp
include/main_state.h
include/make_batch_file.h make_batch_file.cpp
include/make_mig.h make_mig.cpp
include/menu_handler.h menu_handler.cpp
include/mouse.h mouse.cpp
include/round_float_double.h round_float_double.cpp
include/set_default_params.h set_default_params.cpp
include/shell_sort.h shell_sort.cpp
include/sound.h sound.cpp
include/spindac.h spindac.cpp
include/starfield.h starfield.cpp
include/trig_fns.h trig_fns.cpp
include/version.h version.cpp
include/video_mode.h video_mode.cpp
include/zoom.h zoom.cpp

include/ui/ChoiceBuilder.h
include/ui/get_video_mode.h ui/get_video_mode.cpp
include/ui/text_screen.h ui/text_screen.cpp
include/ui/cmdfiles.h ui/cmdfiles.cpp
include/ui/diskvid.h ui/diskvid.cpp
include/ui/do_pause.h ui/do_pause.cpp
include/ui/editpal.h ui/editpal.cpp
include/ui/evolve.h ui/evolve.cpp
include/ui/evolver_menu_switch.h ui/evolver_menu_switch.cpp
include/ui/field_prompt.h ui/field_prompt.cpp
include/ui/file_item.h ui/file_item.cpp
include/ui/find_special_colors.h ui/find_special_colors.cpp
include/ui/flip_image.h ui/flip_image.cpp
include/ui/framain2.h ui/framain2.cpp
include/ui/full_screen_choice.h ui/full_screen_choice.cpp
include/ui/full_screen_prompt.h ui/full_screen_prompt.cpp
include/ui/get_3d_params.h ui/get_3d_params.cpp
Expand All @@ -197,25 +180,42 @@ add_library(libid
include/ui/get_cmd_string.h ui/get_cmd_string.cpp
include/ui/get_corners.h ui/get_corners.cpp
include/ui/get_fract_type.h ui/get_fract_type.cpp
include/ui/get_key_no_help.h ui/get_key_no_help.cpp
include/ui/get_rds_params.h ui/get_rds_params.cpp
include/ui/get_sound_params.h ui/get_sound_params.cpp
include/ui/get_toggles.h ui/get_toggles.cpp
include/ui/get_toggles2.h ui/get_toggles2.cpp
include/ui/get_video_mode.h ui/get_video_mode.cpp
include/ui/get_view_params.h ui/get_view_params.cpp
include/ui/goodbye.h ui/goodbye.cpp
ui/help.cpp
include/ui/help_title.h ui/help_title.cpp
include/ui/history.h ui/history.cpp
include/ui/id_main.h ui/id_main.cpp
include/ui/intro.h ui/intro.cpp
include/ui/input_field.h ui/input_field.cpp
include/ui/main_menu.h ui/main_menu.cpp
include/ui/main_menu_switch.h ui/main_menu_switch.cpp
include/ui/menu_handler.h ui/menu_handler.cpp
include/ui/mouse.h ui/mouse.cpp
include/ui/not_disk_msg.h ui/not_disk_msg.cpp
include/ui/passes_options.h ui/passes_options.cpp
include/ui/put_string_center.h ui/put_string_center.cpp
include/ui/rotate.h ui/rotate.cpp
include/ui/select_video_mode.h ui/select_video_mode.cpp
include/ui/slideshw.h ui/slideshw.cpp
include/ui/sound.h ui/sound.cpp
include/ui/spindac.h ui/spindac.cpp
include/ui/starfield.h ui/starfield.cpp
include/ui/stereo.h ui/stereo.cpp
include/ui/stop_msg.h ui/stop_msg.cpp
include/ui/tab_display.h ui/tab_display.cpp
include/ui/temp_msg.h ui/temp_msg.cpp
include/ui/text_screen.h ui/text_screen.cpp
include/ui/thinking.h ui/thinking.cpp
include/ui/video.h ui/video.cpp
include/ui/video_mode.h ui/video_mode.cpp
include/ui/zoom.h ui/zoom.cpp

include/drivers.h
include/id.h
Expand All @@ -228,90 +228,42 @@ add_library(libid
)

source_group("Header Files/Miscellaneous" FILES
include/cmdfiles.h
include/cmdfiles_test.h
include/comments.h
include/double_to_string.h
include/diskvid.h
include/do_pause.h
include/editpal.h
include/evolve.h
include/evolver_menu_switch.h
include/find_extra_param.h
include/find_special_colors.h
include/flip_image.h
include/framain2.h
include/get_calculation_time.h
include/get_commands.h
include/get_key_no_help.h
include/get_prec_big_float.h
include/history.h
include/id.h
include/id_keys.h
include/id_main.h
include/load_params.h
include/lowerize_parameter.h
include/main_menu_switch.h
include/main_state.h
include/make_batch_file.h
include/make_mig.h
include/menu_handler.h
include/mouse.h
include/round_float_double.h
include/rotate.h
include/set_default_params.h
include/shell_sort.h
include/slideshw.h
include/sound.h
include/spindac.h
include/starfield.h
include/stereo.h
include/trig_fns.h
include/version.h
include/video.h
include/video_mode.h
include/zoom.h
)
source_group("Source Files/Miscellaneous" FILES
cmdfiles.cpp
comments.cpp
diskvid.cpp
double_to_string.cpp
do_pause.cpp
editpal.cpp
evolve.cpp
evolver_menu_switch.cpp
find_extra_param.cpp
find_special_colors.cpp
flip_image.cpp
framain2.cpp
get_calculation_time.cpp
get_commands.cpp
get_key_no_help.cpp
get_prec_big_float.cpp
history.cpp
id_main.cpp
load_params.cpp
lowerize_parameter.cpp
main_menu_switch.cpp
make_batch_file.cpp
make_mig.cpp
menu_handler.cpp
mouse.cpp
round_float_double.cpp
rotate.cpp
set_default_params.cpp
shell_sort.cpp
slideshw.cpp
sound.cpp
spindac.cpp
starfield.cpp
stereo.cpp
trig_fns.cpp
version.cpp
video.cpp
video_mode.cpp
zoom.cpp
)
source_group("Header Files/Plumbing" FILES
include/debug_flags.h
Expand Down Expand Up @@ -344,7 +296,7 @@ source_group("Header Files/UI" REGULAR_EXPRESSION "include/ui/.*")
source_group("Source Files/UI" REGULAR_EXPRESSION "ui/.*")

set_src_dir(ui/help.cpp)
set_src_dir(id_main.cpp)
set_src_dir(ui/id_main.cpp)

target_compile_definitions(libid PUBLIC
${ID_TARGET_DEFINITIONS} $<$<CONFIG:Debug>:${ID_TARGET_DEFINITIONS_DEBUG}>)
Expand Down
4 changes: 2 additions & 2 deletions libid/comments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
//
#include "comments.h"

#include "get_calculation_time.h"
#include "engine/id_data.h"
#include "get_calculation_time.h"
#include "ui/stop_msg.h"
#include "ui/video_mode.h"
#include "version.h"
#include "video_mode.h"

#include <libcpuid/libcpuid.h>

Expand Down
2 changes: 1 addition & 1 deletion libid/drivers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
#include "drivers.h"

#include "video_mode.h"
#include "ui/video_mode.h"

#include <cstring>

Expand Down
6 changes: 3 additions & 3 deletions libid/engine/PertEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

#include "engine/PertEngine.h"

#include "engine/calcfrac.h"
#include "cmdfiles.h"
#include "drivers.h"
#include "engine/calcfrac.h"
#include "engine/id_data.h"
#include "fractals/fractalp.h"
#include "fractals/pickover_mandelbrot.h"
#include "id.h"
#include "engine/id_data.h"
#include "math/biginit.h"
#include "math/complex_fn.h"
#include "ui/cmdfiles.h"

#include <algorithm>
#include <cmath>
Expand Down
6 changes: 3 additions & 3 deletions libid/engine/boundary_trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#include "engine/boundary_trace.h"

#include "engine/calcfrac.h"
#include "cmdfiles.h"
#include "engine/id_data.h"
#include "ui/stop_msg.h"
#include "video.h"
#include "engine/work_list.h"
#include "ui/cmdfiles.h"
#include "ui/stop_msg.h"
#include "ui/video.h"

#include <cstring>

Expand Down
14 changes: 7 additions & 7 deletions libid/engine/calc_frac_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@
//
#include "engine/calc_frac_init.h"

#include "debug_flags.h"
#include "engine/bailout_formula.h"
#include "engine/calcfrac.h"
#include "cmdfiles.h"
#include "engine/convert_center_mag.h"
#include "engine/convert_corners.h"
#include "debug_flags.h"
#include "engine/fractalb.h"
#include "engine/id_data.h"
#include "engine/pixel_grid.h"
#include "engine/pixel_limits.h"
#include "engine/soi.h"
#include "engine/type_has_param.h"
#include "fractals/fractalp.h"
#include "fractals/jb.h"
#include "get_prec_big_float.h"
#include "id.h"
#include "engine/id_data.h"
#include "math/biginit.h"
#include "math/fixed_pt.h"
#include "math/sign.h"
#include "engine/pixel_grid.h"
#include "engine/pixel_limits.h"
#include "port.h"
#include "engine/soi.h"
#include "engine/type_has_param.h"
#include "ui/cmdfiles.h"
#include "ui/stop_msg.h"

#include <algorithm>
Expand Down
12 changes: 6 additions & 6 deletions libid/engine/calcfrac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
#include "engine/calcfrac.h"

#include "3d/line3d.h"
#include "cmdfiles.h"
#include "debug_flags.h"
#include "diskvid.h"
#include "drivers.h"
#include "engine/bailout_formula.h"
#include "engine/boundary_trace.h"
Expand All @@ -38,7 +36,6 @@
#include "engine/tesseral.h"
#include "engine/wait_until.h"
#include "engine/work_list.h"
#include "find_special_colors.h"
#include "fractals/fractalp.h"
#include "fractals/frothy_basin.h"
#include "fractals/lyapunov.h"
Expand All @@ -50,10 +47,13 @@
#include "math/mpmath.h"
#include "math/mpmath_c.h"
#include "math/sign.h"
#include "sound.h"
#include "spindac.h"
#include "ui/cmdfiles.h"
#include "ui/diskvid.h"
#include "ui/find_special_colors.h"
#include "ui/sound.h"
#include "ui/spindac.h"
#include "ui/stop_msg.h"
#include "video.h"
#include "ui/video.h"

#include <algorithm>
#include <cfloat>
Expand Down
Loading

0 comments on commit c8c2af5

Please sign in to comment.