Re: [Kicad-developers] [PATCH] - fix bug #968345.

2012-04-07 Thread Alexander Zakamaldin
Well, let will be so.

Alexander.


Sat, 07 Apr 2012 06:07:35 -0500 от Dick Hollenbeck :
> Alexander,
> 
> This looks promising.
> 
> My only concern is the name of the automatic variable
> 
> aLogicalPaperSize.
> 
> 
> We normally only use the 'a' prefix for use by 'a'rguments to a function, not
> local
> automatic variables.
> 
> Also, it is not evident what "logical" brings to the understanding.
> 
> I suggest
> 
> psPaperSize
> 
> instead of aLogicalPaperSize.   psPaperSize starts with a *lower case* letter,
> does not
> start with 'a', and indicates that is something special for postscript.
> 
> If you can think of something this good or better, please re-submit the patch
> and I will
> commit it.
> 
> Thanks,
> 
> Dick
> 
> 
> 
> > This bug is not evident for the first glance because most PS viewers fix
> this issue and print well.
> > But when using raw printing (for linux - 'lpr some_file.ps') the bug gets
> out.
> >
> > Alexander.
> > common_plot_ps.diff
> >
> >
> > === modified file 'common/common_plotPS_functions.cpp'
> > --- common/common_plotPS_functions.cpp  2012-03-26 21:45:05 +
> > +++ common/common_plotPS_functions.cpp  2012-04-07 05:43:09 +
> > @@ -375,9 +375,14 @@
> >  // The coordinates of the lower left corner of the boundary
> >  // box need to be "rounded down", but the coordinates of its
> >  // upper right corner need to be "rounded up" instead.
> > +wxSize  aLogicalPaperSize = paper_size;
> > +
> > +if( !pageInfo.IsPortrait() )
> > +aLogicalPaperSize.Set( paper_size.y, paper_size.x );
> > +
> >  fprintf( output_file, "BoundingBox: 0 0 %d %d\n",
> > -(int) ceil( paper_size.y * CONV_SCALE ),
> > -(int) ceil( paper_size.x * CONV_SCALE ) );
> > +(int) ceil( aLogicalPaperSize.x * CONV_SCALE ),
> > +(int) ceil( aLogicalPaperSize.y * CONV_SCALE ) );
> >  
> >  // Specify the size of the sheet and the name associated with that
> size.
> >  // (If the "User size" option has been selected for the sheet size,
> > @@ -393,20 +398,26 @@
> >  // the order in which they are specified is not wrong!)
> >  // Also note pageSize is given in mils, not in internal units and must
> be
> >  // converted to internal units.
> > -wxSize pageSize = pageInfo.GetSizeMils();
> > +wxSize aLogicalPageSize = pageInfo.GetSizeMils();
> > +
> > +if( !pageInfo.IsPortrait() )
> > +aLogicalPageSize.Set( pageInfo.GetHeightMils(),
> pageInfo.GetWidthMils() );
> >  
> >  if( pageInfo.IsCustom() )
> >  fprintf( output_file, "DocumentMedia: Custom %d %d 0 () ()\n",
> > - wxRound( pageSize.y * 10 * CONV_SCALE ),
> > - wxRound( pageSize.x * 10 * CONV_SCALE ) );
> > + wxRound( aLogicalPageSize.x * 10 * CONV_SCALE ),
> > + wxRound( aLogicalPageSize.y * 10 * CONV_SCALE ) );
> >  
> >  else  // a standard paper size
> >  fprintf( output_file, "DocumentMedia: %s %d %d 0 () ()\n",
> >   TO_UTF8( pageInfo.GetType() ),
> > - wxRound( pageSize.y * 10 * CONV_SCALE ),
> > - wxRound( pageSize.x * 10 * CONV_SCALE ) );
> > + wxRound( aLogicalPageSize.x * 10 * CONV_SCALE ),
> > + wxRound( aLogicalPageSize.y * 10 * CONV_SCALE ) );
> >  
> > -fprintf( output_file, "Orientation: Landscape\n" );
> > +if( pageInfo.IsPortrait() )
> > +fprintf( output_file, "Orientation: Portrait\n" );
> > +else
> > +fprintf( output_file, "Orientation: Landscape\n" );
> >  
> >  fprintf( output_file, "EndComments\n" );
> >  
> > @@ -426,7 +437,8 @@
> >  // (If support for creating postscript files with a portrait
> orientation
> >  // is ever provided, determine whether it would be necessary to provide
> >  // an "else" command and then an appropriate "sprintf" command here.)
> > -fprintf( output_file, "%d 0 translate 90 rotate\n", paper_size.y );
> > +if( !pageInfo.IsPortrait() )
> > +fprintf( output_file, "%d 0 translate 90 rotate\n", paper_size.y );
> >  
> >  // Apply the scale adjustments
> >  if( plot_scale_adjX != 1.0 || plot_scale_adjY != 1.0 )
> >
> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp


common_plot_ps_new.diff
Description: Binary data
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] [PATCH] - fix bug #968345.

2012-04-06 Thread Alexander Zakamaldin
This bug is not evident for the first glance because most PS viewers fix this 
issue and print well.
But when using raw printing (for linux - 'lpr some_file.ps') the bug gets out.

Alexander.

common_plot_ps.diff
Description: Binary data
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] On wxGTK and --with-gnomeprint

2012-04-05 Thread Alexander Zakamaldin
1. There is no extended gnome dependency for libgnomeprintui. The gnome
haters shan't worry.
2. Even built with gnomeprint support wx doesn't need the libgnomeprint to be
installed. It is dlopened.
3. You may feel free to comment out lines 43-51 in common.h. In this case you
will fall back to PS generic printing which in fact is a stub for the 
printing
support in wx.

Alexander.

>I was going to compile KiCAD as per today sources. Unfortunately, the
>compilation now fails with:
>
>You must use '--with-gnomeprint' or '--with-gtkprint' in your wx
>library configuration.
>
>I'm using Archlinux with default package for wxGTK which doesn't have
>that config switch enabled.
>
>I'm worried because I think that enabling that switch would make the
>whole gnome a dependency for wxGTK, so I guess that it wouldn't ever
>make enabled on non Gnome based distributions requiring ad-hoc wxGTK
>compilation just for KiCAD.
>
>Is this actually the case or am I missing something?
>
>Thanks,
>
>Fabio
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] [PATCH] - DIALOG_PAGES_SETTINGS - remove redundant SetPortrait() call.

2012-04-04 Thread Alexander Zakamaldin
Set{Height,Width}Mils() methods already call private updatePortrait().
Thanks to Dick Hollenbeck  for the tip.

Alexander.

custom_page_setup.diff
Description: Binary data
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] [PATCH] - DIALOG_PAGES_SETTINGS - fix custom page size setup.

2012-03-30 Thread Alexander Zakamaldin
It's not possible to set up custom page size from the first attempt. Need to 
reenter page setup dialog and confirm selected sizes.

Alexander.

custom_page_setup.diff
Description: Binary data
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] [PATCH] - worksheet.h minor issue in GOST mode.

2012-03-28 Thread Alexander Zakamaldin
There is a page layout minor issue in GOST mode. This is the rounding-off error 
of 1 mil exactly.
Screenshots are attached, the location of problem and zoomed snapshot.
My solution seems to be ugly, but I don't see another way to overcome this 
error for the mils scale.
Jean-Pierre, please express your opinion about this issue.

Alexander.<><>

worksheet_h.diff
Description: Binary data
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] New code import: kicad/kicad-zaka-new

2012-03-18 Thread Alexander Zakamaldin
Thanks for the help. I've already figured out.

Alexander.


Sun, 18 Mar 2012 16:33:47 +0100 от Jelmer Vernooij :
> Hi,
> 
> On 03/18/2012 04:30 PM, Alexander Zakamaldin wrote:
> > A new bazaar code import has been requested by Alexander Zakamaldin:
> >  https://code.launchpad.net/~zaka62/kicad/kicad-zaka-new
> > from
> >  https://code.launchpad.net/~zaka62/kicad/kicad-zaka-new
> >
> You seem to be trying to use the code import mechanism of Launchpad to
> create a new branch. The code import system is used to import branches
> from external sites or version control systems.
> 
> To create a new branch on launchpad, simply push the changes you have
> locally:
> 
> bzr branch lp:kicad kicad
> bzr push -d lp:kicad lp:~zaka62/kicad/kicad-zaka-new
> 
> Cheers,
> 
> Jelmer
> 
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Need help - can't import to the new branch.

2012-03-17 Thread Alexander Zakamaldin
What do I have to submit to the 'Branch URL:' text control while importing the 
testing branch?
Here is a short log of my last attempt:

2012-03-18 05:19:34 INFOStarting job.
2012-03-18 05:19:34 INFOGetting exising bzr branch from central store.
2012-03-18 05:19:35 INFO[chan bzr SocketAsChannelAdapter] Opened sftp 
connection (server version 3)
2012-03-18 05:19:35 INFOInvalid URL: https://launchpad.net/kicad/testing

What am I doing wrong? Please, help me.

Alexander.
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] GnomePrint - good news for Kicad linux users.

2012-03-06 Thread Alexander Zakamaldin
I filed a libgnomeprint bug to the Mageia (my favorite linux distribution) some 
time ago.
Yesterday it was confirmed and my patches were implemented in testing updates 
branch.
So if this patches will be tested and approved the way to the better 
wxGnomePrint will be
cleared away.
Alexander.
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Eeschema libedit_plot_component and SVG plot.

2012-03-05 Thread Alexander Zakamaldin
Hi.
While working with PAGE_INFO class I found that SVG plot is not working for 
LIB_EDIT_FRAME::OnPlotCurrentComponent.
It plots empty SVG files. First of all I thought my PAGE_INFO changes caused 
this problem. But then I tried stable branch
Kicad and found just the same issue. So my question is it a bug or maybe this 
feature is still uncompleted?

Alexander.
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] problem with the Help link "getting started in kicad"

2012-03-05 Thread Alexander Zakamaldin
Hi, Fabrizio.
I don't think the 'PdfBrowserName' should appear in '~/kicad_common' with
evince by default. At least, because there may be no 'evince' installed at all.
I think, the best solution for the default pdf viewer should be native for OS .
For Linux it should be something like [.pdf -> MIME -> default app]. Just like
the other linux apps is doing.
Alexander.

06 марта 2012, 02:19 от Fabrizio Tappero :
> Alexander,
> yep, you are right, the .kicad_common seems to work well. I am not
> sure why it did not before in my PC at work. I will check tomorrow.
> 
> Anyways, don't you think that the file .kicad_common should come with
> "PdfBrowserName=/usr/bin/evince" in it?
> 
> cheers
> Fabrizio
> 
> On Fri, Mar 2, 2012 at 8:41 PM, Fabrizio Tappero
>  wrote:
> > interesting ... I will look into it and report back.
> >
> > cheers
> > Fab.
> >
> >
> > On Fri, Mar 2, 2012 at 6:00 PM, Alexander Zakamaldin  wrote:
> >> Hi, Fabrizio!
> >> It is strange for me, because I can't reproduce the problem you have 
> >> described.
> >> I tested evince, evince-previewer and okular. Everything seems to work 
> >> fine!
> >> Maybe something wrong with your ~/.kicad_common? Please, check that your
> >> favorite viewer is updated in ~/.kicad_common.
> >> Alexander.
> >>
> >>
> >> 02 марта 2012, 13:32 от Fabrizio Tappero :
> >>> Alexander,
> >>> it works great, thank you very much for fixing it.
> >>>
> >>> Just in case somebody google for this option in the future I'd like to 
> >>> add:
> >>>
> >>> If anybody working on linux has the problem that kicad pdf manuals get
> >>> not open in evince or acrobat reader but instead in Gimp, an easy fix
> >>> is to edit this file:
> >>>
> >>> gedit ~/.local/share/applications/mimeapps.list
> >>>
> >>> and add the line:
> >>>
> >>> application/pdf=evince.desktop;firefox.desktop;
> >>>
> >>> Also, the current KiCad option (Options - PDF Viewer - PDF Viewer)
> >>> does allow you to setup your favorite editor but unfortunately this
> >>> option does not appear in eeschema nor in pcbnew, etc.
> >>>
> >>> Maybe the same default pdf viewer setup option (in the top Options
> >>> menu) should be make available in the other kicad programs, not sure
> >>> it is worth it.
> >>>
> >>> Furthermore, ideally, under Linux, I think instead of the current
> >>> kicad pdf viewer option it is better to just have the option "set
> >>> evince as default pdf viewer". This because often people do not really
> >>> know where executables (like evince) are.
> >>>
> >>> I think I am done with my 5 min. ranting ;-)
> >>>
> >>> thank you all
> >>> Fabrizio
> >>>
> >>> On Thu, Mar 1, 2012 at 4:38 PM, Alexander Zakamaldin  
> >>> wrote:
> >>> > I filed a bug report with patch attached.
> >>> > Alexander.
> >>> >
> >>> >
> >>> > 01 марта 2012, 15:13 от Fabrizio Tappero :
> >>> >> Hello,
> >>> >> I confirm that I still experience this problem which is here:
> >>> >>
> >>> >> mst.kicad/common/basicframe.cpp
> >>> >> 338:        // Search for "getting_started_in_kicad.pdf" or
> >>> >> "Getting_Started_in_KiCad.pdf"
> >>> >> 343:        {   // Try to find "Getting_Started_in_KiCad.pdf"
> >>> >> 344:            wxGetApp().GetHelpFileName() = wxT(
> >>> >> "Getting_Started_in_KiCad.pdf" );
> >>> >>
> >>> >> Can somebody maybe suggest a solution or tell me if it is a problem
> >>> >> with my system.
> >>> >>
> >>> >> Cheers
> >>> >> Fabrizio
> >>> >>
> >>> >> On Mon, Feb 27, 2012 at 2:59 PM, Fabrizio Tappero
> >>> >>  wrote:
> >>> >> > jean-pierre,
> >>> >> >
> >>> >> > hum... in my fresh dev. build of the kicad-doc folder taken 30 min 
> >>> >> > ago
> >>> >> > from here:
> >>> >> >
> >>> >> > bzr branch lp:~kicad-developers/kicad/doc
> >>> >> >

Re: [Kicad-developers] problem with the Help link "getting started in kicad"

2012-03-02 Thread Alexander Zakamaldin
Hi, Fabrizio!
It is strange for me, because I can't reproduce the problem you have described.
I tested evince, evince-previewer and okular. Everything seems to work fine!
Maybe something wrong with your ~/.kicad_common? Please, check that your
favorite viewer is updated in ~/.kicad_common.
Alexander.


02 марта 2012, 13:32 от Fabrizio Tappero :
> Alexander,
> it works great, thank you very much for fixing it.
> 
> Just in case somebody google for this option in the future I'd like to add:
> 
> If anybody working on linux has the problem that kicad pdf manuals get
> not open in evince or acrobat reader but instead in Gimp, an easy fix
> is to edit this file:
> 
> gedit ~/.local/share/applications/mimeapps.list
> 
> and add the line:
> 
> application/pdf=evince.desktop;firefox.desktop;
> 
> Also, the current KiCad option (Options - PDF Viewer - PDF Viewer)
> does allow you to setup your favorite editor but unfortunately this
> option does not appear in eeschema nor in pcbnew, etc.
> 
> Maybe the same default pdf viewer setup option (in the top Options
> menu) should be make available in the other kicad programs, not sure
> it is worth it.
> 
> Furthermore, ideally, under Linux, I think instead of the current
> kicad pdf viewer option it is better to just have the option "set
> evince as default pdf viewer". This because often people do not really
> know where executables (like evince) are.
> 
> I think I am done with my 5 min. ranting ;-)
> 
> thank you all
> Fabrizio
> 
> On Thu, Mar 1, 2012 at 4:38 PM, Alexander Zakamaldin  wrote:
> > I filed a bug report with patch attached.
> > Alexander.
> >
> >
> > 01 марта 2012, 15:13 от Fabrizio Tappero :
> >> Hello,
> >> I confirm that I still experience this problem which is here:
> >>
> >> mst.kicad/common/basicframe.cpp
> >> 338:        // Search for "getting_started_in_kicad.pdf" or
> >> "Getting_Started_in_KiCad.pdf"
> >> 343:        {   // Try to find "Getting_Started_in_KiCad.pdf"
> >> 344:            wxGetApp().GetHelpFileName() = wxT(
> >> "Getting_Started_in_KiCad.pdf" );
> >>
> >> Can somebody maybe suggest a solution or tell me if it is a problem
> >> with my system.
> >>
> >> Cheers
> >> Fabrizio
> >>
> >> On Mon, Feb 27, 2012 at 2:59 PM, Fabrizio Tappero
> >>  wrote:
> >> > jean-pierre,
> >> >
> >> > hum... in my fresh dev. build of the kicad-doc folder taken 30 min ago
> >> > from here:
> >> >
> >> > bzr branch lp:~kicad-developers/kicad/doc
> >> >
> >> > if I compile and install, I get (among other stuff) the following pdfs:
> >> >
> >> > 1) /usr/local/share/doc/kicad/en/KiCad_Tutorial 2011.pdf
> >> > 2) /usr/local/share/doc/kicad/help/en/Getting_Started_in_KiCad.pdf
> >> >
> >> > when I start kicad (also taken and compiled today) and I go Help -
> >> > Getting started in KiCad I get the following error:
> >> >
> >> > Help file getting_started_in_kicad.pdf could not be found
> >> >
> >> > Maybe:
> >> > the tutorial 2) should be renamed getting_started_in_kicad.pdf and
> >> > also the file 2) should maybe deleted since several months ago when I
> >> > make getting_started_in_kicad.pdf I made it based on 1)
> >> >
> >> > I hope this will help to fix a possible problem.
> >> > Cheers
> >> > Fabrizio
> >> >
> >> >
> >> >
> >> > On Mon, Feb 27, 2012 at 11:15 AM, jp.charras  
> >> > wrote:
> >> >> Le 27/02/2012 10:54, Fabrizio Tappero a écrit :
> >> >>
> >> >>> Hello,
> >> >>> it seems to me that the link help- getting started in kicad is broken
> >> >>> for all kicad programs. It should link to a short pdf tutorials and it
> >> >>> should work for all kicad programs.
> >> >>>
> >> >>> can anybody confirm that?
> >> >>>
> >> >>> cheers
> >> >>> Fabrizio
> >> >>
> >> >>
> >> >> I recently fixed this issue.
> >> >>
> >> >>
> >> >> --
> >> >> Jean-Pierre CHARRAS
> >> >> KiCad Developers team.
> >> >> KiCad Developers 
> >> >>
> >> >> ___
> >> >> Mailing list: https://launchpad.net/~kicad-developers
> >> >> Post to     : kicad-developers@lists.launchpad.net
> >> >> Unsubscribe : https://launchpad.net/~kicad-developers
> >> >> More help   : https://help.launchpad.net/ListHelp
> >>
> >> ___
> >> Mailing list: https://launchpad.net/~kicad-developers
> >> Post to     : kicad-developers@lists.launchpad.net
> >> Unsubscribe : https://launchpad.net/~kicad-developers
> >> More help   : https://help.launchpad.net/ListHelp
> >>
> > ___
> > Mailing list: https://launchpad.net/~kicad-developers
> > Post to     : kicad-developers@lists.launchpad.net
> > Unsubscribe : https://launchpad.net/~kicad-developers
> > More help   : https://help.launchpad.net/ListHelp
> 
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] problem with the Help link "getting started in kicad"

2012-03-01 Thread Alexander Zakamaldin
I am sorry, the post from Frank bennett was private for me
as for Kicad developer. But I think I am not the person who can
answer such questions.
So I can only retranslate this questions to Kicad developers forum.
Alexander.

Frank bennett wrote.
kicad /help/about/developers - I was a little hurt to see my name
   didn't make the short list, (even if I only added eeschema/backAnno)

EEschema, pcbnew - NICE look!!!
-new icons look great
-open places - it might be nice (for new users) to see the installed
  demos as a selection (PATH='.' is there,right?)
-demos I see missing a favorite "kit-dev-coldfire-xilinx_5213"
  even though it's checked in and working. Are demos our only set of
  regression tests? It would be nice to have a "user contrib designs,
  symbols, footprints libs" site somewhere...results from something
  like a open hardware project taking a modified panda board forward.

So if I want to fix "demos/CMakeLists.txt" and maybe the Kicad/file/open
what is greenie developer suspose to do? in addition to how_to_compile.txt,
which was hard to find, I think we need a how_to_summit_simple_changes.txt!
or bzr, developer tricks:
  How do I know which files I have changed or added to my local depot?
  (like 'svn st') or about to submit...I guess I'm just missing the svn,
  sf.net development mode of operation!

-Frank Bennett, hardcore 'C', Verilog, svn dude


02 марта 2012, 07:50 от Alexander Zakamaldin :
> Hi Dick!
> 
> The "const" specification is really useful feature, especially for those who 
> clearly
> understands what does it stands for.
> By the way, please answer Frank bennett, especially to his question about 
> Kicad
> developers list and about contributors wishes.
> 
> Alexander.
> 
> 02 марта 2012, 01:12 от Dick Hollenbeck :
> > On 03/01/2012 09:29 AM, Alexander Zakamaldin wrote:
> > > === modified file 'common/basicframe.cpp'
> > > --- common/basicframe.cpp 2012-02-17 14:17:50 +
> > > +++ common/basicframe.cpp 2012-03-01 15:17:12 +
> > > @@ -341,7 +341,7 @@
> > >
> > >  if( !helpFile )
> > >  {   // Try to find "Getting_Started_in_KiCad.pdf"
> > > -wxGetApp().GetHelpFileName() = wxT( 
> > > "Getting_Started_in_KiCad.pdf" );
> > > +wxGetApp().SetHelpFileName( wxT( 
> > > "Getting_Started_in_KiCad.pdf" ) );
> > >  helpFile = wxGetApp().GetHelpFile();
> > >  }
> >
> > The original problem would have not come about if the return value of the
> > GetHelpFileName() was
> >
> > const wxString
> >
> > instead of
> >
> > wxString
> >
> > The compiler could have caught the problem then.  I also like const 
> > wxString because it
> > lets you alternate into
> >
> > const wxString&
> >
> > without issue out in client land as well.
> >
> > Thanks for the fix.
> >
> > ___
> > Mailing list: https://launchpad.net/~kicad-developers
> > Post to : kicad-developers@lists.launchpad.net
> > Unsubscribe : https://launchpad.net/~kicad-developers
> > More help   : https://help.launchpad.net/ListHelp
> >
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] problem with the Help link "getting started in kicad"

2012-03-01 Thread Alexander Zakamaldin
Hi Dick!

The "const" specification is really useful feature, especially for those who 
clearly
understands what does it stands for.
By the way, please answer Frank bennett, especially to his question about Kicad
developers list and about contributors wishes.

Alexander.


02 марта 2012, 01:12 от Dick Hollenbeck :
> On 03/01/2012 09:29 AM, Alexander Zakamaldin wrote:
> > === modified file 'common/basicframe.cpp'
> > --- common/basicframe.cpp   2012-02-17 14:17:50 +
> > +++ common/basicframe.cpp   2012-03-01 15:17:12 +
> > @@ -341,7 +341,7 @@
> >
> >  if( !helpFile )
> >  {   // Try to find "Getting_Started_in_KiCad.pdf"
> > -wxGetApp().GetHelpFileName() = wxT( 
> > "Getting_Started_in_KiCad.pdf" );
> > +wxGetApp().SetHelpFileName( wxT( 
> > "Getting_Started_in_KiCad.pdf" ) );
> >  helpFile = wxGetApp().GetHelpFile();
> >  }
> 
> The original problem would have not come about if the return value of the
> GetHelpFileName() was
> 
> const wxString
> 
> instead of
> 
> wxString
> 
> The compiler could have caught the problem then.  I also like const wxString 
> because it
> lets you alternate into
> 
> const wxString&
> 
> without issue out in client land as well.
> 
> Thanks for the fix.
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] problem with the Help link "getting started in kicad"

2012-03-01 Thread Alexander Zakamaldin
I filed a bug report with patch attached.
Alexander.


01 марта 2012, 15:13 от Fabrizio Tappero :
> Hello,
> I confirm that I still experience this problem which is here:
> 
> mst.kicad/common/basicframe.cpp
> 338:// Search for "getting_started_in_kicad.pdf" or
> "Getting_Started_in_KiCad.pdf"
> 343:{   // Try to find "Getting_Started_in_KiCad.pdf"
> 344:wxGetApp().GetHelpFileName() = wxT(
> "Getting_Started_in_KiCad.pdf" );
> 
> Can somebody maybe suggest a solution or tell me if it is a problem
> with my system.
> 
> Cheers
> Fabrizio
> 
> On Mon, Feb 27, 2012 at 2:59 PM, Fabrizio Tappero
>  wrote:
> > jean-pierre,
> >
> > hum... in my fresh dev. build of the kicad-doc folder taken 30 min ago
> > from here:
> >
> > bzr branch lp:~kicad-developers/kicad/doc
> >
> > if I compile and install, I get (among other stuff) the following pdfs:
> >
> > 1) /usr/local/share/doc/kicad/en/KiCad_Tutorial 2011.pdf
> > 2) /usr/local/share/doc/kicad/help/en/Getting_Started_in_KiCad.pdf
> >
> > when I start kicad (also taken and compiled today) and I go Help -
> > Getting started in KiCad I get the following error:
> >
> > Help file getting_started_in_kicad.pdf could not be found
> >
> > Maybe:
> > the tutorial 2) should be renamed getting_started_in_kicad.pdf and
> > also the file 2) should maybe deleted since several months ago when I
> > make getting_started_in_kicad.pdf I made it based on 1)
> >
> > I hope this will help to fix a possible problem.
> > Cheers
> > Fabrizio
> >
> >
> >
> > On Mon, Feb 27, 2012 at 11:15 AM, jp.charras  wrote:
> >> Le 27/02/2012 10:54, Fabrizio Tappero a écrit :
> >>
> >>> Hello,
> >>> it seems to me that the link help- getting started in kicad is broken
> >>> for all kicad programs. It should link to a short pdf tutorials and it
> >>> should work for all kicad programs.
> >>>
> >>> can anybody confirm that?
> >>>
> >>> cheers
> >>> Fabrizio
> >>
> >>
> >> I recently fixed this issue.
> >>
> >>
> >> --
> >> Jean-Pierre CHARRAS
> >> KiCad Developers team.
> >> KiCad Developers 
> >>
> >> ___
> >> Mailing list: https://launchpad.net/~kicad-developers
> >> Post to     : kicad-developers@lists.launchpad.net
> >> Unsubscribe : https://launchpad.net/~kicad-developers
> >> More help   : https://help.launchpad.net/ListHelp
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] problem with the Help link "getting started in kicad"

2012-03-01 Thread Alexander Zakamaldin
Patch is attached.

Alexander.


01 марта 2012, 17:28 от Alexander Zakamaldin :
> I confirm this problem.
> 
> Alexander.
> 
> 01 марта 2012, 15:13 от Fabrizio Tappero :
> > Hello,
> > I confirm that I still experience this problem which is here:
> >
> > mst.kicad/common/basicframe.cpp
> > 338:// Search for "getting_started_in_kicad.pdf" or
> > "Getting_Started_in_KiCad.pdf"
> > 343:{   // Try to find "Getting_Started_in_KiCad.pdf"
> > 344:wxGetApp().GetHelpFileName() = wxT(
> > "Getting_Started_in_KiCad.pdf" );
> >
> > Can somebody maybe suggest a solution or tell me if it is a problem
> > with my system.
> >
> > Cheers
> > Fabrizio
> >
> > On Mon, Feb 27, 2012 at 2:59 PM, Fabrizio Tappero
> >  wrote:
> > > jean-pierre,
> > >
> > > hum... in my fresh dev. build of the kicad-doc folder taken 30 min ago
> > > from here:
> > >
> > > bzr branch lp:~kicad-developers/kicad/doc
> > >
> > > if I compile and install, I get (among other stuff) the following pdfs:
> > >
> > > 1) /usr/local/share/doc/kicad/en/KiCad_Tutorial 2011.pdf
> > > 2) /usr/local/share/doc/kicad/help/en/Getting_Started_in_KiCad.pdf
> > >
> > > when I start kicad (also taken and compiled today) and I go Help -
> > > Getting started in KiCad I get the following error:
> > >
> > > Help file getting_started_in_kicad.pdf could not be found
> > >
> > > Maybe:
> > > the tutorial 2) should be renamed getting_started_in_kicad.pdf and
> > > also the file 2) should maybe deleted since several months ago when I
> > > make getting_started_in_kicad.pdf I made it based on 1)
> > >
> > > I hope this will help to fix a possible problem.
> > > Cheers
> > > Fabrizio
> > >
> > >
> > >
> > > On Mon, Feb 27, 2012 at 11:15 AM, jp.charras  
> > > wrote:
> > >> Le 27/02/2012 10:54, Fabrizio Tappero a écrit :
> > >>
> > >>> Hello,
> > >>> it seems to me that the link help- getting started in kicad is broken
> > >>> for all kicad programs. It should link to a short pdf tutorials and it
> > >>> should work for all kicad programs.
> > >>>
> > >>> can anybody confirm that?
> > >>>
> > >>> cheers
> > >>> Fabrizio
> > >>
> > >>
> > >> I recently fixed this issue.
> > >>
> > >>
> > >> --
> > >> Jean-Pierre CHARRAS
> > >> KiCad Developers team.
> > >> KiCad Developers 
> > >>
> > >> ___
> > >> Mailing list: https://launchpad.net/~kicad-developers
> > >> Post to     : kicad-developers@lists.launchpad.net
> > >> Unsubscribe : https://launchpad.net/~kicad-developers
> > >> More help   : https://help.launchpad.net/ListHelp
> >
> > ___
> > Mailing list: https://launchpad.net/~kicad-developers
> > Post to : kicad-developers@lists.launchpad.net
> > Unsubscribe : https://launchpad.net/~kicad-developers
> > More help   : https://help.launchpad.net/ListHelp
> >
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 

kicad-bzr3446-help_link.diff
Description: Binary data
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] problem with the Help link "getting started in kicad"

2012-03-01 Thread Alexander Zakamaldin
I confirm this problem.

Alexander.


01 марта 2012, 15:13 от Fabrizio Tappero :
> Hello,
> I confirm that I still experience this problem which is here:
> 
> mst.kicad/common/basicframe.cpp
> 338:// Search for "getting_started_in_kicad.pdf" or
> "Getting_Started_in_KiCad.pdf"
> 343:{   // Try to find "Getting_Started_in_KiCad.pdf"
> 344:wxGetApp().GetHelpFileName() = wxT(
> "Getting_Started_in_KiCad.pdf" );
> 
> Can somebody maybe suggest a solution or tell me if it is a problem
> with my system.
> 
> Cheers
> Fabrizio
> 
> On Mon, Feb 27, 2012 at 2:59 PM, Fabrizio Tappero
>  wrote:
> > jean-pierre,
> >
> > hum... in my fresh dev. build of the kicad-doc folder taken 30 min ago
> > from here:
> >
> > bzr branch lp:~kicad-developers/kicad/doc
> >
> > if I compile and install, I get (among other stuff) the following pdfs:
> >
> > 1) /usr/local/share/doc/kicad/en/KiCad_Tutorial 2011.pdf
> > 2) /usr/local/share/doc/kicad/help/en/Getting_Started_in_KiCad.pdf
> >
> > when I start kicad (also taken and compiled today) and I go Help -
> > Getting started in KiCad I get the following error:
> >
> > Help file getting_started_in_kicad.pdf could not be found
> >
> > Maybe:
> > the tutorial 2) should be renamed getting_started_in_kicad.pdf and
> > also the file 2) should maybe deleted since several months ago when I
> > make getting_started_in_kicad.pdf I made it based on 1)
> >
> > I hope this will help to fix a possible problem.
> > Cheers
> > Fabrizio
> >
> >
> >
> > On Mon, Feb 27, 2012 at 11:15 AM, jp.charras  wrote:
> >> Le 27/02/2012 10:54, Fabrizio Tappero a écrit :
> >>
> >>> Hello,
> >>> it seems to me that the link help- getting started in kicad is broken
> >>> for all kicad programs. It should link to a short pdf tutorials and it
> >>> should work for all kicad programs.
> >>>
> >>> can anybody confirm that?
> >>>
> >>> cheers
> >>> Fabrizio
> >>
> >>
> >> I recently fixed this issue.
> >>
> >>
> >> --
> >> Jean-Pierre CHARRAS
> >> KiCad Developers team.
> >> KiCad Developers 
> >>
> >> ___
> >> Mailing list: https://launchpad.net/~kicad-developers
> >> Post to     : kicad-developers@lists.launchpad.net
> >> Unsubscribe : https://launchpad.net/~kicad-developers
> >> More help   : https://help.launchpad.net/ListHelp
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Printing and Ledger paper type.

