aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/main_window.ui
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-09-18 14:09:55 -0700
committerGerald Combs <gerald@wireshark.org>2014-09-20 19:54:04 +0000
commit8576e1c103cb0606d100c31b9794bcdb61bd50c6 (patch)
tree429fcda5b0cf673edf8411b2b65e79f2c8bd9d71 /ui/qt/main_window.ui
parent801824b8a7a9885ab066ee7d10e7e03a2a948315 (diff)
Qt: Add stock icons.
The new icons are patterned after the existing capture icons. They could probably benefit from some adjustments here and there. Start moving toward icon names and a directory layout compliant with freedesktop.org's Icon Naming Specification and Icon Theme Specification. We aren't fully compliant and might never be but anyone with exposure to FDO icon themes should at least know where everything is. Make Capture Start (x-capture-start) the first icon in the toolbar. Define the Colorize Packets, Auto Scroll, and zoom icons even though the Qt UI doesn't use them yet. Leave the Capture Filter, Display Filter, Coloring Rules, Preferences, and Help icons off for now. The GTK+ toolbar is overly cluttered and I'm not sure they're necessary. Try not to break ui/gtk/toolbar_icons.h. Remove welcome.qrc. I initially added it in case we needed to overlay the welcome screen with translucent .pngs but that never happened. To do: - Move the old GTK+ icons to their own directory. - Find a better name for the "toolbar" directory. "stock"? - Make the toolbar configurable. Change-Id: Ie07592113d307b8db786aedace672312a870fe38 Reviewed-on: https://code.wireshark.org/review/4182 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/main_window.ui')
-rw-r--r--ui/qt/main_window.ui65
1 files changed, 24 insertions, 41 deletions
diff --git a/ui/qt/main_window.ui b/ui/qt/main_window.ui
index 5e42d75660..d24b2b0503 100644
--- a/ui/qt/main_window.ui
+++ b/ui/qt/main_window.ui
@@ -177,8 +177,8 @@
<string>&amp;Capture</string>
</property>
<addaction name="actionCaptureOptions"/>
- <addaction name="actionStartCapture"/>
- <addaction name="actionStopCapture"/>
+ <addaction name="actionCaptureStart"/>
+ <addaction name="actionCaptureStop"/>
<addaction name="actionCaptureRestart"/>
<addaction name="actionCaptureCaptureFilters"/>
<addaction name="actionCaptureRefreshInterfaces"/>
@@ -462,15 +462,12 @@
<string>Main Toolbar</string>
</property>
<property name="movable">
- <bool>true</bool>
- </property>
- <property name="allowedAreas">
- <set>Qt::BottomToolBarArea|Qt::TopToolBarArea</set>
+ <bool>false</bool>
</property>
<property name="iconSize">
<size>
- <width>24</width>
- <height>24</height>
+ <width>32</width>
+ <height>32</height>
</size>
</property>
<property name="toolButtonStyle">
@@ -482,12 +479,23 @@
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
- <addaction name="actionStartCapture"/>
- <addaction name="actionStopCapture"/>
+ <addaction name="actionCaptureStart"/>
+ <addaction name="actionCaptureStop"/>
+ <addaction name="actionCaptureRestart"/>
+ <addaction name="actionCaptureOptions"/>
<addaction name="separator"/>
<addaction name="actionFileOpen"/>
<addaction name="actionFileSave"/>
<addaction name="actionFileClose"/>
+ <addaction name="actionViewReload"/>
+ <addaction name="separator"/>
+ <addaction name="actionEditFindPacket"/>
+ <addaction name="actionGoPreviousPacket"/>
+ <addaction name="actionGoNextPacket"/>
+ <addaction name="actionGoGoToPacket"/>
+ <addaction name="actionGoFirstPacket"/>
+ <addaction name="actionGoLastPacket"/>
+ <addaction name="separator"/>
</widget>
<widget class="MainStatusBar" name="statusBar"/>
<widget class="QToolBar" name="displayFilterToolBar">
@@ -529,27 +537,10 @@
<enum>QAction::QuitRole</enum>
</property>
</action>
- <action name="actionCaptureInterfaces">
- <property name="text">
- <string>&amp;Interfaces...</string>
- </property>
- <property name="toolTip">
- <string>Show interface details</string>
- </property>
- <property name="shortcut">
- <string>Ctrl+I</string>
- </property>
- </action>
- <action name="actionStartCapture">
+ <action name="actionCaptureStart">
<property name="checkable">
<bool>true</bool>
</property>
- <property name="icon">
- <iconset resource="../../image/toolbar.qrc">
- <normaloff>:/toolbar/main/capture_start_24.png</normaloff>
- <normalon>:/toolbar/main/capture_start_active_24.png</normalon>
- <disabledon>:/toolbar/main/capture_start_active_24.png</disabledon>:/toolbar/main/capture_start_24.png</iconset>
- </property>
<property name="text">
<string>&amp;Start</string>
</property>
@@ -560,11 +551,7 @@
<string>Ctrl+E</string>
</property>
</action>
- <action name="actionStopCapture">
- <property name="icon">
- <iconset resource="../../image/toolbar.qrc">
- <normaloff>:/toolbar/main/capture_stop_24.png</normaloff>:/toolbar/main/capture_stop_24.png</iconset>
- </property>
+ <action name="actionCaptureStop">
<property name="text">
<string>S&amp;top</string>
</property>
@@ -580,7 +567,7 @@
<string>Close</string>
</property>
<property name="toolTip">
- <string>Close the current capture file</string>
+ <string>Close this capture file</string>
</property>
<property name="shortcut">
<string>Ctrl+W</string>
@@ -816,15 +803,11 @@
</property>
</action>
<action name="actionFileSave">
- <property name="icon">
- <iconset resource="../../image/toolbar.qrc">
- <normaloff>:/toolbar/main/toolbar/toolbar_wireshark_file_24.png</normaloff>:/toolbar/main/toolbar/toolbar_wireshark_file_24.png</iconset>
- </property>
<property name="text">
<string>&amp;Save</string>
</property>
<property name="toolTip">
- <string>Save the current file</string>
+ <string>Save this capture file</string>
</property>
<property name="shortcut">
<string>Ctrl+S</string>
@@ -832,7 +815,7 @@
</action>
<action name="actionFileSaveAs">
<property name="icon">
- <iconset resource="../../image/toolbar.qrc">
+ <iconset>
<normaloff>:/toolbar/main/toolbar/toolbar_wireshark_file_24.png</normaloff>:/toolbar/main/toolbar/toolbar_wireshark_file_24.png</iconset>
</property>
<property name="text">
@@ -894,7 +877,7 @@
<string>&amp;Reload</string>
</property>
<property name="toolTip">
- <string>Reload the current file</string>
+ <string>Reload this file</string>
</property>
<property name="shortcut">
<string>Ctrl+R</string>