17#ifndef __gui_mrview_colourmap_button_h__
18#define __gui_mrview_colourmap_button_h__
50 bool use_shortcuts =
false,
51 bool use_special_colourmaps =
true,
52 bool use_customise_state_items =
true);
53 void set_colourmap_index(
size_t index);
54 void set_scale_inverted(
bool yesno);
55 void set_fixed_colour();
57 void open_menu (
const QPoint& p) { colourmap_menu->exec (p); }
59 void init_menu(
bool create_shortcuts,
bool use_special,
bool customise_state);
60 void init_core_menu_items(
bool create_shortcuts);
61 void init_custom_colour_menu_items();
62 void init_special_colour_menu_items(
bool create_shortcuts);
63 void init_customise_state_menu_items();
69 QActionGroup *core_colourmaps_actions;
71 QMenu* colourmap_menu;
72 QAction* custom_colour_action;
73 QAction* invert_scale_action;
75 size_t fixed_colour_index;
79 void select_colourmap_slot(QAction* action);
80 void select_colour_slot();
81 void select_random_colour_slot();
82 void show_colour_bar_slot(
bool visible);
83 void invert_colourmap_slot(
bool inverted);
84 void reset_intensity_slot();