|
From: <cre...@us...> - 2007-11-05 21:23:55
|
Revision: 1769
http://frontierkernel.svn.sourceforge.net/frontierkernel/?rev=1769&view=rev
Author: creecode
Date: 2007-11-05 13:24:00 -0800 (Mon, 05 Nov 2007)
Log Message:
-----------
added ifdefs for IUDA Desktop target
Modified Paths:
--------------
Frontier/trunk/Common/source/FrontierWinMain.c
Modified: Frontier/trunk/Common/source/FrontierWinMain.c
===================================================================
--- Frontier/trunk/Common/source/FrontierWinMain.c 2007-11-05 21:04:03 UTC (rev 1768)
+++ Frontier/trunk/Common/source/FrontierWinMain.c 2007-11-05 21:24:00 UTC (rev 1769)
@@ -1467,9 +1467,13 @@
style = 0;
//#ifdef PIKE
-#ifndef OPMLEDITOR /*2005-04-17 dluebbert*/
- nCmdShow = SW_HIDE; /* 9/24/01 RAB */
-#endif // OPMLEDITOR
+
+ #ifndef OPMLEDITOR /*2005-04-17 dluebbert*/
+
+ // nCmdShow = SW_HIDE; /* 9/24/01 RAB */
+
+ #endif // OPMLEDITOR
+
//#endif
style = style | WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN;
@@ -3125,34 +3129,68 @@
InitCommonControls();
#endif
-#ifdef PIKE /*7.0b26 PBS*/
-#ifndef OPMLEDITOR // 2005-04-06 dluebbert
- wm_frontieropenfile = RegisterWindowMessage ("PikeOpenFile");
-#else // OPMLEDITOR
- wm_frontieropenfile = RegisterWindowMessage ("OpmlOpenFile");
-#endif // OPMLEDITOR
-#else
- wm_frontieropenfile = RegisterWindowMessage ("FrontierOpenFile");
-#endif
+ #ifdef PIKE // 7.0b26 PBS
+ #if defined ( IUDADESKTOP ) || defined ( OPMLEDITOR )
+
+ #ifdef IUDADESKTOP // 2007-10-22 creedon
+
+ wm_frontieropenfile = RegisterWindowMessage ("IudaDesktopOpenFile");
+
+ #endif // IUDADESKTOP
+
+ #ifdef OPMLEDITOR // 2005-04-06 dluebbert
+
+ wm_frontieropenfile = RegisterWindowMessage ("OpmlOpenFile");
+
+ #endif // OPMLEDITOR
+
+ #else
+
+ wm_frontieropenfile = RegisterWindowMessage ("PikeOpenFile");
+
+ #endif
+
+ #else
+
+ wm_frontieropenfile = RegisterWindowMessage ("FrontierOpenFile");
+
+ #endif // PIKE
+
wm_findmsgstring = RegisterWindowMessage (FINDMSGSTRING);
wm_startreplace = RegisterWindowMessage (sz_frontierstartreplace);
wm_startsearch = RegisterWindowMessage (sz_frontierstartsearch);
-#ifdef PIKE
-
-#ifndef OPMLEDITOR
- frontiermutex = CreateMutex (NULL, true, "PikeInstance");
-#else //OPMLEDITOR
- frontiermutex = CreateMutex (NULL, true, "OpmlInstance");
-#endif // OPMLEDITOR
+ #ifdef PIKE
-#else
- frontiermutex = CreateMutex (NULL, true, "FrontierInstance");
-#endif
+ #if defined ( IUDADESKTOP ) || defined ( OPMLEDITOR )
+ #ifdef IUDADESKTOP // 2007-10-22 creedon
+
+ frontiermutex = CreateMutex (NULL, true, "IudaDesktopInstance");
+
+ #endif // IUDADESKTOP
+
+ #ifdef OPMLEDITOR // 2005-04-06 dluebbert
+
+ frontiermutex = CreateMutex (NULL, true, "OpmlInstance");
+
+ #endif // OPMLEDITOR
+
+ #else
+
+ frontiermutex = CreateMutex (NULL, true, "PikeInstance");
+
+ #endif
+
+ #else
+
+ frontiermutex = CreateMutex (NULL, true, "FrontierInstance");
+
+ #endif
+
if (GetLastError () == ERROR_ALREADY_EXISTS) {
bigstring inputFile;
@@ -3201,16 +3239,34 @@
statusIconData.hWnd = shellframewindow;
statusIconData.uCallbackMessage = FWM_SYSTRAYICON;
-#ifdef PIKE
-#ifndef OPMLEDITOR
- strcpy (statusIconData.szTip, "Radio UserLand");
-#else // OPMLEDITOR
- strcpy (statusIconData.szTip, "OPML");
-#endif // OPMLEDITOR
-#else
- strcpy (statusIconData.szTip, "Frontier"); // 2005-04-02 creedon: removed UserLand
-#endif
+ #ifdef PIKE
+ #if defined ( IUDADESKTOP ) || defined ( OPMLEDITOR )
+
+ #ifdef IUDADESKTOP // 2007-10-22 creedon
+
+ strcpy ( statusIconData.szTip, "IUDA Desktop" );
+
+ #endif // IUDADESKTOP
+
+ #ifdef OPMLEDITOR // 2005-04-06 dluebbert
+
+ strcpy (statusIconData.szTip, "OPML");
+
+ #endif // OPMLEDITOR
+
+ #else
+
+ strcpy (statusIconData.szTip, "Radio UserLand");
+
+ #endif
+
+ #else
+
+ strcpy (statusIconData.szTip, "Frontier"); // 2005-04-02 creedon: removed UserLand
+
+ #endif
+
Shell_NotifyIcon (NIM_ADD, &statusIconData);
//#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|