And as Keith just reminded me, I forgot that you have to edit
build/depends.py and add a line for your .ui file:
build.env.Uic4('dlgcrazyfeature.ui')
Albert
On Sat, Mar 17, 2012 at 11:44 PM, Albert Santoni <[email protected]> wrote:
> Hi Keith,
>
> Awesome - Getting Mixxx compiling is half the battle. :)
>
> Just to review what we talked about on IRC (mostly for anyone else
> interested in hacking a new library view):
>
> It sounds like copying the the Analyze view is a great place to start. It
> was originally called "Prepare", and so the files you need to copy are:
>
> in src/library/:
> preparefeature.cpp/h
> preparelibrarytablemodel.cpp/h
>
> in src/:
> dlgprepare.cpp/h
> dlgprepare.ui
>
> When you copy dlgprepare.ui, remember to change the class and widget names
> in the first few lines of the file:
>
> <class>DlgCrazyFeature</class>
> <widget class="QWidget" name="DlgCrazyFeature">
>
> This has to correspond to the class that you inherit from in
> dlgcrazyfeature.h Ui::DlgCrazyFeature, so remember to edit that file and
> replace that there too.
>
> Basically, Qt generates a C++ class from your .ui and puts it in
> ui_dlgcrazyfeature.h. To implement the brains of that dialog, you create a
> DlgCrazyFeature class that inherits from the autogenerated
> Ui::DlgCrazyFeature, and put it in dlgcrazyfeature.cpp. This is what we've
> done with all the dialogs in Mixxx, and if you run into crazy C++ compile
> errors when you're renaming stuff, knowing how it works might help you
> unravel them. :)
>
> For the rest of the .cpp/h files, you'll mostly just be renaming
> PrepareFeature to CrazyFeature.
>
> Lastly, you'll want to edit library.cpp and make sure your feature is
> created and added in the Library constructor.
>
> I hope this gives you a good starting point, and let us know if you have
> any more questions!
>
> Thanks,
> Albert
>
>
>
>
>
> On Sat, Mar 17, 2012 at 10:07 PM, [email protected] <
> [email protected]> wrote:
>
>> Hello everyone,
>>
>> Background:
>>
>> I have *some* programming knowledge, I have absolutely no CPP skills,
>> and no experience with qt, and absolutely no knowledge of the Mixxx
>> development files. I have successfully downloaded the source, and
>> compiled on my laptop.
>>
>> Scenario:
>>
>> I'm looking to implement a new feature in Mixxx.
>>
>> My first challenge is to create a new library view - similar to the
>> "Analyze" view.
>> I would like to show the table of tracks.
>> I would also like a small area above with some radio buttons or check
>> boxes the same as the Analyze view.
>>
>> Could someone outline the files/areas of the code involved in creating
>> this. Looking through the src/library directory there's many many
>> files so its difficult to know whats needed. Also, how do I register
>> my new view with the main application.
>>
>> If someone can point this first steps out to me, enough that I can
>> create my own view - I think I can get started and return when I have
>> some real problem creating my feature.
>>
>> many thanks
>> Keith
>>
>>
>> ------------------------------------------------------------------------------
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> Mixxx-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>>
>
>
>
> --
> Albert Santoni
> Developer, Mixxx
> http://www.mixxx.org
> http://www.oscillicious.com
>
>
--
Albert Santoni
Developer, Mixxx
http://www.mixxx.org
http://www.oscillicious.com
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel