| Line | |
|---|
| 1 | #include <iostream.h>
|
|---|
| 2 |
|
|---|
| 3 | #include <TROOT.h>
|
|---|
| 4 | #include <TApplication.h>
|
|---|
| 5 |
|
|---|
| 6 | #include "MGStarguider.h"
|
|---|
| 7 |
|
|---|
| 8 | /* ---------------------------------------------------------------------- */
|
|---|
| 9 | //extern void InitGui();
|
|---|
| 10 | //VoidFuncPtr_t initfuncs[] = { InitGui, 0 };
|
|---|
| 11 |
|
|---|
| 12 | TROOT root("GUI", "GUI test environement"); //, initfuncs);
|
|---|
| 13 |
|
|---|
| 14 | int main(int argc, char **argv)
|
|---|
| 15 | {
|
|---|
| 16 | TApplication *app=new TApplication("Starguider", &argc, argv);
|
|---|
| 17 |
|
|---|
| 18 | MGStarguider starg(MObservatory::kMagic1);
|
|---|
| 19 |
|
|---|
| 20 | starg.Loop(0);
|
|---|
| 21 |
|
|---|
| 22 | app->Run(kTRUE);
|
|---|
| 23 |
|
|---|
| 24 | cout << "Exit." << endl;
|
|---|
| 25 |
|
|---|
| 26 | return 0;
|
|---|
| 27 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.