12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- #pragma once
- #include "openmpt/all/BuildSettings.hpp"
- OPENMPT_NAMESPACE_BEGIN
- class CModCleanupDlg: public CDialog
- {
- private:
- enum CleanupOptions
- {
-
- kCleanupPatterns = 0,
- kRemovePatterns,
- kRearrangePatterns,
- kRemoveDuplicatePatterns,
-
- kMergeSequences,
- kRemoveOrders,
-
- kCleanupSamples,
- kRemoveSamples,
- kRearrangeSamples,
- kOptimizeSamples,
-
- kCleanupInstruments,
- kRemoveAllInstruments,
-
- kCleanupPlugins,
- kRemoveAllPlugins,
-
- kResetVariables,
- kCleanupChannels,
- kNone,
- kMaxCleanupOptions = kNone
- };
- CModDoc &modDoc;
- static bool m_CheckBoxes[kMaxCleanupOptions];
- static const WORD m_CleanupIDtoDlgID[kMaxCleanupOptions];
- static const CleanupOptions m_MutuallyExclusive[kMaxCleanupOptions];
-
-
- bool RemoveDuplicatePatterns();
- bool RemoveUnusedPatterns();
- bool RearrangePatterns();
- bool RemoveAllPatterns();
-
- bool MergeSequences();
- bool RemoveAllOrders();
-
- bool RemoveUnusedSamples();
- bool RemoveAllSamples();
- bool RearrangeSamples();
- bool OptimizeSamples();
-
- bool RemoveUnusedInstruments();
- bool RemoveAllInstruments();
-
- bool RemoveUnusedPlugins();
- bool RemoveAllPlugins();
-
- bool ResetVariables();
- bool RemoveUnusedChannels();
- public:
- CModCleanupDlg(CModDoc &modParent, CWnd *parent) : CDialog(IDD_CLEANUP_SONG, parent), modDoc(modParent) { }
- protected:
-
- virtual BOOL OnInitDialog();
- virtual void OnOK();
-
- BOOL OnToolTipNotify(UINT id, NMHDR* pNMHDR, LRESULT* pResult);
-
- afx_msg void OnPresetCleanupSong();
- afx_msg void OnPresetCompoCleanup();
- afx_msg void OnVerifyMutualExclusive();
-
- DECLARE_MESSAGE_MAP()
- };
- OPENMPT_NAMESPACE_END
|