File: TwoBoxStartHandler.h

package info (click to toggle)
dasher 4.11%2Bgit20130508.adc653-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 40,248 kB
  • ctags: 5,158
  • sloc: xml: 185,479; cpp: 32,301; sh: 11,207; makefile: 828; ansic: 483
file content (29 lines) | stat: -rw-r--r-- 793 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __TWO_BOX_START_HANDLER_H__
#define __TWO_BOX_START_HANDLER_H__

#include "StartHandler.h"
#include "SettingsStore.h"

namespace Dasher {
/// \ingroup Start
/// @{
class CTwoBoxStartHandler : public CStartHandler, public CSettingsUser {
public:
  CTwoBoxStartHandler(CDefaultFilter *pCreator);

  virtual bool DecorateView(CDasherView *pView);
  virtual void Timer(unsigned long iTime, dasherint iX, dasherint iY, CDasherView *pView);
  virtual void onPause();

 private:
  ///Box currently being displayed, _iff_ BP_DASHER_PAUSED is set
  bool m_bFirstBox;
  ///Time at which mouse entered whichever box is current, or numeric_limits::max() if it hasn't
  unsigned long m_iBoxEntered;
  ///Time at which second box was first displayed
  unsigned long m_iBoxStart;
};
}
/// @}

#endif