Skip to content

MyPluginGUI Included Libraries

anselg edited this page Jan 23, 2014 · 6 revisions

Back ####Included Libraries Jump to explanations for lines 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18

  1 /*  
  2  * This is a template implementation file for a user module derived from  
  3  * DefaultGUIModel with a custom GUI.  
  4  */  
  5   
  6 #include <my_plugin_gui.h>  
  7 #include <main_window.h>  
  8 #include <qgridview.h>  
  9 #include <qhbox.h>  
 10 #include <qhbuttongroup.h>  
 11 #include <qlabel.h>  
 12 #include <qlayout.h>  
 13 #include <qpushbutton.h>  
 14 #include <qtimer.h>  
 15 #include <qtooltip.h>  
 16 #include <qvalidator.h>  
 17 #include <qvbox.h>  
 18 #include <qwhatsthis.h>  

6 Include the header file described previously.

7 <main_window.h>

8 <qgridview.h> is used to orient objects in a grid structure. The functions in this package essentially allow users to define a grid to use to orient different widgets.

9 <qhbox.h> is a class that creates QHBox objects that organize child widgets in a horizontal row.

10 <qhbuttongroup.h> works similarly to <qhbox.h> except that it is intended to contain buttons, which are themselves defined in another Qt package.

11 <qlabel.h> contains functions that enable users to embed text into a GUI.

12 <qlayout.h> has functions that allows customization of where buttons, windows, etc. are located

13 <qpushbutton.h> is a class that creates buttons in the GUI that are animated to be depressed/pushed down when clicked.

14 <qtimer.h> contains functions that can be used for benchmarking purposes. It's used within DefaultGUIModel to time screen refreshing.

15 <qtooltip.h> allows users to add tooltips to QObjects and their derivatives. Tooltips are messages that are displayed when a mouse hovers over something. In many GUIs, for example, hovering the mouse over something like 'Open' or 'Save' will cause a small message to appear explaining what the option over which the mouse hovers does. Those messages are tooltips.

16 <qvalidator.h> checks for values entered into widgets to ensure they match the underlying specifications.

17 <qvbox.h> operates identically to <qhbox> except that this class orients child widgets in a vertical column.

18 <qwhatsthis.h> provides help text and informations to users about different widgets when the code is run.

Clone this wiki locally