Commit Graph

28 Commits

Author SHA1 Message Date
Lioncache
5cf54f4bca CBasicViewport: Remove unnecessary casts 2025-12-03 07:51:09 -05:00
Lioncache
d768118cdc CBasicViewport: Map arrow keys to WSAD
Just provides straightforward left-handed analogs on the other side of the keyboard
for moving the viewport camera.
2025-12-02 22:58:27 -05:00
Lioncache
b2bd0cd326 General: Update to Qt6
Migrate over to Qt 6 so that we can keep the UI toolkit pegged at the
current major version.

Unfortunately this also means we have to gut a small feature in the
progress dialogs, since the extras module doesn't exist in Qt6 anymore.

Few things of note:

QVector<> is internally an alias of QList now, so any changeover is due
to that to make the semantics a little clearer.

QtConcurrent requires arguments to be swapped on some invocations, and
discarding instances need to use the global thread pool instead.

fromStdList(), etc can be replaced with range constructors.

--no-angle and other commands are removed from newer versions of
windeployqt

QVariant::Invalid (and other type IDs) are deprecated and also break
existing functionality. Instead we can return default constructed
QVariants where applicable, which restores functionality that would be
broken if left as is (e.g. many list would straight up not populate or
have wonky size hinting).

The reason for this is that the QVariant(QVariant::Type) constructor
models a unique kind of internal QVariant state where it's considered
to be in an invalid state, but accessing the (supposedly) invalid state
will instead return a default constructed value of the internal type.

This kinda sucks because this means genuinely invalid states that would
warrant an assertion or other type of error would be silently ignored
and execution would continue on as normal, so this also enforces
correctness a little bit (on top of, well, fixing all the broken UI
controls).
2025-11-29 19:54:35 -05:00
Henrique Gemignani Passos Lima
d80abeb302 Fix CBasicViewport using deprecated Qt API 2021-06-20 23:00:08 +03:00
Lioncash
69efdc0daf CBasicViewport: Make use of constexpr 2020-06-28 18:41:44 -04:00
Lioncash
490e8dfd96 CBasicViewport: Make use of in-class initializers 2020-06-28 07:11:54 -04:00
Lioncash
566a32fd75 General: Migrate off non-constexpr constants 2020-06-16 22:48:11 -04:00
Lioncash
01372f7049 CBasicViewport: Make member functions const where applicable
These don't modify member state. While we're at it, we can mark
functions as override where applicable.
2020-06-10 01:47:51 -04:00
Jack Andersen
94bdd70cb3 Prevent unpriveleged mouse-drag on macOS from conflicting with priveleged case. 2019-11-25 16:49:17 -10:00
Jack Andersen
b507196851 LibCommon now being integrated as an add_subdirectory submodule 2019-06-04 14:44:39 -10:00
Jack Andersen
12f4d5a267 Native handling of relative cursor coordinates for camera control 2019-06-03 19:38:13 -10:00
Pwootage
694c0b0765 Fix HiDPI on macOS (and possibly others?) 2019-06-03 21:51:01 -06:00
Jack Andersen
b6191dc330 Initial round of CMake refactoring 2019-05-23 13:04:29 -10:00
Aruki
c4829f5fda Cleanup & refactoring 2018-12-16 14:00:40 -07:00
Aruki
2287b05bc3 Refactor so PWE compiles with the newly externalized LibCommon 2018-12-11 22:50:46 -07:00
Aruki
21efd3999f Fixed issue causing the viewport axes to sometimes not render correctly 2017-07-07 23:14:41 -06:00
parax0
1de2691f33 Enabled MSAA 2016-08-30 19:05:28 -06:00
parax0
98059cedaa Added support for model skinning 2016-04-27 04:27:57 -06:00
parax0
feace9e38c Fixed animation loader bug, added CBoneTransformData to separate animation transforms away from CSkeleton, added skeleton raycasting, added a bunch of animation playback controls to the character editor 2016-04-10 06:49:42 -06:00
parax0
dfdbed24c4 Change CTransform4f to inherit from CMatrix4f 2016-04-08 19:16:26 -06:00
parax0
82ad4fb5c8 Mass code cleanup 2016-03-27 13:09:38 -06:00
parax0
440c3ad484 Feature additions and improvements for pick mode and the POI -> World editor 2016-01-16 12:57:20 -07:00
parax0
d66b3dee8e Reorganized CScene; better organization, less redundant code, responsibility for show/hide shifted to other classes, and in position to implement CSceneIterator 2016-01-06 03:42:07 -07:00
parax0
5375f34c19 Implemented TFlags for easy, type-safe bitflags 2016-01-05 11:50:10 -07:00
parax0
ee5d5fae0a Added viewport context menus 2016-01-05 07:54:16 -07:00
parax0
2db8d23516 Splitting Math into a separate subproject and adding FileIO as a PWE subproject 2015-12-16 14:39:51 -07:00
parax0
824d23efc1 Mass refactoring part 2/2: fixing include paths and project files 2015-12-14 19:07:22 -07:00
parax0
8805baaee1 Mass refactoring part 1/2: establishing multiple subprojects, moving source files to their new location, adding resources/templates to version control 2015-12-14 18:33:16 -07:00