Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jdf

Pages: [1] 2 3
1
Software / Zaurus Unit Converter
« on: October 31, 2004, 10:15:20 pm »
Anyone else having problems with URL.  It seems to work fine for me.

http://www.delferro.net/zaurus/

2
Software / Zaurus Unit Converter
« on: October 31, 2004, 05:35:52 pm »
I made a unit converter as a way to learn how to program for the zaurus.   I never got much feedback after it was initially made, and I have been away from the zaurus since then!  I might be getting back into some programming this winter, I hope!  Maybe I could improve it. I only tried on sharp ROM for 5500 and it was doing the calcs correctly:

You could try the results here:
http://www.delferro.net/zaurus/

Or look over the posts and help I had making it from this boards here:
https://www.oesf.org/forums/inde...wtopic=2505&hl=

And these discusions we had about setting up the developer environment:
https://www.oesf.org/forums/inde...wtopic=2045&hl=
https://www.oesf.org/forums/inde...owtopic=431&hl=

JDF

3
General Discussion / Zaurus and comcast cable
« on: June 03, 2004, 11:22:24 pm »
I have comcast in PA Delaware County.  My 5500 is usually connected through the USB cradle on my WinXP machine.  It shows up as as a Win Network Folder under my local Workgroup which includes WinXP, a Linux BOx and the Zaurus. I can copy files back and forth from any machine.

I have a wireless router.  When I put my Wifi Card in the 5500, I can browse the web on Zaurus.

NOW....I don\'t know exactly how I got it all to work.  I don\'t know a lot and used a shotgun and trial and error approach.  Once it did what I wanted I stopped changing things.   Often I didn\'t know what the settings even mean, but i changed them anyway.  

If you can tell me exactly what settings to check, I will check them and tell you what I got.

JDF

4
Qt/Qtopia / QT "Compiler Setup" worked before. Why not now?
« on: March 30, 2004, 12:58:31 pm »
I CAN\'T explain why, I just know what worked for me.  
I have Fedora Core 1 which is pretty much RedHat 9 as I understand it.  I followed how-to\'s with all the gcc2.95 references and had several errors, but then found I DID NOT HAVE TO DO the backward compatible gcc rpms.  Just used what came with default install of Fedora.  Everything worked.   Maybe this will give you a clue to your problem.

http://www.zaurususergroup.com/index.php?n...iewtopic&t=2045

or this one

http://www.zaurususergroup.com/index.php?n...viewtopic&t=431

jdf

5
Philly/NJ / Local Zauruites?
« on: March 28, 2004, 07:10:39 pm »
Welcome!  Don\'t know where to buy locally.  I got mine used on ebay.  There\'s a good selection and often have the needed extras such as CF cadrs, SD cards, and wireless cards.   All of these you\'ll have to go out and get somewhere else if you buy the Z new!.

JDF

6
Qt/Qtopia / Cheap way to develop with Linux on Z-SL-5600? Anyone?
« on: March 24, 2004, 07:00:37 pm »
Hi Clint,

I started all my fun aboyt 4 weeks ago.  I also came up with a strange method because I didn\'t have time to figure out connecting Zaurus to Linux and mostly becuase I am much more efficient using windows.  This is what I have:

1) I purchased the book C++ GUI Programming with Qt3 which comes with the windows Qt and borland compilers installed on my winXP box.

2) old laptop with Fedora Core1 installed and all the development tools.  I did the example programs on this and it worked fine on the frame buffer and compiled it for zaurus.  (lots of initial problems and trial and error and help from this board!)  It also is run on wired ethernet to my router.

3) Windows XP Computer with ethernet wired connection to router.  AND with Zaurus cradle connected through USB cable to winXP box.

4) Running SAMBA on the Linux laptop.  I figured out how to make the linux laptop hard drive a shared drive that is accessible in my Windows WorkGroup Network Neighborhood.   Whenever I work on the Linux box I work in the shared directory.  (I can\'t explain how I got SAMBA working.  It was a lot of trial and error and it started working and I just don\'t touch it since then!)

4) The Zaurus ALSO shows up in my Windows Workgroup whenever it is in cradle.  (don\'t need the \"FIle Transfer\" Program, just copy files to and from from using standard methods!)


So This is what I do:

1) Develop everything on the Windows computer.  Looking good and want to test for Zaurus?  then...
2) from the xp box, Copy current files to the Linux shared directory.  (I don\'t work in the shared directories because the linux box is usually off! So turn it on and copy!
3) Go to the Linux computer and edit the 1 or 2 lines that need changing for QPE then compile and test it in the framebuffer.
4) Need changes? Make them on windows and test again on Linux (switch computers again!)
5) Looking good in the frame buffer?  Then I rebuild it for arm on the Linux box.  I am working in the shared directories.
6)Want a full ipkg...then make it on the linux box in the shared ddirectory.
6) Goto the Windows computer and copy from the Linux shared drive to the Zaurus shared drive.
7) Run on Zaurus or install ipkg!

