Changes between Version 35 and Version 36 of Projects/GSoC/ApplicationConfigurationGUI


Ignore:
Timestamp:
Sep 17, 2013, 12:02:51 AM (6 years ago)
Author:
Shubhamsomani
Comment:

/* Flow of Control of the GUI (useful while editing code) */

Legend:

Unmodified
Added
Removed
Modified
  • Projects/GSoC/ApplicationConfigurationGUI

    v35 v36  
    5252
    5353When you open the executable the Controller.py file is opened. 
    54 After which the __init__ function is called in the Controller.py. It is responsible for opening the first dialog box. The first dialog box has a Open button in it.
     54After which the __init__ function is called in the Controller.py.
     55It is responsible for opening the first dialog box.
     56The first dialog box has a Open button in it.
    5557On clicking the open button, the function OnOpen is called.
    5658The OnOpen function is responsible for
    5759a) Getting the path of conf.t 
     60
    5861b) Opening conf.t   
     62
    5963c) Reading conf.t and feeding it to the text parser (In this step, the return_parameters module in the text_parser.py file is called. It parses all the necessary information from conf.t)
     64
    6065d) After getting the Output from the text parser, feeding the output to the GUI.py for UI creation.
     66
    6167In the GUI, the set_parameters function is called with the data fetched from the text parser. This function is a setter function and it sets the value of the global variable parameters and then calls the main function of the GUI.
     68
    6269The main function initialises the GUI and launches the Application. Before dynamically creating the GUI, it parses out exact default values to be put in the UI.
     70
    6371Now according to user input the following cases may arise-
     72
    6473a) The user presses Save button. In this case the OnSave function will be called. The OnSave function makes use of Python's config parser module and writes the pair (macro name, current value) into the configuration.ini file.
     74
    6575b) The user presses the Check button. In this case the OnCheck function will be called. The OnCheck function uses regular expressions to see whether the macro values are in format or not.
     76
    6677c) The user presses the Load button.The OnLoad function is called. In this case the values stored in the configuration.ini file are loaded into the GUI.
     78
    6779d) The user presses the Generate button. The OnGenerate function is called. In this case the create_header function will be called which is present in the Generator.py. The Generator.py sees if the value is same as the older value or the user has changed it. In case the user has changed the value, then it gets written into the header file.
    68 
    6980= Using generated header with Applications =
    7081