[Sphere-axis-commits] CVS: Axis Axis.txt,1.29,1.30 drewskyps.cpp,1.7,1.8 drewskyps.h,1.3,1.4 RemoteC
Brought to you by:
pesterle
From: Philip E. <pes...@us...> - 2002-05-28 22:08:46
|
Update of /cvsroot/sphere-axis/Axis In directory usw-pr-cvs1:/tmp/cvs-serv22566 Modified Files: Axis.txt drewskyps.cpp drewskyps.h RemoteConsoleDlg.cpp settingstab.cpp Log Message: The remote console dialog and tray icon now show the profile being used. Index: Axis.txt =================================================================== RCS file: /cvsroot/sphere-axis/Axis/Axis.txt,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -r1.29 -r1.30 *** Axis.txt 28 May 2002 16:33:17 -0000 1.29 --- Axis.txt 28 May 2002 22:08:40 -0000 1.30 *************** *** 25,28 **** --- 25,29 ---- ============================================================================= Changes in version 0.13.2 (in development) + · The remote console dialog and tray icon now show the profile being used. · DEFS are listed instead of IDs (if defined) in the Item and Spawn tabs. · The Account Manager window is now modeless, minimizable, and resizeable. Index: drewskyps.cpp =================================================================== RCS file: /cvsroot/sphere-axis/Axis/drewskyps.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** drewskyps.cpp 16 May 2002 01:31:57 -0000 1.7 --- drewskyps.cpp 28 May 2002 22:08:40 -0000 1.8 *************** *** 177,181 **** m_nid.uCallbackMessage = WM_USER; m_nid.hIcon = m_hIcon; ! strcpy(m_nid.szTip, Main->GetVersionTitle()); Shell_NotifyIcon(NIM_ADD, &m_nid); m_bModeless = 1; --- 177,183 ---- m_nid.uCallbackMessage = WM_USER; m_nid.hIcon = m_hIcon; ! CString csTip; ! csTip.Format("%s (%s)", Main->GetVersionTitle(), Main->GetProfileString()); ! strcpy(m_nid.szTip, csTip); Shell_NotifyIcon(NIM_ADD, &m_nid); m_bModeless = 1; *************** *** 275,277 **** --- 277,293 ---- } RegCloseKey( hKey ); + } + + void CDrewskyPS::UpdateTip() + { + m_nid.cbSize = sizeof(m_nid); + m_nid.hWnd = this->GetSafeHwnd(); + m_nid.uID = 1; + m_nid.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP; + m_nid.uCallbackMessage = WM_USER; + m_nid.hIcon = m_hIcon; + CString csTip; + csTip.Format("%s (%s)", Main->GetVersionTitle(), Main->GetProfileString()); + strcpy(m_nid.szTip, csTip); + Shell_NotifyIcon(NIM_MODIFY, &m_nid); } Index: drewskyps.h =================================================================== RCS file: /cvsroot/sphere-axis/Axis/drewskyps.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** drewskyps.h 1 May 2002 03:33:11 -0000 1.3 --- drewskyps.h 28 May 2002 22:08:40 -0000 1.4 *************** *** 63,66 **** --- 63,67 ---- // Implementation public: + void UpdateTip(); void ReloadScripts(); NOTIFYICONDATA m_nid; Index: RemoteConsoleDlg.cpp =================================================================== RCS file: /cvsroot/sphere-axis/Axis/RemoteConsoleDlg.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** RemoteConsoleDlg.cpp 10 May 2002 19:22:47 -0000 1.8 --- RemoteConsoleDlg.cpp 28 May 2002 22:08:40 -0000 1.9 *************** *** 173,176 **** --- 173,180 ---- KillTimer(nIDEvent); } + CString csTitle; + csTitle.Format("Remote Console - %s (%s)", Main->GetProfileString(), m_rConsole->IsConnected() ? "connected" : "not connected"); + this->SetWindowText(csTitle); + CDialog::OnTimer(nIDEvent); } Index: settingstab.cpp =================================================================== RCS file: /cvsroot/sphere-axis/Axis/settingstab.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -r1.21 -r1.22 *** settingstab.cpp 25 May 2002 02:42:20 -0000 1.21 --- settingstab.cpp 28 May 2002 22:08:40 -0000 1.22 *************** *** 330,333 **** --- 330,334 ---- CDrewskyPS * hParent = (CDrewskyPS *)this->GetParent(); hParent->ReloadScripts(); + hParent->UpdateTip(); } |