1 Star 0 Fork 0

SachieW/netanim

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
packetsmode.h 3.00 KB
一键复制 编辑 原始数据 按行查看 历史
John Abraham 提交于 2017-03-10 13:27 . Support for Ipv6 part 3
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Author: John Abraham <[email protected]>
*/
#ifndef PACKETSMODE_H
#define PACKETSMODE_H
#include "common.h"
#include "mode.h"
#include "table.h"
namespace netanim {
class PacketsMode: public Mode
{
Q_OBJECT
public:
static PacketsMode * getInstance ();
QWidget * getCentralWidget ();
QString getTabName ();
void setFocus (bool focus);
void setFromTime (qreal fromTime);
void setToTime (qreal toTime);
void setAllowedNodes (QString allowedNodesString);
void showPopup (QString msg);
Table * getTable ();
private:
PacketsMode ();
QWidget * m_centralWidget;
QVBoxLayout * m_vLayout;
QToolBar * m_mainToolBar;
QToolBar * m_filterToolBar;
QToolButton * m_testButton;
QToolButton * m_showGridLinesButton;
QLineEdit * m_fromTimeEdit;
QLineEdit * m_toTimeEdit;
QLineEdit * m_allowedNodesEdit;
QSplitter * m_mainSplitter;
QLabel * m_fromTimeLabel;
QLabel * m_toTimeLabel;
QLabel * m_allowedNodesLabel;
QToolButton * m_zoomInButton;
QToolButton * m_zoomOutButton;
QToolButton * m_showPacketsTableButton;
QCheckBox * m_wifiFilterCb;
QCheckBox * m_pppFilterCb;
QCheckBox * m_ethernetFilterCb;
QCheckBox * m_arpFilterCb;
QCheckBox * m_tcpFilterCb;
QCheckBox * m_udpFilterCb;
QCheckBox * m_aodvFilterCb;
QCheckBox * m_olsrFilterCb;
QCheckBox * m_ipv4FilterCb;
QCheckBox * m_ipv6FilterCb;
QCheckBox * m_icmpFilterCb;
QLineEdit * m_regexFilterEdit;
QLabel * m_regexFilterLabel;
QPushButton * m_submitButton;
QPushButton * m_showGraphButton;
Table * m_packetsTable;
qreal m_fromTime;
qreal m_toTime;
QVector <uint32_t> m_allowedNodes;
bool m_showGrid;
QVector <uint32_t> stringToNodeVector (QString nodeString);
QString nodeVectorToString (QVector <uint32_t> nodeVector);
private slots:
void testSlot ();
void zoomInSlot ();
void zoomOutSlot ();
void fromTimeChangedSlot (QString fromTimeText);
void toTimeChangedSlot (QString toTimeText);
void allowedNodesChangedSlot (QString allowedNodes);
void regexFilterSlot (QString reg);
void showGridLinesSlot ();
void showPacketTableSlot ();
void filterClickedSlot ();
void submitFilterClickedSlot ();
void showGraphClickedSlot ();
};
}
#endif // PACKETSMODE_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangzewenxi/netanim.git
[email protected]:wangzewenxi/netanim.git
wangzewenxi
netanim
netanim
master

搜索帮助