Esempio n. 1
0
    static void
size_callback(Widget w,
	SharedFontSelData *data,
	XmListCallbackStruct *call_data)
{
    do_choice(w, data, call_data, SIZE);
}
Esempio n. 2
0
    static void
encoding_callback(Widget w,
	SharedFontSelData *data,
	XtPointer dummy UNUSED)
{
    XmString str;
    XmListCallbackStruct fake_data;

    XtVaGetValues(w, XmNlabelString, &str, NULL);

    if (!str)
	return;

    fake_data.item = str;

    do_choice(0, data, &fake_data, ENCODING);
}
Esempio n. 3
0
int main(int argc, const char *argv[])
{
    int choice;

    while (1)
    {
        //1.display the main menu
        show_menu();
        //2.retrieve the user opition
        choice = get_choice();
        //3.According to the function of the corresponding choice of implementation
        do_choice(choice);

        system("pause>nul");
    }
    return 0;
}