|
1 | | -------------------------------------------------------------main.c------------------------------------------------------------ |
| 1 | +---------------------------------------------------------------main.c--------------------------------------------------------------- |
2 | 2 |
|
3 | 3 | You should know: |
4 | 4 | - D_ prefix is used for Diploma Holder functions. |
@@ -53,4 +53,26 @@ void show_diploma(GtkWidget *widget, gpointer data) |
53 | 53 | NOTE: Both functions are essential for switching between different user interfaces within the application, |
54 | 54 | ensuring a smooth transition and clear display of the relevant interface based on user selection. |
55 | 55 |
|
56 | | ------------------------------------------------------------------------------------------------------------------------------- |
| 56 | +void create_undergraduate_interface(GtkWidget *container) |
| 57 | +- This function constructs the undergraduate interface within a given container widget. |
| 58 | +- It creates a new grid widget to organize interface elements. |
| 59 | +- Adds labels and entry widgets for SSC and HSC results, allowing users to input their scores. |
| 60 | +- Sets up a combo box for department selection with various options like BBA, LLB, EEE, etc. |
| 61 | +- Includes a 'Submit' button that triggers the `on_submit_button_clicked` callback when clicked. |
| 62 | +- Initializes a text view and its associated buffer for displaying results, making it non-editable and hiding the cursor. |
| 63 | + |
| 64 | +NOTE: The `create_undergraduate_interface` function is crucial for setting up the user interface where undergraduate applicants |
| 65 | + can enter their results and select their desired department for further processing or evaluation in the application. |
| 66 | + |
| 67 | +void create_diploma_interface(GtkWidget *container) |
| 68 | +- This function is designed to construct the diploma interface within a specified container widget. |
| 69 | +- It creates a grid layout to organize interface elements systematically. |
| 70 | +- Adds a label and an entry widget for the diploma result, allowing diploma holders to input their score. |
| 71 | +- Sets up a combo box for department selection with options like EEE, Textile, CSE, etc. |
| 72 | +- Includes a 'Submit' button that connects to the `D_on_submit_button_clicked` callback for processing the input when clicked. |
| 73 | +- Initializes a text view and its associated buffer for result display, configured to be non-editable and with an invisible cursor. |
| 74 | + |
| 75 | +NOTE: The `create_diploma_interface` function plays a key role in providing a user interface for diploma holders to |
| 76 | + enter their results and choose their department for subsequent actions or calculations in the application. |
| 77 | + |
| 78 | +------------------------------------------------------------------------------------------------------------------------------------ |
0 commit comments