Author Topic: The 16 January 2010 build (6088) is out.  (Read 131483 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: The 16 January 2010 build (6088) is out.
« Reply #75 on: January 24, 2010, 01:56:13 pm »
1. Build, or Rebuild, looses my ENVIRONMENT settings.
Enable the debugging in the envvars plugin and inspect the debug log what actually happens. I cannot reproduce.

2. QT4 Project has only mingw option.
   From 4.6 Nokia distributes both mingw and MSVC versions of lib.
You can enhance the wizard in any way you like. Just right-clock on it and select "edit". Feel free to add msvc support and provide a patch / updated wizard.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: The 16 January 2010 build (6088) is out.
« Reply #76 on: January 24, 2010, 04:33:52 pm »
Hi, Morten, can you apply of the temporary font patch?
Code: [Select]
Index: app.cpp
===================================================================
--- app.cpp (revision 6112)
+++ app.cpp (working copy)
@@ -675,6 +675,17 @@
         }
         Manager::ProcessPendingEvents();
 
+#ifdef __WXMSW__
+        wxString fontPath = GetAppPath() + _T("/share/CodeBlocks/fonts/*.*");
+        wxString font = wxFindFirstFile(fontPath);
+        while (!font.IsEmpty())
+        {
+            ::AddFontResource(font);
+            font = wxFindNextFile();
+        }
+        ::SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);
+#endif
+
         // finally, show the app
         splash.Hide();
         SetTopWindow(frame);
@@ -733,6 +744,17 @@
     // ultimate shutdown...
     Manager::Free();
 
+#ifdef __WXMSW__
+        wxString fontPath = GetAppPath() + _T("/share/CodeBlocks/fonts/*.*");
+        wxString font = wxFindFirstFile(fontPath);
+        while (!font.IsEmpty())
+        {
+            ::RemoveFontResource(font);
+            font = wxFindNextFile();
+        }
+        ::SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);
+#endif
+
     // WX docs say that this function's return value is ignored,
     // but we return our value anyway. It might not be ignored at some point...
     return m_Batch ? m_BatchExitCode : 0;

[attachment deleted by admin]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: The 16 January 2010 build (6088) is out.
« Reply #77 on: January 24, 2010, 04:41:02 pm »
Hi, Morten, can you apply of the temporary font patch?
If it's temporary, why should I apply it? :shock:
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: The 16 January 2010 build (6088) is out.
« Reply #78 on: January 24, 2010, 04:44:19 pm »
About AStyle plugin, Here is a new problem:http://forums.codeblocks.org/index.php/topic,11847.0.html

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: The 16 January 2010 build (6088) is out.
« Reply #79 on: January 24, 2010, 04:45:08 pm »
Hi, Morten, can you apply of the temporary font patch?
If it's temporary, why should I apply it? :shock:
Because CB can be portable, but if the target machine does not have CB set the font how to do?
For example, Dejuva the fonts in the Windows platform is not installed.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: The 16 January 2010 build (6088) is out.
« Reply #80 on: January 24, 2010, 04:48:07 pm »
For example, Dejuva the fonts in the Windows platform is not installed.
C::B runs just fine on Windows without Dejuva, even portable. Probably I don't get what you are trying to tell, but font management is handled by wxWidgets just fine. Why do we need an own layer? Could you re-phrase the explanation please?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 16 January 2010 build (6088) is out.
« Reply #81 on: January 24, 2010, 05:01:20 pm »
For example, Dejuva the fonts in the Windows platform is not installed.
C::B runs just fine on Windows without Dejuva, even portable. Probably I don't get what you are trying to tell, but font management is handled by wxWidgets just fine. Why do we need an own layer? Could you re-phrase the explanation please?

Possibly he wants to add the feature to support loading of fonts (not installed in the system) from share folder. :)
Be a part of the solution, not a part of the problem.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: The 16 January 2010 build (6088) is out.
« Reply #82 on: January 24, 2010, 05:08:05 pm »
For example, Dejuva the fonts in the Windows platform is not installed.
C::B runs just fine on Windows without Dejuva, even portable. Probably I don't get what you are trying to tell, but font management is handled by wxWidgets just fine. Why do we need an own layer? Could you re-phrase the explanation please?

