Re: [MSEide-MSEgui-talk] how to customize tedit menu

2014-12-18 Thread misu kun
thanks martin .
no time at the moment :( , i'll try in the evening

2014-12-18 8:54 UTC+01:00, Martin Schreiber mse00...@gmail.com:
 On Thursday 18 December 2014 07:54:54 misu kun wrote:
 thanks julio for the clarification  nice skin you've made
 plus to what  yo usaid i think you can also create another unit (e.g
 skinloader.pas) and in the initialization section create the
 datamodule . then you just add skinloader to your use clause.

 The skin of MSE tools is an example:
 https://gitorious.org/mseuniverse/mseuniverse/source/tools/toolsskin
 (loadguitemplates.pas).

 iam trying to finish 4 professional skins  , i'll upload them all .

 Please push them to MSEuniverse
 https://gitorious.org/mseuniverse/mseuniverse/source/skins

 Please register on Gitorious if you like
 https://gitorious.org/users/new
 and send me your login name so I can give you commit rights.

 Thanks, Martin

 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE
 http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
 ___
 mseide-msegui-talk mailing list
 mseide-msegui-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Can't select database in objectinspector

2014-12-18 Thread Martin Schreiber
On Thursday 18 December 2014 12:10:47 Julio Jiménez wrote:
 MSE git   2a6a6d30b60dc031497a81fd61004f213257f013 (updated today)

 Happened while reworking in an old project.

 Just created a new project and the same problem is there.


 I attach screenshot and example program.


 To reproduce. click on tmsesqlquery1. Go to ObjectInspector. Property
 Database. Click drop down... nothing is listed.

 Weird...

Please try again with git master 4c5b4cfa14d13a123f7176768b8f32d4ac6619bb.

Martin

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Can't select database in objectinspector

2014-12-18 Thread Julio Jiménez
Working fine. Thank you!

2014-12-18 13:32 GMT+01:00 Martin Schreiber mse00...@gmail.com:

 
 Please try again with git master 4c5b4cfa14d13a123f7176768b8f32d4ac6619bb.



-- 
Julio Jiménez Borreguero
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] First steps with mse...

2014-12-18 Thread Fred van Stappen
 MSEide tmainfo.opensource() calls
  result:= openfile.execute = mr_ok;. mainfo.openfile.statfile is set 
 to projectstatfile, a tstatfile instance 
 in mainfo. mainfo.projectstatfile. tfiledialog implements 
 the istatfile interface: 
 
  istatfile = interface(iobjectlink)[miid_istatfile]
   procedure dostatread(const reader: tstatreader);
   procedure dostatwrite(const writer: tstatwriter);
   procedure statreading;
   procedure statread;
   function getstatvarname: msestring;
   function getstatpriority: integer;
  end;
 
 In tstatfile.writestat() mainfo.openfile.dostatwrite() will be called:
 
 procedure tfiledialog.dostatwrite(const writer: tstatwriter);
 begin
  if canstatvalue(foptionsedit1,writer) then begin
   fcontroller.writestatvalue(writer);
  end;
  if canstatstate(foptionsedit1,writer) then begin
   fcontroller.writestatstate(writer);
  end;
  if canstatoptions(foptionsedit1,writer) then begin
   fcontroller.writestatoptions(writer);
  end;
 end;
 
 In t*.optionsedit1 oe1_savevalue, oe1_savestate, oe1_saveoptions 
 define in conjunction 
 with tstatfile.options sfo_nodata, sfo_nostate, sfo_nooptions which 
 of the fcontroller.writestat* procedures are called:
 
 procedure tfiledialogcontroller.writestatvalue(const writer: tstatwriter);
 begin
  writer.writearray('filenames',ffilenames);
  if fdo_params in foptions then begin
   writer.writemsestring('params',fparams);
  end;
 end;
 
 procedure tfiledialogcontroller.writestatstate(const writer: tstatwriter);
 begin
  if fdo_savelastdir in foptions then begin
   writer.writemsestring('lastdir',flastdir);
  end;
  if fhistorymaxcount  0 then begin
   writer.writearray('filehistory',fhistory);
  end;
  writer.writeinteger('filefilterindex',ffilterindex);
  writer.writestring('filefilter',ffilter);
  writer.writeinteger('filecolwidth',fcolwidth);
  writer.writeinteger('x',fwindowrect.x);
  writer.writeinteger('y',fwindowrect.y);
  writer.writeinteger('cx',fwindowrect.cx);
  writer.writeinteger('cy',fwindowrect.cy);
 end;
 
 procedure tfiledialogcontroller.writestatoptions(const writer: tstatwriter);
 begin
  //dummy
 end;
 
 The file history is written in tfiledialogcontroller.writestatstate().
 
 Martin

