From kde-java@kde.org Thu Feb 7 15:46:25 2002 From: kde-java@kde.org (kde-java@kde.org) Date: Thu, 07 Feb 2002 15:46:25 Subject: [Kde-java] WORLDS FIRST Player vs Player Blackjack Message-ID: <05ad92240230722STATION@station.blackjackstation.com> --=_ Boundary 1-KTwEv4jY84Hk Content-Type: text/plain; charset = "ISO-8859-1" Content-Transfer-Encoding: 7bit This message can only be viewed in HTML --=_ Boundary 1-KTwEv4jY84Hk Content-Type: text/html; charset = "ISO-8859-1" Content-Transfer-Encoding: 7bit
Blackjack Shack eliminates the traditional casino House and transfers the House advantage to players. Players compete in one-on-one sessions against each other and never play against the House. Our game is similar to a poker room where the House only serves as host and never competes against players. This is the only blackjack game in existence where player skill determines the advantage. Success is measured by how well you play, not how lucky you are. Test our
game today and you'll see why we have the most fair and credible blackjack
game on the planet. To unsubscribe please reply to: offshack@hotmail.com |
KAction newAct = new KAction(i18n("&New"), QIconSet(BarIcon("filenew")), KStdAccel.key(KStdAccel.New), this, SLOT("fileNew()"), actionCollection());You could drop that and replace it with:
KAction newAct = KStdAction.openNew(this, SLOT("fileNew()"), actionCollection());So maybe BarIcon() isn't needed so much anymore. > 2) Does the i18n not exist for java? KBase.java uses tr() so instead I > wrote an i18n method which calls tr() that way I did not have to change all > the i18n code. Is the tr() method going to be used instead of the i18n? Yes, it should be there. I'll add your version if you post it on this list or send it to me. > 3) Could someone give me an example of using the QWhatsThis. In > kscribble.cpp it is as follows: > > QToolButton *btnwhat = QWhatsThis::whatsThisButton(toolBar()); > QToolTip::add(btnwhat, i18n("What's this...?")); > toolBar()->insertWidget(ID_HELP_WHATS_THIS, btnwhat->sizeHint().width(), > btnwhat); > > I have tried all sorts of things to get this working but to no avail. This compiles, but it crashes: private static final int ID_HELP_WHATS_THIS = 1; ... QToolButton btnwhat = QWhatsThis.whatsThisButton(toolBar()); QToolTip.add(btnwhat, "What's this...?"); toolBar().insertWidget(ID_HELP_WHATS_THIS, btnwhat.sizeHint().width(), btnwhat); I'm investigating what's wrong. Here is some QWhatsThis() code which works: button = new QPushButton("Top Level\nWidget",this); QWhatsThis.add(button, "Button\n\n" + "This button is used as the top\n" + "level widget for this example. It\n" + "is very safe to click the button\n" + "because it doesn't do anything.\n"); setCentralWidget(button); > 4) While reading options and using the readListEntry for recentFiles I get > a error linkage not satisfied error. I have tried both versions of the > method call for java. > // initialize the recent file list > config->readListEntry("Recent Files",recentFiles); > > My code (example): > > ArrayList recentFiles = new ArrayList(); > config.readListEntry("Recent Files",recentFiles); > > Sorry I can not give the exact error message as I am writing from memory > and do not have the code here. I can of course provide this if needed > later. That method needs fixing up by hand. At the moment it is passing the value of 'recentFiles' to config.readListEntry(), but isn't converting the returned value of the list back to java. On the other hand: ArrayList recentFiles = config.readListEntry("Recent Files"); A function returning a C++ list would be easier to convert than a void procedure. > 5) When trying to load an image from open file list in kscribbledoc.cpp > > ///////////////////////////////////////////////// > // TODO: Add your document opening code here > if(!buffer.load( filename, format )) > return false; > size=buffer.size(); ///////////////////////////////////////////////// > > I tried the buffer.load( filename, format, conv) method. > > format is difined as a char in the C++ library version but in the java > binding it is a String. I could not for the life of me get this to work. > I finally used !buffer.load( filename ) and it worked perfectly. > > My question is is this an error or have I done something wrong? Probably I > did something wrong but just had to ask. It looks like a bug - I'll look into it. > Sorry for so many newbie quesions. I have others but I like to dig. No problem, keep coming up with more feedback like this.. > The KScribble in java works great so far. There is no difference in look > and feel nor speed so far. This is great. Just slower start up time is the main difference. > I will post the code for your examples as soon as I get it cleaned up. I > have stuff commented out all over the place and the toolbar does not work > yet I think because of the BarIcon that I mentioned before. It would be good to add a java KScribble to the kdebindings examples. It's an excellent test program - I can just keep fixing the problems you describe until we get it fully working. > I did all of this yesterday (Sunday) while learning the Qt and KDE stuff at > the same time. I think this is a testimonial to the java bindings. Yes, that's encouraging for me too.. -- Richard From kde-java@kde.org Tue Feb 12 09:21:45 2002 From: kde-java@kde.org (KJ P) Date: Tue, 12 Feb 2002 09:21:45 +0000 Subject: [Kde-java] Some questions - long - KScribble in java Message-ID:
> KAction newAct = new KAction(i18n("&New"), QIconSet(BarIcon("filenew")), > KStdAccel.key(KStdAccel.New), this, > SLOT("fileNew()"), actionCollection()); >> > You could drop that and replace it with: > >
> KAction newAct = KStdAction.openNew(this, SLOT("fileNew()"), > actionCollection()); >> >So maybe BarIcon() isn't needed so much anymore. > > > 2) Does the i18n not exist for java? KBase.java uses tr() so instead I > > wrote an i18n method which calls tr() that way I did not have to change >all > > the i18n code. Is the tr() method going to be used instead of the i18n? >Yes, it should be there. I'll add your version if you post it on this list >or >send it to me. > > > 3) Could someone give me an example of using the QWhatsThis. In > > kscribble.cpp it is as follows: > > > > QToolButton *btnwhat = QWhatsThis::whatsThisButton(toolBar()); > > QToolTip::add(btnwhat, i18n("What's this...?")); > > toolBar()->insertWidget(ID_HELP_WHATS_THIS, btnwhat->sizeHint().width(), > > btnwhat); > > > > I have tried all sorts of things to get this working but to no avail. >This compiles, but it crashes: > >private static final int ID_HELP_WHATS_THIS = 1; > ... > > QToolButton btnwhat = QWhatsThis.whatsThisButton(toolBar()); > QToolTip.add(btnwhat, "What's this...?"); > toolBar().insertWidget(ID_HELP_WHATS_THIS, btnwhat.sizeHint().width(), >btnwhat); > >I'm investigating what's wrong. > >Here is some QWhatsThis() code which works: > > button = > new QPushButton("Top Level\nWidget",this); > QWhatsThis.add(button, > "Button\n\n" > + "This button is used as the top\n" > + "level widget for this example. It\n" > + "is very safe to click the button\n" > + "because it doesn't do anything.\n"); > setCentralWidget(button); > > > 4) While reading options and using the readListEntry for recentFiles I >get > > a error linkage not satisfied error. I have tried both versions of the > > method call for java. > > // initialize the recent file list > > config->readListEntry("Recent Files",recentFiles); > > > > My code (example): > > > > ArrayList recentFiles = new ArrayList(); > > config.readListEntry("Recent Files",recentFiles); > > > > Sorry I can not give the exact error message as I am writing from memory > > and do not have the code here. I can of course provide this if needed > > later. >That method needs fixing up by hand. At the moment it is passing the value >of >'recentFiles' to config.readListEntry(), but isn't converting the returned >value of the list back to java. > >On the other hand: > >ArrayList recentFiles = config.readListEntry("Recent Files"); > >A function returning a C++ list would be easier to convert than a void >procedure. > > > 5) When trying to load an image from open file list in kscribbledoc.cpp > > > > ///////////////////////////////////////////////// > > // TODO: Add your document opening code here > > if(!buffer.load( filename, format )) > > return false; > > size=buffer.size(); ///////////////////////////////////////////////// > > > > I tried the buffer.load( filename, format, conv) method. > > > > format is difined as a char in the C++ library version but in the >java > > binding it is a String. I could not for the life of me get this to >work. > > I finally used !buffer.load( filename ) and it worked perfectly. > > > > My question is is this an error or have I done something wrong? >Probably I > > did something wrong but just had to ask. >It looks like a bug - I'll look into it. > > > Sorry for so many newbie quesions. I have others but I like to dig. >No problem, keep coming up with more feedback like this.. > > > The KScribble in java works great so far. There is no difference in >look > > and feel nor speed so far. This is great. >Just slower start up time is the main difference. > > > I will post the code for your examples as soon as I get it cleaned up. >I > > have stuff commented out all over the place and the toolbar does not >work > > yet I think because of the BarIcon that I mentioned before. >It would be good to add a java KScribble to the kdebindings examples. It's >an >excellent test program - I can just keep fixing the problems you describe >until we get it fully working. > > > I did all of this yesterday (Sunday) while learning the Qt and KDE stuff >at > > the same time. I think this is a testimonial to the java bindings. >Yes, that's encouraging for me too.. > >-- Richard >_______________________________________________ >Kde-java mailing list >Kde-java@mail.kde.org >http://mail.kde.org/mailman/listinfo/kde-java _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From kde-java@kde.org Tue Feb 12 12:02:19 2002 From: kde-java@kde.org (Richard Dale) Date: Tue, 12 Feb 2002 12:02:19 +0000 Subject: [Kde-java] Some questions - long - KScribble in java In-Reply-To:
![]() |
![]() |
|
![]() |
![]() |
![]() |
![]() |
||||
|
||||||
![]() |
= February,=20=0D=0A=20=20=20=20=20=202002= | =0D=0A=20=20=20=20=20=0D=0A=20=20=20=20=20=20=0D=0A=20=20=20=20 | =0D=0A= =20=20
=0D=0A=20=20=20=20 | =20=0D=0A=20=20=20=20=20=20 Issue=20=0D=0A=20=20=20=20=20=20=20=20No.=20001=
=0D=0A=20=20=20=20 | =0D=0A=20=20
We=20=0D=0A=20=20=20=20=20=20=20= =20=20=20are=20proud=20to=20announce=20a=20new=20and=20exciting=20service= =20that=20is=20now=20available=20=0D=0A=20=20=20= =20=20=20=20=20=20=20to=20you!
=0D=0A=20=20=20=20=20=20=20=20=20=0D=0A=20=20=20=20=20=20 =20=0D=0A=20=20=20=20=
=20=20=20=20 =0D=0A=20=20=20=20=20=
=20Welcom= e=20=0D=0A=20=20=20=20=20=20=20=20=20=20to=20the=20Launch=20of=20....= cite> =0D=0A=20=20=20=20=20=20=20=20www.eServicesLink.com=20=0D=0A=20=20=20=20=20=20=20=20=20=20-The=20=0D=0A=20=20=20=20=20=20=20=20=20=20Contract=20Marketplace!= =0D=0A=20=20=20=20=20=20 | =0D=0A=20=20
=20=0D=0A=20=
=20=20=20=20=20 =0D=0A=20=20=20=20=20=20 eSL=20=0D=0A=20=20=20=20=20=20= =20=20is=20for=20... =0D=0A=20=20=20=20=20= =20Busi= nesses=20=0D=0A=20=20=20=20=20=20=20=20to=20successfully=20locate=20Profess= ionals=20for=20contract=20opportunities =0D=0A=20=20= =20=20=20=20("Outsourcers")= =0D=0A=20=20=20=20=20=20 | =0D=0A=20=20=20=20=0D=0A=20=20=20=20=20=20 Most=20=0D=0A=20=20=20= =20=20=20=20=20businesses=20who=20invariably=20have=20short=20term=20projec= ts=20that=20frequently=20need=20=0D=0A=20=20=20=20=20=20=20=20addressing...= .anything=20from=20website=20design,=20to=20accounts=20assistance,=20to=20=0D= =0A=20=20=20=20=20=20=20=20secretarial=20services,=20to=20computer=20doctor= ing,=20etc,=20etc....!=20How=20often=20have=20=0D=0A=20=20=20=20=20=20=20= =20you=20struggled=20to=20find=20the=20right=20expertise=20you=20need,=20wh= en=20you=20need=20it=20and=20=0D=0A=20=20=20=20=20=20=20=20at=20a=20price= =20you=20can=20afford?!=20=20 =0D=0A=20=20=20=20=20=20Now,=20yo= u=20=0D=0A=20=20=20=20=20=20=20=20can=20simply=20use=20eSL=20=0D=0A=20=20=20=20=20= =20=20=20to=20locate=20the=20resource.=20We=20serve=20as=20the=20link=20to= =20allow=20freelancers/contractors=20=0D=0A=20=20=20=20=20=20=20=20to=20bid= =20to=20undertake=20your=20project.=20Professionals=20with=20the=20skills= =20you=20require=20=0D=0A=20=20=20=20=20=20=20=20can=20bid=20for=20your=20b= usiness=20-=20like=20an=20auction.=20All=20=0D=0A=20=20=20=20=20=20= =20=20you=20need=20to=20do=20is=20open=20an=20account=20today=20FREE=20=0D= =0A=20=20=20=20=20=20=20=20and=20submit=20your=20project(s)!=20 =0D=0A=20=20=20=20=20=20Visit=20=0D= =0A=20=20=20=20=20=20=20=20www.eServicesLink.com=20=0D=0A= =20=20=20=20=20=20=20=20now!=20 =0D=0A=20=20=20=20=20=20 | =0D=
=0A=20=20
=20=0D=0A=20=20=20=20=20=20=
=0D=0A=20=20=20=20=20=20 <= b>eSL=20=0D=0A=20=20=20=20=20= =20=20=20is=20=0D=0A=20=20=20=20=20=20=20= =20for=20=20=0D=0A=20=20=20=20=20=20=20=20= ...=20 =0D=0A=20=20=20=20=20=20Freelancers/= =20=0D=0A=20=20=20=20=20=20=20=20Contractors=20to=20successfully=20locate= =20contract=20opportunities=20 =0D=0A=20=20=20=20=20= =20("Professionals") =0D=0A=20=20=20=20=20=20 | =0D=0A=20=20=20=20=20=0D=0A=20=20=20=20=20=20 =
=20=0D=0A=20=20=20=20=20=20=20=20 =0D=0A=20=20=20=20Freelancers/contractors=20=0D=0A=20=20=
=20=20=20=20=20=20=20=20in=20every=20field...=20How=20often=20have=20you=20=
wondered=20how=20and=20where=20to=20find=20=0D=0A=20=20=20=20=20=20=20=20=
=20=20the=20next=20contract/project?=20Well,=20this=20is=20the=20site=20for=
=20you!=20Sign=20up=20for=20=0D=0A=20=20=20=20=20=
=20=20=20=20=20FREE=20with=20 Once=20registered,=20=0D= =0A=20=20=20=20=20=20=20=20=20=20you=20can=20visit=20our=20site=20regularly= =20to=20either=20locate=20your=20next=20opportunity=20=0D=0A=20=20=20=20=20= =20=20=20=20=20or,=20even=20easier,=20allow=20us=20to=20automatically=20ema= il=20you=20when=20a=20project=20=0D=0A=20=20=20=20=20=20=20=20=20=20is=20po= sted=20that=20fits=20your=20skill=20set. =0D=0A=20=20=20=20=20=20= =20=20Visit=20=0D=0A=20=20=20= =20=20=20=20=20=20=20www.eServicesLink.com= =20=0D=0A=20=20=20=20=20=20=20=20=20=20now!=20 =0D= =0A=20=20=20=20=20=20=20=20=0D=0A=20=20=20= =20=20=20=20=20 | =0D=0A=20=20
=0D=0A=20=20=20=20=20=20 If=20=0D=0A=20=20=
=20=20=20=20=20=20you=20feel=20that=20this=20newsletter=20was=20sent=20to=
=20you=20in=20error,=20is=20not=20of=20use=20=0D=0A=20=20=20=20=20=20=20=20=
and=20would=20rather=20we=20didn't=20copy=20them=20to=20you=20in=20future=
=20firstly=20let=20us=20apologise=20=0D=0A=20=20=20=20=20=20=20=20for=20any=
=20inconvenience=20we=20caused=20you.=20To=20unsubscribe,=20simply=20visit=
=20www.eServicesLink.com,=20=0D=
=0A=20=20=20=20=20=20=20=20enter=20your=20address=20in=20the=20text=20box=
=20and=20select=20the'unsubscribe'=20option=20=0D=0A=20=20=20=20=20=20=20=
=20or=20send=20a=20reply=20eMail=20to=20unsubscribe@eserviceslink.com.=20=0D=0A=20=20=20=20=20=
=20=20=20We=20are=20not=20spam=20mailers=20and=20will=20endeavour=20to=20re=
frain=20from=20any=20further=20=0D=0A=20=20=20=20=20=20=20=20mailings=20to=
=20your=20address.=20 =0D=0A=20=20=20=20 | =0D=0A=20=20=
tr>=0D=0A
= February,=20=0D=0A=20=20=20=20=20=202002= | =0D=0A=20=20=20=20=20=0D=0A=20=20=20=20=20=20=0D=0A=20=20=20=20 | =0D=0A= =20=20
=0D=0A=20=20=20=20 | =20=0D=0A=20=20=20=20=20=20 Issue=20=0D=0A=20=20=20=20=20=20=20=20No.=20001=
=0D=0A=20=20=20=20 | =0D=0A=20=20
We=20=0D=0A=20=20=20=20=20=20=20= =20=20=20are=20proud=20to=20announce=20a=20new=20and=20exciting=20service= =20that=20is=20now=20available=20=0D=0A=20=20=20= =20=20=20=20=20=20=20to=20you!
=0D=0A=20=20=20=20=20=20=20=20=20=0D=0A=20=20=20=20=20=20 =20=0D=0A=20=20=20=20=
=20=20=20=20 =0D=0A=20=20=20=20=20=
=20Welcom= e=20=0D=0A=20=20=20=20=20=20=20=20=20=20to=20the=20Launch=20of=20....= cite> =0D=0A=20=20=20=20=20=20=20=20www.eServicesLink.com=20=0D=0A=20=20=20=20=20=20=20=20=20=20-The=20=0D=0A=20=20=20=20=20=20=20=20=20=20Contract=20Marketplace!= =0D=0A=20=20=20=20=20=20 | =0D=0A=20=20
=20=0D=0A=20=
=20=20=20=20=20 =0D=0A=20=20=20=20=20=20 eSL=20=0D=0A=20=20=20=20=20=20= =20=20is=20for=20... =0D=0A=20=20=20=20=20= =20Busi= nesses=20=0D=0A=20=20=20=20=20=20=20=20to=20successfully=20locate=20Profess= ionals=20for=20contract=20opportunities =0D=0A=20=20= =20=20=20=20("Outsourcers")= =0D=0A=20=20=20=20=20=20 | =0D=0A=20=20=20=20=0D=0A=20=20=20=20=20=20 Most=20=0D=0A=20=20=20= =20=20=20=20=20businesses=20who=20invariably=20have=20short=20term=20projec= ts=20that=20frequently=20need=20=0D=0A=20=20=20=20=20=20=20=20addressing...= .anything=20from=20website=20design,=20to=20accounts=20assistance,=20to=20=0D= =0A=20=20=20=20=20=20=20=20secretarial=20services,=20to=20computer=20doctor= ing,=20etc,=20etc....!=20How=20often=20have=20=0D=0A=20=20=20=20=20=20=20= =20you=20struggled=20to=20find=20the=20right=20expertise=20you=20need,=20wh= en=20you=20need=20it=20and=20=0D=0A=20=20=20=20=20=20=20=20at=20a=20price= =20you=20can=20afford?!=20=20 =0D=0A=20=20=20=20=20=20Now,=20yo= u=20=0D=0A=20=20=20=20=20=20=20=20can=20simply=20use=20eSL=20=0D=0A=20=20=20=20=20= =20=20=20to=20locate=20the=20resource.=20We=20serve=20as=20the=20link=20to= =20allow=20freelancers/contractors=20=0D=0A=20=20=20=20=20=20=20=20to=20bid= =20to=20undertake=20your=20project.=20Professionals=20with=20the=20skills= =20you=20require=20=0D=0A=20=20=20=20=20=20=20=20can=20bid=20for=20your=20b= usiness=20-=20like=20an=20auction.=20All=20=0D=0A=20=20=20=20=20=20= =20=20you=20need=20to=20do=20is=20open=20an=20account=20today=20FREE=20=0D= =0A=20=20=20=20=20=20=20=20and=20submit=20your=20project(s)!=20 =0D=0A=20=20=20=20=20=20Visit=20=0D= =0A=20=20=20=20=20=20=20=20www.eServicesLink.com=20=0D=0A= =20=20=20=20=20=20=20=20now!=20 =0D=0A=20=20=20=20=20=20 | =0D=
=0A=20=20
=20=0D=0A=20=20=20=20=20=20=
=0D=0A=20=20=20=20=20=20 <= b>eSL=20=0D=0A=20=20=20=20=20= =20=20=20is=20=0D=0A=20=20=20=20=20=20=20= =20for=20=20=0D=0A=20=20=20=20=20=20=20=20= ...=20 =0D=0A=20=20=20=20=20=20Freelancers/= =20=0D=0A=20=20=20=20=20=20=20=20Contractors=20to=20successfully=20locate= =20contract=20opportunities=20 =0D=0A=20=20=20=20=20= =20("Professionals") =0D=0A=20=20=20=20=20=20 | =0D=0A=20=20=20=20=20=0D=0A=20=20=20=20=20=20 =
=20=0D=0A=20=20=20=20=20=20=20=20 =0D=0A=20=20=20=20Freelancers/contractors=20=0D=0A=20=20=
=20=20=20=20=20=20=20=20in=20every=20field...=20How=20often=20have=20you=20=
wondered=20how=20and=20where=20to=20find=20=0D=0A=20=20=20=20=20=20=20=20=
=20=20the=20next=20contract/project?=20Well,=20this=20is=20the=20site=20for=
=20you!=20Sign=20up=20for=20=0D=0A=20=20=20=20=20=
=20=20=20=20=20FREE=20with=20 Once=20registered,=20=0D= =0A=20=20=20=20=20=20=20=20=20=20you=20can=20visit=20our=20site=20regularly= =20to=20either=20locate=20your=20next=20opportunity=20=0D=0A=20=20=20=20=20= =20=20=20=20=20or,=20even=20easier,=20allow=20us=20to=20automatically=20ema= il=20you=20when=20a=20project=20=0D=0A=20=20=20=20=20=20=20=20=20=20is=20po= sted=20that=20fits=20your=20skill=20set. =0D=0A=20=20=20=20=20=20= =20=20Visit=20=0D=0A=20=20=20= =20=20=20=20=20=20=20www.eServicesLink.com= =20=0D=0A=20=20=20=20=20=20=20=20=20=20now!=20 =0D= =0A=20=20=20=20=20=20=20=20=0D=0A=20=20=20= =20=20=20=20=20 | =0D=0A=20=20
=0D=0A=20=20=20=20=20=20 If=20=0D=0A=20=20=
=20=20=20=20=20=20you=20feel=20that=20this=20newsletter=20was=20sent=20to=
=20you=20in=20error,=20is=20not=20of=20use=20=0D=0A=20=20=20=20=20=20=20=20=
and=20would=20rather=20we=20didn't=20copy=20them=20to=20you=20in=20future=
=20firstly=20let=20us=20apologise=20=0D=0A=20=20=20=20=20=20=20=20for=20any=
=20inconvenience=20we=20caused=20you.=20To=20unsubscribe,=20simply=20visit=
=20www.eServicesLink.com,=20=0D=
=0A=20=20=20=20=20=20=20=20enter=20your=20address=20in=20the=20text=20box=
=20and=20select=20the'unsubscribe'=20option=20=0D=0A=20=20=20=20=20=20=20=
=20or=20send=20a=20reply=20eMail=20to=20unsubscribe@eserviceslink.com.=20=0D=0A=20=20=20=20=20=
=20=20=20We=20are=20not=20spam=20mailers=20and=20will=20endeavour=20to=20re=
frain=20from=20any=20further=20=0D=0A=20=20=20=20=20=20=20=20mailings=20to=
=20your=20address.=20 =0D=0A=20=20=20=20 | =0D=0A=20=20=
tr>=0D=0A