Possibly he wants to add the feature to support loading of fonts (not installed in the system) from share folder. :)
Yes, this is what I want to express.

[attachment deleted by admin]
« Last Edit: January 24, 2010, 05:12:10 pm by Loaden »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: The 16 January 2010 build (6088) is out.
« Reply #83 on: January 24, 2010, 06:45:39 pm »
Possibly he wants to add the feature to support loading of fonts (not installed in the system) from share folder. :)
Ok. Got that point. But still: Why shall this be temporarily? I mean if it's only temporarily when shall we remove that option again, and why?! Isn't it better you (Loaden) keep in your local copy until you don't need it anymore?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: The 16 January 2010 build (6088) is out.
« Reply #84 on: January 25, 2010, 01:00:29 am »
Possibly he wants to add the feature to support loading of fonts (not installed in the system) from share folder. :)
Ok. Got that point. But still: Why shall this be temporarily? I mean if it's only temporarily when shall we remove that option again, and why?! Isn't it better you (Loaden) keep in your local copy until you don't need it anymore?
OK!
But this feature is still valuable, such as OpenOffice.org have the same feature.

Offline blueshake

  • Regular
  • ***
  • Posts: 459
Re: The 16 January 2010 build (6088) is out.
« Reply #85 on: January 25, 2010, 02:55:13 am »
hi,morten:

I think what Loaden's word "temprary" is :

because he(Loaden) build an comtable version of c::b.he want to add such a festure that support loading
fonts dirctly from the relative fonts path of c::b(e.g. ..share\fonts\).

why we need to do this?

assumpt that the operation system which we used don't contain the fonts(e.g. Dejuva),so if you want to use this font,you have to copy the fonts(you want to use) to system folder.but sometime you don't have the authoration to do that.So if the c::b have the ability to  do this(loading fonts from its folder).it will be much better. :D
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: The 16 January 2010 build (6088) is out.
« Reply #86 on: January 25, 2010, 04:53:25 am »
hi,morten:

I think what Loaden's word "temprary" is :

because he(Loaden) build an comtable version of c::b.he want to add such a festure that support loading
fonts dirctly from the relative fonts path of c::b(e.g. ..share\fonts\).

why we need to do this?

assumpt that the operation system which we used don't contain the fonts(e.g. Dejuva),so if you want to use this font,you have to copy the fonts(you want to use) to system folder.but sometime you don't have the authoration to do that.So if the c::b have the ability to  do this(loading fonts from its folder).it will be much better. :D
If work under limited user, that is, such a situation. :P

Offline critic

  • Multiple posting newcomer
  • *
  • Posts: 93
Re: The 16 January 2010 build (6088) is out.
« Reply #87 on: January 25, 2010, 12:00:40 pm »
Hello, everybody!
What you can say about this: http://forums.codeblocks.org/index.php/topic,11311.msg77442.html#msg77442
I think this message wasn't noticed.

Offline critic

  • Multiple posting newcomer
  • *
  • Posts: 93
Re: The 16 January 2010 build (6088) is out.
« Reply #88 on: January 25, 2010, 12:04:55 pm »
And else one question: can you add setting to save IDE configuration to installation directory or user profile directory?
This is for portability of codeblocks. Sometimes I use IDE on USB stick and so on.
Now only the latter is available.
« Last Edit: January 25, 2010, 12:08:17 pm by critic »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12022
    • Travis build status
Re: The 16 January 2010 build (6088) is out.
« Reply #89 on: January 25, 2010, 12:29:26 pm »
Have you read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_make_Code::Blocks_portable.3F

For you feature request: have you added it as such in the project page -> feature request?
Also If you desperately need this you can make a patch and submit it for inclusion
« Last Edit: January 25, 2010, 12:33:24 pm by oBFusCATed »
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]