69 uint8_t flexdims = AreaFitting::FLEX_HOR | AreaFitting::FLEX_VER,
70 const std::string & tooltiptext =
"",
133 {
return(lastlinepointed_); }
168 {
return((cbp.isAfterWithData()) &&
169 (cbp.whoprocessed !=
nullptr) &&
170 (cbp.whoprocessed == pnudelist_)); }
188 (cbp.hasBeenLeftClicked() || cbp.hasPressedEnter())); }
193 (cbp.pevd->isMouseWheel() ||
194 cbp.hasBeenLeftClicked() ||
195 cbp.hasPressedKey(DesktopInterface::KeyID::K_ENTER) ||
196 cbp.hasPressedKey(DesktopInterface::KeyID::K_DOWN) ||
197 cbp.hasPressedKey(DesktopInterface::KeyID::K_UP) ||
198 cbp.hasPressedKey(DesktopInterface::KeyID::K_PGDOWN) ||
199 cbp.hasPressedKey(DesktopInterface::KeyID::K_PGUP) )); }
209 void setUDGs(
const uint8_t * udgs)
211 {
if (istree_)
RUNTIMEEXCEP(
"Cannot set UDGs with a tree list");
214 const char *
className(
void)
const noexcept {
return(
"ListWidget"); }
215 std::pair<bool,const CharRect *>
hasFocusZone(
void)
const noexcept override;
218 void setTooltip(
const std::string & ttt)
override;
230 static const uint8_t kTreeUDGs_[5 * 8];
231 static const std::string kTreeChars_;
232 static const ID kIDsSubs[NUMSUBWIDGETS];
236 const uint8_t flexdims_;
238 std::unique_ptr<LabelList> pllist_;
243 double oldvalh_,oldvalv_;
246 bool needExpandedCursor(
void)
const;
248 int & relposlast)
const;
249 std::string scrollStatesInfo(
void)
const;
250 std::string nudelistStateInfo(
void)
const;
251 void setViewportFromSlide(
char who);
252 void setSlideFromViewport(
char who);
253 void setBothViewportAndSlide(
char who,
int val);
254 void syncViewportAfterSlides(
bool respectcursored,
char cause);
255 void listChanged(
bool respectcursored,
char cause);
257 int processEvent(
const EventData & evdata,
Widget * who)
override;
#define RUNTIMEEXCEP(txt)
Raise a runtime exception with the given std::string TXT + additional info.
std::vector< Label > Vector
A vector of labels.
A list of labels to be displayed vertically, with possible marks on them.
Bidirectional iterator to scan indexes in the list under a given view.
The main namespace of the library, that spans across all the zx modules.