Programmable real-time audio signal processing application
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Fl_File_Btn.h 847B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef Fl_File_Btn_h
  2. #define Fl_File_Btn_h
  3. class Fl_Button;
  4. class Fl_Output;
  5. class Fl_File_Btn : public Fl_Group
  6. {
  7. public:
  8. enum
  9. {
  10. kFile_Type_Id,
  11. kDir_Type_Id
  12. };
  13. Fl_File_Btn( int x, int y, int w, int h, const char* l = 0 );
  14. Fl_File_Btn( unsigned typeId, const char* patStr, int x, int y, int w, int h, const char* l = 0 );
  15. virtual ~Fl_File_Btn();
  16. unsigned type();
  17. void type( unsigned typeId );
  18. const char* pattern_string();
  19. void pattern_string( const char* pat);
  20. void btn_width( int w );
  21. int btn_width();
  22. void filename( const char* fn );
  23. const char* filename() const;
  24. private:
  25. char* _patStr;
  26. unsigned _typeId;
  27. Fl_Button* _btn;
  28. Fl_Output* _out;
  29. static void _s_btn_cb(Fl_Widget* w, void* data);
  30. void _btn_cb();
  31. void _init();
  32. };
  33. #endif