Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
accessibility_movie_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵心治
accessibility_movie_2
Commits
0c8297d7
Commit
0c8297d7
authored
Oct 29, 2022
by
xuanweiace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
在菜单栏增加【当前位置插入旁白】 【导出】动作
parent
2ca94fa3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
main_window.py
main_window.py
+1
-0
main_window.ui
main_window.ui
+12
-0
main_window_ui.py
main_window_ui.py
+8
-0
No files found.
main_window.py
View file @
0c8297d7
...
...
@@ -97,6 +97,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
self
.
import_movie
.
triggered
.
connect
(
self
.
import_slot
)
self
.
action_open_project
.
triggered
.
connect
(
self
.
open_project_slot
)
self
.
action_refresh_tab
.
triggered
.
connect
(
self
.
refresh_tab_slot
)
self
.
action_export
.
triggered
.
connect
()
self
.
action_undo
.
triggered
.
connect
(
self
.
undo_slot
)
self
.
action_redo
.
triggered
.
connect
(
self
.
redo_slot
)
...
...
main_window.ui
View file @
0c8297d7
...
...
@@ -516,6 +516,7 @@ QPushButton:pressed {
<addaction
name=
"import_movie"
/>
<addaction
name=
"separator"
/>
<addaction
name=
"action_save"
/>
<addaction
name=
"action_export"
/>
</widget>
<widget
class=
"QMenu"
name=
"menu_2"
>
<property
name=
"title"
>
...
...
@@ -535,6 +536,7 @@ QPushButton:pressed {
<addaction
name=
"actiona_4"
/>
<addaction
name=
"separator"
/>
<addaction
name=
"action_refresh_tab"
/>
<addaction
name=
"action_insert_aside_from_now"
/>
</widget>
<addaction
name=
"menu"
/>
<addaction
name=
"menu_2"
/>
...
...
@@ -601,6 +603,16 @@ QPushButton:pressed {
<string>
操作表格
</string>
</property>
</action>
<action
name=
"action_export"
>
<property
name=
"text"
>
<string>
导出
</string>
</property>
</action>
<action
name=
"action_insert_aside_from_now"
>
<property
name=
"text"
>
<string>
当前位置插入旁白
</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>
...
...
main_window_ui.py
View file @
0c8297d7
...
...
@@ -300,12 +300,17 @@ class Ui_MainWindow(object):
self
.
action_refresh_tab
.
setObjectName
(
"action_refresh_tab"
)
self
.
action_operate
=
QtWidgets
.
QAction
(
MainWindow
)
self
.
action_operate
.
setObjectName
(
"action_operate"
)
self
.
action_export
=
QtWidgets
.
QAction
(
MainWindow
)
self
.
action_export
.
setObjectName
(
"action_export"
)
self
.
action_insert_aside_from_now
=
QtWidgets
.
QAction
(
MainWindow
)
self
.
action_insert_aside_from_now
.
setObjectName
(
"action_insert_aside_from_now"
)
self
.
menu
.
addAction
(
self
.
actionxinjian
)
self
.
menu
.
addAction
(
self
.
action_open_project
)
self
.
menu
.
addSeparator
()
self
.
menu
.
addAction
(
self
.
import_movie
)
self
.
menu
.
addSeparator
()
self
.
menu
.
addAction
(
self
.
action_save
)
self
.
menu
.
addAction
(
self
.
action_export
)
self
.
menu_2
.
addAction
(
self
.
action_undo
)
self
.
menu_2
.
addAction
(
self
.
action_redo
)
self
.
menu_2
.
addAction
(
self
.
action_view_history
)
...
...
@@ -315,6 +320,7 @@ class Ui_MainWindow(object):
self
.
menu_3
.
addAction
(
self
.
actiona_4
)
self
.
menu_3
.
addSeparator
()
self
.
menu_3
.
addAction
(
self
.
action_refresh_tab
)
self
.
menu_3
.
addAction
(
self
.
action_insert_aside_from_now
)
self
.
menubar
.
addAction
(
self
.
menu
.
menuAction
())
self
.
menubar
.
addAction
(
self
.
menu_2
.
menuAction
())
self
.
menubar
.
addAction
(
self
.
menu_3
.
menuAction
())
...
...
@@ -352,6 +358,8 @@ class Ui_MainWindow(object):
self
.
action_view_history
.
setText
(
_translate
(
"MainWindow"
,
"----"
))
self
.
action_refresh_tab
.
setText
(
_translate
(
"MainWindow"
,
"刷新且保存表格"
))
self
.
action_operate
.
setText
(
_translate
(
"MainWindow"
,
"操作表格"
))
self
.
action_export
.
setText
(
_translate
(
"MainWindow"
,
"导出"
))
self
.
action_insert_aside_from_now
.
setText
(
_translate
(
"MainWindow"
,
"当前位置插入旁白"
))
from
myVideoWidget
import
myVideoWidget
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment