~ubuntu-branches/debian/sid/filezilla/sid

« back to all changes in this revision

Viewing changes to src/interface/led.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adrien Cunin
  • Date: 2009-02-22 21:27:48 UTC
  • mfrom: (1.3.1 upstream) (3.1.20 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090222212748-p4zso8kd6t5y9zwn
* Upload to unstable now that lenny is released
* New upstream release (LP: #326578)
   - New features: bookmarks, logging to file and synchronized browsing
   - libdbus support
   - Fixes some encoding issues with some locales (LP: #312246)
   - Better handles editing files with no application associated (LP: #310167)
* Updated features list in package description with new features
* Added libdbus-1-dev build-dep and explicitely use --with-dbus when
  configuring

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
BEGIN_EVENT_TABLE(CLed, wxWindow)
13
13
        EVT_PAINT(CLed::OnPaint)
14
14
        EVT_TIMER(TIMER_ID, CLed::OnTimer)
 
15
#ifdef __WXMSW__
 
16
        EVT_ERASE_BACKGROUND(CLed::OnEraseBackground)
 
17
#endif
15
18
END_EVENT_TABLE()
16
19
 
17
20
#define LED_OFF 1
55
58
        if (!m_loaded)
56
59
                return;
57
60
 
58
 
#ifdef __WXMSW__
59
 
        dc.Clear();
60
 
#endif
61
61
        dc.DrawBitmap(m_leds[m_ledState], 0, 0, true);
62
62
}
63
63
 
66
66
        if (m_ledState != LED_ON)
67
67
        {
68
68
                m_ledState = LED_ON;
69
 
                Refresh(false);
 
69
                Refresh();
70
70
        }
71
71
}
72
72
 
75
75
        if (m_ledState != LED_OFF)
76
76
        {
77
77
                m_ledState = LED_OFF;
78
 
                Refresh(false);
 
78
                Refresh();
79
79
        }
80
80
}
81
81
 
113
113
        Set();
114
114
        m_timer.Start(100);
115
115
}
 
116
 
 
117
#ifdef __WXMSW__
 
118
void CLed::OnEraseBackground(wxEraseEvent& event)
 
119
{
 
120
}
 
121
#endif