FET Forum

FET Support (English) => Programming Help => Topic started by: Luca Dangelo on October 01, 2018, 08:55:47 AM

Title: Programming type
Post by: Luca Dangelo on October 01, 2018, 08:55:47 AM
Hi all,
First of all, I want to thank those who implemented this fascinating app.
I want to know how is the programming of this project; I could not find any class definition in the "src-cl" project. Could you explain how did you implement it? Is it Object Oriented programming?

Overall, could you explain this project (for example, implementation, verification, etc.)

Thanks in advance,
Luca
Title: Re: Programming type
Post by: Liviu Lalescu on October 01, 2018, 11:32:10 AM
Hello, Luca,

Thank you for the appreciation!

It is a Qt application. Qt is providing the GUI environment and lots of other things, like lists, sets and strings.

src-cl is the command-line version of FET. src is the GUI version of FET.

FET is written in C++, object oriented.

I work on GNU/Linux on FET, in the simple text editor of Midnight Commander.

You can see the source files in the engine and interface directories.
Title: Re: Programming type
Post by: Luca Dangelo on October 02, 2018, 09:56:00 AM
Thank you for your reply.
I was checking the code, I enjoyed it and seemed professional. I saw some "assert" command; do you use the verification technics?
Also, your handwriting does not have enough comments, how can I understand it? Is there any document for it (at least for each method)?

Regards,

P.S: I am sure that you spent so much time to find this perfect algorithm and implementation. God power to your elbow.
Title: Re: Programming type
Post by: Liviu Lalescu on October 02, 2018, 10:14:45 AM
Quote from: Luca Dangelo on October 02, 2018, 09:56:00 AM
I was checking the code, I enjoyed it and seemed professional. I saw some "assert" command; do you use the verification technics?

Indeed, I use "assert" as a verification, in many places.

Quote
Also, your handwriting does not have enough comments, how can I understand it? Is there any document for it (at least for each method)?

I am sorry, there is not such documentation. Only the names of the variables can mean something, and you can ask here on the forum for explanations.

Quote
P.S: I am sure that you spent so much time to find this perfect algorithm and implementation. God power to your elbow.

Thank you!  :)
Title: Re: Programming type
Post by: Luca Dangelo on October 05, 2018, 02:17:34 PM
Hi,
I am trying to work with the src-cl project to figure out the main parts of your implementation (I do not want to work with the user interface codes). I understood that you are using some files in the "interface" folder; but when I remove the other files in that folder, some errors appear, and the compiler needs those files!

Can you explain what the matter is? Does the src-cl project need all of the files in the "interface" folder? If yes, for what?

Thanks in advance.
Luca
Title: Re: Programming type
Post by: Liviu Lalescu on October 05, 2018, 02:39:29 PM
src-cl.pro needs centerwidgetonscreen.h & .cpp, fet.h & .cpp, longtextmessagebox.h & .cpp, and fetmainform.h & .cpp from src/interface/.

You need to run "qmake src-cl.pro". It should work.

What errors are you getting?
Title: Re: Programming type
Post by: Luca Dangelo on October 05, 2018, 02:54:40 PM
It worked, I will help to improve if I can understand it well.

Thanks a million.
Title: Re: Programming type
Post by: Liviu Lalescu on October 05, 2018, 03:34:58 PM
I just saw that you don't need fetmainform.h.