-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcombo_drivepreset.cpp
More file actions
30 lines (25 loc) · 1.04 KB
/
combo_drivepreset.cpp
File metadata and controls
30 lines (25 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "combo_drivepreset.h"
DrivePresetComboBox::DrivePresetComboBox(QWidget *parent) : QComboBox(parent) {}
void DrivePresetComboBox::setCategory(PRESET_TYPE pt)
{
/* generate the default options with associated values */
// PRESETS ARE BASICALLY EXPERIMENTAL FOR NOW.
// In fact, as of time of publication, preset 2 & 3 don't actually do
// anything. When we create some real presets, we may want to give them
// better names than "Accel Preset 2"
switch (pt)
{
case ptAccel:
insertItem(0, "None", ADP_NONE);
insertItem(count(), "Accel Preset 1", ADP_PRESET_1);
insertItem(count(), "Accel Preset 2", ADP_PRESET_2);
insertItem(count(), "Accel Preset 3", ADP_PRESET_3);
break;
case ptDecel:
insertItem(0, "None", DDP_NONE);
insertItem(count(), "Decel Preset 1", DDP_PRESET_1);
insertItem(count(), "Decel Preset 2", DDP_PRESET_2);
insertItem(count(), "Decel Preset 3", DDP_PRESET_3);
break;
}
}