summaryrefslogtreecommitdiff
path: root/muse2/muse
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2010-10-27 04:10:41 +0000
committerTim E. Real <termtech@rogers.com>2010-10-27 04:10:41 +0000
commit8b50cd935abdc04230af7346c16b4dd1a9341139 (patch)
tree984332038ab38e7e1c4aa5d7d159ae60b30456bd /muse2/muse
parentf31badef8108f50fe2f8d7ae208aa06734151563 (diff)
See ChangeLog
Diffstat (limited to 'muse2/muse')
-rw-r--r--muse2/muse/app.cpp2
-rw-r--r--muse2/muse/cobject.cpp4
-rw-r--r--muse2/muse/gui.h56
3 files changed, 59 insertions, 3 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp
index 085127ad..f806be90 100644
--- a/muse2/muse/app.cpp
+++ b/muse2/muse/app.cpp
@@ -93,6 +93,7 @@
#include "synth.h"
#include "remote/pyapi.h"
#include "al/dsp.h"
+#include "gui.h"
#ifdef DSSI_SUPPORT
#include "dssihost.h"
@@ -819,6 +820,7 @@ MusE::MusE(int argc, char** argv) : QMainWindow()
// By T356. For LADSPA plugins in plugin.cpp
// QWidgetFactory::addWidgetFactory( new PluginWidgetFactory ); ddskrjo
+ setIconSize(ICON_SIZE);
setFocusPolicy(Qt::WheelFocus);
muse = this; // hack
clipListEdit = 0;
diff --git a/muse2/muse/cobject.cpp b/muse2/muse/cobject.cpp
index c7acc11c..09338156 100644
--- a/muse2/muse/cobject.cpp
+++ b/muse2/muse/cobject.cpp
@@ -8,9 +8,7 @@
#include "cobject.h"
#include "xml.h"
-
-const int ICON_WIDTH = 18;
-const QSize ICON_SIZE(ICON_WIDTH, ICON_WIDTH);
+#include "gui.h"
//---------------------------------------------------------
// readStatus
diff --git a/muse2/muse/gui.h b/muse2/muse/gui.h
new file mode 100644
index 00000000..4deeb748
--- /dev/null
+++ b/muse2/muse/gui.h
@@ -0,0 +1,56 @@
+//=============================================================================
+// MusE
+// Linux Music Editor
+// $Id:$
+//
+// Copyright (C) 2002-2006 by Werner Schweer and others
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License version 2.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+//=============================================================================
+
+#ifndef __GUI_H__
+#define __GUI_H__
+
+//
+// GUI constants
+// central point of tweaking the gui
+//
+
+/*
+// size of horizontal and vertical splitter
+//
+static const int splitWidth = 6;
+
+// arranger:
+static const int trackRowHeight = 24;
+static const int minTrackHeight = trackRowHeight + splitWidth + 1;
+static const int defaultTrackHeight = minTrackHeight;
+static const int infoHeight = 20;
+static const int infoWidth = 140;
+static const int trackSeparator = 1;
+static const int yTrackOffset = -2; // -4;
+
+// mixer:
+static const int STRIP_WIDTH = 60;
+static const int LABEL_HEIGHT = 20;
+static const int BUTTON_HEIGHT = STRIP_WIDTH / 3;
+static const int ENTRY_HEIGHT = 17;
+*/
+
+static const int ICON_WIDTH = 18;
+static const QSize ICON_SIZE(ICON_WIDTH, ICON_WIDTH);
+
+#endif
+
+
+