Browse Source

Added XNATWidgets library stub.

Sascha Zelzer 12 years ago
parent
commit
5a75b0804b

+ 3 - 0
CMakeLists.txt

@@ -490,6 +490,9 @@ ctk_lib_option(CommandLineModules/Backend/FunctionPointer
 ctk_lib_option(XNAT/Core
                "Build the XNAT Core library" OFF)
 
+ctk_lib_option(XNAT/Widgets
+               "Build the XNAT Widgets library" OFF)
+
 #ctk_lib_option(Visualization/XIP
 #               "Build the XIP library" OFF)
 

+ 46 - 0
Libs/XNAT/Widgets/CMakeLists.txt

@@ -0,0 +1,46 @@
+project(CTKXNATWidgets)
+
+#
+# See CTK/CMake/ctkMacroBuildLib.cmake for details
+#
+
+set(KIT_export_directive "CTK_XNAT_WIDGETS_EXPORT")
+
+set(KIT_SRCS
+  ctkXnatProjectListModel.cpp
+  )
+
+# Files which should be processed by Qts moc
+set(KIT_MOC_SRCS
+  ctkXnatProjectListModel.h
+)
+
+
+# Resources
+set(KIT_resources
+)
+
+# Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
+# The following macro will read the target libraries from the file 'target_libraries.cmake'
+set(KIT_target_libraries)
+
+ctkFunctionGetTargetLibraries(KIT_target_libraries)
+
+ctkMacroBuildLib(
+  NAME ${PROJECT_NAME}
+  EXPORT_DIRECTIVE ${KIT_export_directive}
+  SRCS ${KIT_SRCS}
+  MOC_SRCS ${KIT_MOC_SRCS}
+  UI_FORMS ${KIT_UI_FORMS}
+  TARGET_LIBRARIES ${KIT_target_libraries}
+  RESOURCES ${KIT_resources}
+  LIBRARY_TYPE ${CTK_LIBRARY_MODE}
+  )
+
+## Testing
+#if(BUILD_TESTING)
+#  add_subdirectory(Testing)
+#
+#  # Compile source code snippets
+#  add_subdirectory(Documentation/Snippets)
+#endif()

+ 26 - 0
Libs/XNAT/Widgets/ctkXnatProjectListModel.cpp

@@ -0,0 +1,26 @@
+/*=============================================================================
+
+  Library: CTK
+
+  Copyright (c) German Cancer Research Center,
+    Division of Medical and Biological Informatics
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+=============================================================================*/
+
+#include "ctkXnatProjectListModel.h"
+
+ctkXnatProjectListModel::ctkXnatProjectListModel()
+{
+}

+ 36 - 0
Libs/XNAT/Widgets/ctkXnatProjectListModel.h

@@ -0,0 +1,36 @@
+/*=============================================================================
+
+  Library: CTK
+
+  Copyright (c) German Cancer Research Center,
+    Division of Medical and Biological Informatics
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+=============================================================================*/
+
+#ifndef CTKXNATPROJECTLISTMODEL_H
+#define CTKXNATPROJECTLISTMODEL_H
+
+#include "QAbstractListModel"
+
+#include "ctkXNATWidgetsExport.h"
+
+class CTK_XNAT_WIDGETS_EXPORT ctkXnatProjectListModel : public QAbstractListModel
+{
+public:
+  ctkXnatProjectListModel();
+
+};
+
+#endif // CTKXNATPROJECTLISTMODEL_H

+ 9 - 0
Libs/XNAT/Widgets/target_libraries.cmake

@@ -0,0 +1,9 @@
+#
+# See CMake/ctkFunctionGetTargetLibraries.cmake
+#
+# This file should list the libraries required to build the current CTK libraries
+#
+
+set(target_libraries
+  CTKXNATCore
+  )