Diffstat (limited to 'noncore/settings/networksettings2/profile') (more/less context) (ignore whitespace changes)
3 files changed, 433 insertions, 438 deletions
diff --git a/noncore/settings/networksettings2/profile/profileGUI.ui b/noncore/settings/networksettings2/profile/profileGUI.ui index 5bf9a9c..8b421e8 100644 --- a/noncore/settings/networksettings2/profile/profileGUI.ui +++ b/noncore/settings/networksettings2/profile/profileGUI.ui @@ -13,4 +13,4 @@ <y>0</y> - <width>276</width> - <height>231</height> + <width>551</width> + <height>547</height> </rect> @@ -30,3 +30,3 @@ <name>margin</name> - <number>0</number> + <number>1</number> </property> @@ -34,3 +34,3 @@ <name>spacing</name> - <number>0</number> + <number>3</number> </property> @@ -950,62 +950,14 @@ <widget> - <class>QLayoutWidget</class> + <class>QGroupBox</class> <property stdset="1"> <name>name</name> - <cstring>Layout5</cstring> + <cstring>Receiving_GB</cstring> </property> - <hbox> - <property stdset="1"> - <name>margin</name> - <number>0</number> - </property> - <property stdset="1"> - <name>spacing</name> - <number>6</number> - </property> - <widget> - <class>QLabel</class> - <property stdset="1"> - <name>name</name> - <cstring>TextLabel1_2</cstring> - </property> - <property stdset="1"> - <name>sizePolicy</name> - <sizepolicy> - <hsizetype>0</hsizetype> - <vsizetype>1</vsizetype> - </sizepolicy> - </property> - <property stdset="1"> - <name>text</name> - <string>Receiving</string> - </property> - </widget> - <spacer> - <property> - <name>name</name> - <cstring>Spacer17_2</cstring> - </property> - <property stdset="1"> - <name>orientation</name> - <enum>Horizontal</enum> - </property> - <property stdset="1"> - <name>sizeType</name> - <enum>Expanding</enum> - </property> - <property> - <name>sizeHint</name> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - </hbox> - </widget> - <widget> - <class>QLayoutWidget</class> <property stdset="1"> - <name>name</name> - <cstring>Layout43</cstring> + <name>enabled</name> + <bool>false</bool> + </property> + <property stdset="1"> + <name>title</name> + <string>Receiving</string> </property> @@ -1017,6 +969,6 @@ </property> - <hbox> + <vbox> <property stdset="1"> <name>margin</name> - <number>2</number> + <number>4</number> </property> @@ -1024,67 +976,9 @@ <name>spacing</name> - <number>0</number> + <number>2</number> </property> <widget> - <class>QFrame</class> + <class>QLayoutWidget</class> <property stdset="1"> <name>name</name> - <cstring>Frame114</cstring> - </property> - <property stdset="1"> - <name>sizePolicy</name> - <sizepolicy> - <hsizetype>0</hsizetype> - <vsizetype>5</vsizetype> - </sizepolicy> - </property> - <property stdset="1"> - <name>minimumSize</name> - <size> - <width>5</width> - <height>0</height> - </size> - </property> - <property stdset="1"> - <name>maximumSize</name> - <size> - <width>5</width> - <height>32767</height> - </size> - </property> - <property stdset="1"> - <name>frameShape</name> - <enum>NoFrame</enum> - </property> - <property stdset="1"> - <name>frameShadow</name> - <enum>Raised</enum> - </property> - </widget> - <widget> - <class>QFrame</class> - <property stdset="1"> - <name>name</name> - <cstring>Rcv_GB</cstring> - </property> - <property stdset="1"> - <name>enabled</name> - <bool>false</bool> - </property> - <property stdset="1"> - <name>sizePolicy</name> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>5</vsizetype> - </sizepolicy> - </property> - <property stdset="1"> - <name>frameShape</name> - <enum>NoFrame</enum> - </property> - <property stdset="1"> - <name>frameShadow</name> - <enum>Raised</enum> - </property> - <property> - <name>layoutMargin</name> + <cstring>Layout11</cstring> </property> @@ -1093,3 +987,3 @@ </property> - <grid> + <hbox> <property stdset="1"> @@ -1100,5 +994,5 @@ <name>spacing</name> - <number>1</number> + <number>2</number> </property> - <widget row="1" column="0" > + <widget> <class>QLabel</class> @@ -1106,3 +1000,3 @@ <name>name</name> - <cstring>TextLabel1_5_9</cstring> + <cstring>xxxxxxxxxxxxx</cstring> </property> @@ -1110,6 +1004,43 @@ <name>text</name> - <string>Errors</string> + <string>Pkt</string> </property> </widget> - <widget row="0" column="1" rowspan="1" colspan="3" > + <widget> + <class>QLabel</class> + <property stdset="1"> + <name>name</name> + <cstring>RcvPackets_LBL</cstring> + </property> + <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>1</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> + <name>frameShape</name> + <enum>Panel</enum> + </property> + <property stdset="1"> + <name>frameShadow</name> + <enum>Sunken</enum> + </property> + <property stdset="1"> + <name>indent</name> + <number>0</number> + </property> + </widget> + <widget> + <class>QLabel</class> + <property stdset="1"> + <name>name</name> + <cstring>TextLabel1_5_3_4</cstring> + </property> + <property stdset="1"> + <name>text</name> + <string>Bytes</string> + </property> + </widget> + <widget> <class>QLabel</class> @@ -1139,3 +1070,3 @@ </widget> - <widget row="1" column="3" > + <widget> <class>QLabel</class> @@ -1143,3 +1074,14 @@ <name>name</name> - <cstring>RcvDropped_LBL</cstring> + <cstring>TextLabel1_5_3_4_2</cstring> + </property> + <property stdset="1"> + <name>text</name> + <string>ODO</string> + </property> + </widget> + <widget> + <class>QLabel</class> + <property stdset="1"> + <name>name</name> + <cstring>RcvODO_LBL</cstring> </property> @@ -1165,3 +1107,34 @@ </widget> - <widget row="1" column="1" > + </hbox> + </widget> + <widget> + <class>QLayoutWidget</class> + <property stdset="1"> + <name>name</name> + <cstring>Layout12</cstring> + </property> + <property> + <name>layoutSpacing</name> + </property> + <hbox> + <property stdset="1"> + <name>margin</name> + <number>0</number> + </property> + <property stdset="1"> + <name>spacing</name> + <number>2</number> + </property> + <widget> + <class>QLabel</class> + <property stdset="1"> + <name>name</name> + <cstring>TextLabel1_5_9</cstring> + </property> + <property stdset="1"> + <name>text</name> + <string>Errors</string> + </property> + </widget> + <widget> <class>QLabel</class> @@ -1191,3 +1164,3 @@ </widget> - <widget row="1" column="2" > + <widget> <class>QLabel</class> @@ -1202,3 +1175,3 @@ </widget> - <widget row="0" column="0" > + <widget> <class>QLabel</class> @@ -1206,74 +1179,113 @@ <name>name</name> - <cstring>TextLabel1_5_3</cstring> + <cstring>RcvDropped_LBL</cstring> </property> <property stdset="1"> - <name>text</name> - <string>Bytes</string> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>1</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> + <name>frameShape</name> + <enum>Panel</enum> + </property> + <property stdset="1"> + <name>frameShadow</name> + <enum>Sunken</enum> + </property> + <property stdset="1"> + <name>indent</name> + <number>0</number> </property> </widget> - </grid> + </hbox> </widget> - </hbox> + </vbox> </widget> <widget> - <class>QLayoutWidget</class> + <class>QFrame</class> <property stdset="1"> <name>name</name> - <cstring>Layout6</cstring> + <cstring>Frame114</cstring> + </property> + <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>5</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> + <name>minimumSize</name> + <size> + <width>5</width> + <height>0</height> + </size> + </property> + <property stdset="1"> + <name>maximumSize</name> + <size> + <width>5</width> + <height>32767</height> + </size> + </property> + <property stdset="1"> + <name>frameShape</name> + <enum>NoFrame</enum> + </property> + <property stdset="1"> + <name>frameShadow</name> + <enum>Raised</enum> </property> - <hbox> - <property stdset="1"> - <name>margin</name> - <number>0</number> - </property> - <property stdset="1"> - <name>spacing</name> - <number>6</number> - </property> - <widget> - <class>QLabel</class> - <property stdset="1"> - <name>name</name> - <cstring>TextLabel1</cstring> - </property> - <property stdset="1"> - <name>sizePolicy</name> - <sizepolicy> - <hsizetype>0</hsizetype> - <vsizetype>1</vsizetype> - </sizepolicy> - </property> - <property stdset="1"> - <name>text</name> - <string>Transmitting</string> - </property> - </widget> - <spacer> - <property> - <name>name</name> - <cstring>Spacer18_2</cstring> - </property> - <property stdset="1"> - <name>orientation</name> - <enum>Horizontal</enum> - </property> - <property stdset="1"> - <name>sizeType</name> - <enum>Expanding</enum> - </property> - <property> - <name>sizeHint</name> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - </hbox> </widget> <widget> - <class>QLayoutWidget</class> + <class>QFrame</class> <property stdset="1"> <name>name</name> - <cstring>Layout44</cstring> + <cstring>Frame115</cstring> + </property> + <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>5</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> + <name>minimumSize</name> + <size> + <width>5</width> + <height>0</height> + </size> + </property> + <property stdset="1"> + <name>maximumSize</name> + <size> + <width>5</width> + <height>32767</height> + </size> + </property> + <property stdset="1"> + <name>frameShape</name> + <enum>NoFrame</enum> + </property> + <property stdset="1"> + <name>frameShadow</name> + <enum>Plain</enum> + </property> + </widget> + <widget> + <class>QGroupBox</class> + <property stdset="1"> + <name>name</name> + <cstring>Sending_GB</cstring> + </property> + <property stdset="1"> + <name>enabled</name> + <bool>false</bool> + </property> + <property stdset="1"> + <name>title</name> + <string>Sending</string> </property> @@ -1285,6 +1297,6 @@ </property> - <hbox> + <vbox> <property stdset="1"> <name>margin</name> - <number>2</number> + <number>4</number> </property> @@ -1292,67 +1304,9 @@ <name>spacing</name> - <number>0</number> + <number>2</number> </property> <widget> - <class>QFrame</class> + <class>QLayoutWidget</class> <property stdset="1"> <name>name</name> - <cstring>Frame115</cstring> - </property> - <property stdset="1"> - <name>sizePolicy</name> - <sizepolicy> - <hsizetype>0</hsizetype> - <vsizetype>5</vsizetype> - </sizepolicy> - </property> - <property stdset="1"> - <name>minimumSize</name> - <size> - <width>5</width> - <height>0</height> - </size> - </property> - <property stdset="1"> - <name>maximumSize</name> - <size> - <width>5</width> - <height>32767</height> - </size> - </property> - <property stdset="1"> - <name>frameShape</name> - <enum>NoFrame</enum> - </property> - <property stdset="1"> - <name>frameShadow</name> - <enum>Plain</enum> - </property> - </widget> - <widget> - <class>QFrame</class> - <property stdset="1"> - <name>name</name> - <cstring>Snd_GB</cstring> - </property> - <property stdset="1"> - <name>enabled</name> - <bool>false</bool> - </property> - <property stdset="1"> - <name>sizePolicy</name> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>5</vsizetype> - </sizepolicy> - </property> - <property stdset="1"> - <name>frameShape</name> - <enum>NoFrame</enum> - </property> - <property stdset="1"> - <name>frameShadow</name> - <enum>Raised</enum> - </property> - <property> - <name>layoutMargin</name> + <cstring>Layout13</cstring> </property> @@ -1361,3 +1315,3 @@ </property> - <grid> + <hbox> <property stdset="1"> @@ -1368,5 +1322,5 @@ <name>spacing</name> - <number>1</number> + <number>2</number> </property> - <widget row="1" column="0" > + <widget> <class>QLabel</class> @@ -1374,3 +1328,3 @@ <name>name</name> - <cstring>TextLabel1_5_9_2</cstring> + <cstring>dfsfadf</cstring> </property> @@ -1378,6 +1332,6 @@ <name>text</name> - <string>Errors</string> + <string>Pkt</string> </property> </widget> - <widget row="1" column="2" > + <widget> <class>QLabel</class> @@ -1385,10 +1339,25 @@ <name>name</name> - <cstring>TextLabel1_5_4_2</cstring> + <cstring>SndPackets_LBL</cstring> </property> <property stdset="1"> - <name>text</name> - <string>Dropped</string> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>1</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> + <name>frameShape</name> + <enum>Panel</enum> + </property> + <property stdset="1"> + <name>frameShadow</name> + <enum>Sunken</enum> + </property> + <property stdset="1"> + <name>indent</name> + <number>0</number> </property> </widget> - <widget row="0" column="0" > + <widget> <class>QLabel</class> @@ -1396,3 +1365,3 @@ <name>name</name> - <cstring>TextLabel1_5_3_2</cstring> + <cstring>TextLabel1_5_3_4_4</cstring> </property> @@ -1403,3 +1372,3 @@ </widget> - <widget row="1" column="3" > + <widget> <class>QLabel</class> @@ -1407,3 +1376,40 @@ <name>name</name> - <cstring>SndDropped_LBL</cstring> + <cstring>SndBytes_LBL</cstring> + </property> + <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>1</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> + <name>frameShape</name> + <enum>Panel</enum> + </property> + <property stdset="1"> + <name>frameShadow</name> + <enum>Sunken</enum> + </property> + <property stdset="1"> + <name>indent</name> + <number>0</number> + </property> + </widget> + <widget> + <class>QLabel</class> + <property stdset="1"> + <name>name</name> + <cstring>TextLabel1_5_3_4_2_3</cstring> + </property> + <property stdset="1"> + <name>text</name> + <string>ODO</string> + </property> + </widget> + <widget> + <class>QLabel</class> + <property stdset="1"> + <name>name</name> + <cstring>SndODO_LBL</cstring> </property> @@ -1429,3 +1435,34 @@ </widget> - <widget row="1" column="1" > + </hbox> + </widget> + <widget> + <class>QLayoutWidget</class> + <property stdset="1"> + <name>name</name> + <cstring>Layout14</cstring> + </property> + <property> + <name>layoutSpacing</name> + </property> + <hbox> + <property stdset="1"> + <name>margin</name> + <number>0</number> + </property> + <property stdset="1"> + <name>spacing</name> + <number>2</number> + </property> + <widget> + <class>QLabel</class> + <property stdset="1"> + <name>name</name> + <cstring>TextLabel1_5_9_3</cstring> + </property> + <property stdset="1"> + <name>text</name> + <string>Errors</string> + </property> + </widget> + <widget> <class>QLabel</class> @@ -1455,3 +1492,3 @@ </widget> - <widget row="0" column="1" rowspan="1" colspan="3" > + <widget> <class>QLabel</class> @@ -1459,3 +1496,14 @@ <name>name</name> - <cstring>SndBytes_LBL</cstring> + <cstring>TextLabel1_5_4_3</cstring> + </property> + <property stdset="1"> + <name>text</name> + <string>Dropped</string> + </property> + </widget> + <widget> + <class>QLabel</class> + <property stdset="1"> + <name>name</name> + <cstring>SndDropped_LBL</cstring> </property> @@ -1481,11 +1529,25 @@ </widget> - </grid> + </hbox> </widget> - </hbox> + </vbox> </widget> <widget> - <class>QLayoutWidget</class> + <class>QGroupBox</class> <property stdset="1"> <name>name</name> - <cstring>Layout7</cstring> + <cstring>Misc_GB</cstring> + </property> + <property stdset="1"> + <name>enabled</name> + <bool>false</bool> + </property> + <property stdset="1"> + <name>title</name> + <string>Miscellaneous</string> + </property> + <property> + <name>layoutMargin</name> + </property> + <property> + <name>layoutSpacing</name> </property> @@ -1494,3 +1556,3 @@ <name>margin</name> - <number>0</number> + <number>4</number> </property> @@ -1498,3 +1560,3 @@ <name>spacing</name> - <number>6</number> + <number>2</number> </property> @@ -1504,3 +1566,14 @@ <name>name</name> - <cstring>TextLabel1_3</cstring> + <cstring>TextLabel1_5_3_3</cstring> + </property> + <property stdset="1"> + <name>text</name> + <string>Collisions</string> + </property> + </widget> + <widget> + <class>QLabel</class> + <property stdset="1"> + <name>name</name> + <cstring>Collisions_LBL</cstring> </property> @@ -1509,3 +1582,3 @@ <sizepolicy> - <hsizetype>0</hsizetype> + <hsizetype>7</hsizetype> <vsizetype>1</vsizetype> @@ -1514,4 +1587,12 @@ <property stdset="1"> - <name>text</name> - <string>Others</string> + <name>frameShape</name> + <enum>Panel</enum> + </property> + <property stdset="1"> + <name>frameShadow</name> + <enum>Sunken</enum> + </property> + <property stdset="1"> + <name>indent</name> + <number>0</number> </property> @@ -1521,3 +1602,3 @@ <name>name</name> - <cstring>Spacer19</cstring> + <cstring>Spacer10</cstring> </property> @@ -1539,161 +1620,23 @@ </spacer> - </hbox> - </widget> - <widget> - <class>QLayoutWidget</class> - <property stdset="1"> - <name>name</name> - <cstring>Layout45</cstring> - </property> - <property> - <name>layoutMargin</name> - </property> - <property> - <name>layoutSpacing</name> - </property> - <hbox> - <property stdset="1"> - <name>margin</name> - <number>2</number> - </property> - <property stdset="1"> - <name>spacing</name> - <number>0</number> - </property> - <widget> - <class>QFrame</class> - <property stdset="1"> + <spacer> + <property> <name>name</name> - <cstring>Frame116</cstring> + <cstring>Spacer13</cstring> </property> <property stdset="1"> - <name>sizePolicy</name> - <sizepolicy> - <hsizetype>0</hsizetype> - <vsizetype>5</vsizetype> - </sizepolicy> + <name>orientation</name> + <enum>Horizontal</enum> </property> <property stdset="1"> - <name>minimumSize</name> - <size> - <width>5</width> - <height>0</height> - </size> + <name>sizeType</name> + <enum>Expanding</enum> </property> - <property stdset="1"> - <name>maximumSize</name> + <property> + <name>sizeHint</name> <size> - <width>5</width> - <height>32767</height> + <width>20</width> + <height>20</height> </size> </property> - <property stdset="1"> - <name>frameShape</name> - <enum>NoFrame</enum> - </property> - <property stdset="1"> - <name>frameShadow</name> - <enum>Raised</enum> - </property> - </widget> - <widget> - <class>QFrame</class> - <property stdset="1"> - <name>name</name> - <cstring>Collisions_FRM</cstring> - </property> - <property stdset="1"> - <name>enabled</name> - <bool>false</bool> - </property> - <property stdset="1"> - <name>sizePolicy</name> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>5</vsizetype> - </sizepolicy> - </property> - <property stdset="1"> - <name>frameShape</name> - <enum>NoFrame</enum> - </property> - <property stdset="1"> - <name>frameShadow</name> - <enum>Raised</enum> - </property> - <property> - <name>layoutMargin</name> - </property> - <property> - <name>layoutSpacing</name> - </property> - <hbox> - <property stdset="1"> - <name>margin</name> - <number>0</number> - </property> - <property stdset="1"> - <name>spacing</name> - <number>2</number> - </property> - <widget> - <class>QLabel</class> - <property stdset="1"> - <name>name</name> - <cstring>TextLabel1_5_3_3</cstring> - </property> - <property stdset="1"> - <name>text</name> - <string>Collisions</string> - </property> - </widget> - <widget> - <class>QLabel</class> - <property stdset="1"> - <name>name</name> - <cstring>Collisions_LBL</cstring> - </property> - <property stdset="1"> - <name>sizePolicy</name> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>1</vsizetype> - </sizepolicy> - </property> - <property stdset="1"> - <name>frameShape</name> - <enum>Panel</enum> - </property> - <property stdset="1"> - <name>frameShadow</name> - <enum>Sunken</enum> - </property> - <property stdset="1"> - <name>indent</name> - <number>0</number> - </property> - </widget> - <spacer> - <property> - <name>name</name> - <cstring>Spacer18</cstring> - </property> - <property stdset="1"> - <name>orientation</name> - <enum>Horizontal</enum> - </property> - <property stdset="1"> - <name>sizeType</name> - <enum>Expanding</enum> - </property> - <property> - <name>sizeHint</name> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - </hbox> - </widget> + </spacer> </hbox> @@ -1725,3 +1668,3 @@ <name>name</name> - <cstring>Layout17</cstring> + <cstring>Layout10</cstring> </property> @@ -1743,2 +1686,6 @@ <property stdset="1"> + <name>enabled</name> + <bool>false</bool> + </property> + <property stdset="1"> <name>text</name> @@ -1768,2 +1715,17 @@ </spacer> + <widget> + <class>QPushButton</class> + <property stdset="1"> + <name>name</name> + <cstring>ResetODO_But</cstring> + </property> + <property stdset="1"> + <name>enabled</name> + <bool>false</bool> + </property> + <property stdset="1"> + <name>text</name> + <string>Reset ODO</string> + </property> + </widget> </hbox> @@ -1782,3 +1744,10 @@ </connection> + <connection> + <sender>ResetODO_But</sender> + <signal>clicked()</signal> + <receiver>Profile_FRM</receiver> + <slot>SLOT_ResetODO()</slot> + </connection> <slot access="public">SLOT_AutoRefresh(bool)</slot> + <slot access="public">SLOT_ResetODO()</slot> </connections> diff --git a/noncore/settings/networksettings2/profile/profileedit.cpp b/noncore/settings/networksettings2/profile/profileedit.cpp index ad943fe..1713f0c 100644 --- a/noncore/settings/networksettings2/profile/profileedit.cpp +++ b/noncore/settings/networksettings2/profile/profileedit.cpp @@ -1,2 +1,4 @@ #include <qlabel.h> +#include <qgroupbox.h> +#include <qpushbutton.h> #include <qframe.h> @@ -25,5 +27,6 @@ ProfileEdit::ProfileEdit( QWidget * Parent, ANetNodeInstance * TNNI ) : Refresh_CB->setEnabled( TRUE ); - Snd_GB->setEnabled( TRUE ); - Rcv_GB->setEnabled( TRUE ); - Collisions_FRM->setEnabled( TRUE ); + ResetODO_But->setEnabled( TRUE ); + Sending_GB->setEnabled( TRUE ); + Receiving_GB->setEnabled( TRUE ); + Misc_GB->setEnabled( TRUE ); @@ -32,2 +35,5 @@ ProfileEdit::ProfileEdit( QWidget * Parent, ANetNodeInstance * TNNI ) : + // initialize ODO + SLOT_ResetODO(); + // fill in static data @@ -84,9 +90,19 @@ void ProfileEdit::SLOT_Refresh( void ) { InterfaceInfo * II = NNI->networkSetup()->assignedInterface(); + QString S; NSResources->system().refreshStatistics( *II ); + RcvBytes_LBL->setText( II->RcvBytes ); - SndBytes_LBL->setText( II->SndBytes ); + RcvPackets_LBL->setText( II->RcvPackets ); RcvErrors_LBL->setText( II->RcvErrors ); - SndErrors_LBL->setText( II->SndErrors ); RcvDropped_LBL->setText( II->RcvDropped ); + S.setNum( II->RcvBytes.toLong() - RcvODO ); + RcvODO_LBL->setText( S ); + + SndBytes_LBL->setText( II->SndBytes ); + SndPackets_LBL->setText( II->SndPackets ); + SndErrors_LBL->setText( II->SndErrors ); SndDropped_LBL->setText( II->SndDropped ); + S.setNum( II->SndBytes.toLong() - SndODO ); + SndODO_LBL->setText( S ); + Collisions_LBL->setText( II->Collisions ); @@ -102 +118,8 @@ void ProfileEdit::SLOT_AutoRefresh( bool ar ) { } + +void ProfileEdit::SLOT_ResetODO( void ) { + InterfaceInfo * II = NNI->networkSetup()->assignedInterface(); + RcvODO = II->RcvBytes.toLong(); + SndODO = II->SndBytes.toLong(); + SLOT_Refresh(); +} diff --git a/noncore/settings/networksettings2/profile/profileedit.h b/noncore/settings/networksettings2/profile/profileedit.h index 9cde845..56bd15d 100644 --- a/noncore/settings/networksettings2/profile/profileedit.h +++ b/noncore/settings/networksettings2/profile/profileedit.h @@ -22,2 +22,3 @@ public slots : void SLOT_Refresh( void ); + void SLOT_ResetODO( void ); @@ -28,2 +29,4 @@ private : RuntimeInfo * Dev; + long RcvODO; + long SndODO; }; |