File: FavoritesMenu.h

package info (click to toggle)
fldiff 1.1-1.1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 536 kB
  • ctags: 224
  • sloc: cpp: 2,977; makefile: 124
file content (45 lines) | stat: -rw-r--r-- 1,208 bytes parent folder | download | duplicates (7)
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
//
// "$Id: FavoritesMenu.h 386 2006-03-04 14:15:27Z mike $"
//
// FavoritesMenu widget header.
//
// Copyright 2005 by Michael Sweet.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License v2 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.
//

#ifndef _FavoritesMenu_h_
#  define _FavoritesMenu_h_
#  include <FL/Fl.H>
#  include <FL/Fl_Menu_Button.H>
#  include <FL/Fl_Preferences.H>


class FavoritesMenu : public Fl_Menu_Button
{
  void		load_menu();

  public:

		FavoritesMenu(int X, int Y, int W, int H, const char *L = (const char *)0)
		    : Fl_Menu_Button(X, Y, W, H, L) {}

  void		add_favorite(const char *d);
  int		handle(int event);
  static void	quote(char *dst, const char *src, int dstsize);
  static void	unquote(char *dst, const char *src, int dstsize);
};


#endif // !_FavoritesMenu_h_

//
// End of "$Id: FavoritesMenu.h 386 2006-03-04 14:15:27Z mike $".
//