Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
90f32b4
set default branch to patch for patch branch
Apr 21, 2025
8185c82
Merge pull request #186 from NREL/patch_ci
Apr 21, 2025
798ee18
change default branch back to develop for develop
Apr 21, 2025
d02e1dc
Merge pull request #187 from NREL/patch_to_develop_w_ci_2025
Apr 21, 2025
f08d476
Update wxMetroDataViewTreeCtrl to handle notes icon for SAM issue 1552
sjanzou Jul 8, 2025
cdead94
Make wxMetroDataViewTreeCtrl not editable - SAM issue #1552
sjanzou Jul 9, 2025
ead8fc8
Update wxMetroDataViewTeeCtrl and address SAM issue 1552
sjanzou Jul 11, 2025
d2f5d6c
Merge pull request #188 from NREL/SAM_1552
sjanzou Jul 13, 2025
414fc82
Merge pull request #189 from NREL/patch
Jul 23, 2025
23a6dbd
matrix.h had unknown function nrows() and ncols() that should not hav…
sjanzou Sep 23, 2025
0bb86b4
Update wxWidgets version in workflow from 3.2.4 to 3.2.8
sjanzou Sep 23, 2025
6ba2a49
Update workflow to wxWidgets 3.2.8.1
sjanzou Sep 24, 2025
717c4a6
Merge pull request #190 from NREL/matrix_ResizePreserve
sjanzou Sep 24, 2025
7da25a3
Update organization name in README.md
Dec 5, 2025
0074888
Merge pull request #191 from NREL/brtietz-patch-1
Dec 5, 2025
d5a2152
LIcense update
mjprilliman Feb 13, 2026
d16b618
Typo
mjprilliman Feb 13, 2026
7270e3b
Repo find and replace Alliance
mjprilliman Feb 13, 2026
f14f04b
Merge pull request #193 from NatLabRockies/license_update
mjprilliman Feb 16, 2026
1634a71
OR Tools (#192)
sjanzou Mar 13, 2026
ea4985f
Fix debug build for Windows and ortools per email 3/16/2026
sjanzou Mar 17, 2026
a69a486
Update CMakeLists.txt for Windows runners
sjanzou Mar 19, 2026
2678dca
Merge pull request #194 from NatLabRockies/ortools_cmake_debug_build
sjanzou Mar 20, 2026
2eaed58
replace nrel
janinefreeman Apr 4, 2026
7c01d81
fix capitalization in URL for readability
janinefreeman Apr 12, 2026
ab1f57b
Merge pull request #196 from NatLabRockies/globalnamechange
janinefreeman May 8, 2026
255c52e
Update Windows runner version in CI workflow
brtietz Jun 11, 2026
eaaa893
Merge pull request #198 from NatLabRockies/brtietz-patch-2
brtietz Jun 11, 2026
e2cb624
Reverts wxConfig to NREL for backward compatibility
cpaulgilman Jun 29, 2026
2d53041
Merge pull request #199 from NatLabRockies/Revert-wxConfig-to-NREL-fo…
brtietz Jun 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:

env:
WX_VERSION: '3.2.4'
WX_VERSION: '3.2.8.1'
DEFAULT_BRANCH: develop


Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
wex/build_linux/wex*.a

build-on-windows:
runs-on: windows-latest
runs-on: windows-2022
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
steps:
Expand Down Expand Up @@ -388,4 +388,4 @@ jobs:
wex/build_linux/tools/DView*
wex/build_linux/tools/wexsandbox*
wex/build_linux/wex*.a


49 changes: 41 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Project(wex C CXX)
# Compile Options per Platform
#
#####################################################################################################################
set(CMAKE_CXX_STANDARD 20)

if (MSVC)
add_compile_options(/W3 /MP)
Expand All @@ -44,10 +45,6 @@ if (MSVC)
set(${flag_var} "${${flag_var}} /D_DEBUG" CACHE STRING "compile flags" FORCE)
endforeach ()
else ()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
# if (APPLE)
# add_compile_options( -arch x86_64 -arch arm64 )
# endif ()
add_compile_options(-Wall -Wno-unknown-pragmas -Wno-strict-aliasing)
add_compile_options(-fno-common ${wxWidgets_CXX_FLAGS})
add_definitions(-DLK_USE_WXWIDGETS -D_CRT_SECURE_NO_WARNINGS -D_MBCS -DFT2_BUILD_LIBRARY -DOPJ_STATIC -DFT_CONFIG_MODULES_H=\"slimftmodules.h\" -DFT_CONFIG_OPTIONS_H=\"slimftoptions.h\")
Expand All @@ -69,17 +66,53 @@ endif ()
if (UNIX)
if (EXISTS /usr/local/bin/wx-config-3)
set(wxWidgets_CONFIG_EXECUTABLE /usr/local/bin/wx-config-3)
find_package(wxWidgets REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base)
find_package(wxWidgets QUIET REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base)
else ()
set(wxWidgets_CONFIG_EXECUTABLE $ENV{WXMSW3}/bin/wx-config)
find_package(wxWidgets REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base)
find_package(wxWidgets QUIET REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base)
endif ()
else ()
# set(wxWidgets_ROOT_DIR $ENV{WXMSW3})
# set(CMAKE_MAP_IMPORTED_CONFIG_DEBUG Release)
# find_package(wxWidgets QUIET REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base scintilla)
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Debug and Release Builds Configured" FORCE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++20")
# for linking to Release build of ortools
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")
# Get the current debug flags and remove the /D_DEBUG option.
string(REPLACE "/D_DEBUG" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
# following does not force release libraries for wxWidgets using find_package
#set(CMAKE_MAP_IMPORTED_CONFIG_DEBUG RELEASE)

set(wxWidgets_ROOT_DIR $ENV{WXMSW3})
find_package(wxWidgets REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base scintilla)
find_package(wxWidgets QUIET REQUIRED xrc webview stc richtext ribbon propgrid aui gl html qa adv core xml net base scintilla)

# message("All wxWidgets: " ${wxWidgets_LIBRARIES})
set(FOUND "false")
foreach(lib ${wxWidgets_LIBRARIES})
string(FIND ${lib} "optimized" INDEX)
string(FIND ${lib} "debug" INDEX2)
string(FIND ${lib} "wxWidgets" INDEX3)
if (INDEX GREATER_EQUAL 0) # skip once
set(FOUND "true")
continue()
elseif((INDEX2 LESS 0) AND (INDEX3 LESS 0))
set(FOUND "true")
endif()
if (${FOUND} STREQUAL "true")
set(FOUND "false")
message("lib: ${lib}")
list(APPEND WX_LIBS_LIST ${lib})
endif()
endforeach()

list(JOIN WX_LIBS_LIST ";" wxWidgets_LIBRARIES)
# message("Link Libraries for wxWidgets: ${wxWidgets_LIBRARIES}")
endif ()

include(${wxWidgets_USE_FILE})
if (wxWidgets_FOUND)
include(${wxWidgets_USE_FILE})
endif ()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${wxWidgets_CXX_FLAGS}")

if (UNIX AND NOT APPLE)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2017, 2022 Alliance for Sustainable Energy, LLC
Copyright (c) 2017, 2022 Alliance for Energy Innovation, LLC
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# WEX: Extensions Library for wxWidgets

WEX is a library of extensions to the [wxWidgets](https://www.wxwidgets.org/) cross-platform user interface (UI) library. These extensions are for custom UI widgets developed for the National Renewable Energy Laboratory's [System Advisor Model™ (SAM™)](https://sam.nrel.gov) and [DView](https://github.com/NREL/wex/wiki/DView) data visualization software.
WEX is a library of extensions to the [wxWidgets](https://www.wxwidgets.org/) cross-platform user interface (UI) library. These extensions are for custom UI widgets developed for the National Laboratory of the Rockies' [System Advisor Model™ (SAM™)](https://sam.nrel.gov) and [DView](https://github.com/NREL/wex/wiki/DView) data visualization software.

WEX also includes two executable programs:

Expand Down
2 changes: 1 addition & 1 deletion include/wex/codeedit.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/csv.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/diurnal.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/dview/dvautocolourassigner.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/dview/dvdcctrl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/dview/dvdmapctrl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/dview/dvfilereader.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/dview/dvplotctrl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/dview/dvplotctrlsettings.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/dview/dvplothelper.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/dview/dvpncdfctrl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/dview/dvprofilectrl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/dview/dvscatterplotctrl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/dview/dvselectionlist.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/dview/dvstatisticstablectrl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/dview/dvtimeseriesctrl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/dview/dvtimeseriesdataset.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/easycurl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/extgrid.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/exttext.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/exttextstream.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/exttree.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/gleasy.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/label.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion include/wex/lkscript.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
6 changes: 3 additions & 3 deletions include/wex/matrix.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
BSD 3-Clause License

Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
Copyright (c) Alliance for Energy Innovation, LLC. See also https://github.com/NREL/wex/blob/develop/LICENSE
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -175,8 +175,8 @@ class wxMatrix {
wxMatrix<T> old(*this);
Resize(nr, nc);
Fill(val);
for (size_t r = 0; r < nr && r < old.nrows(); r++)
for (size_t c = 0; c < nc && c < old.ncols(); c++)
for (size_t r = 0; r < nr && r < old.Rows(); r++)
for (size_t c = 0; c < nc && c < old.Cols(); c++)
At(r, c) = old(r, c);
}

Expand Down
Loading
Loading