UI: flatten preferences behavior tabs and add node parameter editor shortcut
- Move Behavior-General options (hover focus, slider ladder, scroll zooms) into the General preferences tab. - Move Behavior-Audio option (audio scrubbing) into the Audio preferences tab. - Promote remaining Behavior categories (Timeline, Playback, Project, Nodes, Rendering) to top-level sidebar entries without the 'Behavior - ' prefix. - Update Chinese translations for the new sidebar titles and fill unfinished Behavior tab strings. NodeView: - Remove double-click jump-to-parameter-editor behavior; keep expand/collapse. - Add right-click context menu item 'Show in Parameter Editor'. - Add Shift+P shortcut bound to the same action. Render: - Fix crash in PreviewAutoCacher::ClearSingleFrameRenders when proxy playback causes a render ticket to finish synchronously before the watcher pointer is returned. Defer the watcher Finished signal via queued connection so the caller can safely register the watcher before it is deleted.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <QCheckBox>
|
||||
#include <QComboBox>
|
||||
#include <QCoreApplication>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
#include "dialog/configbase/configdialogbase.h"
|
||||
@@ -35,8 +36,6 @@ class PreferencesBehaviorTab : public ConfigDialogBaseTab {
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum Category {
|
||||
kCategoryGeneral,
|
||||
kCategoryAudio,
|
||||
kCategoryTimeline,
|
||||
kCategoryPlayback,
|
||||
kCategoryProject,
|
||||
@@ -48,11 +47,16 @@ public:
|
||||
|
||||
virtual void Accept(MultiUndoCommand *command) override;
|
||||
|
||||
static QString BehaviorPrefTr(const char *text)
|
||||
{
|
||||
return QCoreApplication::translate("olive::PreferencesBehaviorTab", text);
|
||||
}
|
||||
|
||||
private:
|
||||
struct Item {
|
||||
QString text;
|
||||
QString config_key;
|
||||
QString tooltip;
|
||||
QString tooltip = QString();
|
||||
};
|
||||
|
||||
void AddItems(const QVector<Item> &items);
|
||||
@@ -61,9 +65,9 @@ private:
|
||||
|
||||
QMap<QCheckBox *, QString> config_map_;
|
||||
|
||||
QComboBox *graphics_backend_combobox_;
|
||||
|
||||
Category category_;
|
||||
|
||||
QComboBox *graphics_backend_combobox_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user