GUI refactoring
- Removed custom UAE classes, now using only updated standard Guisan components - Updated all Guisan widgets according to current C++ standards (modernized code) - Fixed a few minor GUI bugs - Improved visibility of disabled GUI objects (e.g. sliders, checkboxes, dropdowns)
This commit is contained in:
parent
077b2498c4
commit
a6c7862a26
70 changed files with 8512 additions and 8987 deletions
56
external/libguisan/include/guisan/listmodel.hpp
vendored
56
external/libguisan/include/guisan/listmodel.hpp
vendored
|
@ -63,36 +63,36 @@
|
|||
|
||||
namespace gcn
|
||||
{
|
||||
/**
|
||||
* Represents a list. It is used in certain Widgets, like the ListBox, to
|
||||
* handle a list with string elements. If you want to use Widgets like
|
||||
* ListBox, you should inherit from this class and implement it's
|
||||
* functions.
|
||||
*/
|
||||
class GCN_CORE_DECLSPEC ListModel
|
||||
{
|
||||
/**
|
||||
* Represents a list. It is used in certain Widgets, like the ListBox, to
|
||||
* handle a list with string elements. If you want to use Widgets like
|
||||
* ListBox, you should inherit from this class and implement it's
|
||||
* functions.
|
||||
*/
|
||||
class GCN_CORE_DECLSPEC ListModel
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Destructor.
|
||||
*/
|
||||
virtual ~ListModel()
|
||||
= default;
|
||||
|
||||
public:
|
||||
/**
|
||||
* Destructor.
|
||||
*/
|
||||
virtual ~ListModel() { }
|
||||
/**
|
||||
* Gets the number of elements in the ListModel.
|
||||
*
|
||||
* @return the number of elements in the ListModel
|
||||
*/
|
||||
virtual int getNumberOfElements() = 0;
|
||||
|
||||
/**
|
||||
* Gets the number of elements in the ListModel.
|
||||
*
|
||||
* @return the number of elements in the ListModel
|
||||
*/
|
||||
virtual int getNumberOfElements() = 0;
|
||||
|
||||
/**
|
||||
* Gets an element at a certain index in the list.
|
||||
*
|
||||
* @param i an index in the list.
|
||||
* @return an element as a string.
|
||||
*/
|
||||
virtual std::string getElementAt(int i) = 0;
|
||||
};
|
||||
/**
|
||||
* Gets an element at a certain index in the list.
|
||||
*
|
||||
* @param i an index in the list.
|
||||
* @return an element as a string.
|
||||
*/
|
||||
virtual std::string getElementAt(int i) = 0;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // end GCN_LISTMODEL_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue