OSSP CVS Repository

ossp - Check-in [2815]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2815
Date: 2002-Nov-13 13:33:33 (local)
2002-Nov-13 12:33:33 (UTC)
User:ms
Branch:
Comment: New generic class for implementation, widget, and feature prototyping.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/Makefile.in      added-> 1.6
ossp-pkg/as/as-gui/as_generic.cpp      added-> 1.1
ossp-pkg/as/as-gui/as_generic.h      added-> 1.1
ossp-pkg/titraq/Makefile.in      1.5 -> 1.6     2 inserted, 2 deleted
ossp-pkg/titraq/generic.cpp      added-> 1.1
ossp-pkg/titraq/generic.h      added-> 1.1

ossp-pkg/as/as-gui/Makefile.in -> 1.6

*** /dev/null    Sat Nov 23 01:39:46 2024
--- -    Sat Nov 23 01:39:48 2024
***************
*** 0 ****
--- 1,155 ----
+ ##
+ ##  OSSP titraq - Graphical user interface for time accounting
+ ##  Copyright (c) 2002 Cable & Wireless Deutschland GmbH
+ ##  Copyright (c) 2002 The OSSP Project <http://www.ossp.org/>
+ ##  Copyright (c) 2002 Ralf S. Engelschall
+ ##
+ ##  This file is part of OSSP GUI, a graphical user interface
+ ##  for OSSP which can be found at http://www.ossp.org/
+ ##
+ ##  Permission to use, copy, modify, and distribute this software for
+ ##  any purpose with or without fee is hereby granted, provided that
+ ##  the above copyright notice and this permission notice appear in all
+ ##  copies.
+ ##
+ ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ##  SUCH DAMAGE.
+ ##
+ ##  Makefile.in: Makefile for use with configure
+ ##
+ 
+ @SET_MAKE@
+ 
+ DESTDIR         =
+ prefix          = @prefix@
+ exec_prefix     = @exec_prefix@
+ bindir          = @bindir@
+ sbindir         = @sbindir@
+ libdir          = @libdir@
+ includedir      = @includedir@
+ mandir          = @mandir@
+ 
+ CC              = @CC@
+ CXX             = @CXX@
+ CFLAGS          = @CFLAGS@ @DEFS@
+ CXXFLAGS        = @CXXFLAGS@ @DEFS@
+ CPPFLAGS        = @CPPFLAGS@
+ CXXCPP          = @CXXCPP@
+ LDFLAGS         = @LDFLAGS@
+ LIBS            = @LIBS@
+ 
+ # Qt-specific variables
+ QTBASE          = @QTBASE@
+ UIC             = @UIC@
+ MOC             = @MOC@
+ 
+ RM              = rm -f
+ STRIP           = strip
+ CHMOD           = chmod
+ RMDIR           = rmdir
+ SHTOOL          = ./shtool
+ POD2MAN         = pod2man
+ TRUE            = true
+ 
+ PROG_NAME       = titraq
+ TARGET_PROGS    = titraq
+ TARGET_MANS     = titraq.1 titraq.conf.5
+ 
+ SRCS            = main.cpp titraq.cpp generic.cpp titraq_version.c
+ 
+ OBJS            = main.o titraq.o generic.o titraq_version.o
+ 
+ GRAFX           = gfx/ossplogo.xpm
+ 
+ # Qt meta object compiler
+ MOC_IN          = titraq.h
+ MOC_OUT         = moc_titraq.cpp
+ MOC_OBJ         = moc_titraq.o
+ 
+ .SUFFIXES:
+ .SUFFIXES: .c .cc .cpp .cxx .o
+ .c.o:
+        $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $<
+ 
+ .cc.o:
+        $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $<
+ 
+ .cpp.o:
+        $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $<
+ 
+ .cxx.o:
+        $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $<
+ 
+ all: Makefile $(TARGET_PROGS) $(TARGET_MANS)
+ 
+ #$(PROG_NAME): Makefile $(OBJS) $(MOC_OBJ) $(GRAFX)
+ #      $(CXX) $(LDFLAGS) -o $@ $(OBJS) $(MOC_OBJ) $(LIBS)
+ 
+ $(PROG_NAME): $(OBJS) $(MOC_OBJ)
+        $(CXX) $(LDFLAGS) -o $@ $+ $(LIBS)
+ 
+ $(MOC_OBJ): $(MOC_OUT) $(MOC_IN)
+        $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $(MOC_OUT)
+ 
+ $(MOC_OUT): $(MOC) $(MOC_IN)
+        $(MOC) $(MOC_IN) -o $(MOC_OUT)
+ 
+ titraq.1: titraq.pod
+        VS=`$(SHTOOL) version -lc -dshort titraq_version.c`; \
+        VL=`$(SHTOOL) version -lc -dlong titraq_version.c`; \
+        $(POD2MAN) --section=5 --center="Graphical user interface" \
+                --release="$$VS" --date="$$VL" \
+                titraq.pod >titraq.1
+ 
+ titraq.conf.5: titraq.conf.pod
+        VS=`$(SHTOOL) version -lc -dshort titraq_version.c`; \
+        VL=`$(SHTOOL) version -lc -dlong titraq_version.c`; \
+        $(POD2MAN) --section=5 --center="Graphical user interface config file" \
+                --release="$$VS" --date="$$VL" \
+                titraq.conf.pod >titraq.conf.5
+ 
+ install:
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(prefix)
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir)
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man5
+        $(SHTOOL) install -c -m 644 titraq $(DESTDIR)$(bindir)/titraq
+        $(SHTOOL) install -c -m 644 titraq.1 $(DESTDIR)$(mandir)/man1/titraq.1
+        $(SHTOOL) install -c -m 644 titraq.conf.5 $(DESTDIR)$(mandir)/man5/titraq.conf.5
+ 
+ uninstall:
+        $(RM) $(DESTDIR)$(bindir)/titraq
+        $(RM) $(DESTDIR)$(mandir)/man1/titraq.1
+        $(RM) $(DESTDIR)$(mandir)/man5/titraq.conf.5
+ 
+ clean:
+        $(RM) $(TARGET_PROGS) $(OBJS) $(MOC_OBJ)
+        $(RM) titraq.conf.5 titraq.1
+        $(RM) titraq_pcre.tab *.core
+ 
+ distclean: clean
+        $(RM) config.log config.status config.cache # Generated by ./configure
+        $(RM) Makefile ac_config.h                  # Generated by ./configure
+        $(RM) $(MOC_OUT)                         # Generated by $(MOC)
+ 
+ realclean: distclean
+        $(RM) configure ac_config.h.in*             # Generated by Autoconf
+        $(RM) configure.lineno                      # Generated by Autoconf
+        $(RM) shtool                                # Generated by Devtool
+ 
+ check: test
+ test: titraq
+        $(CHMOD) 755 titraq_test.sh > /dev/null 2>&1
+        ./titraq_test.sh
+ 
+ .PHONY: install uninstall clean distclean realclean check test


ossp-pkg/as/as-gui/as_generic.cpp -> 1.1

*** /dev/null    Sat Nov 23 01:39:46 2024
--- -    Sat Nov 23 01:39:48 2024
***************
*** 0 ****
--- 1,38 ----
+ #include <qobject.h>
+ #include "generic.h"
+ 
+ // Construct a Prototype object
+ Prototype::Prototype()
+ {
+     // For display of a prototype implementation
+     m_pProtomsg = new QMessageBox("OSSP titraq",
+         QObject::trUtf8("This method is not implemented yet."),
+         QMessageBox::NoIcon, QMessageBox::Ok | QMessageBox::Default,
+         QMessageBox::Cancel | QMessageBox::Escape, QMessageBox::NoButton,
+         NULL, "Prototypemsg", true, Qt::WStyle_NormalBorder);
+ }
+ 
+ // Destroy a Prototype object
+ Prototype::~Prototype()
+ {
+     // Destroy our QMessageBox
+     delete m_pProtomsg;
+ }
+ 
+ // Display a message box, acting as an implementation prototype
+ void Prototype::doMbox()
+ {
+     int nRet; // Return value
+ 
+     // Launch our QMessageBox
+     nRet = m_pProtomsg->exec();
+ 
+     // Handle message box modality
+     switch (nRet) {
+     case QMessageBox::Ok:
+         break;
+     case QMessageBox::Cancel:
+     default: // Just for sanity
+         break;
+     }
+ }


ossp-pkg/as/as-gui/as_generic.h -> 1.1

*** /dev/null    Sat Nov 23 01:39:46 2024
--- -    Sat Nov 23 01:39:48 2024
***************
*** 0 ****
--- 1,21 ----
+ #ifndef GENERIC_H
+ #define GENERIC_H
+ 
+ #include <qmessagebox.h>
+ 
+ 
+ // Prototype stubs for unimplemented methods, widgets, and features
+ class Prototype
+ {
+ public:
+     Prototype();
+     void doMbox();
+     ~Prototype();
+ 
+ protected:
+ 
+ private:
+     QMessageBox *m_pProtomsg;   // Display prototype implementation
+ };
+ 
+ #endif // GENERIC_H




CVSTrac 2.0.1