Many thanks Martin.

I have to study your answer... 

 I probably don't understand.

In the file myproject.prj there are 2 sections :

[mainfo.openform] and  [mainfo.projectfiledia]
In those section are saved  the filehistory.

But if i open in the project X files or some sensible-forbidden files = it is 
saved in the project.prj !

And i do not want that if i share my projects  ;-)

So a option to save it will be welcome...

= The answer is in your answer (i  will study it)

Hum... other sensible thing.  All the MSEide stat files are saved in .mseide =

mseideli.sta = linux
mseidewi.sta = windows.

For no confusion, the ideU files are saved as =

ideuli.sta = linux
ideuwi.sta = windows.

Do you agree is i save that files in a other directory than .mseide ?
If yes, where is the code that define that .meseide directory ?

Many thanks.

Fred.
  --
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compile on freeBSD problem

2014-12-18 Thread Fred van Stappen
Hello Martin.

Ok, one full night to install-reinstall-re-re-reinstall fpc on freeBSD (and 
re-re-install PC-BSD too).

Now all the units needed to compile mseide are finded, it compiles ok but...
when linking it takes ages and finally VirtualBox crashes...

I know that it is not a mse problem but it is really very boring.

Fred
  --
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compile on freeBSD problem

2014-12-18 Thread Fred van Stappen

 FPC is easy to install on any platform. Simply use the installer
 supplied by the FPC team. Download the installer and source archive from
 SourceForge. Very simple (on ALL platforms) and should take around 2
 minutes.

Yep, i find that site and it does the trick (in less than 2 minutes ;-) )
= http://sourceforge.net/projects/freepascal/files/FreeBSD/2.6.4/
 
 FreeBSD doesn't use sudo as far as I know (not on my systems at least).
 I have to use 'su' to switch to the root account, then run things as admin.

Ha, i use sudo and works perfectly (but if su is better, i will use su)...

Thanks Graeme.

Fred.

  --
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compile on freeBSD problem

2014-12-18 Thread Fred van Stappen

 Suggestion: remove -CX -XX .

Ho, nice one, i will try it, many thanks Martin.

Fred.
  --
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] First steps with mse...

2014-12-18 Thread Martin Schreiber
On Thursday 18 December 2014 15:20:51 Fred van Stappen wrote:

 In the file myproject.prj there are 2 sections :

 [mainfo.openform] and  [mainfo.projectfiledia]
 In those section are saved  the filehistory.

 But if i open in the project X files or some sensible-forbidden files = it
 is saved in the project.prj !

 And i do not want that if i share my projects  ;-)

There is no harm to delete the sections in the *.prj.

 So a option to save it will be welcome...

 = The answer is in your answer (i  will study it)

I assume your projectfiles are identical for all your shared projects, make a 
clean project file for packing. A clean version can be exported 
by 'Project'-'Options'-'Storage'-'Save'.

 Hum... other sensible thing.  All the MSEide stat files are saved in
 .mseide =

 mseideli.sta = linux
 mseidewi.sta = windows.

 For no confusion, the ideU files are saved as =

 ideuli.sta = linux
 ideuwi.sta = windows.

Yup, it wiped out my MSEide settings. ;-)

 Do you agree is i save that files in a other directory than .mseide ?
 If yes, where is the code that define that .meseide directory ?

main.pas:

const
 versiontext = '3.7';
 idecaption = 'MSEide';
 statname = 'mseide';

[...]

procedure tmainfo.mainonloaded(const sender: tobject);
var
 wstr1: msestring;
