~vbursian/research-assistant/intervers

« back to all changes in this revision

Viewing changes to RAGUI/DlgEditPhysValue.h

  • Committer: Viktor Bursian
  • Date: 2013-06-06 15:10:08 UTC
  • Revision ID: vbursian@gmail.com-20130606151008-6641eh62f0lgx8jt
Tags: version_0.3.0
version 0.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
////////////////////////////////////////////////////////////////////////////////
 
2
/*! @file DlgEditPhysValue.h   Редактирование атрибута со значением вида
 
3
                              физвеличина.
 
4
- Part of RAGUI - Research Assistant Graphical User Interface.
 
5
- Uses  QtGui v.4.6  -  http://qt.nokia.com/
 
6
- Uses  RANet - Research Assistant Net Library (based on ANSI C++).
 
7
- Copyright(C) 2010, Viktor E. Bursian, St.Petersburg, Russia.
 
8
                     Viktor.Bursian@mail.ioffe.ru
 
9
*///////////////////////////////////////////////////////////////////////////////
 
10
#ifndef DlgEditPhysValue_H
 
11
#define DlgEditPhysValue_H
 
12
#include "AttrDlg.h"
 
13
#include "PhysValue.h"
 
14
#include "PhysValueField.h"
 
15
namespace RA {
 
16
//------------------------------------------------------------------------------
 
17
 
 
18
class sDlgEditPhysValue : public sAttrDlg
 
19
{
 
20
  Q_OBJECT
 
21
  public:
 
22
                              ~sDlgEditPhysValue ();
 
23
    explicit                  sDlgEditPhysValue (sPhysValue
 
24
                                                ,QWidget *  parent = 0);
 
25
//    void                      SetValue (rcsPhysValue);
 
26
    sPhysValue                Value ()
 
27
                                { return TheValue; };
 
28
 
 
29
  protected:
 
30
    virtual bool              Validate (); //true on success
 
31
 
 
32
  private://fields
 
33
    sPhysValue                TheValue;
 
34
    QLabel *                  lblValue;
 
35
    psPhysValueField          fldValue;
 
36
};
 
37
 
 
38
//------------------------------------------------------------------------------
 
39
}; //namespace RA
 
40
#endif