~ubuntu-branches/ubuntu/wily/flrig/wily

« back to all changes in this revision

Viewing changes to .pc/0001-License-Declaration.patch/src/include/icons.h

  • Committer: Package Import Robot
  • Author(s): Kamal Mostafa
  • Date: 2014-06-07 11:28:52 UTC
  • Revision ID: package-import@ubuntu.com-20140607112852-pj9xhtlvwpgqjy5x
Tags: 1.3.15-1
* Initial release (Closes: #750861)
  flrig version 1.3.15 plus the following upstream commits:
  - 0001-License-Declaration.patch
  - 0002-FL_APPS-folder.patch
  - 0003-rig-home-dir.patch
  - 0004-RTS-DTR-restore.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef ICONS_H_
 
2
#define ICONS_H_
 
3
 
 
4
#define USE_IMAGE_LABELS 1
 
5
 
 
6
#include <FL/Fl_Widget.H>
 
7
#include <FL/Fl_Menu_Item.H>
 
8
#include <FL/fl_ask.H>
 
9
#include "pixmaps.h"
 
10
 
 
11
const char* make_icon_label(const char* text, const char** pixmap = 0);
 
12
 
 
13
void set_icon_label(Fl_Menu_Item* item);
 
14
void set_icon_label(Fl_Widget* w);
 
15
 
 
16
void toggle_icon_labels(void);
 
17
 
 
18
const char* get_icon_label_text(Fl_Menu_Item* item);
 
19
const char* get_icon_label_text(Fl_Widget* w);
 
20
 
 
21
void free_icon_label(Fl_Menu_Item* item);
 
22
void free_icon_label(Fl_Widget* w);
 
23
 
 
24
void set_active(Fl_Menu_Item* item, bool v);
 
25
void set_active(Fl_Widget* w, bool v);
 
26
 
 
27
// fltk message dialogs with nicer icons
 
28
void set_message_icon(const char** pixmap);
 
29
#define fl_input2(...) ({ set_message_icon(dialog_question_48_icon); fl_input(__VA_ARGS__); })
 
30
#define fl_choice2(...) ({ set_message_icon(dialog_question_48_icon); fl_choice(__VA_ARGS__); })
 
31
#define fl_message2(...) ({ set_message_icon(dialog_information_48_icon); fl_message(__VA_ARGS__); })
 
32
#define fl_alert2(...) ({ set_message_icon(dialog_warning_48_icon); fl_alert(__VA_ARGS__); })
 
33
#define fl_warn_choice2(...) ({ set_message_icon(dialog_warning_48_icon); fl_choice(__VA_ARGS__); })
 
34
 
 
35
#endif // ICONS_H_