[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kode/kxforms
From: Cornelius Schumacher <schumacher () kde ! org>
Date: 2006-03-29 14:43:29
Message-ID: 1143643409.759249.26518.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 523960 by cschumac:
Add option to show developer information.
M +1 -1 Makefile.am
A kxforms.kcfg
M +5 -0 list.cpp
M +4 -0 main.cpp
A prefs.kcfgc
--- trunk/KDE/kdepim/kode/kxforms/Makefile.am #523959:523960
@@ -9,7 +9,7 @@
kxforms_SOURCES = main.cpp mainwindow.cpp manager.cpp form.cpp list.cpp \
input.cpp formgui.cpp xformscommon.cpp guielement.cpp kresult.cpp \
guihandler.cpp reference.cpp textarea.cpp select1.cpp listmodel.cpp \
- guihandlerdialogs.cpp guihandlerflat.cpp
+ guihandlerdialogs.cpp guihandlerflat.cpp prefs.kcfgc
schema2kxform_LDFLAGS = $(KDE_RPATH) $(all_libraries)
schema2kxform_LDADD = ../kxml_compiler/libkschema.la $(LIB_KDECORE)
--- trunk/KDE/kdepim/kode/kxforms/list.cpp #523959:523960
@@ -22,6 +22,7 @@
#include "manager.h"
#include "formgui.h"
#include "listmodel.h"
+#include "prefs.h"
#include <kmessagebox.h>
#include <klocale.h>
@@ -73,6 +74,10 @@
button = new QPushButton( i18n("Move Item Down"), this );
buttonLayout->addWidget( button );
connect( button, SIGNAL( clicked() ), SLOT( moveDown() ) );
+
+ if ( !Prefs::developerMode() ) {
+ mView->hideColumn( 1 );
+ }
}
void List::newItem()
--- trunk/KDE/kdepim/kode/kxforms/main.cpp #523959:523960
@@ -24,6 +24,7 @@
#include "manager.h"
#include "guihandlerdialogs.h"
#include "guihandlerflat.h"
+#include "prefs.h"
#include <kapplication.h>
#include <dcopclient.h>
@@ -47,6 +48,7 @@
{ "kxform <URL>", I18N_NOOP( "Form description" ), 0 },
{ "schema <URL>", I18N_NOOP( "XML Schema" ), 0 },
{ "dialogs", I18N_NOOP( "Use dialogs" ), 0 },
+ { "developer", I18N_NOOP( "Use developer mode of user interface" ), 0 },
KCmdLineLastOption
};
@@ -82,6 +84,8 @@
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+ Prefs::setDeveloperMode( args->isSet( "developer" ) );
+
MainWindow *widget = new MainWindow;
if ( args->isSet( "dialogs" ) ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic