I am looking forward the moment when I will have time again to play with that... (BTW, have you checked Layout code generator? that in fact solves the most frequent problem...)
fudadmin Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
Ultimate Contributor Administrator
luzr wrote on Wed, 29 March 2006 10:02
fudadmin wrote on Tue, 28 March 2006 19:31
Wizard(s) for various class generation...
I am looking forward the moment when I will have time again to play with that... (BTW, have you checked Layout code generator? that in fact solves the most frequent problem...)
fudadmin Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
Ultimate Contributor Administrator
luzr wrote on Wed, 29 March 2006 10:29
Where is the problem?
Mirek
Actually, I had in mind 2 things: "how to use it fast" and "how to customize generation".
Then following problems.
1.theide doesn't have "New file" menu option. That means if I started my app without *.lay file (not all apps are GUI!) , I have to create it from outside or copy from somewhere. Stupid waste of time. I really started hating that ultimate "underfeature" of Ultimate++.
2.then the generated MyClass looks like this:
class MyClass : public WithSetupLayout<TopWindow> {
public:
typedef MyClass CLASSNAME;
MyClass();
};
MyClass::MyClass()
{
CtrlLayout(*this, "");
}
victorb Messages: 78 Registered: December 2005 Location: Nice, France
Member
"1.theide doesn't have "New file" menu option. That means if I started my app without *.lay file (not all apps are GUI!) , I have to create it from outside or copy from somewhere. Stupid waste of time. I really started hating that ultimate "underfeature" of Ultimate++."
Of course you can add a new file from inside theIde: right click somewhere in the the file list panel (under the packages list) and select "Insert package directory file(s)". You can either select an existing file or when typing a new name have the file created.
TheIde definitely use an other way of all other ide and it also took me some time to figure this out.
1. Just insert file with .lay extension into your package.. 5 second work... Hardly underdevelopment. I cannot imagine easier way to do that - the only thing you have to enter is the name of file.
2. & 3. I do not get how based on 2. you came to conslusion 3. Perhaps you could be more specific there
Of course you can add a new file from inside theIde: right click somewhere in the the file list panel (under the packages list) and select "Insert package directory file(s)". You can either select an existing file or when typing a new name have the file created.
TheIde definitely use an other way of all other ide and it also took me some time to figure this out.
I am sorry about this confusion, however the real reason is that there are 5 different similiar "Insert file" operations. If any of them would be paired with equivalent "New file", we would have 10 different "Insert file" operations, quite a lot.
And the only difference between "New" and "Open" is that in "New" fileselector, you would not be allowed to select existing file, whereas in "Open" to enter non-existing. Seemed quite logical to merge both to me...
In any case, I have added the FAQ entry about this trouble.
Mirek
P.S.: Did you really expect us to create files by copying them to the package folder?
fudadmin Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
Ultimate Contributor Administrator
fudadmin wrote on Wed, 29 March 2006 11:12
1.theide doesn't have "New file" menu option. That means if I started my app without *.lay file (not all apps are GUI!) , I have to create it from outside or copy from somewhere. Stupid waste of time. I really started hating that ultimate "underfeature" of Ultimate++.
Oh, my goodness! Can you imagine gravity of habits?! In fact, I was very happy when I discovered that I can create new files from "insert new files" but I forgotten! That is unbelievable!
I even wanted to ask how can assign a key combination for it because I couldn't find that item in "Setup"->"keys".
Anyway, thanks for reminding.
If you could make Ctrl-Shift-I...
fudadmin Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
Ultimate Contributor Administrator
luzr wrote on Wed, 29 March 2006 11:20
1. Just insert file with .lay extension into your package.. 5 second work... Hardly underdevelopment. I cannot imagine easier way to do that - the only thing you have to enter is the name of file.
2. & 3. I do not get how based on 2. you came to conslusion 3. Perhaps you could be more specific there
Mirek
More specific:
1. I don't want to enter layout names.
2. I want an option to enter the name for base class
3. I don't need CtrlLayout(*this, "");
4. I want to have it saved as a class template (like *.upt).
1. Layout name? I guess rather the name of final class? (BTW, it is more or less a bug, anyway: click on that main switch in generator, click back and the name is filled for you
2. Well, base class name appears just on single place, it is as easy to edit it in code.
3. There will not be too much left there then?
4. .upt? Ok, I guess you would rather liked to have some class generator based on templates. Even that is planned...
fudadmin Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
Ultimate Contributor Administrator
luzr wrote on Wed, 29 March 2006 12:39
1. Layout name? I guess rather the name of final class? (BTW, it is more or less a bug, anyway: click on that main switch in generator, click back and the name is filled for you
Mirek
but with extension Dlg. That gives MyClassDlg. Or am I doing something different?
fudadmin Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
Ultimate Contributor Administrator
fudadmin wrote on Wed, 29 March 2006 12:51
luzr wrote on Wed, 29 March 2006 12:39
1. Layout name? I guess rather the name of final class? (BTW, it is more or less a bug, anyway: click on that main switch in generator, click back and the name is filled for you
Mirek
but with extension Dlg. That gives MyClassDlg. Or am I doing something different?