PSR
CHIVE
Ask a Question
Search
PSR
CHIVE:
powered by
FreeFind
Home
Install
Use
Develop
Support
News
Credits
hosted by
More
rhythm
qt_psrephem.h
1
/***************************************************************************
2
*
3
* Copyright (C) 2001 by Willem van Straten
4
* Licensed under the Academic Free License version 2.1
5
*
6
***************************************************************************/
7
8
/* ///////////////////////////////////////////////////////////////////////
9
The Qt psrephem Widget
10
Display TEMPO PSR ephemerides with this gui component:
11
12
To manipulate a qt_psrephem object, see qt_psrephem_editor.h.
13
14
Author: Willem van Straten
16
17
#ifndef __QT_PSREPHEM_H
18
#define __QT_PSREPHEM_H
19
20
#include <vector>
21
#include <stdio.h>
22
23
#include <qhbox.h>
24
#include <qlabel.h>
25
26
#include "psrephem.h"
27
28
class qt_psrParameter; // implementation detail defined in qt_psrParameter.h
29
class psrParameter; // base class implementing item of psrephem
30
class QVBox;
31
32
class qt_psrephem : public QHBox
33
{
34
Q_OBJECT
35
36
friend class qt_toglParamsem;
37
38
public:
39
static bool verbose; // add debugging things to the widget
40
41
qt_psrephem (const Legacy::psrephem& eph, QWidget* parent=0, const char* name=0);
42
qt_psrephem (QWidget* parent=0, const char* name=0);
43
44
~qt_psrephem ();
45
46
// display the ephemeris given / get the epehemeris displayed
47
int set_psrephem (const Legacy::psrephem& eph);
48
int get_psrephem (Legacy::psrephem& eph);
49
50
void setFitAll (bool fit);
51
52
void unload (FILE* outstream);
53
54
bool item_shown ( int ephind );
55
bool item_fit ( int ephind );
56
57
static int max_chars;
58
59
// Functions that assist the geometry manager
60
QSize sizeHint () const;
61
QSize minimumSizeHint () const { return sizeHint(); };
62
QSizePolicy sizePolicy () const
63
{ return QSizePolicy (QSizePolicy::Minimum, QSizePolicy::Fixed); };
64
65
signals:
66
void item_shown ( int ephind, bool );
67
68
protected slots:
69
void show_item ( int ephind, bool );
70
71
protected:
72
std::vector<qt_psrParameter*> params; // parameters displayed
73
int max_width; // maximum width required by psrParameter
74
75
void show_item (psrParameter* parm);
76
77
void show_item (int ephind);
78
void hide_item (int ephind);
79
80
private:
81
82
void commonConstruct ();
83
84
QLabel* psrname;
85
86
QVBox* glitch;
87
88
unsigned shown_glitch_parameters;
89
90
};
91
92
#endif
Pulsar::IntegrationManager::verbose
static unsigned verbose
A verbosity flag that can be set for debugging purposes.
Definition:
IntegrationManager.h:38
Generated using
doxygen
1.8.17