~ubuntu-branches/ubuntu/lucid/cmake/lucid

« back to all changes in this revision

Viewing changes to Source/FLTKDialog/FLTKPropertyItemRow.h

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2009-12-16 11:11:54 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091216111154-6accvv6yq86h2hkc
Tags: 2.8.0-5ubuntu1
* Merge from debian testing (LP: #497349). Remaining changes:
  - Keep the Replaces: on cmake-data to cover the Kubuntu version from
    Jaunty in case someone decides to do an (unsupported) Jaunty->Lucid
    upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*=========================================================================
2
 
 
3
 
  Program:   Insight Segmentation & Registration Toolkit
4
 
  Module:    $RCSfile: FLTKPropertyItemRow.h,v $
5
 
  Language:  C++
6
 
  Date:      $Date: 2005-09-23 21:47:32 $
7
 
  Version:   $Revision: 1.12 $
8
 
 
9
 
  Copyright (c) 2002 Insight Consortium. All rights reserved.
10
 
  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
 
 
12
 
     This software is distributed WITHOUT ANY WARRANTY; without even 
13
 
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14
 
     PURPOSE.  See the above copyright notices for more information.
15
 
 
16
 
=========================================================================*/
17
 
 
18
 
#ifndef  FLTKPropertyItemRow_h
19
 
#define  FLTKPropertyItemRow_h
20
 
 
21
 
#include "FLTKPropertyList.h"
22
 
 
23
 
#include <FL/Fl_Tile.H>
24
 
#include <FL/Fl_Input.H>
25
 
#include <FL/Fl_Button.H>
26
 
 
27
 
 
28
 
class CMakeSetupGUIImplementation;  
29
 
 
30
 
 
31
 
namespace fltk {
32
 
  
33
 
 
34
 
/**
35
 
 
36
 
   Class to manage a GUI row corresponding to a property
37
 
  
38
 
  */
39
 
class PropertyItemRow  : public Fl_Tile
40
 
{
41
 
 
42
 
  // Helper class for passing data to callbacks
43
 
  struct ItemValue
44
 
  {
45
 
    PropertyItem * m_PropertyItem;
46
 
    Fl_Input     * m_InputText;
47
 
  };
48
 
 
49
 
 
50
 
  public:
51
 
 
52
 
    PropertyItemRow( PropertyItem *);
53
 
    ~PropertyItemRow();
54
 
 
55
 
  private:
56
 
    
57
 
    PropertyItem * m_PropertyItem;
58
 
    ItemValue    * m_ItemValue;
59
 
    Fl_Button    * m_NameButton;
60
 
 
61
 
    static CMakeSetupGUIImplementation * m_CMakeSetup;
62
 
 
63
 
    static void CheckButtonCallback( Fl_Widget *, void *);
64
 
    static void NameButtonCallback( Fl_Widget *, void *);
65
 
    static void InputTextCallback(   Fl_Widget *, void *);
66
 
    static void BrowsePathCallback(  Fl_Widget *, void *);
67
 
    static void ColorSelectionCallback(   Fl_Widget * widget, void * data);
68
 
 
69
 
 
70
 
    static void FillCacheManagerFromCacheGUI( void );
71
 
 
72
 
  public:
73
 
    
74
 
    static void SetCMakeSetupGUI( CMakeSetupGUIImplementation * );
75
 
};
76
 
 
77
 
 
78
 
} // end namespace fltk
79
 
 
80
 
 
81
 
#endif
82
 
 
83