unionlooki.blogg.se

Primefaces custom stack menu
Primefaces custom stack menu









  1. #Primefaces custom stack menu full
  2. #Primefaces custom stack menu code
  3. #Primefaces custom stack menu download

Shortly after the AppFuse 2.2.1 release in December, Gilberto Andrade contributed a sample project that used Mojarra (the JSF RI) and PrimeFaces instead of MyFaces and its Tomahawk components. Since PrimeFaces contains a Bootstrap theme, I hope this is a pleasant experience and my overall opinion of JSF improves. That's why I'll be integrating it (or merging your pull request) into the 2.3 release of AppFuse. there's a lot of folks praising JSF 2 (and PrimeFaces moreso).

#Primefaces custom stack menu code

The source code downloaded from the official repo actually comes with some examples (the ones commented) and I added two more just for fun.When describing my bias against JSF back in November, I wrote: #define USER_DESC_4 "Heat Bed/Home/Level" #define USER_GCODE_3 "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_2_TEMP_HOTEND) #define USER_GCODE_2 "M140 S" STRINGIFY(PREHEAT_1_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_1_TEMP_HOTEND) #define USER_SCRIPT_RETURN // Return to status screen after a script #define USER_SCRIPT_DONE "M117 User Script Done" The section we are looking for is almost at the end of the file, you can ctrl+f for "CUSTOM_USER_MENUS" to find it.

primefaces custom stack menu

So, let's see that advanced configuration file: Configuration_adv.h. These items are meant to run custom G-code, which in this case (adding a preheat action with custom target extruder and bed temp) is enough to fill your needs. MENU_ITEM(function, MSG_PREHEAT_2, lcd_preheat_m2_e0_only) Īfter compiling and uploading to the printer board, enter the Prepare menu and scroll down to see:Īs Mark said, Marlin supports a number of menu items in it's advanced configuration. MENU_ITEM(function, MSG_PREHEAT_1, lcd_preheat_m1_e0_only) MENU_ITEM(submenu, "CUSTOM PREHEAT", lcd_preheat_m3_menu) MENU_ITEM(submenu, MSG_PREHEAT_2, lcd_preheat_m2_menu) MENU_ITEM(submenu, MSG_PREHEAT_1, lcd_preheat_m1_menu) You then add the item to the menu by changing this part of the code:

#Primefaces custom stack menu full

You could start there to add your own option.Īs a quick demonstration, I've added a CUSTOM PREHEAT item by copying the lcd_preheat_m2_menu function in ultralcd.cpp and renamed this lcd_preheat_m3_menu (a full functional item needs changes within the lcd_preheat_m3_menu as it now uses the constants from the ABS preheat option). This hints to function lcd_preheat_m1_menu that is called by MENU_ITEM which adds menu items to LCD. These point to the use of a constant MSG_PREHEAT_1 which finds its presence in ultralcd.cpp. Searching for Preheat PLA will show you a bunch of language translation files.

#Primefaces custom stack menu download

Alternatively, download a copy of the firmware and use a free "grep" utility to search in files. Searching in files is easy when you go to the github website with the Marlin firmware sources, functionality is available for searching in the files. As you already mention Preheat PLA, that would be the first to search for. It is best to first look at the current implementation of the menu items.

primefaces custom stack menu primefaces custom stack menu primefaces custom stack menu

This is how I used to do it if you want to add items to the menu in Marlin Firmware through the ultralcd.cpp. Nowadays, you can also enable extra option through the Configuration_adv.h file, just enable: #define CUSTOM_USER_MENUSĪnd edit the options beneath it to your needs (otherwise it will use the preset values from the Configuration.h file). The answer to your question (baring in mind that the question is raised for Marlin 1.1.9) is the file ultralcd.cpp.











Primefaces custom stack menu