LMMS
Loading...
Searching...
No Matches
PianoRoll.cpp File Reference
#include "PianoRoll.h"
#include <QtMath>
#include <QApplication>
#include <QCheckBox>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QInputDialog>
#include <QKeyEvent>
#include <QLabel>
#include <QMargins>
#include <QMessageBox>
#include <QPainter>
#include <QPointer>
#include <QPushButton>
#include <QScrollBar>
#include <QStyleOption>
#include <QToolButton>
#include <cmath>
#include <utility>
#include "AutomationEditor.h"
#include "ActionGroup.h"
#include "Clipboard.h"
#include "ComboBox.h"
#include "ConfigManager.h"
#include "DataFile.h"
#include "DeprecationHelper.h"
#include "DetuningHelper.h"
#include "embed.h"
#include "GuiApplication.h"
#include "FontHelper.h"
#include "InstrumentTrack.h"
#include "KeyboardShortcuts.h"
#include "lmms_math.h"
#include "MainWindow.h"
#include "MidiClip.h"
#include "PatternStore.h"
#include "PianoView.h"
#include "PositionLine.h"
#include "SimpleTextFloat.h"
#include "SongEditor.h"
#include "StepRecorderWidget.h"
#include "TextFloat.h"
#include "TimeLineWidget.h"
#include "FileDialog.h"

Namespaces

namespace  lmms
namespace  lmms::gui

Typedefs

using lmms::timeMap = AutomationClip::timeMap

Functions

static QString lmms::gui::getNoteString (int key)

Variables

const int lmms::gui::INITIAL_PIANOROLL_WIDTH = 970
const int lmms::gui::INITIAL_PIANOROLL_HEIGHT = 485
const int lmms::gui::SCROLLBAR_SIZE = 12
const int lmms::gui::PIANO_X = 0
const int lmms::gui::WHITE_KEY_WIDTH = 64
const int lmms::gui::BLACK_KEY_WIDTH = 41
const int lmms::gui::DEFAULT_KEY_LINE_HEIGHT = 12
const int lmms::gui::DEFAULT_CELL_WIDTH = 12
const int lmms::gui::NOTE_EDIT_RESIZE_BAR = 6
const int lmms::gui::NOTE_EDIT_MIN_HEIGHT = 50
const int lmms::gui::KEY_AREA_MIN_HEIGHT = DEFAULT_KEY_LINE_HEIGHT * 10
const int lmms::gui::PR_BOTTOM_MARGIN = SCROLLBAR_SIZE
const int lmms::gui::PR_TOP_MARGIN = 18
const int lmms::gui::PR_RIGHT_MARGIN = SCROLLBAR_SIZE
const int lmms::gui::RESIZE_AREA_WIDTH = 9
const int lmms::gui::NOTE_EDIT_LINE_WIDTH = 3
const int lmms::gui::INITIAL_START_KEY = Octave::Octave_4 + Key::C
const int lmms::gui::NUM_EVEN_LENGTHS = 6
const int lmms::gui::NUM_TRIPLET_LENGTHS = 5
const int lmms::gui::DETUNING_HANDLE_RADIUS = 3
static std::array< QString, 12 > lmms::gui::s_noteStrings
const int lmms::gui::DEFAULT_PR_PPB = DEFAULT_CELL_WIDTH * DefaultStepsPerBar