R8 phase 1: extract app/engine shared utilities into shared/include/oakutil

Move the pure-header utilities shared by app/ and engine/ out of
engine/common/ into a new shared/include/oakutil/ layer (define, lerp,
decibel, digit, range, crashpadutils, autoscroll, qtutils, filefunctions
declarations, and a trimmed xmlutils exposing a CancelAtom-free void*
overload). engine/common/ keeps forwarding headers so internal include
paths are unchanged; app/ now includes oakutil/* directly.

engine/node/project.h gains an explicit NodeGroup forward declaration
previously obtained transitively through the old xmlutils.h.
This commit is contained in:
2026-07-27 17:14:56 +08:00
parent 17888a2dc1
commit c0dcd33de0
118 changed files with 898 additions and 726 deletions
+1 -1
View File
@@ -25,7 +25,7 @@
#include <QCheckBox>
#include <QDialog>
#include "common/define.h"
#include "oakutil/define.h"
namespace olive
{
+1 -1
View File
@@ -23,7 +23,7 @@
#include <QPainter>
#include "common/qtutils.h"
#include "oakutil/qtutils.h"
namespace olive
{
+1 -1
View File
@@ -28,7 +28,7 @@
#include <QMenu>
#include <QMenuBar>
#include "common/define.h"
#include "oakutil/define.h"
namespace olive
{
+1 -1
View File
@@ -25,7 +25,7 @@
#include <QDialog>
#include <QTreeWidget>
#include "common/define.h"
#include "oakutil/define.h"
namespace olive
{
+1 -1
View File
@@ -25,7 +25,7 @@
#include <QSplitter>
#include <QVBoxLayout>
#include "common/qtutils.h"
#include "oakutil/qtutils.h"
namespace olive
{
+1 -1
View File
@@ -26,7 +26,7 @@
#include <QGridLayout>
#include <QLabel>
#include "common/qtutils.h"
#include "oakutil/qtutils.h"
#include "widget/slider/integerslider.h"
namespace olive
+1 -1
View File
@@ -26,7 +26,7 @@
#include <QGridLayout>
#include <QLabel>
#include "common/qtutils.h"
#include "oakutil/qtutils.h"
#include "widget/slider/integerslider.h"
namespace olive
+2 -2
View File
@@ -31,8 +31,8 @@
#include <QSplitter>
#include <QStandardPaths>
#include "common/digit.h"
#include "common/qtutils.h"
#include "oakutil/digit.h"
#include "oakutil/qtutils.h"
#include "codec/exportcodec.h"
#include "codec/exportformat.h"
#include "dialog/msgbox.h"
+1 -1
View File
@@ -25,7 +25,7 @@
#include <QComboBox>
#include <QWidget>
#include "common/define.h"
#include "oakutil/define.h"
#include "widget/slider/integerslider.h"
#include "widget/standardcombos/standardcombos.h"
+1 -1
View File
@@ -26,7 +26,7 @@
#include <QComboBox>
#include <QLabel>
#include "common/qtutils.h"
#include "oakutil/qtutils.h"
#include "dialog/export/exportformatcombobox.h"
namespace olive
+1 -1
View File
@@ -26,7 +26,7 @@
#include <QComboBox>
#include <QWidget>
#include "common/qtutils.h"
#include "oakutil/qtutils.h"
#include "dialog/export/codec/av1section.h"
#include "dialog/export/codec/cineformsection.h"
#include "dialog/export/codec/codecstack.h"
@@ -24,7 +24,7 @@
#include <QWidget>
#include "common/define.h"
#include "oakutil/define.h"
namespace olive
{
@@ -23,7 +23,7 @@
#include <QDialog>
#include <QTreeWidget>
#include "common/define.h"
#include "oakutil/define.h"
#include "opentimelineio/timeline.h"
#include "node/project/sequence/sequence.h"
#include "node/project.h"
+1 -1
View File
@@ -24,7 +24,7 @@
#include <QKeySequenceEdit>
#include "common/debug.h"
#include "common/debugapp.h"
namespace olive
{
@@ -28,7 +28,7 @@
#include <QLabel>
#include <QMessageBox>
#include "common/filefunctions.h"
#include "oakutil/filefunctions.h"
#include "common/configwrapper.h"
#include "oakengine/disk.h"
#include "olive/core/core.h"
@@ -26,7 +26,7 @@
#include <QLabel>
#include <QPushButton>
#include "common/autoscroll.h"
#include "oakutil/autoscroll.h"
#include "core.h"
#include "preferencesbehaviortab.h"
+1 -1
View File
@@ -25,7 +25,7 @@
#include <QDialog>
#include <QProgressBar>
#include "common/debug.h"
#include "common/debugapp.h"
#include "widget/taskview/elapsedcounterwidget.h"
namespace olive
@@ -24,7 +24,7 @@
#include <QDialog>
#include "common/define.h"
#include "oakutil/define.h"
namespace olive
{
@@ -29,7 +29,7 @@
#include <QMessageBox>
#include <QPushButton>
#include "common/filefunctions.h"
#include "oakutil/filefunctions.h"
#include "oakengine/color.h"
#include "oakengine/disk.h"
#include "oakengine/project.h"
+3 -3
View File
@@ -32,9 +32,9 @@
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include "common/define.h"
#include "common/filefunctions.h"
#include "common/xmlutils.h"
#include "oakutil/define.h"
#include "oakutil/filefunctions.h"
#include "oakutil/xmlutils.h"
namespace olive
{
+1 -1
View File
@@ -31,7 +31,7 @@
#include <QVBoxLayout>
#include "common/configwrapper.h"
#include "common/qtutils.h"
#include "oakutil/qtutils.h"
#include "dialog/msgbox.h"
#include "oakengine/node.h"
#include "oakengine/timeline.h"
+1 -1
View File
@@ -25,7 +25,7 @@
#include <olive/core/core.h>
#include <QXmlStreamWriter>
#include "common/xmlutils.h"
#include "oakutil/xmlutils.h"
#include "dialog/sequence/presetmanager.h"
#include "render/videoparams.h"
+1 -1
View File
@@ -26,7 +26,7 @@
#include <QFontComboBox>
#include <QPlainTextEdit>
#include "common/define.h"
#include "oakutil/define.h"
#include "widget/slider/floatslider.h"
namespace olive