~ubuntu-branches/ubuntu/maverick/knemo/maverick

« back to all changes in this revision

Viewing changes to src/knemod/interfaceplotterdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2010-01-06 17:16:51 UTC
  • mfrom: (1.1.9 upstream) (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100106171651-ff58ryfnav4l1zbm
Tags: 0.6.0-1
* New upstream release 
  - Fixes "FTBFS: sysbackend.cpp:362: error: 'KILO' was not declared in
  this scope" (Closes: #560496)
  - Fixes "context menu does not appear" (Closes: #504791)
* Add Build-Depends: libnl-dev - Linux netlink sockets library

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <KDialog>
25
25
#include <KSharedConfig>
26
26
 
27
 
#include "global.h"
 
27
#include "plotterconfigdialog.h"
28
28
 
29
29
class FancyPlotterLabel;
30
30
class KSignalPlotter;
34
34
{
35
35
Q_OBJECT
36
36
public:
37
 
    InterfacePlotterDialog( const PlotterSettings &, QString );
 
37
    InterfacePlotterDialog( QString );
38
38
    virtual ~InterfacePlotterDialog();
39
39
 
40
40
    /**
41
 
     * Configure the signal plotter with user settings
42
 
     */
43
 
    void configChanged();
44
 
 
45
 
    /**
46
41
     * Update the signal plotter with new data
47
42
     */
48
43
    void updatePlotter( const double, const double );
50
45
protected:
51
46
    bool event( QEvent *e );
52
47
 
 
48
private slots:
 
49
    void configFinished();
 
50
    void saveConfig();
53
51
 
54
52
private:
55
 
    enum VisibleBeams
56
 
    {
57
 
        NONE = 0,
58
 
        INCOMING_TRAFFIC = 1,
59
 
        OUTGOING_TRAFFIC = 2,
60
 
        BOTH = 3
61
 
    };
 
53
    void showContextMenu( const QPoint& );
 
54
    void loadConfig();
 
55
    void configChanged();
 
56
    void configPlotter();
62
57
 
63
58
    KSharedConfigPtr mConfig;
 
59
    PlotterConfigDialog *mConfigDlg;
64
60
    bool mSetPos;
65
61
    bool mWasShown;
66
 
    const PlotterSettings& mPlotterSettings;
 
62
    PlotterSettings mSettings;
67
63
    QString mName;
68
 
    int mOutgoingPos;
69
 
    int mIncomingPos;
70
64
    KSignalPlotter *mPlotter;
71
 
    VisibleBeams mVisibleBeams;
72
65
    FancyPlotterLabel *mReceivedLabel;
73
66
    FancyPlotterLabel *mSentLabel;
74
67
    QBoxLayout *mLabelLayout;