~ubuntu-branches/ubuntu/raring/notecase/raring

« back to all changes in this revision

Viewing changes to src/PortableTrayIcon.h

  • Committer: Bazaar Package Importer
  • Author(s): Nathan Handler
  • Date: 2008-12-21 13:09:58 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20081221130958-0ri77h0x7j1dclkq
Tags: 1.9.8-0ubuntu1
New upstream release (LP: #307752)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
////////////////////////////////////////////////////////////////////////////
2
 
// NoteCase notes manager project <http://notecase.sf.net>
3
 
//
4
 
// This code is licensed under BSD license.See "license.txt" for more details.
5
 
//
6
 
// File: Common Win32/Linux interface of an application tray icon
7
 
////////////////////////////////////////////////////////////////////////////
8
 
 
9
 
#ifndef PORTABLETRAYICON_H__
10
 
#define PORTABLETRAYICON_H__
11
 
 
12
 
#if _MSC_VER > 1000
13
 
#pragma once
14
 
#endif // _MSC_VER > 1000
15
 
 
16
 
#ifdef _WIN32
17
 
 #include "_win/TrayIcon.h"
18
 
#else
19
 
 #include "_unx/eggtrayicon.h"
20
 
 #include <gtk/gtk.h>
21
 
#endif
22
 
 
23
 
class PortableTrayIcon
24
 
{
25
 
public:
26
 
        PortableTrayIcon();
27
 
        virtual ~PortableTrayIcon();
28
 
 
29
 
        void Show();
30
 
        void Hide();
31
 
        void SetTooltip(const char *szTip);
32
 
 
33
 
protected:
34
 
  #ifdef _WIN32
35
 
        TrayIcon m_tray;
36
 
  #else
37
 
        EggTrayIcon *m_tray_icon;
38
 
        GtkTooltips *m_tips;
39
 
  #endif
40
 
};
41
 
 
42
 
#endif // PORTABLETRAYICON_H__
 
1
////////////////////////////////////////////////////////////////////////////
 
2
// NoteCase notes manager project <http://notecase.sf.net>
 
3
//
 
4
// This code is licensed under BSD license.See "license.txt" for more details.
 
5
//
 
6
// File: Common Win32/Linux interface of an application tray icon
 
7
////////////////////////////////////////////////////////////////////////////
 
8
 
 
9
#ifndef PORTABLETRAYICON_H__
 
10
#define PORTABLETRAYICON_H__
 
11
 
 
12
#if _MSC_VER > 1000
 
13
#pragma once
 
14
#endif // _MSC_VER > 1000
 
15
 
 
16
#ifdef _WIN32
 
17
 #include "_win/TrayIcon.h"
 
18
#else
 
19
 #include "_unx/eggtrayicon.h"
 
20
 #include <gtk/gtk.h>
 
21
#endif
 
22
 
 
23
class PortableTrayIcon
 
24
{
 
25
public:
 
26
        PortableTrayIcon();
 
27
        virtual ~PortableTrayIcon();
 
28
 
 
29
        void Show();
 
30
        void Hide();
 
31
        void SetTooltip(const char *szTip);
 
32
 
 
33
protected:
 
34
  #ifdef _WIN32
 
35
        TrayIcon m_tray;
 
36
  #else
 
37
        EggTrayIcon *m_tray_icon;
 
38
        GtkTooltips *m_tips;
 
39
  #endif
 
40
};
 
41
 
 
42
#endif // PORTABLETRAYICON_H__