File: main.h

package info (click to toggle)
kaquarium 1.0-beta-6.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,944 kB
  • ctags: 313
  • sloc: sh: 17,170; perl: 2,724; cpp: 1,340; makefile: 116
file content (60 lines) | stat: -rw-r--r-- 1,154 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef    __kfish_h__
#define    __kfish_h__

#include <qstring.h>

#include <kpanelapplet.h>
class QTimer;
class QCanvas;
class KAboutData;
class kfishCanvasView;
class kfishManager;
class kfishBubbleManager;
class configDlg;
class kfish;

extern kfish *kfishApp;
 
class kfish : public KPanelApplet
{
  Q_OBJECT

public:
    kfish(const QString& configFile, Type t = Stretch, int actions = 0, QWidget *parent = 0, const char *name = 0 );

    ~kfish(void);

    // Methods reimplemented from KPanelApplet
  
    int widthForHeight( int height ) const;
    int heightForWidth( int width ) const;
    void orientationChange(Orientation orient);

    void about(void);
    void preferences(void);
    
    QCanvas *getCanvas() const { return m_canvas; };
  
signals:
    void signalSettingsChanged();
  
protected slots:
    void slotSettingsChanged();
  
    void slotAbout();
    void slotPreferences();

    void slotConfigDlgDestroy();

private:
    int m_oldwidth;

    kfishCanvasView    *m_canvasview;
    kfishManager       *m_fish;
    kfishBubbleManager *m_bubble;
    QCanvas            *m_canvas;
    configDlg          *confDlg;

};

#endif