dialog.h 777 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __DIALOG_H__
  2. #define __DIALOG_H__
  3. /* 打开对话框中的一些数据 */
  4. struct OpenDlgSt
  5. {
  6. char* path; //查找路径
  7. char* filename; //文件(夹)名称
  8. rt_uint32_t size;//文件大小/文件夹下的文件个数
  9. rt_uint32_t type;//文件类型:文件/文件夹
  10. char* pattern; //文件类型;
  11. rtgui_filelist_view_t* fview;
  12. rtgui_textbox_t* tbox_path; //控件指针
  13. rtgui_textbox_t* tbox_filename;
  14. rtgui_combo_t* cbox_pattern;
  15. };
  16. rtgui_win_t* rtgui_win_get_win_by_widget(PVOID wdt);
  17. void OpenFileDialog(PVOID wdt, rtgui_event_t* event);
  18. void NewFileDialog(PVOID wdt, rtgui_event_t *event);
  19. void SaveFileDialog(PVOID wdt, rtgui_event_t *event);
  20. void GoToTopFolder(PVOID wdt, rtgui_event_t *event);
  21. void GoToSubFolder(PVOID wdt, rtgui_event_t *event);
  22. #endif