begin
 try
  wstr1:= filepath(statdirname);
  if not finddir(wstr1) then begin
   createdir(wstr1);
  end;
  {$ifdef mswindows}
  mainstatfile.filename:= statname+'wi.sta';
  {$endif}
  {$ifdef linux}
  mainstatfile.filename:= statname+'li.sta';
  {$endif}
  {$ifdef openbsd}
  mainstatfile.filename:= statname+'obsd.sta';
  {$endif}
  {$ifdef bsd}
  mainstatfile.filename:= statname+'bsd.sta';
  {$endif}
  mainstatfile.readstat;
  expandprojectmacros;
  onscale(nil);
 finally
  mainfo.activate;
 end;
 {$ifdef mse_dumpunitgroups}
 dumpunitgr;
 {$endif}
end;

Martin

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Compile on freeBSD problem

2014-12-18 Thread Fred van Stappen
 Suggestion: remove -CX -XX .

Excellent = it works directly and fast ;-)

Many thanks.
  --
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] First steps with mse...

2014-12-18 Thread Fred van Stappen


 main.pas:
 
 const
  versiontext = '3.7';
  idecaption = 'MSEide';
  statname = 'mseide';
 
 [...]
 
 procedure tmainfo.mainonloaded(const sender: tobject);
 var
  wstr1: msestring;
 begin
  try
   wstr1:= filepath(statdirname);
   if not finddir(wstr1) then begin
createdir(wstr1);
   end;
   {$ifdef mswindows}
   mainstatfile.filename:= statname+'wi.sta';
   {$endif}
   {$ifdef linux}
   mainstatfile.filename:= statname+'li.sta';
   {$endif}
   {$ifdef openbsd}
   mainstatfile.filename:= statname+'obsd.sta';
   {$endif}
   {$ifdef bsd}
   mainstatfile.filename:= statname+'bsd.sta';
   {$endif}
   mainstatfile.readstat;
   expandprojectmacros;
   onscale(nil);
  finally
   mainfo.activate;
  end;
  {$ifdef mse_dumpunitgroups}
  dumpunitgr;
  {$endif}
 end;


Perfect. Works like charm  and thanks for your generosity.

Hum, subsidiary question...

How did you do to hide statdirname in  version '3.6' ?

I have changed statdirname:= '.ideu' but it still saved in '.mseide' (but 
.ideu/ directory is created, empty.)...

And i looked in your code everywhere and did not find where you assign it...

(or maybe it is a secret, so keep it...)

Billion of thanks.

Fred





  --
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] First steps with mse...

2014-12-18 Thread Fred van Stappen
Hello Martin

I did something simpler = assign mainfo.openfile.statfile = to 
mainstatfile (idem for openform and projectfiledia).

That way history is still saved but no more in project stat but in main stat 
file.

(And i discover your secret = .mseide directory was stored in main-form =
 mainfo.mainstatfile.dir  =  ^/.mseide) ;-)

Many thanks.

Fred.



  --
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] First steps with mse...

2014-12-18 Thread Martin Schreiber
On Thursday 18 December 2014 20:02:44 Fred van Stappen wrote:

 Hum, subsidiary question...

 How did you do to hide statdirname in  version '3.6' ?

The code I posted is from git master.
https://gitorious.org/mseide-msegui/mseide-msegui/source/apps/ide/main.pas
I suggested to use
https://gitorious.org/mseuniverse/ideu
with the same directory layout as mseide-msegui and an original mseide 
branch for development, do you remember?

Martin

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] First steps with mse...

2014-12-18 Thread Martin Schreiber
On Friday 19 December 2014 04:12:41 Fred van Stappen wrote:
 Hello Martin

 I did something simpler = assign mainfo.openfile.statfile = to
 mainstatfile (idem for openform and projectfiledia).

Then you loose the project related file history.

 That way history is still saved but no more in project stat but in main
 stat file.

 (And i discover your secret = .mseide directory was stored in main-form =
  mainfo.mainstatfile.dir  =  ^/.mseide) ;-)

This value will be overridden by tmainfo.mainonloaded().

Martin

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk