2 * Copyright (c) 2016 Jon Turney
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * A copy of the GNU General Public License can be found at
14 #ifndef SETUP_ACTIONLIST_H
15 #define SETUP_ACTIONLIST_H
21 // ---------------------------------------------------------------------------
22 // interface to class ActionList
24 // a list of Actions possible on a package
25 // ---------------------------------------------------------------------------
30 Action(const std::wstring
&_name
, int _id
, bool _selected
, bool _enabled
) :
43 typedef std::vector
<Action
> Actions
;
48 void add(const std::wstring
&name
, int id
, bool selected
, bool enabled
)
50 Action
act(name
, id
, selected
, enabled
);
53 void add(unsigned int name_res
, int id
, bool selected
, bool enabled
)
55 const std::wstring name
= LoadStringW(name_res
);
56 add(name
, id
, selected
, enabled
);
61 #endif /* SETUP_ACTIONLIST_H */