@@ -6,17 +6,20 @@ interface |
| 6 |
|
6 |
|
| 7 |
uses |
7 |
uses |
| 8 |
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, ComCtrls, |
8 |
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, ComCtrls, |
| 9 |
Menus, Spin, StdCtrls, ActnList, StdActns, SynEdit, |
9 |
Menus, Spin, StdCtrls, ActnList, StdActns, SynEdit, math, Instruments, Waves, |
| 10 |
ECSlider, ECProgressBar, math, Instruments, Waves, Song, EmulationThread, |
10 |
Song, EmulationThread, Utils, Constants, sound, vars, machine, |
| 11 |
Utils, Constants, sound, vars, machine, about_hugetracker, Clipbrd, ValEdit, |
11 |
about_hugetracker, TrackerGrid, lclintf, lmessages, Buttons, Grids, DBCtrls, |
| 12 |
Grids, TrackerGrid, lclintf, lmessages; |
12 |
ECProgressBar, ECSpinCtrls, ECCheckListBox, ECGrid; |
| 13 |
|
13 |
|
| 14 |
type |
14 |
type |
| 15 |
{ TfrmTracker } |
15 |
{ TfrmTracker } |
| 16 |
|
16 |
|
| 17 |
TfrmTracker = class(TForm) |
17 |
TfrmTracker = class(TForm) |
| 18 |
CutAction: TAction; |
18 |
CutAction: TAction; |
|
|
19 |
DrawGrid1: TStringGrid; |
| 19 |
EditCut1: TEditCut; |
20 |
EditCut1: TEditCut; |
|
|
21 |
HeaderControl1: THeaderControl; |
|
|
22 |
Panel3: TPanel; |
| 20 |
PasteAction: TAction; |
23 |
PasteAction: TAction; |
| 21 |
CopyAction: TAction; |
24 |
CopyAction: TAction; |
| 22 |
HelpLookupManual: TAction; |
25 |
HelpLookupManual: TAction; |
@@ -57,6 +60,12 @@ type |
| 57 |
ToolBar1: TToolBar; |
60 |
ToolBar1: TToolBar; |
| 58 |
ToolButton1: TToolButton; |
61 |
ToolButton1: TToolButton; |
| 59 |
PanicToolButton: TToolButton; |
62 |
PanicToolButton: TToolButton; |
|
|
63 |
ToolButton2: TToolButton; |
|
|
64 |
ToolButton3: TToolButton; |
|
|
65 |
ToolButton4: TToolButton; |
|
|
66 |
ToolButton5: TToolButton; |
|
|
67 |
ToolButton6: TToolButton; |
|
|
68 |
ToolButton8: TToolButton; |
| 60 |
WaveEditNumberSpinner: TSpinEdit; |
69 |
WaveEditNumberSpinner: TSpinEdit; |
| 61 |
WaveEditGroupBox: TGroupBox; |
70 |
WaveEditGroupBox: TGroupBox; |
| 62 |
Label19: TLabel; |
71 |
Label19: TLabel; |
@@ -190,6 +199,8 @@ type |
| 190 |
PreviewingInstrument: Boolean; |
199 |
PreviewingInstrument: Boolean; |
| 191 |
DrawingWave: Boolean; |
200 |
DrawingWave: Boolean; |
| 192 |
|
201 |
|
|
|
202 |
Ticks: Integer; |
|
|
203 |
|
| 193 |
procedure ChangeToSquare; |
204 |
procedure ChangeToSquare; |
| 194 |
procedure ChangeToWave; |
205 |
procedure ChangeToWave; |
| 195 |
procedure ChangeToNoise; |
206 |
procedure ChangeToNoise; |
@@ -500,6 +511,7 @@ end; |
| 500 |
procedure TfrmTracker.FormCreate(Sender: TObject); |
511 |
procedure TfrmTracker.FormCreate(Sender: TObject); |
| 501 |
var |
512 |
var |
| 502 |
I, J: Integer; |
513 |
I, J: Integer; |
|
|
514 |
Section: TCollectionItem; |
| 503 |
begin |
515 |
begin |
| 504 |
for I := Low(Song.Instruments) to High(Song.Instruments) do |
516 |
for I := Low(Song.Instruments) to High(Song.Instruments) do |
| 505 |
with Song.Instruments[I] do begin |
517 |
with Song.Instruments[I] do begin |
@@ -528,7 +540,11 @@ begin |
| 528 |
|
540 |
|
| 529 |
// Create pattern editor control |
541 |
// Create pattern editor control |
| 530 |
TrackerGrid := TTrackerGrid.Create(Self, ScrollBox1); |
542 |
TrackerGrid := TTrackerGrid.Create(Self, ScrollBox1); |
| 531 |
//TrackerGrid.Parent := ScrollBox1; |
543 |
for Section in HeaderControl1.Sections do |
|
|
544 |
(Section as THeaderSection).Width := TrackerGrid.ColumnWidth; |
|
|
545 |
|
|
|
546 |
// Manually resize the fixed column in the order editor |
|
|
547 |
DrawGrid1.ColWidths[0]:=50; |
| 532 |
|
548 |
|
| 533 |
// Get the emulator ready to make sound... |
549 |
// Get the emulator ready to make sound... |
| 534 |
EmulationThread := TEmulationThread.Create; |
550 |
EmulationThread := TEmulationThread.Create; |