summaryrefslogtreecommitdiff
path: root/muse2/muse/appearance.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-10-08 13:47:24 +0000
committerFlorian Jung <flo@windfisch.org>2011-10-08 13:47:24 +0000
commita347445db32f51562aee5c6a786c312d1f612d2f (patch)
treeba3dc9a6e03eec2edf2c213b7f4d7e5e49903edc /muse2/muse/appearance.cpp
parent375d6a53630f364c6560eb40255a8cc4c0496b8c (diff)
parent5367067f7a36dce8a362dcc000d41ac581bffdfe (diff)
merged namespace changes. HOPEFULLY the last one.
Diffstat (limited to 'muse2/muse/appearance.cpp')
-rw-r--r--muse2/muse/appearance.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/muse2/muse/appearance.cpp b/muse2/muse/appearance.cpp
index a702965c..6c3ee2e4 100644
--- a/muse2/muse/appearance.cpp
+++ b/muse2/muse/appearance.cpp
@@ -47,6 +47,8 @@
#include "conf.h"
#include "gconfig.h"
+namespace MusEGui {
+
int BG_ITEM_HEIGHT = 30;
class BgPreviewWidget : public QWidget {
@@ -115,13 +117,13 @@ class IdListViewItem : public QTreeWidgetItem {
// Appearance
//---------------------------------------------------------
-Appearance::Appearance(MusEArranger::Arranger* a, QWidget* parent)
+Appearance::Appearance(Arranger* a, QWidget* parent)
: QDialog(parent, Qt::Window)
{
setupUi(this);
arr = a;
color = 0;
- config = new MusEConfig::GlobalConfigValues;
+ config = new GlobalConfigValues;
lastSelectedColorItem = 0;
lastSelectedBgItem = 0;
@@ -207,7 +209,7 @@ Appearance::Appearance(MusEArranger::Arranger* a, QWidget* parent)
new IdListViewItem(0x410, id, "Saxophon");
*/
for(int i = 0; i < NUM_PARTCOLORS; ++i)
- new IdListViewItem(0x400 + i, id, MusEConfig::config.partColorNames[i]);
+ new IdListViewItem(0x400 + i, id, MusEGlobal::config.partColorNames[i]);
new IdListViewItem(0x41c, aid, "part canvas background");
id = new IdListViewItem(0, aid, "Track List");
@@ -322,7 +324,7 @@ Appearance::Appearance(MusEArranger::Arranger* a, QWidget* parent)
void Appearance::resetValues()
{
- *config = MusEConfig::config; // init with global config values
+ *config = MusEGlobal::config; // init with global config values
styleSheetPath->setText(config->styleSheetFile);
updateFonts();
@@ -697,7 +699,7 @@ void Appearance::apply()
config->globalAlphaBlend = globalAlphaVal->value();
// set colors...
- MusEConfig::config = *config;
+ MusEGlobal::config = *config;
MusEGlobal::muse->changeConfig(true);
}
@@ -764,7 +766,7 @@ void Appearance::removeBackground()
void Appearance::addBackground()
{
QString cur = getenv("HOME");
- QString user_bgfile = MusEWidget::getImageFileName(cur, MusEGlobal::image_file_pattern, this,
+ QString user_bgfile = getImageFileName(cur, MusEGlobal::image_file_pattern, this,
tr("MusE: load image"));
bool image_exists = false;
@@ -1136,3 +1138,5 @@ void Appearance::browseFont(int n)
}
}
+} // namespace MusEGui
+