From kde-commits Thu Jun 30 22:22:05 2011 From: Adam Pigg Date: Thu, 30 Jun 2011 22:22:05 +0000 To: kde-commits Subject: =?utf-8?q?=5Bcalligra/kexi-mobile-adam=5Fpigg=5D_kexi/plugins/au?= Message-Id: <20110630222205.1DC4DA60AE () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=130947255505933 Git commit ad0e13641d09064cab324e84ed5dfa6940105cce by Adam Pigg. Committed on 01/07/2011 at 00:19. Pushed by piggz into branch 'kexi-mobile-adam_pigg'. Updated to revised KexiPart API M +12 -3 kexi/plugins/autoforms/KexiAutoFormPart.cpp http://commits.kde.org/calligra/ad0e13641d09064cab324e84ed5dfa6940105cce diff --git a/kexi/plugins/autoforms/KexiAutoFormPart.cpp b/kexi/plugins/autoforms/KexiAutoFormPart.cpp index 67f8d83..867620b 100644 --- a/kexi/plugins/autoforms/KexiAutoFormPart.cpp +++ b/kexi/plugins/autoforms/KexiAutoFormPart.cpp @@ -24,10 +24,18 @@ #include #include -KexiAutoFormPart::KexiAutoFormPart(QObject* parent, const QVariantList& args): Part(parent, args) +KexiAutoFormPart::KexiAutoFormPart(QObject* parent, const QVariantList& args) +: KexiPart::Part(parent, + i18nc("Translate this word using only lowercase alphanumeric characters (a..z, 0..9). " + "Use '_' character instead of spaces. First character should be a..z character. " + "If you cannot use latin characters in your language, use english word.", + "report"), + i18nc("tooltip", "Create new autoform"), + i18nc("what's this", "Creates new autoform."), + args) { kDebug(); - setInternalPropertyValue("instanceName", + /*setInternalPropertyValue("instanceName", i18nc("Translate this word using only lowercase alphanumeric characters (a..z, 0..9). " "Use '_' character instead of spaces. First character should be a..z character. " "If you cannot use latin characters in your language, use english word.", @@ -35,7 +43,8 @@ KexiAutoFormPart::KexiAutoFormPart(QObject* parent, const QVariantList& args): P setInternalPropertyValue("instanceCaption", i18n("AutoForm")); setInternalPropertyValue("instanceToolTip", i18nc("tooltip", "Create new AutoForm")); setInternalPropertyValue("instanceWhatsThis", i18nc("what's this", "Creates new autoform.")); - setSupportedViewModes(Kexi::DataViewMode | Kexi::DesignViewMode); + + setSupportedViewModes(Kexi::DataViewMode | Kexi::DesignViewMode);*/ setInternalPropertyValue("newObjectsAreDirty", true); }