Sounds complicated, but I have gotten pretty fast at it by now!!  And using Windows and familiar systems let me be more productive since I can simultaneously do other things like edit work documents or check work email etc...all of which I cannot do on Linux efficiently because I don\'t know how and don\'t have time to learn...yet.  

For every 1 hour spend developing only about 5 minutes is on the Linux box now.

Seems like you should be able to add the ZAURUS samba mount directly to the Linux box, but I am comfortable with what I have, since I am primarily on the windows box.

here is the result of my trials over the last month!  I am glad I stuck it out!

http://www.delferro.net/zaurus

(hmmmm...seems to be down now, try later!)

Don\'t give up without a fight!! I am sure you can get a system that works for you!  And this board has been very friendly and helpful to me as a newbie.

JDF

7
NYC / subway maps
« on: March 21, 2004, 09:50:53 am »
Link works fine for me!

8
Qt/Qtopia / A few for any developers
« on: March 21, 2004, 12:41:11 am »
I am just learning how to develop.  I got a lot of help from this board.  The stuff I want to do is pretty simple and not for the Linux/experts like most of the folks on this board.   As a start I just experimented with a Unit Conversion program.  You can see it here.  I just finished this week!  It is simple but proved to myself that I could develop for the Zaurus.

http://www.delferro.net/zaurus

I\'d appreciate any feedback and after a short rest I have some more questions for the experts here!  Thankx everyone.

JDF

9
Qt/Qtopia / My first application: Done. A few questions
« on: March 16, 2004, 10:16:55 pm »
Blackbird, thankx again....maybe I\'ll call this program ucbb !

I have the gridlayout working.  Ran into a few glitches trying to set min row height and columns to control the layout  Qt uses newer methods that didn\'t work on QPE
                     
current Qt method is setRowSpacing
for QPE use legacy methods: addRowSpacing

It basically installs and looks great; however, the screen will expand larger than the screen size and start hiding widgets.   This happens when the Lineedit gets a very large number in it!    Before the gridlayout, this didn\'t happen.  hmmmmmm.   I\'ll try a few different ways of implementing the widgets and see if that changes anything.  right now I just implement it in the main widget.  Maybe if I implement it inside the QVBox.  I\'ll experiment!

I put both the ipk and the current files at http://www.delferro.net/zaurus

In any case, I have progressed to where I feel comfortable and can take a break and CLEAN THE HOUSE AND GARAGE AND RUN ALL THOSE PROMISED ERRANDS before my wife gets back from her vacation!!   That\'s the only reason I got to play with this thing for the last 3 weeks!

I\'ll get back to this next week.  I really appreciate all the help directly from blackbird and markb, as well as all the other informative posts all over this board!

jdf

10
Qt/Qtopia / My first application: Done. A few questions
« on: March 15, 2004, 11:13:56 pm »
I apologize for my last post referencing \"Blackbird\" :!:
BlackCardinal:  Thankx again.  I am getting the hang of this now!  

OK: The program is basically working the way I wanted thanks to your suggestins.  I have an ipk that successfully installs itself with icon, help file, and the data files into home/zaurus.  It then executes from its icon in the Applications TAB.   Does its stuff and exits cleanly.  I am pretty happy.

My last issue is the screen layout.  I have code in the ( j_uconvrt.cpp ) constructor to make a Gridlayout with a 5 row 2 column box.  The first row is the file, the second row is the category, on the third row I have the Lineedit and the baseunit combo box side by side in col 1 and col 2. and 4th row has the output text and the converted unit combo box side by side.

In any case the layout doesn\'t seem to be applied. No errors, but i just get a single column VBox layout.

If anyone wants to try out the ipk or look at the code it can be downloaded here   http://www.delferro.net/zaurus

11
Qt/Qtopia / My first application: Done. A few questions
« on: March 14, 2004, 11:59:40 pm »
OK Blackbird.....
Seems like you zeroed right in on it!!  Thankx!

I made only the changes you suggested in your post.
-Caption is correct
-Keyboard works great now
-Not sure about the full screen yet, but I think it will work.

In my qvbf it seems like it wasn\'t full screen and I could move the window around.  Also when I ran it from terminal on Z5500 it didn\'t go full screen either and I could move the window around, but caption and keyboard were fine on the Z.

Let me try some other things and verify, before I ask it again!

I thought maybe if i packaged it onto the Z it would work, so I made an ipk, but have been unsuccessful at getting the Z to recognize the ipk for install.  The only other ipk I made was for the \"example\" program and I did that OK, so I thought I did this one exactly the same.

If someone could look at the IPK, i\'d appreciate it! :wink:  

I put the ipk and current source here:
http://www.delferro.net/zaurus

Thankx everyone.  Oh, markb, thankx for the insight into the pointer to an object and the actual object stuff.  It helped me understand some other things!!

JDF

12
Qt/Qtopia / My first application: Done. A few questions
« on: March 14, 2004, 11:57:57 am »
lpotter,
Thankyou for helping me out.  Here is some additional info
0. screen size:
I think I am using an QVbox for the layout.  But it still seems not to start out MAXIMIZED,  I also tried a grid layout in place of the QHBox and that also didn\'t start out MAXIMIZED.  It starts a little smaller than screen and then I can tap the MAXIMIZE button on title bar and it maximizes to the screen.    How can I start out maximized to the device?

