-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QtnProperty in AwesomeBump. #71
Comments
I have my fork of QtnProperty that does not require a separate building - Regards On Tue, Jan 12, 2016 at 11:52 PM, Krzysztof Kolasinski <
More:
|
I'd be happy to work to keep this new development compatible with the cmake builds. I'll add those two libraries as requirements and get it working. Which branch will be used for this effort? |
master branch :P |
Ha ha, ok. I'll dig into it. |
One thought though. Instead of tweaking the base library and having to do multiple compile passes, can't you just override the classes that need to be changed in the default QtnProperty libraries? I think that would be a better approach. Of course knowing nothing about the library or the changes that need to be made, maybe it's easier/better to do it this way. Just wanted to make that suggestion. |
I had a conversation with author of the library, he said that will update his code to fulfil my requirements, so maybe in future there will be no needs to modify the source code. |
To me this would be all the more reason to adopt an inheritance model and overriding the necessary classes. It would make reverting your code easier in the future when the base library is updated because you could just drop your inherited classes and replace them with the default ones. Further, if the original author doesn't change it in all the ways you need you'll have to modify the base code again. It'll also be harder to maintain your version of that library while including new changes from the base version in the future. I think being able to inherit and override classes is one of the most powerful features of object oriented languages for these types of reasons. However, I'm fine with either approach but just wanted to mention it so you'd at least have it in your mind. |
You are right, but lets, wait for the QtnProperty update, then we can do as you said. I don't know what exactly he is going to change, so it will be better to wait till this moment. I'm going to update today more properties in the left panel. |
Ok, sounds like a plan. I'll try to get rolling on keeping the cmake compatibility soon. |
Hi All I would like to integrate with AB (as a submodule) my fork of qtproperty: My fork is self-contained: you can only include I think it is quite easy to convert QtnProperty.pri into cmake file. I will include in my repo PEG tools for win/linux/osx (currently only OS X Btw: my fork is always up-to-date with upstream repo. Regards On Wed, Jan 13, 2016 at 1:59 PM, Krzysztof Kolasinski <
More:
|
Thanks, |
Yes - I am heavy user of this library - it is always up to date + I am Regards On Wed, Jan 13, 2016 at 4:07 PM, Krzysztof Kolasinski <
More:
|
Ok! |
Could you remove qtnproperty submodule from my repo and replace by yours? |
replaced P. On Wed, Jan 13, 2016 at 4:19 PM, Krzysztof Kolasinski <
More:
|
Ok, thanks. |
I have to think about this, otherwise it will take months to make it work... It will be much easier if tabs will stay as they are, so logic will be the same only parameters management will be different |
For me tabs are ok - it is the content of tabs, that is the problem. In my Regards On Wed, Jan 13, 2016 at 5:10 PM, Krzysztof Kolasinski <
More:
|
@ppiecuch, I'm trying to compile the Core submodule you included in your commit 2f11c52 but I'm getting errors on both the CLI (with cmake and/or gnu compilers directly) and also with QT Creator. It seems that there are some variables that are not declared:
Is there a specific library I need to install to get this to work? I have QT Strings, Core, GUI, etc already installed. Are these undefined variables specific to your code? I tried Google to find if they were part of another library but had no success. |
Did you try to compile oryginal library? |
Hi No - library is self-contained. I am just building linux binaries right now Regards On Wed, Jan 13, 2016 at 8:32 PM, CodePhase notifications@github.com wrote:
More:
|
Yes, I tried your original @kmkolasinski and was able to get that to compile. Thanks for looking at it @ppiecuch. I probably should have mentioned I'm using Linux as my platform. |
For me it seems to be problem related to include paths, since compilator does not see declarations for classes which actually are in the same project. |
Could be, but I'm not sure. I did a search on all instances of the variable |
Opps, wrong button. Didn't mean to close this. |
Wow, I don't have this in my code, maybe this appear because of the @ppiecuch modification of the library? |
I don't see any images. |
[image: Inline image 1] On Mon, Jan 18, 2016 at 10:40 PM, Krzysztof Kolasinski <
More:
|
@kmkolasinski |
Ok, so I moved almost everything to QtnProperty. Just did a commit with my changes. Now I will wait for the of changing Float and Int or Double with mouse like horizontal scrollBar. Currently when you have to change parameter with keyboard or mouse wheel is very annoying, in my opinion. Since user does not know where is the min and max value. |
@kmkolasinski please see answer here |
Hello |
Hi, did you try to build it with QtCreator? and do you really want to work with this unstable version? |
No, i don't. But do it matter? |
It should not, however I have sometimes problems with linker during compilation using Qt Creator, which seems to be similar to your. Then after I click "run qmake" in GUI then everything compiles and program runs. Additionally I'm not used to compile AB from command line, other people are doing this, so they can help you. |
Ok! I will use release version for now. |
Hello, agane [456841.031079] AwesomeBump[14270]: segfault at 0 ip 00000000004186d9 sp 00007ffe0e71c700 error 4 in AwesomeBump[400000+28f000] $ AwesomeBump.sh |
Check your read write permissions:
It is very strange that even log.txt does not want to be created. |
Now i build master git commit f6ac321 |
Great! What kind of issue? |
@lexxmark After your last commit AB crashes during initialization with assert:
Yesterday, I had no problem with it. I commited current version of source code. |
@kmkolasinski - You should call void regABSliderFloatDelegate(); somewhere in your code. |
I'm not using the ABSlider anymore, so I commented the regABSliderFloatDelegate function. |
You are using it later here and in two more places :o). |
Oh sorry, a bad day :/ I completely forgot about these guys :( I will fix it tomorrow. Thanks! |
Ok, shame on me! Now, it works :)
It should be commented :) |
Well I don't see this debug output in my last master commit. Also @kmkolasinski and @ppiecuch - we can create hybrid delegate factory function for Button which will create Link delegate undex OSX and Button delegate otherwise. I must remind that I'm doing some files reorganizations in QtnProperty so excuse me for possible compile errors in your code (missing includes). |
Hmm, maybe it is in AwesomeBump source, but I did not write this... I will search for this in my code later. |
Actually I did it but removed in last master commit |
hello fatal: reference is not a tree: d7140711e148ce3259f6817459fdbe6b10b3435d Unable to checkout 'd7140711e148ce3259f6817459fdbe6b10b3435d' in submodule path 'Sources/utils/QtnProperty' Is there something wrong ? |
Dear all, I'm closing this long issue and in case of any problems please set up a new one. |
Very good news and congratulations! I'll try and find some time for an updated cmake compile script. |
This issue may interesting for you guy's: @ppiecuch , @CapsAdmin , @Hevedy , @DaOnlyOwner
After short conversation with @ppiecuch we decided to include the QtnProperty library to AB. However I've have tuned manually some features in that library, which I include in the Source code in the Sources/utils folder.
We are going to replace manually created sliders and checkboxes by QtnProperties classes such that the GUI should became more flexible for further modifications. The current version of Source does not do the job correctly only the hue parameter works, for now, but I will slowly try to replace all the scrollbars there. Note, that in my opinion it will be better if certain tool remain unchanged, for example the BasemapToOthers tool will be much easier to control with the form it is now. I would like to ask @orthographic-pedant at the end of migration process to check all the grammar mistakes ;) since now almost all the GUI controls can be found here: Sources/properties.
Steps:
( Flex 2.5.37 and Bison 2.7 for Windows can be found here)
In the bottom you can see that there is a refresh button which allows you for run-time compilation of the fragment shader.
The text was updated successfully, but these errors were encountered: