[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/kdevelop/3.4/buildtools/custommakefiles
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2007-03-12 17:23:14
Message-ID: 1173720194.808899.17880.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 641814 by apaku:

Add install active dir for easier development of KDE apps


 M  +13 -0     customprojectpart.cpp  
 M  +1 -0      customprojectpart.h  
 M  +2 -1      kdevcustomproject.rc  


--- branches/kdevelop/3.4/buildtools/custommakefiles/customprojectpart.cpp \
#641813:641814 @@ -116,6 +116,14 @@
                                 "Environment variables and make arguments can be \
                specified "
                                 "in the project settings dialog, <b>Make Options</b> \
tab." ) );  
+    action = new KAction( i18n( "Install Active Directory" ), 0,
+                          this, SLOT( slotInstallActiveDir() ),
+                          actionCollection(), "build_installactivetarget" );
+    action->setToolTip( i18n( "Install active directory" ) );
+    action->setWhatsThis( i18n( "<b>Install active directory</b><p>Runs <b>make \
install</b> command from the active directory.<br>" +                                \
"Environment variables and make arguments can be specified " +                        \
"in the project settings dialog, <b>Make Options</b> tab." ) ); +
     action = new KAction( i18n( "Install (as root user)" ), 0,
                           this, SLOT( slotInstallWithKdesu() ),
                           actionCollection(), "build_install_kdesu" );
@@ -955,6 +963,11 @@
     startMakeCommand( buildDir, target );
 }
 
+void CustomProjectPart::slotInstallActiveDir()
+{
+    startMakeCommand( buildDirectory()+"/"+activeDirectory(), QString::fromLatin1( \
"install" ) ); +}
+
 void CustomProjectPart::slotInstall()
 {
     startMakeCommand( buildDirectory(), QString::fromLatin1( "install" ) );
--- branches/kdevelop/3.4/buildtools/custommakefiles/customprojectpart.h \
#641813:641814 @@ -80,6 +80,7 @@
     void slotBuildActiveDir();
     void slotCompileFile();
     void slotInstall();
+    void slotInstallActiveDir();
     void slotInstallWithKdesu();
     void slotClean();
     void slotExecute();
--- branches/kdevelop/3.4/buildtools/custommakefiles/kdevcustomproject.rc \
#641813:641814 @@ -1,5 +1,5 @@
 <!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
-<kpartgui name="KDevCustomProject" version="6">
+<kpartgui name="KDevCustomProject" version="7">
 <MenuBar>
   <Menu name="project" >
     <Action name="repopulate_project" />
@@ -11,6 +11,7 @@
     <Action name="build_compilefile" />
     <Action name="build_target" />
     <Action name="build_install" />
+	<Action name="build_installactivetarget" />
     <Action name="build_make_environment" />
     <Action name="build_clean" />
     <Separator/>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic