[vlmc-devel] commit: Add some status tips. (Ludovic Fauvet )
git at videolan.org
git at videolan.org
Thu Apr 15 11:37:22 CEST 2010
vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Thu Apr 15 11:33:33 2010 +0200| [b2946fa5795d12c6b780bda61e6025ebcce62880] | committer: Ludovic Fauvet
Add some status tips.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=b2946fa5795d12c6b780bda61e6025ebcce62880
---
src/Gui/MainWindow.cpp | 4 +++
src/Gui/preview/ui/PreviewWidget.ui | 37 ++++++++++++++++++++++++------
src/Gui/ui/MainWindow.ui | 41 +++++++++++++++++++++-------------
3 files changed, 58 insertions(+), 24 deletions(-)
diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 2eb2f5a..6b8debb 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -319,6 +319,7 @@ void MainWindow::createStatusBar()
mouseTool->setAutoRaise( true );
mouseTool->setCheckable( true );
mouseTool->setIcon( QIcon( ":/images/mouse" ) );
+ mouseTool->setStatusTip( tr( "Use the mouse tool to manipulate regions in the timeline" ) );
m_ui.statusbar->addPermanentWidget( mouseTool );
// Cut/Split tool
@@ -326,6 +327,7 @@ void MainWindow::createStatusBar()
splitTool->setAutoRaise( true );
splitTool->setCheckable( true );
splitTool->setIcon( QIcon( ":/images/editcut" ) );
+ splitTool->setStatusTip( tr( "Use the scissors to cut regions in the timeline" ) );
m_ui.statusbar->addPermanentWidget( splitTool );
// Group the two previous buttons
@@ -352,6 +354,7 @@ void MainWindow::createStatusBar()
// Zoom Out
QToolButton* zoomOutButton = new QToolButton( this );
zoomOutButton->setIcon( QIcon( ":/images/zoomout" ) );
+ zoomOutButton->setStatusTip( tr( "Zoom out" ) );
m_ui.statusbar->addPermanentWidget( zoomOutButton );
connect( zoomOutButton, SIGNAL( clicked() ),
this, SLOT( zoomOut() ) );
@@ -372,6 +375,7 @@ void MainWindow::createStatusBar()
// Zoom IN
QToolButton* zoomInButton = new QToolButton( this );
zoomInButton->setIcon( QIcon( ":/images/zoomin" ) );
+ zoomInButton->setStatusTip( tr( "Zoom in" ) );
m_ui.statusbar->addPermanentWidget( zoomInButton );
connect( zoomInButton, SIGNAL( clicked() ),
this, SLOT( zoomIn() ) );
diff --git a/src/Gui/preview/ui/PreviewWidget.ui b/src/Gui/preview/ui/PreviewWidget.ui
index 005405d..e6f6b2b 100644
--- a/src/Gui/preview/ui/PreviewWidget.ui
+++ b/src/Gui/preview/ui/PreviewWidget.ui
@@ -54,11 +54,14 @@
<height>30</height>
</size>
</property>
+ <property name="statusTip">
+ <string>Go to the previous frame</string>
+ </property>
<property name="text">
<string/>
</property>
<property name="icon">
- <iconset resource="../../../ressources.qrc">
+ <iconset resource="../../../../ressources.qrc">
<normaloff>:/images/images/previous_frame.png</normaloff>:/images/images/previous_frame.png</iconset>
</property>
<property name="iconSize">
@@ -89,11 +92,14 @@
<height>30</height>
</size>
</property>
+ <property name="statusTip">
+ <string>Play / Pause</string>
+ </property>
<property name="text">
<string/>
</property>
<property name="icon">
- <iconset resource="../../../ressources.qrc">
+ <iconset resource="../../../../ressources.qrc">
<normaloff>:/images/play</normaloff>:/images/play</iconset>
</property>
<property name="iconSize">
@@ -124,11 +130,14 @@
<height>30</height>
</size>
</property>
+ <property name="statusTip">
+ <string>Go to the next frame</string>
+ </property>
<property name="text">
<string/>
</property>
<property name="icon">
- <iconset resource="../../../ressources.qrc">
+ <iconset resource="../../../../ressources.qrc">
<normaloff>:/images/images/next_frame.png</normaloff>:/images/images/next_frame.png</iconset>
</property>
<property name="iconSize">
@@ -159,11 +168,14 @@
<height>30</height>
</size>
</property>
+ <property name="statusTip">
+ <string>Set marker A</string>
+ </property>
<property name="text">
<string/>
</property>
<property name="icon">
- <iconset resource="../../../ressources.qrc">
+ <iconset resource="../../../../ressources.qrc">
<normaloff>:/images/marker_start</normaloff>:/images/marker_start</iconset>
</property>
<property name="iconSize">
@@ -194,11 +206,14 @@
<height>30</height>
</size>
</property>
+ <property name="statusTip">
+ <string>Set marker B</string>
+ </property>
<property name="text">
<string/>
</property>
<property name="icon">
- <iconset resource="../../../ressources.qrc">
+ <iconset resource="../../../../ressources.qrc">
<normaloff>:/images/marker_stop</normaloff>:/images/marker_stop</iconset>
</property>
<property name="iconSize">
@@ -229,11 +244,14 @@
<height>30</height>
</size>
</property>
+ <property name="statusTip">
+ <string>Cut at markers position</string>
+ </property>
<property name="text">
<string/>
</property>
<property name="icon">
- <iconset resource="../../../ressources.qrc">
+ <iconset resource="../../../../ressources.qrc">
<normaloff>:/images/editcut</normaloff>:/images/editcut</iconset>
</property>
</widget>
@@ -271,11 +289,14 @@
<height>30</height>
</size>
</property>
+ <property name="statusTip">
+ <string>Stop the playback</string>
+ </property>
<property name="text">
<string/>
</property>
<property name="icon">
- <iconset resource="../../../ressources.qrc">
+ <iconset resource="../../../../ressources.qrc">
<normaloff>:/images/images/stop.png</normaloff>:/images/images/stop.png</iconset>
</property>
<property name="iconSize">
@@ -343,7 +364,7 @@
</customwidget>
</customwidgets>
<resources>
- <include location="../../../ressources.qrc"/>
+ <include location="../../../../ressources.qrc"/>
</resources>
<connections/>
</ui>
diff --git a/src/Gui/ui/MainWindow.ui b/src/Gui/ui/MainWindow.ui
index 923b3a6..83e1a26 100644
--- a/src/Gui/ui/MainWindow.ui
+++ b/src/Gui/ui/MainWindow.ui
@@ -30,22 +30,6 @@
<height>23</height>
</rect>
</property>
- <widget class="QMenu" name="menuFile">
- <property name="title">
- <string>File</string>
- </property>
- <addaction name="actionNew_Project"/>
- <addaction name="actionLoad_Project"/>
- <addaction name="actionClose_Project"/>
- <addaction name="separator"/>
- <addaction name="actionSave"/>
- <addaction name="actionSave_As"/>
- <addaction name="separator"/>
- <addaction name="actionImport"/>
- <addaction name="actionRender"/>
- <addaction name="separator"/>
- <addaction name="actionQuit"/>
- </widget>
<widget class="QMenu" name="menuEdit">
<property name="title">
<string>Edit</string>
@@ -90,6 +74,22 @@
<addaction name="separator"/>
<addaction name="actionAbout"/>
</widget>
+ <widget class="QMenu" name="menuFile">
+ <property name="title">
+ <string>File</string>
+ </property>
+ <addaction name="actionNew_Project"/>
+ <addaction name="actionLoad_Project"/>
+ <addaction name="actionClose_Project"/>
+ <addaction name="separator"/>
+ <addaction name="actionSave"/>
+ <addaction name="actionSave_As"/>
+ <addaction name="separator"/>
+ <addaction name="actionImport"/>
+ <addaction name="actionRender"/>
+ <addaction name="separator"/>
+ <addaction name="actionQuit"/>
+ </widget>
<addaction name="menuFile"/>
<addaction name="menuEdit"/>
<addaction name="menuView"/>
@@ -151,6 +151,9 @@
<property name="text">
<string>New Project</string>
</property>
+ <property name="statusTip">
+ <string>Open the wizard to create a new project</string>
+ </property>
</action>
<action name="actionFullscreen">
<property name="checkable">
@@ -164,6 +167,9 @@
<property name="text">
<string>Render</string>
</property>
+ <property name="statusTip">
+ <string>Render your project</string>
+ </property>
</action>
<action name="actionLoad_Project">
<property name="text">
@@ -179,6 +185,9 @@
<property name="text">
<string>Import</string>
</property>
+ <property name="statusTip">
+ <string>Import new medias into the current project</string>
+ </property>
</action>
<action name="actionBypass_effects_engine">
<property name="checkable">
More information about the Vlmc-devel
mailing list