1) I made the changes you pointed out
     #include <qpe/qpeapplication.h>
     QApplication jdfapp( argc, argv );
      j_uconvert jmain;
      jdfapp.showMainWidget( &jmain );
But then I get a problem with the later statements in main as I had them, including
      jmain->show();  
        error: (base operand of `->\' has non-pointer type `j_uconvert\'
SO, I left everything as I originally had it But I did add my missing
     #include <qpe/qpeapplication.h>
      and deleted     #include <qapplication.h>
NET RESULT:  seems to perform same as original as far as the screen size problem.

2) Why do you want to color those?
Well the Linedit comes up the default WHITE which is OK.  I want the LABEL below it to be White and kind of similar to the lineedit.  The label comes up the same as the background screen.  I would like it to be White or red say.  I guess I could use a Linedit instead and make it noneditable.

3) textChanged is called every keystroke,

That\'s exactly what I want for this application,  For each keystroke made I want to read the current value of the box.   I thought my signal slot was configured right, but it never makes it to the slot.

4) SetCaption still doesn\'t appear even though changed to
 #include <qpe/qpeapplication.h>

Again,  I really appreciate your feedback.  It has been difficult learning cpp, oop, QT, but this forum is great!!

JDF

13
Philly/NJ / Local Zauruites?
« on: March 13, 2004, 11:07:29 pm »
I a newewbie.  Just south of the Philadelphia airport.   Don\'t know much but I am learning to program using Qt and also trying to re-learn unix/linux.  Been a long long time....  Just a hobby. Keep me off the streets.   I decided that I really want a C860 like machine, but decided I better learn a whole lot about linux and Qt before I decided to make that purchase.   Still don\'t know if I ever will.  
JDF

14
Qt/Qtopia / My first application: Done. A few questions
« on: March 13, 2004, 09:45:11 pm »
I am new to Qt and C++ and only progran as a hobby.   I got my Z one month ago.  I just finished my first application thankx to some help from members of this board.

The app is just a Unit Conversion Program.  Wrote it as a training exercise, not because anyone needed another conversion program!   In any case I attached the source code to this message.  (don\'t expect it to be pretty).  I tested the file and it will compile and run under dev-x86-qpe environment, dev-arm-qpe and transferred to Z works fine; also under winXP envronment works fine.    The program uses customizable text files as the conversion database.  I included these data files in the attachment too.  They should be in the same directory where you run the program from.

Here are my questions:

1) What is the best way to get the application to start full screen.  What screen size should be used?   My app seems to start a little bit less than full size and then I can maximize it.

2) I use a QLabel and a QLineedit.  How can I set the color for those backgrounds?

3) The Lineedit accepts keyboard entry from the Sharp hardware.  I tried to do a connect of the textChanged signal to a Slot in mysoftware but this never works.  Maybe some one could look at that connect statement.

4) I used a setCaption, but the title doesn\'t appear in the title bar?

Sorry if some of these questions may be obvious, but I have spent hours searching and trying to resolve them.

I placed the files here too:
                                             http://www.delferro.net/zaurus

Thankx\'JDF

15
Qt/Qtopia / Newbie Qt and CPP questions: Variable Sharing
« on: March 10, 2004, 09:21:58 am »
markb did a bang up job finding my problem and explaining some of the technicalities of my errors.

Just in case some other NEWBIES hit the same wall as me I am posting the solution here.  It may seem trivial and obvious now (even to me) but it escaped me!

Basically I had a QLineEdit that I created in my widget constructor.  I then wanted to update that label using the “setText” method in another part of the program.  Since I wanted access to the QLineEdit from a place outside the constructor I put the QLineEdit reference (le_basevalue) in the .h file declaration.   I could not get it working!!  I made a subtle (for me) error. Here is excerpts:

In “ucvt.h”
Protected:
      QLineEdit* le_basevalue;

In “ucvt.cpp” in the ucvt constructor:
      QVBox *jmainwindow = new QVBox( this );
      QLineEdit *le_basevalue = new QLineEdit( jmainwindow, \"le_basevalue\" );    
      le_basevalue-]setText( \"hello\" );  // This sets it up and works fine

In another function/method still in class ucvt
    le_basevalue-]setText( \"goodbye”);  //Never worked! Still says hello!
---------------------
The error is that in the constructor I was actually declaring a NEW LOCAL variable with the same name as my “global” variable le_basevalue.  Since this is local, my global le_basevalue was never being set or used in the constructor.

The constructor line should be done this way:        
       le_basevalue  = new QLineEdit( jmainwindow, \"le_basevalue\" );

This uses the already declared “global” le_basevalue and not a new declaration of a new local variable!!
Problem solved!!
---------------------------
To make sure I don’t make the same mistake in the future, and until it becomes habit for me I have done it this way and it works to….
    QLineEdit *temp = new QLineEdit( jmainwindow, \"le_basevalue\" );
    le_basevalue = temp;

Thankx markb!!!!
jdf

Pages: [1] 2 3