Commit 965a7ba4 authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Store showFITS within CCD Chip

parent fe3edba7
......@@ -33,6 +33,7 @@ CCDChip::CCDChip(INDI::BaseDevice *bDevice, ClientManager *cManager, ChipType cT
clientManager = cManager;
type = cType;
batchMode = false;
displayFITS = true;
captureMode = FITS_NORMAL;
captureFilter = FITS_NONE;
......@@ -696,7 +697,7 @@ void CCD::processBLOB(IBLOB* bp)
// Unless we have cfitsio, we're done.
#ifdef HAVE_CFITSIO_H
if (Options::showFITS() && targetChip->isBatchMode() == false)
if (Options::showFITS() && targetChip->showFITS() == true)
{
KUrl fileURL(filename);
......
......@@ -44,6 +44,8 @@ public:
CCDBinType getBinning();
bool getBinning(int *bin_x, int *bin_y);
ChipType getType() { return type; }
void setShowFITS(bool enable) { displayFITS = enable;}
bool showFITS() { return displayFITS; }
bool abortExposure();
......@@ -63,6 +65,7 @@ private:
ClientManager *clientManager;
ChipType type;
bool batchMode;
bool displayFITS;
QStringList frameTypes;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment