[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/network/ksniffer
From: Giovanni Venturi <gventuri73 () tiscali ! it>
Date: 2010-10-07 11:54:18
Message-ID: 20101007115418.D7D6FAC892 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1183413 by gianni:
added some tooltip and some status bar to fix yet
M +12 -2 mainwindow.cpp
--- trunk/playground/network/ksniffer/mainwindow.cpp #1183412:1183413
@@ -28,6 +28,7 @@
#include <KLocale>
#include <KActionCollection>
#include <KStandardAction>
+#include <KStatusBar>
#include <KFileDialog>
#include <KMessageBox>
#include <KIO/NetAccess>
@@ -70,15 +71,17 @@
{
// the action New Capture
m_actNew = KStandardAction::openNew( this, SLOT(slotNewCapture()), \
actionCollection() );
- m_actNew->setText(i18n("New Capture..."));
+ m_actNew->setText(i18n("New..."));
m_actNew->setIcon(KIcon("document-new"));
m_actNew->setShortcut(Qt::CTRL + Qt::Key_N);
m_actNew->setWhatsThis( i18n( "<b>New Capture</b><br>Start a new packet-capture \
session." ) ); + m_actNew->setToolTip( i18n( "start a new packet-capture session" ) \
); actionCollection()->addAction("capt_new", m_actNew);
// the action Open Captured-Packet File
m_actOpen = KStandardAction::open( this, SLOT(slotOpen()), actionCollection() );
m_actOpen->setWhatsThis( i18n("<b>Open</b><br>Open a previous packet-capture \
session file.") ); + m_actOpen->setToolTip( i18n( "open a previous packet-capture \
session file" ) ); actionCollection()->addAction("capt_open", m_actOpen);
// the action Open Recent Captured-Packet File
@@ -87,20 +90,23 @@
// the action Save Captured-Packet File
m_actSave = KStandardAction::save( this, SLOT(slotSave()), actionCollection() );
m_actSave->setWhatsThis( i18n( "<b>Save</b><br>Save the current packet-capture \
session." ) ); + m_actSave->setToolTip( i18n( "save the current packet-capture \
session" ) ); m_actSave->setEnabled( false );
actionCollection()->addAction("capt_save", m_actSave);
// the action Save Captured-Packet File As
m_actSaveAs = KStandardAction::saveAs( this, SLOT(slotSaveAs()), \
actionCollection() ); m_actSaveAs->setWhatsThis( i18n( "<b>Save As...</b><br>Save \
into a file the current packet-capture session." ) ); + m_actSaveAs->setToolTip( \
i18n( "save the current packet-capture session as" ) ); m_actSaveAs->setEnabled( \
false ); actionCollection()->addAction("capt_save_as", m_actSaveAs);
// the action Pause/Continue Capture
m_actPauseContinue = new KAction(this);
- m_actPauseContinue->setText(i18n("&Pause Capture"));
+ m_actPauseContinue->setText(i18n("&Pause"));
m_actPauseContinue->setIcon(KIcon("media-playback-pause"));
m_actPauseContinue->setShortcut(Qt::CTRL + Qt::Key_P);
+ m_actPauseContinue->setToolTip( i18n( "pause the current packet-capture session" ) \
);
m_whatsthisPause = i18n("<b>Pause Capture</b><br>Pause the packet-capture. With "\
"this command you will not capture any packet till you don't decide to \
continue to capture them "\ @@ -116,6 +122,7 @@
m_actStop->setIcon(KIcon("media-playback-stop"));
m_actStop->setShortcut(Qt::CTRL + Qt::Key_End);
m_actStop->setWhatsThis( i18n("<b>Stop</b><br>Stop the packet-capture session.") \
); + m_actStop->setToolTip( i18n( "stop the current packet-capture session" ) );
m_actStop->setEnabled( false );
actionCollection()->addAction("capt_stop", m_actStop);
connect(m_actStop, SIGNAL(triggered(bool)), this, SLOT(slotStop()));
@@ -132,9 +139,11 @@
KAction *m_actQuit = KStandardAction::quit( this, SLOT(slotQuit()), \
actionCollection() ); m_actQuit->setWhatsThis( i18n("<b>Quit</b><br>Stop the \
packet-capture session and quit from KSniffer.") ); + m_actQuit->setToolTip( i18n( \
"stop the current packet-capture and quit" ) ); m_actQuit->setText( i18n("Quit") );
actionCollection()->addAction("capt_quit", m_actQuit);
+ statusBar()->showMessage( i18n("Ready.") );
/*
KStandardAction::keyBindings(this, SLOT(optionsConfigureKeys()), \
actionCollection()); KStandardAction::configureToolbars(this, \
SLOT(optionsConfigureToolbars()), actionCollection()); @@ -192,6 +201,7 @@
void MainWindow::slotNewCapture()
{
+ statusBar()->showMessage( i18n("New Capture: select the network interface to start \
sniffing packets.") ); CaptureDialog cd(m_tray);
cd.exec();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic