There are many examples with gtkmm (c++). A framework was developed to facilitate making those examples fully functional in minuets instead of hours.

Step 1 Generate the Eclipse Project.
Step 2 Generate the examplewindow class and header.
Step 3 Paste the examplewindow.h.
Step 4 Paste the examplewindow.cpp.
Step 5 Un comment three lines in MainWin procedure.
Step 6 Compile and run the example.
Step 1 Generate the Eclipse Project.
We initiate our process by invoking the BCS c++ Eclipse Project Generator. The screenshot below shows the dialog used to accomplish creating the Eclipse project. Of course this project generator is a c++ application.

This process creates a new Eclipse project named “tv06” and the newly created class is “tcl”.Step 1  Top Of Article
Step 2 Generate the examplewindow class and header.
Now we need to create the examplewindow class by invoking another source code generator the BCS Class Code Generator. Of course this project generator is a c++ application.

Notice the  src folder is selected in our “tv06” project.
Step 2 Top Of Article
Step 3 Paste the examplewindow.h.
Simply traverse to the source code and highlight and copy to the clipboard the examplewindow content. Next move over to the examplewindow.h in project “tv06” and tap control a (this selects the existing source code) and paste the clipboards content into the example.h member.
Step 3 Top Of Article
Step 4 Paste the examplewindow.cpp.
Simply traverse to the source code and highlight and copy to the clipboard the examplewindow content. Next move over to the examplewindow.cpp in project “tv06” and tap control a (this selects the existing source code) and paste the clipboards content into the examplwindow.cpp member.
Step 4 Top Of Article
Step 5 Un comment three lines in MainWin procedure.
Now open the program containing the MainWin method and uncomment three lines. The first line to un comment is the “#include “examplewindow”. There are two other lines to un comment that instantiates the :examplewindow” and another line that executes the “examplewindow”.Step 5 Top Of Article
Step 6 Compile and run the example.
At this point we can simply run the example and the code we pasted enables the application.Step 6 Top Of Article
This approach offers a rapid way to make the source code in the gtkmm examples functional in a short period of time. In less than three minutes to implement gtkmm examples.  I did not code anything.  I just ran a couple c++ utilities, performed copy and paste on gtkmm examples and un commented three lines of code and it runs flawlessly every time.
Top Of Article
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Page dynamically generated on

Brooks Computing Systems, LLC
Quality, Reliability & Service