|
From: <cre...@us...> - 2007-01-16 18:39:21
|
Revision: 1598
http://svn.sourceforge.net/frontierkernel/?rev=1598&view=rev
Author: creecode
Date: 2007-01-16 10:38:32 -0800 (Tue, 16 Jan 2007)
Log Message:
-----------
formatting tweaks
Modified Paths:
--------------
Frontier/branches/Frontier_Long_File_Paths/Common/source/about.c
Modified: Frontier/branches/Frontier_Long_File_Paths/Common/source/about.c
===================================================================
--- Frontier/branches/Frontier_Long_File_Paths/Common/source/about.c 2006-11-18 19:07:07 UTC (rev 1597)
+++ Frontier/branches/Frontier_Long_File_Paths/Common/source/about.c 2007-01-16 18:38:32 UTC (rev 1598)
@@ -241,6 +241,7 @@
Handle hdata;
return (shellfindwindow (idaboutconfig, &w, hinfo, &hdata));
+
} /*findaboutwindow*/
@@ -407,6 +408,7 @@
}
pendrawstring (bs);
+
} /*ccdrawmainwindowtext*/
@@ -418,6 +420,7 @@
pushstyle (geneva, 9, normal);
else
pushstyle ((**hw).defaultfont, (**hw).defaultsize, (**hw).defaultstyle);
+
} /*pushaboutstyle*/
@@ -599,6 +602,7 @@
popclip ();
return (true);
+
} /*ccdrawmsg*/
@@ -609,6 +613,7 @@
parsedialogstring (aboutstrings [item], param, nil, nil, nil, bsitem);
ccdrawmainwindowtext (item, style, bsitem, just);
+
} /*ccdrawtextitem*/
@@ -720,10 +725,10 @@
} /*ccupdatestatistics*/
-static void ccdrawabout (void) {
+static void ccdrawabout (void) {
/*
- 5.0b9 dmb: user Arial, but just for the frontier(tm) item
+ 5.0b9 dmb: use Arial, but just for the frontier(tm) item
*/
Rect rabout = (**aboutdata).aboutarea;
@@ -764,6 +769,7 @@
rabout.bottom = rabout.top + abouticonsize;
ccdrawfrontiericon (rabout, false);
+
}
ccdrawtextitem (copyright2item, nil, normal, leftjustified);
@@ -828,8 +834,10 @@
(**hc).hsecondarymsg = nil;
ccdrawmsg ();
+
}
}
+
} /*ccunblockmsg*/
@@ -925,7 +933,7 @@
boolean ccmsg (bigstring bs, boolean flbackgroundmsg) {
-
+
/*
can be called from a script, not as part of a callback sequence.
@@ -939,13 +947,14 @@
*/
register hdlcancoonrecord hc = cancoonglobals;
+
boolean fl = false;
+ hdlstring hstring;
hdlwindowinfo hinfo;
- hdlstring hstring;
if (hc == nil)
return (false);
-
+
if (!findaboutwindow (&hinfo) || !shellpushglobals ((**hinfo).macwindow))
hinfo = nil;
@@ -954,10 +963,11 @@
ccunblockmsg ();
goto pop;
+
}
+
+ if (flbackgroundmsg) {
- if (flbackgroundmsg) {
-
/*
coming from an agent. record the message text in the process record, so
we can use the popup to switch between the last message left by any agent.
@@ -970,16 +980,16 @@
if (hp == nil) /*only agents are allowed to send background messages!*/
goto pop;
-
+
copystring (bs, (**hp).bsmsg); /*store in process record*/
if (/*(hcode != nil) &&*/ ((**hp).hcode != hcode))
goto pop;
}
-
+
if (!newheapstring (bs, &hstring))
goto pop;
-
+
if (flbackgroundmsg && (**hc).flbackgroundmsgblocked) {
disposehandle ((Handle) (**hc).hsecondarymsg);
@@ -987,27 +997,28 @@
(**hc).hsecondarymsg = hstring;
goto pop;
+
}
-
+
disposehandle ((Handle) (**hc).hprimarymsg);
(**hc).hprimarymsg = hstring;
if (hinfo != nil)
fl = ccdrawmsg ();
-
+
if (!flbackgroundmsg)
(**hc).flbackgroundmsgblocked = true;
-
+
pop:
-
- if (hinfo != nil)
- shellpopglobals ();
+ if (hinfo != nil)
+ shellpopglobals ();
+
+ return (fl);
- return (fl);
} /*ccmsg*/
-
+
static void aboutupdate (void) {
/*
@@ -1080,7 +1091,9 @@
ccdrawagentpopup ();
ccdrawmsg ();
+
}
+
} /*aboutupdate*/
@@ -1131,6 +1144,7 @@
(**aboutdata).aboutarea = rabout;
return (true);
+
} /*aboutresetrects*/
@@ -1146,11 +1160,13 @@
(**aboutwindowinfo).parentwindow = nil;
return (false);
+
}
(**aboutwindowinfo).parentwindow = hroot;
return (true);
+
} /*attachabout*/
@@ -1366,6 +1382,7 @@
dialoggetobjectrect ((DialogPtr) w, item, &ritem);
edittextbox (bsitem, ritem, font, size, style);
+
} /*drawtextitem*/
@@ -1676,9 +1693,11 @@
shellbringtofront (hinfo);
return (true);
+
}
return (newaboutwindow (false));
+
} /*aboutcommand*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|