1
0

FileInfoDialog.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef NULLSOFT_FILEINFODIALOGH
  2. #define NULLSOFT_FILEINFODIALOGH
  3. #include "../nu/listview.h"
  4. #include "WMInformation.h"
  5. /* CUT> we're now using the unified file info dlg. I'll leave this commented out incase we want to do an advanced tab later on.
  6. class FileInfoDialog
  7. {
  8. public:
  9. FileInfoDialog(HINSTANCE _hInstance, HWND parent, const wchar_t *fileName);
  10. ~FileInfoDialog();
  11. void Init(HWND _hwnd);
  12. static INT_PTR WINAPI FileInfoProc(HWND wnd, UINT msg, WPARAM wp, LPARAM lp);
  13. BOOL MetadataList_Notify(NMHDR *header);
  14. BOOL Edit_Notify(NMHDR *header);
  15. BOOL OnOk();
  16. BOOL OnCancel();
  17. bool WasEdited();
  18. private:
  19. void FillAttributeList();
  20. void WriteAttributeList();
  21. void WriteAttributeListA();
  22. void FillEditBoxes();
  23. void WriteEditBoxes();
  24. bool Apply();
  25. void Revert();
  26. void FileInfoDialog::WriteEditBoxHelper(const wchar_t attrName[], DWORD IDC, wchar_t *&temp, int &size);
  27. bool AttributeInStandardEditor(const wchar_t *attrName);
  28. HWND fileInfoHWND;
  29. WMInformation *wmInfo;
  30. W_ListView attributeList;
  31. HINSTANCE hInstance;
  32. wchar_t *fileName;
  33. wchar_t *fileNameToShow;
  34. bool edited;
  35. };
  36. */
  37. #endif