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

List:       kde-commits
Subject:    KDE/kdeutils/okteta/kasten/controllers
From:       Friedrich W. H. Kossebau <kossebau () kde ! org>
Date:       2009-10-01 0:23:26
Message-ID: 1254356606.394969.23866.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1029894 by kossebau:

added: templates for writing new checksum/hashsum algorithms

 M  +19 -0     CMakeLists.txt  
 M  +16 -2     view/bookmarks/bookmarksview.cpp  
 A             view/libbytearraychecksum/README.developers  
 A             view/libbytearraychecksum/algorithm/template (directory)  
 A             view/libbytearraychecksum/algorithm/template/template_bytearraychecksumalgorithm.cpp \
[License: Public Domain]  A             \
view/libbytearraychecksum/algorithm/template/template_bytearraychecksumalgorithm.h   \
[License: Public Domain]  A             \
view/libbytearraychecksum/algorithm/template/template_bytearraychecksumparameterset.cpp \
[License: Public Domain]  A             \
view/libbytearraychecksum/algorithm/template/template_bytearraychecksumparameterset.h \
[License: Public Domain]  A             \
view/libbytearraychecksum/algorithm/template/template_bytearraychecksumparametersetedit.cpp \
[License: Public Domain]  A             \
view/libbytearraychecksum/algorithm/template/template_bytearraychecksumparametersetedit.h \
[License: Public Domain]


--- trunk/KDE/kdeutils/okteta/kasten/controllers/CMakeLists.txt #1029893:1029894
@@ -79,10 +79,22 @@
   view/libbytearraychecksum/algorithm/modsum16bytearraychecksumalgorithm.cpp
   view/libbytearraychecksum/algorithm/modsum32bytearraychecksumalgorithm.cpp
   view/libbytearraychecksum/algorithm/modsum64bytearraychecksumalgorithm.cpp
+## NEWCHECKSUM(start)
+## Here add the names of your source files of your checksum algorithm,
+## e.g.
+##   view/libbytearraychecksum/algorithm/mybytearraychecksumalgorithm.cpp
+## NEWCHECKSUM(end)
   view/libbytearraychecksum/algorithm/nobytearraychecksumparameterset.cpp
   view/libbytearraychecksum/algorithm/nobytearraychecksumparametersetedit.cpp
   view/libbytearraychecksum/algorithm/modsumbytearraychecksumparameterset.cpp
   view/libbytearraychecksum/algorithm/modsumbytearraychecksumparametersetedit.cpp
+## NEWCHECKSUMPARAMETERSET(start)
+## Here add the names of your source files of your checksum parameter set and
+## of the widget to edit the checksum parameter set,
+## e.g.
+##   view/libbytearraychecksum/algorithm/mybytearraychecksumparameterset.cpp
+##   view/libbytearraychecksum/algorithm/mybytearraychecksumparametersetedit.cpp
+## NEWCHECKSUMPARAMETERSET(end)
   ${QCA2CHECKSUM_SRCS}
 )
 set( CHECKSUMCONTROLLER_SRCS
@@ -310,15 +322,22 @@
 if( KASTEN_BUILD_INTERNAL_TEMPLATES )
 include_directories(
   view/libbytearrayfilter/filter
+  view/libbytearraychecksum/algorithm
 )
 set( libfilter_templates_SRCS
   view/libbytearrayfilter/filter/template/template_bytearrayfilter.cpp
   view/libbytearrayfilter/filter/template/template_bytearrayfilterparameterset.cpp
   view/libbytearrayfilter/filter/template/template_bytearrayfilterparametersetedit.cpp
  )
+set( libchecksum_templates_SRCS
+  view/libbytearraychecksum/algorithm/template/template_bytearraychecksumalgorithm.cpp
 +  view/libbytearraychecksum/algorithm/template/template_bytearraychecksumparameterset.cpp
 +  view/libbytearraychecksum/algorithm/template/template_bytearraychecksumparametersetedit.cpp
 +)
 
 set( okteta_kastencontrollers_templates_SRCS
   ${libfilter_templates_SRCS}
+  ${libchecksum_templates_SRCS}
 )
 
 kde4_add_library( oktetakastencontrollertemplates  STATIC \
                ${okteta_kastencontrollers_templates_SRCS} )
--- trunk/KDE/kdeutils/okteta/kasten/controllers/view/bookmarks/bookmarksview.cpp \
#1029893:1029894 @@ -31,6 +31,8 @@
 #include <KPushButton>
 #include <KLocale>
 #include <KGuiItem>
+#include <KToolBar>
+#include <KActionCollection>
 // Qt
 #include <QtGui/QLayout>
 #include <QtGui/QTreeView>
@@ -41,15 +43,24 @@
 {
 
 BookmarksView::BookmarksView( BookmarksTool* tool, QWidget* parent )
- : QWidget( parent ), mTool( tool )
+  : QWidget( parent ),
+    mTool( tool )
 {
     mBookmarkListModel = new BookmarkListModel( mTool, this );
     connect( mBookmarkListModel, SIGNAL(modelReset()),
              SLOT(onBookmarkSelectionChanged()) );
 
-    QVBoxLayout *baseLayout = new QVBoxLayout( this );
+    QVBoxLayout* baseLayout = new QVBoxLayout( this );
     baseLayout->setMargin( 0 );
 
+    // tool bar
+    KToolBar* toolbar = new KToolBar( this );
+    toolbar->setMovable( false );
+    toolbar->setToolButtonStyle( Qt::ToolButtonIconOnly );
+    toolbar->setIconDimensions( 16 );
+    toolbar->setContextMenuPolicy( Qt::NoContextMenu );
+    baseLayout->addWidget( toolbar );
+
     mBookmarkListView = new QTreeView( this );
     mBookmarkListView->setObjectName( "BookmarkListView" );
     mBookmarkListView->setRootIsDecorated( false );
@@ -68,6 +79,9 @@
     baseLayout->addWidget( mBookmarkListView, 10 );
 
     // actions
+    KActionCollection* actionCollection = new KActionCollection( this );
+
+
     QHBoxLayout* actionsLayout = new QHBoxLayout();
 
     const KGuiItem createBookmarkGuiItem( QString()/*i18n("C&opy")*/, \
"bookmark-new",


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

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