After redrain is developed, the test program is released.

Source: Internet
Author: User

Reprinted, please describe the original source. Thank you ~~

I have been using duilib to develop a cool dog-like player for about 50 days since the summer vacation. The intention of doing cool dog imitation is to look at the original cool dog interface is more beautiful, want to do a complete project to practice duilib. Today, we integrated the program code and released the test version. Now we have written a total of 10355 lines of C ++ code and about 2000 lines of XML code. The Beta program will certainly have many bugs, and I have not carefully tested the program myself. If you want to find any problems, contact me and I will fix them. The program runs in Win8. Please adjust it in compatibility! For the entire software development process, see the previous blog!

I have written the functions of the vast majority of controls on the software interface. I have not developed several unimportant control functions!




Introduction to existing functions:


 

1. Main Program Interface

The effect of the main interface is very similar to that of the original cool dog. The music library function on the right is just a simple connection to the web page, and there is no actual function! :





2. Skin replacement:

Click the skin change button on the title bar to open the skin change form, where you can modify the background image of the form. Modify the transparency of the playlist and the transparency of the entire form:



In addition, you can select a background image or use the color palette to change the background color of the form:



 


3. Add and play music

You can drag a music file or music folder to the playlist. The program automatically adds music to the list. Or, you can select music by clicking the Add button below:


Then, you can double-click the item in the music list to play the music. The music control button and the volume control can be used. In addition, I used to dynamically add music projects and radio projects for the refresh and rewind buttons of cool dogs:



 


4. Mini form

Click the zoom-out button in the title bar to bring the form to mini mode, so that the music library is hidden:






5. Menus

I made six menus for the dog, including the title bar menu, music group menu, music project menu, Tray menu, Cycle Mode menu, and music station menu. I didn't implement the response of many menus, But I just made the appearance. The following options are available:






The function of the loop menu here is effective, and the concert has different playing modes depending on the loop mode!




6. Set the form

Open the title bar menu and select the "Settings" option to open the setting form. This form is just like it does not have the following functions:




7. left-side functional area

The options on the left-side functional area are all available and the animation effects are switched.


You can click the refresh button to dynamically add music stations:


You can click the return button to dynamically Add a project to the download list.





8. Enable form Effects

I added a music box and added a form to enable special effects. However, the special effects are not stable, but they are only used for testing.





Incomplete functions:

1. Exit the program animation effect
2. Music Library Loading animation effect
3. Menu response
4. Lyrics
5. Desktop lyrics

I don't plan to write the unfinished functions, because there are many other things to do. If the code is open source, you can do it yourself.




About open source:


Many friends in the Group visited me privately and asked if the interface was open source. I would like to explain here: in fact, I am interested in open source. This is just a program for my hands-on practice. After open source, I may be able to help other new duilib friends to learn this library. However, the problem is that I use pictures of the original cool dog, and the cool dog has declared that it cannot reverse his software. So I am not sure if it will cause me any trouble. I am studying and don't want to get into trouble ~~ If it is okay after the open source code is determined, I will upload the source code to GitHub.

 

Summary:


It took me a lot of time to write this interface. At first I was just planning to train my trainer. Later I learned a lot in the compilation process, and I had a better understanding of duilib. I personally like duilib, but out of unattended maintenance, almost everyone has a duilib maintained by themselves, and so do I. I have been fixing this duilib bug, and I want to add form animation effects to duilib in the next stage. In addition, I want to improve the original control animation effects class of the uilib library. I have seen the juce database of foreigners these days. I feel that the database is well written and worth learning. I 'd like to study the juce database and apply what I learned to the duilib database to extend it. That's it!

Test Program: csdn: Click to open the link

Baidu cloud: Click to open the link

My contact information:

Redrain QQ: 491646717

After redrain is developed, the test program is released.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.