From 5e3d12f47887915d40f55316633783da9f2a6802 Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Wed, 20 Feb 2008 11:36:29 +0000 Subject: [PATCH] ColourDialog --> ColourSelector --- ...utton.cxx => bbwxColourSelectorButton.cxx} | 40 ++++++------- ...logButton.h => bbwxColourSelectorButton.h} | 57 +++++++++---------- 2 files changed, 48 insertions(+), 49 deletions(-) rename packages/wx/src/{bbwxColourDialogButton.cxx => bbwxColourSelectorButton.cxx} (81%) rename packages/wx/src/{bbwxColourDialogButton.h => bbwxColourSelectorButton.h} (66%) diff --git a/packages/wx/src/bbwxColourDialogButton.cxx b/packages/wx/src/bbwxColourSelectorButton.cxx similarity index 81% rename from packages/wx/src/bbwxColourDialogButton.cxx rename to packages/wx/src/bbwxColourSelectorButton.cxx index eadb5e9..791d967 100644 --- a/packages/wx/src/bbwxColourDialogButton.cxx +++ b/packages/wx/src/bbwxColourSelectorButton.cxx @@ -1,10 +1,10 @@ /*========================================================================= Program: bbtk - Module: $RCSfile: bbwxColourDialogButton.cxx,v $ + Module: $RCSfile: bbwxColourSelectorButton.cxx,v $ Language: C++ - Date: $Date: 2008/02/14 16:55:07 $ - Version: $Revision: 1.3 $ + Date: $Date: 2008/02/20 11:36:29 $ + Version: $Revision: 1.1 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -26,7 +26,7 @@ #ifdef _USE_WXWIDGETS_ -#include "bbwxColourDialogButton.h" +#include "bbwxColourSelectorButton.h" #include "bbwxPackage.h" @@ -35,7 +35,7 @@ namespace bbwx //------------------------------------------------------------------------- -wxColourPickerCtrlWidget::wxColourPickerCtrlWidget( ColourDialogButton* box, +wxColourPickerCtrlWidget::wxColourPickerCtrlWidget( ColourSelectorButton* box, wxWindow *parent, unsigned char cr, unsigned char cg, @@ -88,7 +88,7 @@ void wxColourPickerCtrlWidget::UpdateBox() // std::cout << col << std::endl; - ColourDialogButton* b = (ColourDialogButton*)mBox; + ColourSelectorButton* b = (ColourSelectorButton*)mBox; b->bbSetOutputOut( col ); b->bbSignalOutputModification("Out"); } @@ -100,32 +100,32 @@ void wxColourPickerCtrlWidget::UpdateBox() //-------------------------------------------------------------------------- //-------------------------------------------------------------------------- + + BBTK_USER_BLACK_BOX_IMPLEMENTATION(ColourSelectorButton,bbtk::WxBlackBox); + BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,ColourSelectorButton); - BBTK_USER_BLACK_BOX_IMPLEMENTATION(ColourDialogButton,bbtk::WxBlackBox); - BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,ColourDialogButton); - - void ColourDialogButton::bbUserConstructor() + void ColourSelectorButton::bbUserConstructor() { bbSetInputIn("1 1 1"); } - - - void ColourDialogButton::Process() + + + void ColourSelectorButton::Process() { - bbtkDebugMessageInc("Process",9,"ColourDialogButton::Process()"<UpdateBox(); bbtkDebugDecTab("Process",9); } - + /** - * \brief Create wxWidget . + * \brief Create wxWidget . * * - */ - void ColourDialogButton::CreateWidget() + */ + void ColourSelectorButton::CreateWidget() { - bbtkDebugMessage("Process",9,"=> ColourDialogButton::CreateWidget()"< ColourSelectorButton::CreateWidget()"<