1// Aseprite
2// Copyright (C) 2018 Igara Studio S.A.
3//
4// This program is distributed under the terms of
5// the End-User License Agreement for Aseprite.
6
7#ifndef APP_UI_SELECTION_MODE_FIELD_H_INCLUDED
8#define APP_UI_SELECTION_MODE_FIELD_H_INCLUDED
9#pragma once
10
11#include "app/pref/preferences.h"
12#include "app/ui/button_set.h"
13
14#include <vector>
15
16namespace ui {
17 class TooltipManager;
18}
19
20namespace app {
21
22class SelectionModeField : public ButtonSet {
23public:
24 SelectionModeField();
25
26 void setupTooltips(ui::TooltipManager* tooltipManager);
27
28 gen::SelectionMode selectionMode();
29 void setSelectionMode(gen::SelectionMode mode);
30
31protected:
32 void onItemChange(Item* item) override;
33
34 virtual void onSelectionModeChange(gen::SelectionMode mode) { }
35};
36
37} // namespace app
38
39#endif
40