~vbursian/research-assistant/intervers

« back to all changes in this revision

Viewing changes to RAGUI/NewPhysValueDlg.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 NewPhysValueDlg.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 NewPhysValueDlg_H
11
 
#define NewPhysValueDlg_H
12
 
#include "AttrDlg.h"
13
 
#include "PhysValue.h"
14
 
#include "PhysValueField.h"
15
 
namespace RA {
16
 
//------------------------------------------------------------------------------
17
 
 
18
 
class sNewPhysValueDlg : public sAttrDlg
19
 
{
20
 
  Q_OBJECT
21
 
  public:
22
 
                              ~sNewPhysValueDlg ();
23
 
    explicit                  sNewPhysValueDlg (QWidget *  parent = 0);
24
 
    void                      SetValue (rcsPhysValue);
25
 
    sPhysValue                Value ()
26
 
                                { return TheValue; };
27
 
 
28
 
  protected:
29
 
    virtual bool              Validate (); //true on success
30
 
 
31
 
  private://fields
32
 
    sPhysValue                TheValue;
33
 
    QLabel *                  lblValue;
34
 
    psPhysValueField          fldValue;
35
 
};
36
 
 
37
 
//------------------------------------------------------------------------------
38
 
}; //namespace RA
39
 
#endif // NewPhysValueDlg_H