|
|
|
|
#1 |
|
Major Dude
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
|
CodeMate?
I wondered wheter i should write a prog to make avs coding easier.
Some functions would be: -resizeable editor windows -template code fragments -? (your idea) I partially started already, but i'd like to know wheter there's any need for this as some of you already did part of it with resource hacking. Just tell me. |
|
|
|
|
|
#2 |
|
Bin King
Join Date: Mar 2001
Location: Finland
Posts: 2,179
|
So would avs be running under and when you make the changes in codemate they change in AVS as well? Or is it like a copy&paste thing :P
Anyway... i think... i would find it useful to resize the docking window so i could have the editor and the avs window all together, due to my small resolution this would be helpful to me. But i dunno, it sounds pretty far out idea... The whole codemate thing sound great tho, i would probably use it (if it doesn't give me any error msg's in a languange i know nothing about, heh heh )
|
|
|
|
|
|
#3 |
|
Major Dude
|
Sounds pretty good,especially the resizable docking window.
|
|
|
|
|
|
#4 |
|
Major Dude
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
|
The resizing and repositioning thing is possible, this is what i started with. This should be detailed available for SSC and DM's
Templates would be copy&paste of course but for multiple editing windows, so you can have an empty 3D SSC/DM The CodeMate itself should be just a tiny window or a systray icon to do the settings once or to refresh if nessecary. |
|
|
|
|
|
#5 |
|
Whacked Moderator
Join Date: Jun 2001
Posts: 2,104
|
Tried this once (got the syntax highlighting working already) but it kept crashing AVS. But my approach was to replace the actual editboxes with a different control inside the dialog, so it was in-place.
I don't think I'll finish it though, so here's my code. The parser is complete and will work for any rich-edit box... Maybe this is useful .Btw, the colors are bad, I know, but this was just a test palette to try it out .
|
|
|
|
|
|
#6 |
|
Major Dude
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
|
Thanx, i'm gonna check this. Will be usefull although i'll have to convert this to Delphi.
|
|
|
|
|
|
#7 |
|
Major Dude
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
|
Ok, had a look at this in detail now. I don't think in-place replacing will really work, because replacing means you gotta link all the event messages back up / simulate them which is a pain in the ass.
Unlike Hotlist i'd want this to be a public project, in fact i ask all programming skilled avsers to join in if they like. For compatibillity reasons, i'll skip the idea of doing this in Delphi, i'll use C++ instead. As soon as the main parts are converted, i'll post this here so you can start working out functions and stuff. So who's gonna be in??? |
|
|
|
|
|
#8 |
|
Member
|
Magic.X if i can be a beta tester you will be my hero
|
|
|
|
|
|
#9 |
|
Major Dude
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
|
I will post all results here, so anyone can do testing.
I'm on vacation for the next 2 weeks, but I'll keep up work meanwhile so you'll get some results afterwards (and maybe i'll manage to post something earlier) |
|
|
|
|
|
#10 |
|
Whacked Moderator
Join Date: Jun 2001
Posts: 2,104
|
Magic.X: actually in-place replacing should still be possible, but I don't think my method of sharing the message loop across the threads is a good idea. I think you'd have to hook into the message loop instead and pass them on that way.
|
|
|
|
|
|
#11 |
|
Account Closed
Join Date: Apr 2001
Posts: 2,360
|
um... i am a little confused. how is this program supposed to make avs coding easier?
|
|
|
|
|
|
#12 |
|
Major Dude
Join Date: May 2001
Location: somewhere else
Posts: 1,286
|
Syntax highlighting, easy insertion of often-used code (3d conversion). Looking at the code UnConeD posted explains a lot.
powered by C₈H₁₀N₄O₂ |
|
|
|
|
|
#13 |
|
Account Closed
Join Date: Apr 2001
Posts: 2,360
|
i would look at the code, but it would be greek to me (i wonder if people in greece use that term)
|
|
|
|
|
|
#14 |
|
Major Dude
Join Date: May 2001
Location: somewhere else
Posts: 1,286
|
Not really. Just read the comments. That's how I figured out the features
powered by C₈H₁₀N₄O₂ |
|
|
|
|
|
#15 | |
|
Major Dude
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
|
Quote:
Anyway, hooking messageloops is actually a bit above my programming skills. What i'd thought of instead is eventually creating replacement objects. If any change occurs, the content will be pasted to the original elements and (if nessecary) faked confirmation messages will be send to the parent handle. |
|
|
|
|
|
|
#16 |
|
Member
|
<.< >.> ^.^ sounds right.... hehe Just keep up the work and Ill tell ya what i think of it!
|
|
|
|
|
|
#17 |
|
Major Dude
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
|
Here is the current state of Work.
Within the rar you'll find my CBuilder Sources, as well as the compiled Project and a example SettingFile. The Main Settings are done. You can adjust the Editor to your needs with an optional autoapply mode. Note that this is not optimized yet and shall be a lot faster later on. The settings are already saveable. Now i need to do the same with the specific SSC and DM Structures. If these things are done, i'll try to figure out how i can insert UnConeD's codemaster control-replacemant can be added. Any test reports or co-works on this project are appreciated. |
|
|
|
|
|
#18 |
|
Major Dude
|
cant you give us a zip file? i dont have winrar
![]() i wanna see it!
|
|
|
|
|
|
#19 |
|
Major Dude
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
|
Here is it. But i had to remove some temp files that are used for builder settings. They willl be crecreated anyway.
|
|
|
|
|
|
#20 |
|
Whacked Moderator
Join Date: Jun 2001
Posts: 2,104
|
Some quick stuff:
- Use proper names, both for objects and filenames. Makes it easier for others to work with your code. - Don't put settings in a file in the root C:\ drive. Use the registry, or if you really want to use a file, put it in the user's local-settings folder (you can retrieve its path using the Shell API, SHGetSpecialFolderLocation-something something if I recall correctly). - Store your settings in a semi-self-descriptive format. XML is encouraged. You can use TinyXML for basic XML functionality (works for me), though I did apply a couple of changes for UTF-8/Unicode compatibility. - In almost all cases, having to repeat code 10-20 times with almost no modifications is a sure sign of bad programming. Integrated IDE's like Borland's Builder usually allow you to make this mistake easily. |
|
|
|
|
|
#21 | |
|
Major Dude
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
|
Quote:
Actually i have a lot of calls to the same function refreshing the entire editor settings. later on, this shall be optimized so only the changed object will be affected. I tried to retrieve a wm_settext message of the components editor, to find out wheter a SSC or DM is activated and react. Everything failed yet. I'll keep working on this. Of course i can add registry support but i wanted to make settings general save and loadable, therefore i need files. |
|
|
|
|
|
|
#22 |
|
Major Dude
Join Date: Jan 2003
Location: Mumbai, India
Posts: 787
|
Is this done in Borland C++ builder? You have microsoft visuall c++
http://home.iitb.ac*****~shreyaspotnis |
|
|
|
|
|
#23 |
|
Whacked Moderator
Join Date: Jun 2001
Posts: 2,104
|
Actually Magic.X, if you look at the message snooping part of my code, you should be able to retrieve any message you wish. It was only the insertion of the new control which caused massive failiure, but simply watching existing messages shouldn't be a problem.
|
|
|
|
|
|
#24 | |
|
Major Dude
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
|
@ Shreyas, yes it is. I didnt like to use VC.
@ Unconed: i actually did but i have'nt got any useable results yet. Reading the Help led to: Quote:
I'll see wheter i can get any solution to avoid the use of another ape. |
|
|
|
|
|
|
#25 |
|
Major Dude
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
|
Sorry, too late to edit.
Anyway, continous namechecking and renaming works well. So i will rename changed effect layouts to name+char(255) to recognize optimized and not otpimized settings. |
|
|
|
|
|
#26 |
|
Major Dude
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
|
Project abandoned
As we have a new avs version by now, most of program serves no purpose anymore.
Furthermore i'd need to redo most of the stuff to keep the positioning working as lots of things changed in the editor. If anyone wants to do this, go ahead please. I don't feel like continouing/redoing this. Considering UnConeD's code highlighting, i'd love to see it in the final version of avs2.7 but thats up to justin now. Thanx for your ideas anyway. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|