![]() |
[Announce] HexTool on the fly conversion hex dec bin and more
1 Attachment(s)
Hello community,
Today I want to present to you a new tool for the N900 called HexTool. It is a small application which calculates or converts from hexadecimal to decimal, to bin, to octal and vice versa on the fly. It is really nice for bit manipulations and I using it quite a long time on my windows maschine. Now I can use it with all my operating systems. :) All values are editable so you can put a new hexdecimal value, decimal value, change single bits, put an ip address or ASCII chars. It will automatically calculate other fields for you. The "<<" and ">>" is for shift operations in the current register. The "flip" button performs an endian swap from the hexadecimal value. The "not" button inverts the binary. The "neg" button gives the inverse decimal value (signed mode). The "small plus and minus" button increases or decreases the decimal value by one. The "one or zero" button change the label from the binary starting with 1 or with 0. The "clr" button clears the current register. With the other buttons you can do bit calculations. Therefore you can register your numbers in A and B and make logical and mathematical operations. The result is shown in register C. You can change the register by pushing the radio buttons. You can switch between signed and unsigned and you can set the bit size to 8,16 or 32bit. In the end this programm is a converter and calculator. It is also very useful when you want to encrypt and decrypt some numbers. Thanks to Ryan Harkin who was so kind and uploaded his initial QT version source code after my request. Before he published only pictures. I changed the gui a little bit and also some routine that handling the gui. Furthermore I added some more options and fixed a compiler bug so it should calculate right on all platforms now. Not 100% finger friendly for big fingers...However we have a stylus pen. http://sourceforge.net/projects/hextool/ http://harkin.org/hextool/index.html latest version: hextool-1.7.1maemo3 in extra repo Compiled for N950 on openrepos. |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Cool! I normally use Galculator from the Diablo repos for that but it's nice to have a small, simple utility like this. Not to mention that one needs to install Galculator manually as it is not in the Fremantle repos :)
|
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
Maybe we should update to the latest version and upload it to fremantle repos. It looks like a nice scientific calculator only for single bit manipulation it is not so handy. |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
This is a very useful tool. Thank you for porting this.
Would you mind fixing your debian files? Maemo ports should have maemo in the package name to indicate it's a port. This way you can easily manage upstream fixes. http://wiki.maemo.org/Port_an_existing_Debian_package Also the lack of e-mail address in your packages are causing odd things to happen in the package management page. "meRuns scripts" I have fixed the files for you if you don't mind uploading a new version. |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
http://sourceforge.net/p/hextool/git/ci/master/tree/qtc_packaging/debian_fremantle/changelog So I really don't know what version I should put. Furthermore when a package exists now in maemo repository I can upload only higher versions. Quote:
Quote:
What was wrong with the control file? |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
1 Attachment(s)
I am terribly sorry I uploaded the originals by accident.
Here, you can now see what I have done :) There are a good few subtle changes as well as the obvious ones. Like keeping each bullet point on a new line to stop it going offscreen in the package manager, for example. |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Some feedback. First, let me tell you I love this nifty little app. Very useful indeed. All my comments are just minor things:
|
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Re: Galculator
Quote:
Quote:
|
Re: [Announce] HexTool on the fly conversion hex dec bin and more
@ sixwheeledbeast
Thank you for the corrections. I was not thinking so much about that because I used the QT creator and it also do funny things... But I see the point for the future I will think twice about the debian files. Now I have a good example. I will upload it again with new debian files which you provided to me. But the original none qt windows application has version 1.7.0.1. The files that used for the never released QT version came from 1.7.0.0 however this QT version in git has no version number. That is why I used my fantasy.:) I started to upload 1.7.0 (qtcreator supports only 3 numbers) to maemo repository then I found a bug and was not satisfied with the gui so I uploaded 1.7.1. Oh now pichlo posted so much I think I will make some changes at the source code and will upload a new version after some improvements. I am glad that is useful. |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
You shouldn't have bumped the number, but now that it's done you can't go backwards. I wouldn't worry too much about trying to get back to version 1.7.0, you didn't know and we all make mistakes. Also as you say the package is unlikely to get upstream fixes. If you stick to 1.7.1maemo1 then 1.7.1maemo2 etc etc, for any future fixes, you will be fine. Code:
#exit 0 - true |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
Quote:
You want it in development. However you can nothing develop with it (like it is described in maemo wiki deployment). Sixwheeledbeast send me a control file with utilities. Regarding the wiki, tools should go under utilities category. My decision now is: "utilities" category. Quote:
Quote:
Quote:
In principle these radiobutton doesn't make a cast it is only a general configuration and can't be applied to single register. Quote:
Quote:
Quote:
Quote:
Quote:
Be happy to update to a next release later today. |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
I will implement this as an option. I think the application itself is more written from the Hex side that this value is fixed and not the decimal value. |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
New version uploaded to extras!
Very important: I fixed a bug which was caused by the compiler. So now 8bit signed calculations for the armel version should be correct since version 1.7.1maemo2. Before only the i386 version was calculating right. Updated screenshot and description in first post. New version can be downloaded from extras after quarantine ends. * fixed bug in bit size change * added optionDialog * added option sign extension * added automatic load save * removed limit hex lineedit * fixed bug in disable ip and ascii fields * changed about dialog * fixed compiler bug 8bit signed |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Attached version for hamattan (N9/N950) at first post. However ugly harmattan qtwidgets. Double click qlineedit to get virtual keyboard.
|
Re: [Announce] HexTool on the fly conversion hex dec bin and more
@halftux
You are also on the Harmattan train, now? :D Then you should create an account on openrepos.net and upload there. |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
no not really I am to lazy for learning qml or qtquick or what ever:) But I said when I win something in the coding competition I start porting. So I had no clue about N9(50). Then I got the N950 but were so disappointed because no theme or good support for qtwidgets and this bloody aegis xxxx make me stop working heavily with harmattan. The swipe thing is a big step forward but the other things make thousands steps in the opposite direction. At least I try to give something back to the community. Sometimes I think it is better and more useful for the community when I give the phone back to somebody who coding more but I am to proud to have won something and to own a N950. Hmm openrepos I will have a look. |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Hi all,
I'm the original author of HexTool. I discovered this thread via google searches for HexTool. Many thanks for Halftux for making a cool port and for sharing it. Nice one! Pichlo had a few nice suggestions: Quote:
Sign extending is supposed to work, but you've discovered a bug there! In the version I'm running on Ubuntu, if you uncheck and re-check the "signed" box just before going from 8- to 16-bits or 16- to 32-bits, the sign extending works. Eg, set to 8 bit mode. set value to zero. toggle bit 8 to 1, giving 128 in decimal display. Check the signed box, giving the value -128. Select 16-bit mode and you will see the Hex value become FF80 and the decimal value stay at -128. So, a simple bug :-) Quote:
Quote:
Quote:
Thanks for the feedback, I'll add these change back into the original when I get a chance. |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
Quote:
Quote:
|
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
Quote:
Quote:
|
Re: [Announce] HexTool on the fly conversion hex dec bin and more
1 Attachment(s)
If somebody interested here the windows version from hextool.
http://www.filedropper.com/hextool |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Released a experimental version for Sailfish OS on openrepos.
Known problem focus after user input (click any bit button twice:o). |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
The window/page does not seem to be in real landscape mode (have you rotated the elements?), because the on screen keyboard pops up on the right hand side when focussing an input element. |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
So I used a qgraphicsview to rotate and scaling the application. If somebody knows a way for rotating or if it is implemented already, it would be much appreciated to let us know how. But do not tell me to abondon widgets and use qml instead. I know I should do but I don't want it right now. |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Perhaps this is useful to you?
I don't know much about c++ and qt, but perhaps it works similarly with qdialog (which I just saw being used on the sourceforge page, no idea about qgraphicsview). If thats the case, perhaps you can drop the rotation part. This is just poking around stuff I know nothing about in my lunch break, feel free to ignore if it's rubbish… :) |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
Quote:
|
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
https://sourceforge.net/p/hextool/gi...e/qt/hextool.h I can't say if stuff like it exists for SFOS, sorry. |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
1 Attachment(s)
So another (beside kodi) great application which have broken gestures...
After digging through qtwayland and lipstick sources I found it in qt docs: Code:
hextool-git/qt/main.cpp |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
That small code snippet will boost my work on hextool a lot. The code at sourceforge was my starting point and I changed the gui and keyhandling. Some work I have done could be seen in the maemo repo. However I will try to upload my code changes to github. But this will take some time because I have different source codes for different platforms, so I need to cook them together and publishing only one code. |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
New version released for SFOS 1.7.1-2 on openrepos.
Thank you elros34 for the handling landscape system report fix. * Fri Mar 18 2017 Halftux 1.7.1-2 - fixed gesture to landscape - fixed user input focus * Thu Mar 16 2017 Halftux 1.7.1-1 - Initial release |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
New version released. Modiefied the lineedit to have an easier input with a virtual keyboard. This can be toggled in the options page.
* Tue Mar 21 2017 1.7.1-3 - added dialog animation ok cancel - added moveable lineedit (virtual keyboard) - fixed option widget mouse event bug https://openrepos.net/sites/default/...hexunicode.png |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
This moving line edit is nice, but how canI move the edited cells back to position? Or did I miss something...?
|
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Besides, trying to load a setting file without saving one previously freezes the app with a Qt message 'The settings file was not found' and an unclikable Ok button.
still I like this handy tool.:) helped me already couple of times. |
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
Quote:
|
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
|
Re: [Announce] HexTool on the fly conversion hex dec bin and more
Quote:
Quote:
Version 1.7.1-4 for Sailfish - fixed regB, regC after load - fixed focus after group line edit - added notification which removes bugged dialog - added system notification for automatic load/save |
| All times are GMT. The time now is 11:47. |
vBulletin® Version 3.8.8