Typica is a free program for professional coffee roasters. https://typica.us
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

daterangeselector.h 715B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*602:*/
  2. #line 30 "./daterangeselector.w"
  3. #include <QComboBox>
  4. #ifndef TypicaDateRangeSelectorHeader
  5. #define TypicaDateRangeSelectorHeader
  6. class CustomDateRangePopup;
  7. class DateRangeSelector:public QWidget
  8. {
  9. Q_OBJECT
  10. public:
  11. DateRangeSelector(QWidget*parent= NULL);
  12. void setCustomRange(QVariant range);
  13. Q_INVOKABLE QVariant currentRange();
  14. public slots:
  15. void setCurrentIndex(int index);
  16. void setLifetimeRange(QString startDate,QString endDate);
  17. void removeIndex(int index);
  18. signals:
  19. void rangeUpdated(QVariant);
  20. private slots:
  21. void toggleCustom();
  22. void popupHidden();
  23. void updateRange(int index);
  24. private:
  25. QComboBox*quickSelector;
  26. CustomDateRangePopup*customRangeSelector;
  27. int lastIndex;
  28. };
  29. #endif
  30. /*:602*/