ctkDICOMServerNodeWidget.cpp

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Library:   CTK
00004  
00005   Copyright (c) 2010  Kitware Inc.
00006 
00007   Licensed under the Apache License, Version 2.0 (the "License");
00008   you may not use this file except in compliance with the License.
00009   You may obtain a copy of the License at
00010 
00011       http://www.commontk.org/LICENSE
00012 
00013   Unless required by applicable law or agreed to in writing, software
00014   distributed under the License is distributed on an "AS IS" BASIS,
00015   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016   See the License for the specific language governing permissions and
00017   limitations under the License.
00018  
00019 =========================================================================*/
00020 
00021 #include <iostream>
00022 
00024 #include <ctkCheckableHeaderView.h>
00025 
00026 // ctkDICOMWidgets includes
00027 #include "ctkDICOMServerNodeWidget.h"
00028 #include "ui_ctkDICOMServerNodeWidget.h"
00029 
00030 //----------------------------------------------------------------------------
00031 class ctkDICOMServerNodeWidgetPrivate: public ctkPrivate<ctkDICOMServerNodeWidget>,
00032                                        public Ui_ctkDICOMServerNodeWidget
00033 {
00034 public:
00035   ctkDICOMServerNodeWidgetPrivate(){}
00036 };
00037 
00038 //----------------------------------------------------------------------------
00039 // ctkDICOMServerNodeWidgetPrivate methods
00040 
00041 
00042 //----------------------------------------------------------------------------
00043 // ctkDICOMServerNodeWidget methods
00044 
00045 //----------------------------------------------------------------------------
00046 ctkDICOMServerNodeWidget::ctkDICOMServerNodeWidget(QWidget* _parent):Superclass(_parent)
00047 {
00048   CTK_INIT_PRIVATE(ctkDICOMServerNodeWidget);
00049   CTK_D(ctkDICOMServerNodeWidget);
00050   
00051   d->setupUi(this);
00052 
00053   // checkable headers.
00054   d->nodeTable->model()->setHeaderData(0, Qt::Horizontal, Qt::Unchecked, Qt::CheckStateRole);
00055   QHeaderView* previousHeaderView = d->nodeTable->horizontalHeader();
00056   ctkCheckableHeaderView* headerView = new ctkCheckableHeaderView(Qt::Horizontal, d->nodeTable);
00057   headerView->setClickable(previousHeaderView->isClickable());
00058   headerView->setMovable(previousHeaderView->isMovable());
00059   headerView->setHighlightSections(previousHeaderView->highlightSections());
00060   //headerView->setModel(previousHeaderView->model());
00061   //headerView->setSelectionModel(previousHeaderView->selectionModel());
00062   headerView->setPropagateToItems(true);
00063   d->nodeTable->setHorizontalHeader(headerView);
00064 }
00065 
00066 //----------------------------------------------------------------------------
00067 ctkDICOMServerNodeWidget::~ctkDICOMServerNodeWidget()
00068 {
00069 }
00070 
00071 
00072 //----------------------------------------------------------------------------
00073 void ctkDICOMServerNodeWidget::populateQuery(/*ctkDICOMQuery &query*/)
00074 {
00075   CTK_D(ctkDICOMServerNodeWidget);
00076 
00077   std::cerr << "server node\n";
00078 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 21 May 2010 for CTK by  doxygen 1.6.1