Skip to content

Commit

Permalink
Fix forward decls
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Jul 22, 2024
1 parent 1222a07 commit 78724d3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
6 changes: 4 additions & 2 deletions include/Lv2Proc.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
namespace lmms
{

class AutomatableModel;
class MidiEvent;
class PluginIssue;
class SampleFrame;

Expand Down Expand Up @@ -161,13 +163,13 @@ class LMMS_EXPORT Lv2Proc : public ModelGroup
//! Run the Lv2 plugin instance for @param frames frames
void run(fpp_t frames);

void handleMidiInputEvent(const class MidiEvent &event,
void handleMidiInputEvent(const MidiEvent &event,
const TimePos &time, f_cnt_t offset);

/*
misc
*/
class AutomatableModel *modelAtPort(const QString &uri); // unused currently
AutomatableModel *modelAtPort(const QString &uri); // unused currently
std::size_t controlCount() const { return ModelGroup::size(); }
bool hasNoteInput() const;
const LilvPlugin* getPlugin() const { return m_plugin; }
Expand Down
4 changes: 2 additions & 2 deletions include/ModelGroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ class LMMS_EXPORT ModelGroup
{
}

void saveSettings(class QDomDocument& doc, class QDomElement& that);
void loadSettings(const class QDomElement& that);
void saveSettings(QDomDocument& doc, QDomElement& that);
void loadSettings(const QDomElement& that);

std::size_t size() const { return m_models.size(); }

Expand Down
13 changes: 9 additions & 4 deletions include/ModelGroupView.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@
#ifndef LMMS_GUI_MODEL_GROUP_VIEWS_H
#define LMMS_GUI_MODEL_GROUP_VIEWS_H

#include <QWidget>
#include <cstddef>
#include <map>
#include <memory>
#include <string>

class QString;
class QWidget;

namespace lmms {

Expand All @@ -36,6 +40,7 @@ class ModelGroup;
namespace gui {

class Control;
class ControlLayout;

/**
@file ModelGroupView.h
Expand All @@ -61,12 +66,12 @@ class ModelGroupView
void removeFocusFromSearchBar();

private:
class ModelGroup* m_model;
ModelGroup* m_model;

//! column number in surrounding grid in ModelGroupView
std::size_t m_colNum;
class ControlLayout* m_layout;
std::map<std::string, std::unique_ptr<class Control>> m_widgets;
ControlLayout* m_layout;
std::map<std::string, std::unique_ptr<Control>> m_widgets;
};

} // namespace gui
Expand Down

0 comments on commit 78724d3

Please sign in to comment.