mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
* Revert "[github/workflows] Update Metrics to remove NumWorksBot" This reverts commit110f333122. * Added a color menu in graph and list * Fixed color select display issue and build issue * Changed color_cell to a circle * Revert "Changed color_cell to a circle" This reverts commit28dddb42af. * Color_cell with mask * Fixed build issue * Color selection : Added right handle and color name display in menu * Fixed constexpr static colorMask * Changed font in color_parameter_controller * Fix building without debug * Re-Fix building without debug * Update colors Co-authored-by: Hugo Saint-Vignes <hugo.saint-vignes@numworks.com> Co-authored-by: Joachim LF <joachimlf@pm.me>
40 lines
1.6 KiB
C++
40 lines
1.6 KiB
C++
#ifndef SEQUENCE_LIST_PARAM_CONTROLLER_H
|
|
#define SEQUENCE_LIST_PARAM_CONTROLLER_H
|
|
|
|
#include "../../shared/list_parameter_controller.h"
|
|
#include "../../shared/parameter_text_field_delegate.h"
|
|
#include "../../shared/sequence.h"
|
|
#include "../../shared/sequence_store.h"
|
|
#include "type_parameter_controller.h"
|
|
|
|
namespace Sequence {
|
|
|
|
class ListController;
|
|
|
|
class ListParameterController : public Shared::ListParameterController, public SelectableTableViewDelegate, public Shared::ParameterTextFieldDelegate {
|
|
public:
|
|
ListParameterController(::InputEventHandlerDelegate * inputEventHandlerDelegate, ListController * list);
|
|
const char * title() override;
|
|
bool handleEvent(Ion::Events::Event event) override;
|
|
|
|
bool textFieldShouldFinishEditing(TextField * textField, Ion::Events::Event event) override;
|
|
bool textFieldDidFinishEditing(TextField * textField, const char * text, Ion::Events::Event event) override;
|
|
void tableViewDidChangeSelectionAndDidScroll(SelectableTableView * t, int previousSelectedCellX, int previousSelectedCellY, bool withinTemporarySelection) override;
|
|
|
|
// ListViewDataSource
|
|
HighlightCell * reusableCell(int index, int type) override;
|
|
void willDisplayCellForIndex(HighlightCell * cell, int index) override;
|
|
private:
|
|
constexpr static int k_totalNumberOfCell = 5;
|
|
int totalNumberOfCells() const override;
|
|
Shared::Sequence * sequence() { return static_cast<Shared::Sequence *>(function().pointer()); }
|
|
bool hasInitialRankRow() const;
|
|
MessageTableCellWithChevronAndExpression m_typeCell;
|
|
MessageTableCellWithEditableText m_initialRankCell;
|
|
TypeParameterController m_typeParameterController;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|