OpendTect-6_4  6.4
uidate.h
Go to the documentation of this file.
1 #ifndef uidate_h
2 #define uidate_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: Dec 2011
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uibasemod.h"
16 #include "uiobj.h"
17 #include "uigroup.h"
18 #include "dateinfo.h"
19 
20 class uiCalendarBody;
21 class uiComboBox;
22 class uiLineEdit;
23 class uiLabel;
24 class uiPushButton;
25 
26 /* Displays a calendar where the uses can select a date. */
27 mExpClass(uiBase) uiCalendar : public uiObject
29 public:
31  void setDate(const DateInfo&);
32  DateInfo getDate() const;
33 
34 private:
35 
36  uiCalendarBody* body_;
37  uiCalendarBody& mkbody(uiParent*);
38 
39 };
40 
41 
44 mExpClass(uiBase) uiDateSel : public uiGroup
46 public:
47  uiDateSel(uiParent*,const uiString& label,
48  const DateInfo* = 0 );
49 
50  void setDate(const DateInfo&);
51  bool getDate(DateInfo&,bool doui) const;
52 
53 protected:
54  void showCalendarCB(CallBacker*);
55 
61 };
62 
63 
64 
65 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
uiLabel * label_
Definition: uidate.h:56
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: uidate.h:27
uiPushButtonBody & mkbody(uiParent *, const uiString &)
is the base class for all buttons.
Definition: uibutton.h:83
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Definition: uidate.h:44
uiComboBox * dayfld_
Definition: uidate.h:57
uiLineEdit * yearfld_
Definition: uidate.h:59
A date info class.
Definition: dateinfo.h:31
The base class for most UI elements.
Definition: uiobj.h:38
Combo box.
Definition: uicombobox.h:32
Definition: uistring.h:89
Definition: uiparent.h:26
uiComboBox * monthfld_
Definition: uidate.h:58
Definition: uilabel.h:24
Definition: uilineedit.h:51
uiPushButton * showcalendarbut_
Definition: uidate.h:60
uiCalendarBody * body_
Definition: uidate.h:36

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019