26#include <core/config.h>
64class SimpleHTMLBrowser;
92 static bool openSong( QString sFilename );
93 static bool openSong( std::shared_ptr<H2Core::Song> pSong );
113 void showSampleEditor( QString name,
int mSelectedComponemt,
int mSelectedLayer );
136#ifdef H2CORE_HAVE_LADSPA
137 LadspaFXProperties* getLadspaFXProperties(uint nFX) {
return m_pLadspaFXProperties[nFX]; }
200#ifdef H2CORE_HAVE_LADSPA
constexpr uint16_t QUEUE_TIMER_PERIOD
Amount of time to pass between successive calls to HydrogenApp::onEventQueueTimer() in milliseconds.
A container class to collect all translatable strings at one place in order to allow for the reusage.
Manager for User Preferences File (singleton)
static Preferences * get_instance()
Returns a pointer to the current Preferences singleton stored in __instance.
bool hideKeyboardCursor()
Changes
Bitwise or-able options showing which part of the Preferences were altered using the PreferencesDialo...
void setHideKeyboardCursor(bool bHidden)
PlayerControl * getPlayerControl()
AudioEngineInfoForm * m_pAudioEngineInfoForm
void addEventListener(EventListener *pListener)
static HydrogenApp * get_instance()
Returns the instance of HydrogenApp class.
std::shared_ptr< CommonStrings > getCommonStrings()
std::shared_ptr< CommonStrings > m_pCommonStrings
void updateEventListeners()
int m_nPreferencesUpdateTimeout
QUndoStack * m_pUndoStack
PatternEditorPanel * getPatternEditorPanel()
bool hideKeyboardCursor()
std::vector< EventListener * > m_eventListeners
void showAudioEngineInfoForm()
void showFilesystemInfoForm()
QScrollArea * m_pMainScrollArea
Used for accessibility reasons to show scroll bars in case Hydrogen has to be shrunk below its minimu...
SongEditorPanel * m_pSongEditorPanel
InstrumentRack * getInstrumentRack()
void updateMixerCheckbox()
virtual void updatePreferencesEvent(int nValue) override
Handles the loading and saving of the H2Core::Preferences from the core part of H2Core::Hydrogen.
static bool openSong(QString sFilename)
void onPreferencesChanged(H2Core::Preferences::Changes changes)
PlayerControl * m_pPlayerControl
PlaylistDialog * getPlayListDialog()
PlaylistDialog * m_pPlaylistDialog
virtual void updateSongEvent(int nValue) override
Refreshes and updates the GUI after the Song was changed in the core part of Hydrogen.
static bool checkDrumkitLicense(std::shared_ptr< H2Core::Drumkit > pDrumkit)
PatternEditorPanel * m_pPatternEditorPanel
void showStatusBarMessage(const QString &sMessage, const QString &sCaller="")
QVBoxLayout * m_pMainVBox
QTimer * m_pPreferencesUpdateTimer
virtual void drumkitLoadedEvent() override
void showMixer(bool bShow)
void showPlaylistDialog()
void onEventQueueTimer()
Function called every QUEUE_TIMER_PERIOD millisecond to pop all Events from the EventQueue and invoke...
void preferencesChanged(H2Core::Preferences::Changes changes)
Propagates a change in the Preferences through the GUI.
std::set< EventListener * > m_eventListenersToRemove
void changePreferences(H2Core::Preferences::Changes changes)
Propagates a change in the Preferences through the GUI.
QTimer * m_pEventQueueTimer
void showInstrumentPanel(bool)
void showSampleEditor(QString name, int mSelectedComponemt, int mSelectedLayer)
std::set< EventListener * > m_eventListenersToAdd
static bool recoverEmptySong()
Specialized version of openSong( QString sFilename ) trying to open the autosave file corresponding t...
void currentTabChanged(int)
void engineError(uint nErrorCode)
SampleEditor * getSampleEditor()
void removeEventListener(EventListener *pListener)
virtual void songModifiedEvent() override
InstrumentRack * m_pInstrumentRack
virtual void XRunEvent() override
H2Core::WindowProperties getWindowProperties(QWidget *pWindow)
AudioEngineInfoForm * getAudioEngineInfoForm()
void showPreferencesDialog()
SongEditorPanel * getSongEditorPanel()
void cleanupTemporaryFiles()
Removes temporary files that were created for undo'ing things.
H2Core::Preferences::Changes m_bufferedChanges
void setWindowProperties(QWidget *pWindow, H2Core::WindowProperties &prop, unsigned flags=SetAll)
SampleEditor * m_pSampleEditor
void setupSinglePanedInterface()
void propagatePreferences()
HydrogenApp(MainForm *pMainForm)
FilesystemInfoForm * m_pFilesystemInfoForm
static HydrogenApp * m_pInstance
HydrogenApp instance.
bool m_bHideKeyboardCursor
Container for the Instrument Editor (Singleton).
This dialog is used to use the H2PlayList.
This dialog is used to preview audiofiles.
#define MAX_FX
Maximum number of effects.