[PC-BSD Commits] r2229 - pcbsd/trunk/ServiceManager

svn at pcbsd.org svn at pcbsd.org
Tue Jul 1 12:42:40 PDT 2008


Author: kris
Date: 2008-07-01 12:42:39 -0700 (Tue, 01 Jul 2008)
New Revision: 2229

Added:
   pcbsd/trunk/ServiceManager/NewLogoSmall.png
   pcbsd/trunk/ServiceManager/notroot.cpp
   pcbsd/trunk/ServiceManager/notroot.h
   pcbsd/trunk/ServiceManager/servicemanager.cpp
   pcbsd/trunk/ServiceManager/servicemanager.h
   pcbsd/trunk/ServiceManager/servicemanager.qrc
Removed:
   pcbsd/trunk/ServiceManager/servicemanager.ui.h
Modified:
   pcbsd/trunk/ServiceManager/kcm.cpp
   pcbsd/trunk/ServiceManager/kcm.h
   pcbsd/trunk/ServiceManager/notroot.ui
   pcbsd/trunk/ServiceManager/servicemanager.pro
   pcbsd/trunk/ServiceManager/servicemanager.ui
Log:


Updated the ServiceManager module to QT / KDE4



Added: pcbsd/trunk/ServiceManager/NewLogoSmall.png


Property changes on: pcbsd/trunk/ServiceManager/NewLogoSmall.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: pcbsd/trunk/ServiceManager/kcm.cpp
===================================================================
--- pcbsd/trunk/ServiceManager/kcm.cpp	2008-07-01 19:41:44 UTC (rev 2228)
+++ pcbsd/trunk/ServiceManager/kcm.cpp	2008-07-01 19:42:39 UTC (rev 2229)
@@ -1,49 +1,55 @@
 #include <qlayout.h>
+#include <Q3GridLayout>
 
 #include <klocale.h>
 #include <kglobal.h>
-#include <kparts/genericfactory.h>
-#include <servicemanager.h>
-#include <notroot.h>
+#include <kgenericfactory.h>
+#include "servicemanager.h"
+#include "notroot.h"
 #include <kcm.h>
 
+K_PLUGIN_FACTORY(PCBSDSERVICEMANAGERFactory,
+                 registerPlugin<PCBSDSERVICEMANAGER>();
+                )
+K_EXPORT_PLUGIN(PCBSDSERVICEMANAGERFactory("kcmpcbsdservices"))
 
-PCBSDKCModule::PCBSDKCModule(QWidget  *parent,
-                           const char  *name,
-                           __unused  const QStringList &  list)
-   :    KCModule(parent, name)
+
+PCBSDSERVICEMANAGER::PCBSDSERVICEMANAGER(QWidget *parent, const QVariantList &lst)
+   :    KCModule(PCBSDSERVICEMANAGERFactory::componentData(), parent, lst)
 {
+
   layout = new QGridLayout(this);
   layout->setAutoAdd(true);
   
   buttons();
 
   QString LANG="ServiceManager";
-  KGlobal::locale()->insertCatalogue(LANG);
+  //KGlobal::locale()->insertCatalogue(LANG);
 
   
   if ( checkRoot() )
   {
    buttons();
    setButtons(KCModule::Help);
-   ServiceManager *systab = new ServiceManager(parent);
+   ServiceManager *systab = new ServiceManager();
   systab->ProgramInit();
   systab->reparent(this, QPoint());
   } else  {
       setButtons(KCModule::Help);
-      NotRoot *nroot = new NotRoot(parent);
+      NotRoot *nroot = new NotRoot();
+      nroot->programInit();
       nroot->reparent(this, QPoint());
   }
    
 }
 
-PCBSDKCModule::~PCBSDKCModule() {
+PCBSDSERVICEMANAGER::~PCBSDSERVICEMANAGER() {
 }
 
 
-bool    PCBSDKCModule::checkRoot() {
+bool  PCBSDSERVICEMANAGER::checkRoot() {
     
-              FILE *file = popen("whoami","r"); 
+        FILE *file = popen("whoami","r"); 
 	
 	char buffer[100];
 	
@@ -70,43 +76,16 @@
 }
 
 
-void    PCBSDKCModule::load() {
+void    PCBSDSERVICEMANAGER::load() {
     
 }
 
 
-void    PCBSDKCModule::defaults() {
+void    PCBSDSERVICEMANAGER::defaults() {
    load();
 }
 
 
-void    PCBSDKCModule::save() {
+void    PCBSDSERVICEMANAGER::save() {
 }
 
-
-/*
-* Start the KFactory Creation  
-*
-*/
-
-
-
-typedef KGenericFactory<PCBSDSERVICEMANAGER, QWidget> PCBSDSERVICEMANAGERFactory;
-K_EXPORT_COMPONENT_FACTORY(kcm_PCBSDSERVICEMANAGER, PCBSDSERVICEMANAGERFactory("kcm_pcbsdservices"))
-
-extern "C" {
-   KCModule *create_pcbsdservices(QWidget  *parent, const char  *name) {
-      return new PCBSDSERVICEMANAGER(parent, name);
-   }
-}
-
-PCBSDSERVICEMANAGER::PCBSDSERVICEMANAGER( QWidget  *parent,  const char *name,  const QStringList &  list ) : PCBSDKCModule( parent, name) 
-{
-}
-
-PCBSDSERVICEMANAGER::~PCBSDSERVICEMANAGER() {
-}
-
-QString  PCBSDSERVICEMANAGER::kcmoduleName() {
-   return  "pcbsdservices";
-}

Modified: pcbsd/trunk/ServiceManager/kcm.h
===================================================================
--- pcbsd/trunk/ServiceManager/kcm.h	2008-07-01 19:41:44 UTC (rev 2228)
+++ pcbsd/trunk/ServiceManager/kcm.h	2008-07-01 19:42:39 UTC (rev 2229)
@@ -1,36 +1,29 @@
 #include <qlayout.h>
 #include <qlabel.h>
 #include <qdialog.h>
-#include <servicemanager.h>
+#include "servicemanager.h"
 #include <kcmodule.h>
 
+class KConfigDialogManager;
 
 
-class  PCBSDKCModule : public KCModule {
+
+class  PCBSDSERVICEMANAGER : public KCModule {
    Q_OBJECT
 
 public:
-   PCBSDKCModule(QWidget * = NULL,  const char * = NULL,  const QStringList & = QStringList());
-   ~PCBSDKCModule();
+   PCBSDSERVICEMANAGER(QWidget *parent=0, const QVariantList &args=QVariantList());
+   ~PCBSDSERVICEMANAGER();
    
+public slots:
    void load();
    void defaults();
    void save();
    bool checkRoot();
+
+private:
+
    QLayout 	*layout;
 };
 
 
-
-
-class PCBSDSERVICEMANAGER: public PCBSDKCModule { 
-   Q_OBJECT
-   
-public:
-   PCBSDSERVICEMANAGER(QWidget * = NULL,  const char * = NULL,  const QStringList & = QStringList() );
-   virtual  ~PCBSDSERVICEMANAGER();
-void   getParent(QWidget * = NULL);
-   
-protected:
-   QString      kcmoduleName();
-};

Added: pcbsd/trunk/ServiceManager/notroot.cpp

Added: pcbsd/trunk/ServiceManager/notroot.h

Modified: pcbsd/trunk/ServiceManager/notroot.ui
===================================================================
--- pcbsd/trunk/ServiceManager/notroot.ui	2008-07-01 19:41:44 UTC (rev 2228)
+++ pcbsd/trunk/ServiceManager/notroot.ui	2008-07-01 19:42:39 UTC (rev 2229)
@@ -1,175 +1,222 @@
-<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
-<class>NotRoot</class>
-<widget class="QDialog">
-    <property name="name">
-        <cstring>NotRoot</cstring>
-    </property>
-    <property name="geometry">
-        <rect>
-            <x>0</x>
-            <y>0</y>
-            <width>552</width>
-            <height>409</height>
-        </rect>
-    </property>
-    <property name="caption">
-        <string>Root Access Required</string>
-    </property>
-    <property name="icon">
-        <pixmap>system.png</pixmap>
-    </property>
-    <grid>
-        <property name="name">
-            <cstring>unnamed</cstring>
-        </property>
-        <spacer row="0" column="0" rowspan="1" colspan="2">
-            <property name="name">
-                <cstring>spacer3_2</cstring>
-            </property>
-            <property name="orientation">
-                <enum>Horizontal</enum>
-            </property>
-            <property name="sizeType">
-                <enum>Expanding</enum>
-            </property>
-            <property name="sizeHint">
-                <size>
-                    <width>151</width>
-                    <height>21</height>
-                </size>
-            </property>
-        </spacer>
-        <widget class="QLabel" row="0" column="2">
-            <property name="name">
-                <cstring>pixmapLabel2</cstring>
-            </property>
-            <property name="sizePolicy">
-                <sizepolicy>
-                    <hsizetype>0</hsizetype>
-                    <vsizetype>5</vsizetype>
-                    <horstretch>0</horstretch>
-                    <verstretch>0</verstretch>
-                </sizepolicy>
-            </property>
-            <property name="pixmap">
-                <pixmap>NewLogoSmall.png</pixmap>
-            </property>
-            <property name="scaledContents">
-                <bool>true</bool>
-            </property>
-        </widget>
-        <spacer row="0" column="3" rowspan="1" colspan="2">
-            <property name="name">
-                <cstring>spacer4_2</cstring>
-            </property>
-            <property name="orientation">
-                <enum>Horizontal</enum>
-            </property>
-            <property name="sizeType">
-                <enum>Expanding</enum>
-            </property>
-            <property name="sizeHint">
-                <size>
-                    <width>161</width>
-                    <height>21</height>
-                </size>
-            </property>
-        </spacer>
-        <spacer row="1" column="2">
-            <property name="name">
-                <cstring>spacer3</cstring>
-            </property>
-            <property name="orientation">
-                <enum>Vertical</enum>
-            </property>
-            <property name="sizeType">
-                <enum>Fixed</enum>
-            </property>
-            <property name="sizeHint">
-                <size>
-                    <width>20</width>
-                    <height>30</height>
-                </size>
-            </property>
-        </spacer>
-        <spacer row="3" column="2">
-            <property name="name">
-                <cstring>spacer4</cstring>
-            </property>
-            <property name="orientation">
-                <enum>Vertical</enum>
-            </property>
-            <property name="sizeType">
-                <enum>Expanding</enum>
-            </property>
-            <property name="sizeHint">
-                <size>
-                    <width>20</width>
-                    <height>170</height>
-                </size>
-            </property>
-        </spacer>
-        <spacer row="2" column="4">
-            <property name="name">
-                <cstring>spacer6</cstring>
-            </property>
-            <property name="orientation">
-                <enum>Horizontal</enum>
-            </property>
-            <property name="sizeType">
-                <enum>Fixed</enum>
-            </property>
-            <property name="sizeHint">
-                <size>
-                    <width>71</width>
-                    <height>21</height>
-                </size>
-            </property>
-        </spacer>
-        <widget class="QLabel" row="2" column="1" rowspan="1" colspan="3">
-            <property name="name">
-                <cstring>textLabel1</cstring>
-            </property>
-            <property name="sizePolicy">
-                <sizepolicy>
-                    <hsizetype>7</hsizetype>
-                    <vsizetype>3</vsizetype>
-                    <horstretch>0</horstretch>
-                    <verstretch>0</verstretch>
-                </sizepolicy>
-            </property>
-            <property name="frameShape">
-                <enum>NoFrame</enum>
-            </property>
-            <property name="frameShadow">
-                <enum>Plain</enum>
-            </property>
-            <property name="text">
-                <string>This program must be run as root. Click the "Administrator Mode" button below or restart the program as root.</string>
-            </property>
-            <property name="alignment">
-                <set>WordBreak|AlignVCenter</set>
-            </property>
-        </widget>
-        <spacer row="2" column="0">
-            <property name="name">
-                <cstring>spacer5</cstring>
-            </property>
-            <property name="orientation">
-                <enum>Horizontal</enum>
-            </property>
-            <property name="sizeType">
-                <enum>Fixed</enum>
-            </property>
-            <property name="sizeHint">
-                <size>
-                    <width>61</width>
-                    <height>21</height>
-                </size>
-            </property>
-        </spacer>
-    </grid>
-</widget>
-<pixmapinproject/>
-<layoutdefaults spacing="6" margin="11"/>
-</UI>
+<ui version="4.0" >
+ <class>NotRoot</class>
+ <widget class="QDialog" name="NotRoot" >
+  <property name="geometry" >
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>552</width>
+    <height>409</height>
+   </rect>
+  </property>
+  <property name="windowTitle" >
+   <string>Root Access Required</string>
+  </property>
+  <layout class="QGridLayout" name="gridLayout" >
+   <item row="0" column="0" >
+    <layout class="QHBoxLayout" name="horizontalLayout" >
+     <item>
+      <spacer name="spacer3_2" >
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeType" >
+        <enum>QSizePolicy::Expanding</enum>
+       </property>
+       <property name="sizeHint" stdset="0" >
+        <size>
+         <width>151</width>
+         <height>21</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+     <item>
+      <widget class="QLabel" name="pixmapLabel2" >
+       <property name="sizePolicy" >
+        <sizepolicy vsizetype="Preferred" hsizetype="Fixed" >
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="pixmap" >
+        <pixmap resource="servicemanager.qrc" >:/NewLogoSmall.png</pixmap>
+       </property>
+       <property name="scaledContents" >
+        <bool>true</bool>
+       </property>
+       <property name="wordWrap" >
+        <bool>false</bool>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <spacer name="spacer4_2" >
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeType" >
+        <enum>QSizePolicy::Expanding</enum>
+       </property>
+       <property name="sizeHint" stdset="0" >
+        <size>
+         <width>161</width>
+         <height>21</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+    </layout>
+   </item>
+   <item row="1" column="0" >
+    <spacer name="spacer3" >
+     <property name="orientation" >
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeType" >
+      <enum>QSizePolicy::Fixed</enum>
+     </property>
+     <property name="sizeHint" stdset="0" >
+      <size>
+       <width>20</width>
+       <height>30</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="2" column="0" >
+    <layout class="QHBoxLayout" name="horizontalLayout_2" >
+     <item>
+      <spacer name="spacer5" >
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeType" >
+        <enum>QSizePolicy::Fixed</enum>
+       </property>
+       <property name="sizeHint" stdset="0" >
+        <size>
+         <width>61</width>
+         <height>21</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+     <item>
+      <widget class="QLabel" name="textLabel1" >
+       <property name="sizePolicy" >
+        <sizepolicy vsizetype="MinimumExpanding" hsizetype="Expanding" >
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="frameShape" >
+        <enum>QFrame::NoFrame</enum>
+       </property>
+       <property name="frameShadow" >
+        <enum>QFrame::Plain</enum>
+       </property>
+       <property name="text" >
+        <string>This program must be run as root. Click the "Administrator Mode" button below or restart the program as root.</string>
+       </property>
+       <property name="alignment" >
+        <set>Qt::AlignVCenter</set>
+       </property>
+       <property name="wordWrap" >
+        <bool>true</bool>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <spacer name="spacer6" >
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeType" >
+        <enum>QSizePolicy::Fixed</enum>
+       </property>
+       <property name="sizeHint" stdset="0" >
+        <size>
+         <width>61</width>
+         <height>21</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+    </layout>
+   </item>
+   <item row="3" column="0" >
+    <spacer name="verticalSpacer" >
+     <property name="orientation" >
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeHint" stdset="0" >
+      <size>
+       <width>20</width>
+       <height>51</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="4" column="0" >
+    <layout class="QHBoxLayout" name="horizontalLayout_3" >
+     <item>
+      <spacer name="horizontalSpacer" >
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeHint" stdset="0" >
+        <size>
+         <width>40</width>
+         <height>20</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+     <item>
+      <widget class="QPushButton" name="pushAdmin" >
+       <property name="text" >
+        <string>Run in Administrator Mode</string>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <spacer name="horizontalSpacer_2" >
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeHint" stdset="0" >
+        <size>
+         <width>40</width>
+         <height>20</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+    </layout>
+   </item>
+   <item row="5" column="0" >
+    <spacer name="spacer4" >
+     <property name="orientation" >
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeType" >
+      <enum>QSizePolicy::Expanding</enum>
+     </property>
+     <property name="sizeHint" stdset="0" >
+      <size>
+       <width>20</width>
+       <height>170</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+  </layout>
+ </widget>
+ <layoutdefault spacing="6" margin="11" />
+ <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
+ <resources>
+  <include location="PBM.qrc" />
+ </resources>
+ <connections/>
+</ui>

Added: pcbsd/trunk/ServiceManager/servicemanager.cpp

Added: pcbsd/trunk/ServiceManager/servicemanager.h

Modified: pcbsd/trunk/ServiceManager/servicemanager.pro
===================================================================
--- pcbsd/trunk/ServiceManager/servicemanager.pro	2008-07-01 19:41:44 UTC (rev 2228)
+++ pcbsd/trunk/ServiceManager/servicemanager.pro	2008-07-01 19:42:39 UTC (rev 2229)
@@ -2,26 +2,25 @@
 LANGUAGE	= C++
 
 CONFIG	+= qt warn_on release
+
+INCLUDEPATH += /usr/local/kde4/include
+
+LIBS += -L/usr/local/kde4/lib -lkdecore -lkio -lkdeui -Ikdelibs
+
+
 TARGET  = kcm_pcbsdservices
-DESTDIR = /usr/local/lib/kde3/
 
+DESTDIR = /usr/local/kde4/lib/kde4/
 
-HEADERS	+= kcm.h
 
-SOURCES	+= kcm.cpp
+HEADERS	+= kcm.h notroot.h servicemanager.h
 
+SOURCES	+= kcm.cpp notroot.cpp servicemanager.cpp
+
 FORMS	= servicemanager.ui \
 	notroot.ui
 
-IMAGES	= player_play.png \
-	player_stop.png \
-	reload.png
+RESOURCES += servicemanager.qrc
 
-unix {
-  UI_DIR = .ui
-  MOC_DIR = .moc
-  OBJECTS_DIR = .obj
-}
+QT += qt3support
 
-
-

Added: pcbsd/trunk/ServiceManager/servicemanager.qrc

Modified: pcbsd/trunk/ServiceManager/servicemanager.ui
===================================================================
--- pcbsd/trunk/ServiceManager/servicemanager.ui	2008-07-01 19:41:44 UTC (rev 2228)
+++ pcbsd/trunk/ServiceManager/servicemanager.ui	2008-07-01 19:42:39 UTC (rev 2229)
@@ -1,279 +1,224 @@
-<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
-<class>ServiceManager</class>
-<widget class="QMainWindow">
-    <property name="name">
-        <cstring>ServiceManager</cstring>
+<ui version="4.0" stdsetdef="1" >
+  <author></author>
+  <comment></comment>
+  <exportmacro></exportmacro>
+  <class>ServiceManager</class>
+  <widget class="QDialog" name="ServiceManager" >
+    <property name="geometry" >
+      <rect>
+        <x>0</x>
+        <y>0</y>
+        <width>624</width>
+        <height>520</height>
+      </rect>
     </property>
-    <property name="geometry">
-        <rect>
-            <x>0</x>
-            <y>0</y>
-            <width>624</width>
-            <height>520</height>
-        </rect>
+    <property name="windowTitle" >
+      <string>Service Manager</string>
     </property>
-    <property name="caption">
-        <string>Service Manager</string>
-    </property>
-    <grid>
-        <property name="name">
-            <cstring>unnamed</cstring>
-        </property>
-        <widget class="QLabel" row="0" column="0" rowspan="1" colspan="5">
-            <property name="name">
-                <cstring>textTopLabel</cstring>
-            </property>
-            <property name="frameShape">
-                <enum>NoFrame</enum>
-            </property>
-            <property name="frameShadow">
-                <enum>Plain</enum>
-            </property>
-            <property name="text">
-                <string>The following services are setup on this system. You may enable / disable them below.</string>
-            </property>
+    <layout class="QGridLayout" >
+      <item rowspan="1" row="0" column="0" colspan="5" >
+        <widget class="QLabel" name="textTopLabel" >
+          <property name="frameShape" >
+            <enum>QFrame::NoFrame</enum>
+          </property>
+          <property name="frameShadow" >
+            <enum>QFrame::Plain</enum>
+          </property>
+          <property name="text" >
+            <string>The following services are setup on this system. You may enable / disable them below.</string>
+          </property>
+          <property name="wordWrap" >
+            <bool>false</bool>
+          </property>
         </widget>
-        <widget class="QFrame" row="1" column="0" rowspan="1" colspan="5">
-            <property name="name">
-                <cstring>frame3</cstring>
-            </property>
-            <property name="sizePolicy">
-                <sizepolicy>
-                    <hsizetype>7</hsizetype>
-                    <vsizetype>7</vsizetype>
-                    <horstretch>0</horstretch>
-                    <verstretch>0</verstretch>
-                </sizepolicy>
-            </property>
-            <property name="frameShape">
-                <enum>StyledPanel</enum>
-            </property>
-            <property name="frameShadow">
-                <enum>Raised</enum>
-            </property>
-            <grid>
-                <property name="name">
-                    <cstring>unnamed</cstring>
+      </item>
+      <item rowspan="1" row="1" column="0" colspan="5" >
+        <widget class="Q3Frame" name="frame3" >
+          <property name="sizePolicy" >
+            <sizepolicy>
+              <hsizetype>7</hsizetype>
+              <vsizetype>7</vsizetype>
+              <horstretch>0</horstretch>
+              <verstretch>0</verstretch>
+            </sizepolicy>
+          </property>
+          <property name="frameShape" >
+            <enum>StyledPanel</enum>
+          </property>
+          <property name="frameShadow" >
+            <enum>Raised</enum>
+          </property>
+          <layout class="QGridLayout" >
+            <item row="0" column="0" >
+              <widget class="Q3ListView" name="listServices" >
+                <property name="midLineWidth" >
+                  <number>3</number>
                 </property>
-                <widget class="QListView" row="0" column="0">
-                    <column>
-                        <property name="text">
-                            <string>Service Name</string>
-                        </property>
-                        <property name="clickable">
-                            <bool>true</bool>
-                        </property>
-                        <property name="resizable">
-                            <bool>true</bool>
-                        </property>
-                    </column>
-                    <column>
-                        <property name="text">
-                            <string>Status</string>
-                        </property>
-                        <property name="clickable">
-                            <bool>true</bool>
-                        </property>
-                        <property name="resizable">
-                            <bool>true</bool>
-                        </property>
-                    </column>
-                    <column>
-                        <property name="text">
-                            <string>Enabled at Startup</string>
-                        </property>
-                        <property name="clickable">
-                            <bool>true</bool>
-                        </property>
-                        <property name="resizable">
-                            <bool>true</bool>
-                        </property>
-                    </column>
-                    <column>
-                        <property name="text">
-                            <string>Description</string>
-                        </property>
-                        <property name="clickable">
-                            <bool>true</bool>
-                        </property>
-                        <property name="resizable">
-                            <bool>true</bool>
-                        </property>
-                    </column>
-                    <property name="name">
-                        <cstring>listServices</cstring>
-                    </property>
-                    <property name="midLineWidth">
-                        <number>3</number>
-                    </property>
-                    <property name="allColumnsShowFocus">
-                        <bool>true</bool>
-                    </property>
-                </widget>
-            </grid>
+                <property name="allColumnsShowFocus" >
+                  <bool>true</bool>
+                </property>
+                <column>
+                  <property name="text" >
+                    <string>Service Name</string>
+                  </property>
+                  <property name="clickable" >
+                    <bool>true</bool>
+                  </property>
+                  <property name="resizable" >
+                    <bool>true</bool>
+                  </property>
+                </column>
+                <column>
+                  <property name="text" >
+                    <string>Status</string>
+                  </property>
+                  <property name="clickable" >
+                    <bool>true</bool>
+                  </property>
+                  <property name="resizable" >
+                    <bool>true</bool>
+                  </property>
+                </column>
+                <column>
+                  <property name="text" >
+                    <string>Enabled at Startup</string>
+                  </property>
+                  <property name="clickable" >
+                    <bool>true</bool>
+                  </property>
+                  <property name="resizable" >
+                    <bool>true</bool>
+                  </property>
+                </column>
+                <column>
+                  <property name="text" >
+                    <string>Description</string>
+                  </property>
+                  <property name="clickable" >
+                    <bool>true</bool>
+                  </property>
+                  <property name="resizable" >
+                    <bool>true</bool>
+                  </property>
+                </column>
+              </widget>
+            </item>
+          </layout>
         </widget>
-        <widget class="QPushButton" row="2" column="0">
-            <property name="name">
-                <cstring>pushStart</cstring>
-            </property>
-            <property name="sizePolicy">
-                <sizepolicy>
-                    <hsizetype>1</hsizetype>
-                    <vsizetype>0</vsizetype>
-                    <horstretch>0</horstretch>
-                    <verstretch>31</verstretch>
-                </sizepolicy>
-            </property>
-            <property name="minimumSize">
-                <size>
-                    <width>0</width>
-                    <height>31</height>
-                </size>
-            </property>
-            <property name="text">
-                <string>Start</string>
-            </property>
+      </item>
+      <item row="2" column="0" >
+        <widget class="QPushButton" name="pushStart" >
+          <property name="sizePolicy" >
+            <sizepolicy>
+              <hsizetype>1</hsizetype>
+              <vsizetype>0</vsizetype>
+              <horstretch>0</horstretch>
+              <verstretch>31</verstretch>
+            </sizepolicy>
+          </property>
+          <property name="minimumSize" >
+            <size>
+              <width>0</width>
+              <height>31</height>
+            </size>
+          </property>
+          <property name="text" >
+            <string>Start</string>
+          </property>
         </widget>
-        <widget class="QPushButton" row="2" column="1">
-            <property name="name">
-                <cstring>pushStop</cstring>
-            </property>
-            <property name="sizePolicy">
-                <sizepolicy>
-                    <hsizetype>1</hsizetype>
-                    <vsizetype>0</vsizetype>
-                    <horstretch>0</horstretch>
-                    <verstretch>31</verstretch>
-                </sizepolicy>
-            </property>
-            <property name="minimumSize">
-                <size>
-                    <width>0</width>
-                    <height>31</height>
-                </size>
-            </property>
-            <property name="text">
-                <string>Stop</string>
-            </property>
+      </item>
+      <item row="2" column="1" >
+        <widget class="QPushButton" name="pushStop" >
+          <property name="sizePolicy" >
+            <sizepolicy>
+              <hsizetype>1</hsizetype>
+              <vsizetype>0</vsizetype>
+              <horstretch>0</horstretch>
+              <verstretch>31</verstretch>
+            </sizepolicy>
+          </property>
+          <property name="minimumSize" >
+            <size>
+              <width>0</width>
+              <height>31</height>
+            </size>
+          </property>
+          <property name="text" >
+            <string>Stop</string>
+          </property>
         </widget>
-        <widget class="QPushButton" row="2" column="2">
-            <property name="name">
-                <cstring>pushRestart</cstring>
-            </property>
-            <property name="sizePolicy">
-                <sizepolicy>
-                    <hsizetype>1</hsizetype>
-                    <vsizetype>0</vsizetype>
-                    <horstretch>0</horstretch>
-                    <verstretch>31</verstretch>
-                </sizepolicy>
-            </property>
-            <property name="minimumSize">
-                <size>
-                    <width>0</width>
-                    <height>31</height>
-                </size>
-            </property>
-            <property name="text">
-                <string>Restart</string>
-            </property>
+      </item>
+      <item row="2" column="2" >
+        <widget class="QPushButton" name="pushRestart" >
+          <property name="sizePolicy" >
+            <sizepolicy>
+              <hsizetype>1</hsizetype>
+              <vsizetype>0</vsizetype>
+              <horstretch>0</horstretch>
+              <verstretch>31</verstretch>
+            </sizepolicy>
+          </property>
+          <property name="minimumSize" >
+            <size>
+              <width>0</width>
+              <height>31</height>
+            </size>
+          </property>
+          <property name="text" >
+            <string>Restart</string>
+          </property>
         </widget>
-        <widget class="QPushButton" row="2" column="3">
-            <property name="name">
-                <cstring>pushEnableStartup</cstring>
-            </property>
-            <property name="sizePolicy">
-                <sizepolicy>
-                    <hsizetype>1</hsizetype>
-                    <vsizetype>0</vsizetype>
-                    <horstretch>0</horstretch>
-                    <verstretch>31</verstretch>
-                </sizepolicy>
-            </property>
-            <property name="minimumSize">
-                <size>
-                    <width>0</width>
-                    <height>31</height>
-                </size>
-            </property>
-            <property name="text">
-                <string>Enable Startup</string>
-            </property>
+      </item>
+      <item row="2" column="3" >
+        <widget class="QPushButton" name="pushEnableStartup" >
+          <property name="sizePolicy" >
+            <sizepolicy>
+              <hsizetype>1</hsizetype>
+              <vsizetype>0</vsizetype>
+              <horstretch>0</horstretch>
+              <verstretch>31</verstretch>
+            </sizepolicy>
+          </property>
+          <property name="minimumSize" >
+            <size>
+              <width>0</width>
+              <height>31</height>
+            </size>
+          </property>
+          <property name="text" >
+            <string>Enable Startup</string>
+          </property>
         </widget>
-        <widget class="QPushButton" row="2" column="4">
-            <property name="name">
-                <cstring>pushDisableStartup</cstring>
-            </property>
-            <property name="sizePolicy">
-                <sizepolicy>
-                    <hsizetype>1</hsizetype>
-                    <vsizetype>0</vsizetype>
-                    <horstretch>0</horstretch>
-                    <verstretch>31</verstretch>
-                </sizepolicy>
-            </property>
-            <property name="minimumSize">
-                <size>
-                    <width>0</width>
-                    <height>31</height>
-                </size>
-            </property>
-            <property name="text">
-                <string>Disable Startup</string>
-            </property>
+      </item>
+      <item row="2" column="4" >
+        <widget class="QPushButton" name="pushDisableStartup" >
+          <property name="sizePolicy" >
+            <sizepolicy>
+              <hsizetype>1</hsizetype>
+              <vsizetype>0</vsizetype>
+              <horstretch>0</horstretch>
+              <verstretch>31</verstretch>
+            </sizepolicy>
+          </property>
+          <property name="minimumSize" >
+            <size>
+              <width>0</width>
+              <height>31</height>
+            </size>
+          </property>
+          <property name="text" >
+            <string>Disable Startup</string>
+          </property>
         </widget>
-    </grid>
-</widget>
-<toolbars>
-</toolbars>
-<includes>
-    <include location="local" impldecl="in declaration">qdir.h</include>
-    <include location="local" impldecl="in declaration">qfile.h</include>
-    <include location="local" impldecl="in declaration">qprocess.h</include>
-    <include location="local" impldecl="in declaration">qmessagebox.h</include>
-    <include location="local" impldecl="in implementation">servicemanager.ui.h</include>
-</includes>
-<variables>
-    <variable access="private">QString ServiceDir[500];</variable>
-    <variable access="private">QString ServiceName[500];</variable>
-    <variable access="private">QString ServiceDescr[500];</variable>
-    <variable access="private">int workingItem;</variable>
-    <variable access="private">int workingEnabled;</variable>
-    <variable access="private">int workingRunning;</variable>
-    <variable access="private">QProcess *ServiceStart;</variable>
-    <variable access="private">QProcess *ServiceStop;</variable>
-    <variable access="private">QProcess *ServiceEnable;</variable>
-    <variable access="private">QProcess *ServiceDisable;</variable>
-    <variable access="private">QProcess *ServiceRestart;</variable>
-    <variable access="private">QProcess *CheckServiceRunning;</variable>
-    <variable access="private">QProcess *CheckServiceEnabled;</variable>
-    <variable access="private">int disableStop[500];</variable>
-    <variable access="private">int disableStart[500];</variable>
-    <variable access="private">int disableRestart[500];</variable>
-    <variable access="private">int disableStartup[500];</variable>
-</variables>
-<slots>
-    <slot>ProgramInit()</slot>
-    <slot access="private">startSlot()</slot>
-    <slot access="private">stopSlot()</slot>
-    <slot access="private">restartSlot()</slot>
-    <slot access="private">enableSlot()</slot>
-    <slot access="private">disableSlot()</slot>
-    <slot access="private">checkRunningFinishedSlot()</slot>
-    <slot access="private">checkEnabledFinishedSlot()</slot>
-    <slot access="private">listSelectionChanged()</slot>
-    <slot access="private">checkServiceStartedSlot()</slot>
-    <slot access="private">checkServiceStoppedSlot()</slot>
-    <slot access="private">checkServiceRestartedSlot()</slot>
-    <slot access="private">checkServiceEnabledSlot()</slot>
-    <slot access="private">checkServiceDisabledSlot()</slot>
-</slots>
-<functions>
-    <function access="private">populateList()</function>
-    <function access="private">checkRunning()</function>
-    <function access="private">checkEnabled()</function>
-    <function access="private">disableButtons()</function>
-</functions>
-<pixmapinproject/>
-<layoutdefaults spacing="6" margin="11"/>
-</UI>
+      </item>
+    </layout>
+  </widget>
+  <layoutdefault spacing="6" margin="11" />
+  <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
+  <includes>
+    <include location="local" >qdir.h</include>
+    <include location="local" >qfile.h</include>
+    <include location="local" >q3process.h</include>
+    <include location="local" >qmessagebox.h</include>
+  </includes>
+</ui>

Deleted: pcbsd/trunk/ServiceManager/servicemanager.ui.h



More information about the Commits mailing list