@@ -54,19 +93,54 @@ const SegmentList = memo(({
{renderNumber()}
{formatTimecode(seg.start)} - {formatTimecode(seg.end)}
+
({Math.floor(durationMs)} ms, {getFrameCount(duration)} frames)
-
+
+
+
+
+
+
+ {currentSegIndex + 1}
+
+
+
+
+
+
Total time:
{formatTimecode(cutSegments.reduce((acc, { start, end }) => (end - start) + acc, 0))}
diff --git a/src/renderer.jsx b/src/renderer.jsx
index 02d4806b..938afd05 100644
--- a/src/renderer.jsx
+++ b/src/renderer.jsx
@@ -1,6 +1,6 @@
import React, { memo, useEffect, useState, useCallback, useRef, Fragment, useMemo } from 'react';
import { IoIosHelpCircle, IoIosCamera } from 'react-icons/io';
-import { FaPlus, FaMinus, FaHandPointRight, FaHandPointLeft, FaTrashAlt, FaVolumeMute, FaVolumeUp, FaYinYang, FaFileExport, FaTag } from 'react-icons/fa';
+import { FaHandPointRight, FaHandPointLeft, FaTrashAlt, FaVolumeMute, FaVolumeUp, FaYinYang, FaFileExport } from 'react-icons/fa';
import { MdRotate90DegreesCcw, MdCallSplit, MdCallMerge } from 'react-icons/md';
import { FiScissors } from 'react-icons/fi';
import { AnimatePresence, motion } from 'framer-motion';
@@ -571,26 +571,6 @@ const App = memo(() => {
setCutSegments(cutSegmentsNew);
}, [currentSegIndexSafe, cutSegments, setCutSegments]);
- async function onReorderSegsPress() {
- if (cutSegments.length < 2) return;
- const { value } = await Swal.fire({
- title: 'Change the order for the current segment',
- text: `Please enter a number from 1 to ${cutSegments.length}`,
- input: 'text',
- inputValue: currentSegIndexSafe + 1,
- showCancelButton: true,
- inputValidator: (v) => {
- const parsed = parseInt(v, 10);
- return Number.isNaN(parsed) || parsed > cutSegments.length || parsed < 1 ? 'Invalid number entered' : undefined;
- },
- });
-
- if (value) {
- const newOrder = parseInt(value, 10);
- updateCurrentSegOrder(newOrder - 1);
- }
- }
-
const jumpCutStart = () => seekAbs(currentApparentCutSeg.start);
const jumpCutEnd = () => seekAbs(currentApparentCutSeg.end);
@@ -1445,17 +1425,6 @@ const App = memo(() => {
return () => window.removeEventListener('keydown', keyScrollPreventer);
}, []);
- async function onLabelSegmentPress() {
- const { value } = await Swal.fire({
- showCancelButton: true,
- title: 'Label current segment',
- inputValue: currentCutSeg.name,
- input: 'text',
- });
-
- if (value != null) setCurrentSegmentName(value);
- }
-
function renderSetCutpointButton(side) {
const start = side === 'start';
const Icon = start ? FaHandPointLeft : FaHandPointRight;
@@ -1472,10 +1441,6 @@ const App = memo(() => {
}
const getSegButtonStyle = ({ segActiveBgColor, segBorderColor }) => ({ background: segActiveBgColor, border: `2px solid ${segBorderColor}`, borderRadius: 6, color: 'white', fontSize: 14, textAlign: 'center', lineHeight: '11px', fontWeight: 'bold' });
- const curSegButtonStyle = getSegButtonStyle({
- segActiveBgColor: currentSegActiveBgColor,
- segBorderColor: currentSegBorderColor,
- });
function renderJumpCutpointButton(direction) {
const newIndex = currentSegIndexSafe + direction;
@@ -1683,12 +1648,17 @@ const App = memo(() => {
>