Skip to content

Commit e6ff319

Browse files
added create interface function documentation
1 parent b0515ab commit e6ff319

File tree

1 file changed

+24
-2
lines changed
  • NUB_Admission_Costing_Calculator/docs

1 file changed

+24
-2
lines changed

NUB_Admission_Costing_Calculator/docs/main.txt

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
------------------------------------------------------------main.c------------------------------------------------------------
1+
---------------------------------------------------------------main.c---------------------------------------------------------------
22

33
You should know:
44
- D_ prefix is used for Diploma Holder functions.
@@ -53,4 +53,26 @@ void show_diploma(GtkWidget *widget, gpointer data)
5353
NOTE: Both functions are essential for switching between different user interfaces within the application,
5454
ensuring a smooth transition and clear display of the relevant interface based on user selection.
5555

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

Comments
 (0)