Modernized code in guisan objects, improved GUI layout
This commit is contained in:
parent
ed31f6849d
commit
ecb56ef5be
94 changed files with 7326 additions and 7347 deletions
|
@ -64,42 +64,41 @@
|
|||
|
||||
namespace gcn
|
||||
{
|
||||
class Widget;
|
||||
class Widget;
|
||||
|
||||
/**
|
||||
* Represents an action event.
|
||||
*
|
||||
* @author Olof Naessén
|
||||
* @since 0.6.0
|
||||
*/
|
||||
class GCN_CORE_DECLSPEC ActionEvent: public Event
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Represents an action event.
|
||||
*
|
||||
* @author Olof Naessén
|
||||
* @since 0.6.0
|
||||
*/
|
||||
class GCN_CORE_DECLSPEC ActionEvent : public Event
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param source the source widget of the event.
|
||||
* @param id the identifier of the event.
|
||||
*/
|
||||
ActionEvent(Widget* source, const std::string& id);
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param source the source widget of the event.
|
||||
* @param id the identifier of the event.
|
||||
*/
|
||||
ActionEvent(Widget* source, std::string id);
|
||||
|
||||
/**
|
||||
* Destructor.
|
||||
*/
|
||||
virtual ~ActionEvent();
|
||||
/**
|
||||
* Destructor.
|
||||
*/
|
||||
virtual ~ActionEvent();
|
||||
|
||||
/**
|
||||
* Gets the id of the event.
|
||||
*
|
||||
* @return the id of the event.
|
||||
*/
|
||||
const std::string& getId() const;
|
||||
/**
|
||||
* Gets the id of the event.
|
||||
*
|
||||
* @return the id of the event.
|
||||
*/
|
||||
[[nodiscard]] const std::string& getId() const;
|
||||
|
||||
protected:
|
||||
std::string mId;
|
||||
};
|
||||
protected:
|
||||
std::string mId;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // GCN_ACTIONEVENT_HPP
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue