[Kst] extragear/graphics/kst/kst
Barth Netterfield
netterfield at astro.utoronto.ca
Wed Dec 7 07:30:31 CET 2005
SVN commit 486238 by netterfield:
Fill the view dialog (just the easy stuff so far).
M +8 -4 kstviewlegend.cpp
--- trunk/extragear/graphics/kst/kst/kstviewlegend.cpp #486237:486238
@@ -33,6 +33,10 @@
#include <kglobal.h>
#include <klocale.h>
#include <kpopupmenu.h>
+#include <kcolorbutton.h>
+#include <kcombobox.h>
+#include <kdualcolorbutton.h>
+#include <kfontcombo.h>
#include <qapplication.h>
#include <qbitmap.h>
@@ -40,6 +44,8 @@
#include <qmetaobject.h>
#include <qptrstack.h>
#include <qstylesheet.h>
+#include <qspinbox.h>
+#include <qcheckbox.h>
#include <stdlib.h>
@@ -438,18 +444,17 @@
}
if (Curves.isEmpty()) { // its probably new: set widget to defaults
-#if 0
widget->_fontSize->setValue(0);
widget->_fontColor->setColor(KstSettings::globalSettings()->foregroundColor);
widget->_font->setCurrentFont(KstApp::inst()->defaultFont());
widget->_margin->setValue(5);
widget->_boxColors->setForeground(KstSettings::globalSettings()->foregroundColor);
widget->_boxColors->setBackground(KstSettings::globalSettings()->backgroundColor);
+
widget->_transparent->setChecked(false);
widget->_border->setValue(2);
-#endif
+
} else { // fill legend properties into widget
-#if 0
widget->_fontSize->setValue(int(fontSize()));
widget->_fontColor->setColor(foregroundColor());
widget->_font->setCurrentFont(fontName());
@@ -458,7 +463,6 @@
widget->_boxColors->setForeground(borderColor());
widget->_boxColors->setBackground(backgroundColor());
widget->_margin->setValue(padding());
-#endif
}
return false;
}
More information about the Kst
mailing list