2012-02-29 Thread Alexander Zakamaldin
Hi!
Well, we can assume the landscape printing is fixed.  Another big disadvantage
for wxGnomePrint users is a 72 dpi limitation. As I can see, initial workaround
for this issue is done in wx 2.9.3. It should be mentioned, that this is a 
wxGnomePrint
issue. And I think, this work must have been done years ago. Just from the 
beginning
of wxGnomePrint implementation, because the solution is absolutely evident.
I am not going to wait for wx 3.0 release, especially with the gtk3 desire in 
mind. I think,
the next summer is unreal :(. Also wxgtkprint in 2.9.3 is completely upsets me 
:[.
The situation may will be the same as with libgnomeprint. The wxGnomePrint will
stay uncompleted and wxgtkprint will be useless :[[.
So, I am going to investigate wxGnomePrint 72 dpi issue.

Alexander.


29 февраля 2012, 22:35 от Andrey A :
> 
> 29 февраля 2012, 20:42 от Alexander Zakamaldin :
> > Done.
> > 
> Hi, Alexander!
> 
> Very good work.
> distr - mageia x86_64
> Direct printing from kicad - OK!
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Printing and Ledger paper type.

2012-02-29 Thread Alexander Zakamaldin
Done.


29 февраля 2012, 19:21 от Dick Hollenbeck :
> 
> On 02/29/2012 03:20 AM, Alexander Zakamaldin wrote:
> > Hi, Dick!
> >
> > I am sorry in advance, but I think there is no need for you to investigate 
> > this
> > problem. Just because I have already fixed it. The bug is deep inside 
> > libgnomeprint
> > and I wonder why it was not fixed for long period of  time. Maybe because
> > libgnomeprint was deprecated by Gnome team long time ago. But I will not
> > refuse to accept an advice what to do with my patches.
> > Maybe it would be interesting for the Linux distributions maintainers?
> > Also I will not refuse to send them for everyone who needs them.
> >
> > Alexander.
> 
> Can you please file a bug report with KiCad, and then post your patch as an 
> attachment.
> I know it has nothing to do with KiCad, but this may help future KiCad users, 
> plus this
> way we don't lose the patch.
> 
> Thanks.
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Printing and Ledger paper type.

2012-02-29 Thread Alexander Zakamaldin
Hi, Dick!

I am sorry in advance, but I think there is no need for you to investigate this
problem. Just because I have already fixed it. The bug is deep inside 
libgnomeprint
and I wonder why it was not fixed for long period of  time. Maybe because
libgnomeprint was deprecated by Gnome team long time ago. But I will not
refuse to accept an advice what to do with my patches.
Maybe it would be interesting for the Linux distributions maintainers?
Also I will not refuse to send them for everyone who needs them.

Alexander.


29 февраля 2012, 10:37 от Dick Hollenbeck :
> On 02/28/2012 10:52 AM, Alexander Zakamaldin wrote:
> > Here are the samples. As you can see the portrait (R0) samples are good.
> > The landscape (R90) samples are incorrectly rotated. This is not Kicad
> > related issue and even is not wxgtk issue. This is libgnomeprint bug.
> > Unfortunately, there is no USLedger native support in gnomeprint. The
> > USLedger samples I have attached have been made, when I manually
> > add USLedger 17x11 to the gnomeprint's globals.xml definition file.
> >
> > Alexander.
> 
> I'll have a look at it in the next couple of days.
> 
> I've started looking at the PCBNEW printing already.
> 
> Dick
> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Printing and Ledger paper type.

2012-02-28 Thread Alexander Zakamaldin
No, it is not a cause.


28 февраля 2012, 18:38 от Dick Hollenbeck :
> Are you having problems with the margin?
> 
> I see that for KICAD_GOST there is an asymmetrical margin, and a rotation of 
> the paper
> without a corresponding rotation of the margins might be giving you grief.
> 
> Is this what the problem is?
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Printing and Ledger paper type.

2012-02-27 Thread Alexander Zakamaldin
Let me try.

The paper sheet is a piece of rectangular paper. Its shape is completely
described with two parameters - size_X and size_Y. Because it has four
sides, its orientation is completely described with four parameters -
R0 (rotation 0), R90, R180 and R270. With this in mind, we can make the 
following
assumptions, some kind of postulates.

1. We choose the initial orientation, for example size_X < size_Y and this is 
R0.
This is the commonly used assumption.
2. We make no distinction in what the size is smaller or larger and we make no
distinction in the orientation.

With the first assumption at any time of computation  we can estimate the real
logical orientation. Just with the help of size_X and size_Y comparison.
With the second assumption we have to define at least two types of paper
for the same size_X and size_Y (for example USLedger 17x11 and USTabloid 11x17).
It should be mentioned, that logical printout computations (affine 
transformations) are
very complex. They are completely rely on the first assumption. And when we try
to mix this assumptions, we only confuses this computations.

By the way, these arguments do not apply to the current implementation of Kicad
testing branch. These assumptions are significant if we are going to implement
page orientation explicitly.

Alexander.

27 февраля 2012, 22:52 от Dick Hollenbeck :
> On 02/27/2012 02:50 AM, Alexander Zakamaldin wrote:
> > Yes, sure. I wrote about US Ledger paper size.
> > It should be mentioned, the US Ledger's size confuses not only me, but
> Gnomeprint job also.
> 
> Please explain in detail what are the symptoms of the problem.  That is how do
> you know it
> is not working.
> 
> 
> 
> 
> > So, what is the best choice to do?
> > 1. Assume the US Ledger is 11x17 inches size, just the same as 'Inkscape'
> project is doing.
> > 2. Replace US Ledger with US Tabloid paper which is 11x17in exactly. The
> same as 'GIMP'
> > project is doing.
> >
> > Alexander.
> >
> >
> > 27 февраля 2012, 09:38 от Dick Hollenbeck :
> >> On 02/26/2012 06:44 AM, Alexander Zakamaldin wrote:
> >>> Hi.
> >>>
> >>> I am working on printing issues for gtk based Kicad at present time.
> >>> Recently implemented 'Ledger'
> >> I implemented it as USLedger, not Ledger.
> >>
> >>
> >>
> >>>  paper type is confusing me a lot. 
> >> Then this may be a short conversation.
> >>
> >>> It is declared as a paper of 17x11 in size.
> >>> The same time there is also a 'Tabloid' paper of 11x17 in size. What does
> it
> >> mean? It is commonly assumed
> >>> that the first value is the size X and the second is the size Y of a
> paper.
> >> That's why is it a kind of implicit logical 
> >>> orientation declaration (e.g. Portrait or Landscape) or is it an implicit
> >> declaration of a direction the paper
> >>> is fed into printer? Maybe it means nothing and it is just the same type
> of
> >> paper?
> >>
> >>
> >> I wanted a page choice of USLedger that was 11x17 inches, since I am in the
> >> US, and I use
> >> that paper size.  You can toggle the landscape button to orient when you
> plot.
> >>
> >> The private member function updatePortrait() establishes the initial page
> >> orientation
> >> according to what height and width are.  User now picks which paper
> >> orientation he wants
> >> from the dialogs, so the initial orientation is not really that important,
> >> especially
> >> since it is recorded in the BOARD file.
> >>
> >>
> >>
> >>
> >>
> >> ___
> >> Mailing list: https://launchpad.net/~kicad-developers
> >> Post to : kicad-developers@lists.launchpad.net
> >> Unsubscribe : https://launchpad.net/~kicad-developers
> >> More help   : https://help.launchpad.net/ListHelp
> > ___
> > Mailing list: https://launchpad.net/~kicad-developers
> > Post to : kicad-developers@lists.launchpad.net
> > Unsubscribe : https://launchpad.net/~kicad-developers
> > More help   : https://help.launchpad.net/ListHelp
> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Printing and Ledger paper type.

2012-02-27 Thread Alexander Zakamaldin
Yes, sure. I wrote about US Ledger paper size.
It should be mentioned, the US Ledger's size confuses not only me, but 
Gnomeprint job also.
So, what is the best choice to do?
1. Assume the US Ledger is 11x17 inches size, just the same as 'Inkscape' 
project is doing.
2. Replace US Ledger with US Tabloid paper which is 11x17in exactly. The same 
as 'GIMP'
project is doing.

Alexander.


27 февраля 2012, 09:38 от Dick Hollenbeck :
> On 02/26/2012 06:44 AM, Alexander Zakamaldin wrote:
> > Hi.
> >
> > I am working on printing issues for gtk based Kicad at present time.
> > Recently implemented 'Ledger'
> 
> I implemented it as USLedger, not Ledger.
> 
> 
> 
> >  paper type is confusing me a lot. 
> 
> Then this may be a short conversation.
> 
> > It is declared as a paper of 17x11 in size.
> 
> > The same time there is also a 'Tabloid' paper of 11x17 in size. What does it
> mean? It is commonly assumed
> > that the first value is the size X and the second is the size Y of a paper.
> That's why is it a kind of implicit logical 
> > orientation declaration (e.g. Portrait or Landscape) or is it an implicit
> declaration of a direction the paper
> > is fed into printer? Maybe it means nothing and it is just the same type of
> paper?
> 
> 
> I wanted a page choice of USLedger that was 11x17 inches, since I am in the
> US, and I use
> that paper size.  You can toggle the landscape button to orient when you plot.
> 
> The private member function updatePortrait() establishes the initial page
> orientation
> according to what height and width are.  User now picks which paper
> orientation he wants
> from the dialogs, so the initial orientation is not really that important,
> especially
> since it is recorded in the BOARD file.
> 
> 
> 
> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Printing and Ledger paper type.

2012-02-26 Thread Alexander Zakamaldin
Hi.

I am working on printing issues for gtk based Kicad at present time.
Recently implemented 'Ledger' paper type is confusing me a lot. It is declared 
as a paper of 17x11 in size.
The same time there is also a 'Tabloid' paper of 11x17 in size. What does it 
mean? It is commonly assumed
that the first value is the size X and the second is the size Y of a paper. 
That's why is it a kind of implicit logical 
orientation declaration (e.g. Portrait or Landscape) or is it an implicit 
declaration of a direction the paper
is fed into printer? Maybe it means nothing and it is just the same type of 
paper?

Alexander.
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Kicad and page orientation.

2012-01-16 Thread Alexander Zakamaldin
> Added "portrait" support to the page size settings for all standard
paper
> sizes. Tested with postscript output only. Required minor file format
changes
> to reflect the "portrait" setting.
common/dialogs/dialog_page_settings.cpp
> uses a checkbox but its name is "Landscape", which is inverted from
portrait,
> but since it is the more common choice, I used that rather than
portrait.
> The tooltip for that checkbox makes it clear. No portrait mode is
supported
> for "User" paper size.

Very good. I have no possibility to build new testing release right now.
I'll do it
later as soon as possible (it's really interesting to me).

> Don't know if GOST diffs are needed anymore in
common/class_page_info.cpp, although for
> some reason A4 page size is thought to be different between the two
compilation paths:
> #if defined(KICAD_GOST)
> const PAGE_INFO PAGE_INFO::pageA4( wxSize( 8283, 11700 ), wxT( "A4" )
);
> #else
> const PAGE_INFO PAGE_INFO::pageA4( wxSize( 11700, 8267 ), wxT( "A4" )
);
> #endif
> Will the real paper size please stand up?
> This is significant, because we would like GOST to be a runtime
choice, not a compile time
> choice if possible. That way we do not have to compile so many times
for verifying
> build-ability before each commit.

I have to check it. GOST has special remarks concerning A4 and A5 page
sizes. A4 must allways
be portrait and A5 allways landscape. But A5 is not implemented in Kicad
and has limited use in
GOST. However, A5 is very good choice for DIY hobbyists like me :).
Fortunately, there is an user size.

Alexander.
-- 
This message was sent from Launchpad by
Alexander Zakamaldin (https://launchpad.net/~zaka62)
using the "Contact this team" link on the KiCad Developers team page
(https://launchpad.net/~kicad-developers).
For more information see
https://help.launchpad.net/YourAccount/ContactingPeople

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Question - Kicad and page orientation.

2012-01-15 Thread Alexander Zakamaldin
>I know of no such circumstance which would make this difficult,
especially now that we
>have accessors for class PAGE_INFO.
>Is there more to this than simply reversing the roles of GetWidthMils()
and
>GetHeightMils() when an internal boolean is set within PAGE_INFO?
>If not, I will volunteer to do this, and would expect to have it done
within 2 hours.
>If more than this, then I may be hesitant to volunteer more.
>Embellish my understanding please if it is too primitive.
>Thanks, Dick

It sounds promising.
I investigated this problem for two days and didn't find something realy
preventing to implement
'page orientation'. Some complications may be because of 'User' size (by
the way, why 'User' and not
'Custom'?) and special 'GOST' Kicad builds for Russian users. It seems
to me, that 'User' size was implemented
to somehow substitute page orientation. And if 'page orientation' will
be some time implemented, may be
'User' size will become useless?
Russian 'GOST' standard strictly deny sizes other than A0-A5.

>Is there a problem using the "User" sized page, which lets you give any
dimensions,
>including a height which is larger than a width?
>Well I do know of some clamping in there which seems to be keeping a
person from doing
>this at the 4" x 6" size (schematic on a baseball card) but for sizes
larger than this, I
>think use of page size "User" solves this in an indirect way.
Nonetheless, I have most of
>this portrait support coded already, just missing the dialog boxes, and
file format
>changes that will be required.
>Dick

I think that some difficulties may be because of 'page orientation' is
not only orientation we can see on the
screens and plots, but also the way a sheet of paper is introduced to
printer. For most of users it is the
same. The PCB and schematic plots orientation must be also taken in
consideration.

If you have no plans to volunteer to do this, maybe I shall try?

Thanks, Alexander.
-- 
This message was sent from Launchpad by
Alexander Zakamaldin (https://launchpad.net/~zaka62)
using the "Contact this team" link on the KiCad Developers team page
(https://launchpad.net/~kicad-developers).
For more information see
https://help.launchpad.net/YourAccount/ContactingPeople

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Question - Kicad and page orientation.

2012-01-13 Thread Alexander Zakamaldin
For a long period of time Kicad has no choice of page orientation in an
explicit form.
There is predefined page orientation - landscape by default and portrait
for A4 Kicad-GOST.
This fact is annoying for a lot of Kicad newbie and sometimes for me.
Maybe there is some circumstances not evident for me?

Thanks.
Alexander Zakamaldin.
-- 
This message was sent from Launchpad by
Alexander Zakamaldin (https://launchpad.net/~zaka62)
using the "Contact this team" link on the KiCad Developers team page
(https://launchpad.net/~kicad-developers).
For more information see
https://help.launchpad.net/YourAccount/ContactingPeople

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp