18 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
19 |
***************************************************************************/ |
***************************************************************************/ |
20 |
|
|
21 |
|
#ifndef WXCPUTHROTTLEFRAME_H |
22 |
|
#define WXCPUTHROTTLEFRAME_H |
23 |
|
|
24 |
#include <wx/wx.h> |
#include <wx/wx.h> |
25 |
#include "trayicon.h" |
#include "trayicon.h" |
26 |
|
#include "acpiparser.h" |
27 |
|
|
28 |
class wxCpuThrottleFrame : public wxDialog |
class wxCpuThrottleFrame : public wxDialog |
29 |
{ |
{ |
30 |
public: |
public: |
31 |
wxCpuThrottleFrame( const wxString& title, const wxPoint& pos, const wxSize& size ); |
wxCpuThrottleFrame(); |
32 |
void OnQuit( wxCommandEvent& event ); |
void OnQuit( /*wxCommandEvent& event*/ ); |
33 |
void OnAbout( wxCommandEvent& event ); |
void OnAbout( wxCommandEvent& event ); |
34 |
void OnClose( wxCloseEvent& event ); |
void OnClose( wxCloseEvent& event ); |
35 |
|
void OnTimer( wxTimerEvent& event ); |
36 |
|
void OnRadiobutton(wxCommandEvent& event); |
37 |
void SetPosition(); |
void SetPosition(); |
38 |
|
bool GetWritable() {return mWritable;} |
39 |
|
AcpiParser* GetParser() { return &mParser; } |
40 |
|
|
41 |
private: |
private: |
42 |
|
|
43 |
wxIcon mIcon; |
wxIcon mIcon; |
44 |
TrayIcon* mTrayIcon; |
TrayIcon* mTrayIcon; |
45 |
|
AcpiParser mParser; |
46 |
|
bool mWritable; |
47 |
|
wxRadioBox* mButtonbox; |
48 |
|
wxTimer mTimer; |
49 |
|
|
50 |
DECLARE_EVENT_TABLE() |
DECLARE_EVENT_TABLE() |
51 |
}; |
}; |
52 |
|
|
53 |
|
#endif |