/[projects]/wxCpuThrottle/src/wxcputhrottleframe.cpp
ViewVC logotype

Diff of /wxCpuThrottle/src/wxcputhrottleframe.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 220 by torben, Fri Aug 10 18:12:36 2007 UTC revision 221 by torben, Thu Apr 9 18:39:29 2009 UTC
# Line 52  wxCpuThrottleFrame::wxCpuThrottleFrame( Line 52  wxCpuThrottleFrame::wxCpuThrottleFrame(
52          }          }
53          catch ( ... )          catch ( ... )
54          {          {
55                  wxMessageBox("Could not open kernel file - aborting program");                  wxMessageBox(wxT("Could not open kernel file - aborting program"));
56                  OnQuit();                  OnQuit();
57          }          }
58                    
# Line 79  wxCpuThrottleFrame::wxCpuThrottleFrame( Line 79  wxCpuThrottleFrame::wxCpuThrottleFrame(
79                    
80          for (int i=0; i<mParser.GetStateCount() ; i++)          for (int i=0; i<mParser.GetStateCount() ; i++)
81          {          {
82                  strings.Add( mParser.GetStateDescription(i) );                  std::string statedesc = mParser.GetStateDescription(i);
83                    strings.Add( wxString(statedesc.c_str(),wxConvISO8859_1) );
84          }          }
85                    
86          mButtonbox = new wxRadioBox(this, ID_RADIOBOX, wxT("Throttle values"), wxDefaultPosition, wxDefaultSize,strings,1);          mButtonbox = new wxRadioBox(this, ID_RADIOBOX, wxT("Throttle values"), wxDefaultPosition, wxDefaultSize,strings,1);
# Line 116  void wxCpuThrottleFrame::OnTimer( wxTime Line 117  void wxCpuThrottleFrame::OnTimer( wxTime
117  {  {
118          mParser.ReadAcpiFile();          mParser.ReadAcpiFile();
119          mButtonbox->SetSelection( mParser.GetCurrentState() );          mButtonbox->SetSelection( mParser.GetCurrentState() );
120    
121            std::string statedesc = mParser.GetStateDescription( mParser.GetCurrentState() );
122                    
123          wxString tooltip = wxT("wxCpuThrottle - ");          wxString tooltip = wxT("wxCpuThrottle - ");
124          tooltip += mParser.GetStateDescription( mParser.GetCurrentState() );          tooltip += wxString(statedesc.c_str(), wxConvISO8859_1);
125                    
126          mTrayIcon->SetIcon( mIcon, tooltip );          mTrayIcon->SetIcon( mIcon, tooltip );
127  }  }

Legend:
Removed from v.220  
changed lines
  Added in v.221

  ViewVC Help
Powered by ViewVC 1.1.20