mmenu; larger font in list view; added to config file and config menu; default folders
[pandora-libraries.git] / minimenu / mmui.h
index 7472294..b6a0d68 100644 (file)
@@ -34,14 +34,20 @@ typedef enum {
   IMG_HOURGLASS,
   IMG_FOLDER,
   IMG_EXECBIN,
+  IMG_SUBCATFOLDER,
+  IMG_DOTDOTFOLDER,
   IMG_MAX, // before this point is loaded; after is generated
+  IMG_LIST_ALPHAMASK,
+  IMG_LIST_ALPHAMASK_W,
   IMG_TRUEMAX
 } mm_imgcache_e;
 
 typedef struct {
   mm_imgcache_e id;
   char *confname;
+  char *alt_confname;
   void /*SDL_Surface*/ *i;
+  void /*SDL_Surface*/ *itiny;
 } mm_imgcache_t;
 
 /* ui stuff
@@ -60,6 +66,12 @@ typedef enum {
   uisb_max
 } ui_sdl_button_e;
 
+typedef enum {
+  uiv_icons = 0,
+  uiv_list,
+  uiv_max
+} ui_viewmode_e;
+
 unsigned char ui_setup ( void );
 unsigned char ui_imagecache ( char *basepath );
 unsigned char ui_pick_skin ( void ); // return >0 if skin has changed
@@ -74,6 +86,8 @@ void ui_post_scan ( void );
 unsigned char ui_show_info ( char *pndrun, pnd_disco_t *p );
 void ui_aboutscreen ( char *textpath );
 void ui_revealscreen ( void );
+void ui_manage_categories ( void );
+char *ui_pick_custom_category ( unsigned char mode ); // mode 0 == custom main only; 1 == custom main + FD main; 2 == custom main + FD mains-with-custom-subs
 
 /* internal functions follow
  */
@@ -120,6 +134,7 @@ unsigned int ui_callback_f ( unsigned int t );
 
 // 'popup' 'context' menu
 void ui_menu_context ( mm_appref_t *a );
+unsigned char ui_menu_oneby ( char *title, char *footer, char *one ); // return 0 (nada) or 1 (one) for they actually picked it
 unsigned char ui_menu_twoby ( char *title, char *footer, char *one, char *two ); // return 0 (nada), 1 (one), 2 (two)
 unsigned char ui_menu_get_text_line ( char *title, char *footer, char *initialvalue,
                                      char *r_buffer, unsigned char maxlen, unsigned char numbersonlyp ); // populates r_buffer