Message board for the users of flat assembler.
> Linux > converter
This is one little tool for converting GTK C syntax interfaces you make with GLADE
to FASM syntax interfaces. This is only 0.1 version so not all widgets can be
converted OK. I have plan to add a lot of stuff to this tool so be patient.
Program works OK with next widgets:
- Window, Menubar, Toolbar, Handle Box, Horizontal Box, Vertical Box, Label, Text Entry,
Text View, Button, Toggle Button, Check Button, Radio Button, Statusbar, Option Menu,
Spin Button, Tree View, Horizontal Separator, Vertical Separator, Drawing Area, Table,
Fixed Positions, Horizontal Button Box (HBB), Vertical Button Box (VBB),
Horizontal Panes, Vertical Panes, Frame, Combo Box, Scrolled Window, Viewport
GTK+ ADDITIONAL WIDGETS:
- Event Box, Progress Bar, Arrow, Curve, Alignment, Horizontal Ruler, Vertical Ruler
I have some problems with HBB and VBB (if i remember well ) and all other widgets will be
added too in next versions of program. Maybe i could add something similar to GLADE source, maybe
i could do better search the internet, maybe... but this was something that i needed so i make this
program. Send me all problems and similar to this post or to email.
I name functions that have arguments argcall. If you want to change this you will have to edit file data.inc
(i changed macro ccall to argcall from bazik tutorials. File cdecl.inc)
Program was tested with GTK v2.2.3 and GLADE v2.0.0. All changes and addings will be for this versions (i think).
- you have to manually delete all duplicate externs
- you have to manually add e.g. main window with all widgets to main asm proc that looks like this (bazik examples):
proc main, argc, argv
lea eax, [argc]
lea ebx, [argv]
argcall gtk_init, eax, ebx
- make complete GUI app where C interface will be converted and then you can change code directly on screen
- add all widgets
- split source to e.g. data.inc for variables, extrn.inc for externs, etc. of course how user will set options
- set file name for all this files and their paths and for output file (now this file is named interface.asm)
I can't remember anything else (it's too late and i am tired and i have too much beers in my stomach ).
I will post if i remember something
Please don't be rude and don't flood and spam me if something is not working well and please be patient for new features
Well thanks for your atention
|10 Apr 2005, 21:12||
I forget to tell you that algorithm is messed up and i didn't do any speed or size optimizations on it. Simple 'brute force'
|10 Apr 2005, 21:30||
Some fixes are over. I will upload here later today....i hope.
|19 Apr 2005, 07:49||
Some delay, but here is v0.2. Bugs fixed and i added some options. Not all widgets converted ok.
And please say at least that this sucks and that you don't need it.
|08 May 2005, 11:18||
I played with it a bit and I have some remarks:
1.) In makefile when you create the executable for release then you could use the -s compiler (linker) switch (it's the same as you would use the 'strip' program). This removes all symbols from your program making it much shorter.
2.) You use explicit coordinates for the widgets. It's a bad routine (it's not the faulty MS API it's gtk+ with much better layout manager! Try to understand it). When e.g. I use another theme or just another font set then I might get terrible look and feel (buttons with label and icon, words with characters cut at the end etc.). If I meet a dialog box without the ability of resizing then I already know that its developer(s) knew not too much about correct layout programming. Simply saying let the widgets stretch themselves as they just want to.
3.) I pretended to be a dumb user and gave in the file converter.asm instead of any *.c file. The program froze.
I'm eagerly waiting for the next release .
|08 May 2005, 17:08||
Thanks for reply
I know this problem with my program when you change theme. I will fix this soon.
Now you can enter only C file, and if you enter any other file with different extension, program will message you.
|08 May 2005, 18:37||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.