File: TrackShell.h

package info (click to toggle)
gmod 3.1-2
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 1,348 kB
  • ctags: 808
  • sloc: cpp: 7,755; makefile: 82
file content (48 lines) | stat: -rw-r--r-- 910 bytes parent folder | download | duplicates (3)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// -*-C++-*-
// This file is part of the gmod package
// Copyright (C) 1997 by Andrew J. Robinson

#ifndef __TrackShellH
#define __TrackShellH

#include <qapp.h>
#include <qlistbox.h>
#include <qpushbt.h>

#include "defines.h"  //
#include "structs.h"  // for "pattern" type

class TrackShell : public QWidget
{
  Q_OBJECT
public:
  TrackShell(QWidget *w = 0);
  void insertLine(const char *);
  void setCurrent(int);
  void updateTracker(int, int, short [MAX_POSITION][MAX_TRACK],
		     struct noteInfo *[MAX_PATTERN * MAX_TRACK]);

 public slots:
 void showTrackShell();
  void setChannels(int);

protected:
  void resizeEvent(QResizeEvent *);

private:
  QListBox *patternList;
  QPushButton *closeButton;
  int nrChannels;

 private slots:
 void closeTrackShell();
};

inline void
TrackShell::setCurrent(int current)
{
  patternList->setCurrentItem(current);
  patternList->centerCurrentItem();
}

#endif