[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-devel
Subject:    Re: TODO List KDevelop 2.1.2
From:       "W. Tasin" <tasin () fhm ! edu>
Date:       2002-06-20 9:08:54
[Download RAW message or body]

F@lk Brettschneider wrote:

> W. Tasin wrote:
>
>>   or better only "KDevelop" (which means that we need a definition 
>> for naming "gideon", e.g "KDevelop (gideon)").
>
>
> I second this.
> Ciao
> F@lk
>
> BTW: Your print patch applied to SuSE-8.0's KDE and Qt seems to work 
> OK except the initial print font size shows "4" although the print 
> result itself looks like size 12. Any idea? Furthermore, can we print 
> coloured, I mean the syntax highlighting colours, too?
> Ciao
> F@lk
>
Hi F@lk, hi guys,

finally here's the patch which should handle the 4pt/12pt fontsize problem.

I also added the possibility to compile KDevelop with color printing 
support (in the easiest and non problematic way).
(Now KDevelop can be build with

 #make CPPFLAGS="-DCOLORPRINT"
 or
 #CPPFLAGS="-DCOLORPRINT" ./configure ....

 to have color printouts)

>
Ciao

Walter

-- 
oohhh sveglia.... il mondo e' ammalato, ma x colpa di chi.........
(Zucchero)
:-------W._Tasin,_FB_04,_FHM-------------------PGP-KeyID:0x7961A645---:
<Key-Fingerprint: 1610 835F 0080 32F4 6140  6CF7 A7D0 44CD 7961A645>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=index&search=0x7961A645&fingerprint=on>



["kdevprint.patch" (text/plain)]

Index: kdevelop/kwrite/highlight.cpp
===================================================================
RCS file: /home/kde/kdevelop/kdevelop/kwrite/Attic/highlight.cpp,v
retrieving revision 1.11.2.7.2.14.2.11
diff -u -r1.11.2.7.2.14.2.11 highlight.cpp
--- kdevelop/kwrite/highlight.cpp	2002/06/06 23:45:08	1.11.2.7.2.14.2.11
+++ kdevelop/kwrite/highlight.cpp	2002/06/20 08:56:27
@@ -2441,10 +2441,9 @@
 
   font = f;
   for (z = 0; z < (int) familyCombo->count(); z++) {
-    if (font->family == familyCombo->text(z)) {
+    if (!found && font->family == familyCombo->text(z)) {
       familyCombo->setCurrentItem(z);
       found=true;
-      break;
     }
 
     if (defaultFont.family() == familyCombo->text(z))
@@ -2459,10 +2458,9 @@
 
   found=false; defaultZ=0;
   for (z = 0; fontSizes[z] > 0; z++) {
-    if (font->size == fontSizes[z]) {
+    if (!found && font->size == fontSizes[z]) {
       sizeCombo->setCurrentItem(z);
       found=true;
-      break;
     }
 
     if (defaultFont.pointSize() == fontSizes[z])
Index: kdevelop/kwrite/kwdoc.cpp
===================================================================
RCS file: /home/kde/kdevelop/kdevelop/kwrite/Attic/kwdoc.cpp,v
retrieving revision 1.5.2.14.2.40.2.17
diff -u -r1.5.2.14.2.40.2.17 kwdoc.cpp
--- kdevelop/kwrite/kwdoc.cpp	2002/06/07 18:03:05	1.5.2.14.2.40.2.17
+++ kdevelop/kwrite/kwdoc.cpp	2002/06/20 08:56:27
@@ -21,10 +21,13 @@
 #include "kwview.h"
 #include "kwdoc.h"
 
-// set this to 0, if you want color printing
+// define COLORPRINT if you want to get a coloured printout
 //   (take care the background on printing is always set to white)
+#ifdef COLORPRINT
+#define BW_PRINTING      0
+#else
 #define BW_PRINTING      1
-
+#endif
 
 //text attribute constants
 const int taSelected = 0x40;

_______________________________________________
Kdevelop-devel mailing list
Kdevelop-devel@barney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic