On::On(QWidget *parent) : QWebView(parent) { setWindow(); setWebSettings(); setWallpaper(); setNative(); getRDConf(); loadByLanguage(); //setUrl(QUrl("/usr/share/on/shell/index.html")); connect(page()->mainFrame(), SIGNAL(javaScriptWindowObjectCleared()), this, SLOT(setNative())); //setWatchers(); QFuture<void> future = QtConcurrent::run(this, &On::setWatchers); }
nitf::SegmentMemorySource::SegmentMemorySource(const char * data, size_t size, nitf::Off start, int byteSkip, bool copyData) throw (nitf::NITFException) { setNative(nitf_SegmentMemorySource_construct(data, size, start, byteSkip, copyData, &error)); setManaged(false); }
nitf::SegmentReaderSource::SegmentReaderSource(nitf::SegmentReader reader) throw (nitf::NITFException) { setNative(nitf_SegmentReaderSource_construct(reader.getNativeOrThrow(), &error)); setManaged(false); reader.setManaged(true); //TODO unmanage on deletion }
nitf::SegmentFileSource::SegmentFileSource(nitf::IOHandle & io, nitf::Off start, int byteSkip) throw (nitf::NITFException) { setNative(nitf_SegmentFileSource_constructIO(io.getNative(), start, byteSkip, &error)); setManaged(false); io.setManaged(true); //TODO unmanage on deletion }
nitf::DirectBlockSource::DirectBlockSource(nitf::ImageReader& imageReader, nitf::Uint32 numBands) throw(nitf::NITFException) { setNative(nitf_DirectBlockSource_construct(this, &DirectBlockSource::nextBlock, imageReader.getNative(), numBands, &error)); setManaged(false); }
nitf::MemorySource::MemorySource(const void* data, size_t size, nitf::Off start, int numBytesPerPixel, int pixelSkip) throw(nitf::NITFException) { setNative(nitf_MemorySource_construct(data, size, start, numBytesPerPixel, pixelSkip, &error)); setManaged(false); }
nitf::FileSource::FileSource(nitf::IOHandle & io, nitf::Off start, int numBytesPerPixel, int pixelSkip) throw(nitf::NITFException) { setNative(nitf_IOSource_construct(io.getNative(), start, numBytesPerPixel, pixelSkip, &error)); setManaged(false); io.setManaged(true); //TODO must release this on destruction }
nitf::FileSource::FileSource(const std::string& fname, nitf::Off start, int numBytesPerPixel, int pixelSkip) throw (nitf::NITFException) { setNative(nitf_FileSource_constructFile(fname.c_str(), start, numBytesPerPixel, pixelSkip, & error)); setManaged(false); }
nitf::RowSource::RowSource( nitf::Uint32 band, nitf::Uint32 numRows, nitf::Uint32 numCols, nitf::Uint32 pixelSize, nitf::RowSourceCallback *callback) throw(nitf::NITFException) : mBand(band), mNumRows(numRows), mNumCols(numCols), mPixelSize(pixelSize) { setNative(nitf_RowSource_construct(callback, &RowSource::nextRow, mBand, mNumRows, mNumCols * mPixelSize, &error)); setManaged(false); }
main() { //fill alias list for display nshInsert(&alias,"set","set"); nshInsert(&alias,"alias","alias"); nshInsert(&alias,"tes","tes"); nshInsert(&alias,"exit","exit"); nshInsert(&alias,"saila","saila"); //Create native commands setNative(); //Arguably an uneeded loop, but it keeps the program running. while(cont) { userInput(); } }
//! Set native object DownSampler(nitf_DownSampler * x) { setNative(x); getNativeOrThrow(); }
//! Assignment Operator DownSampler & operator=(const DownSampler & x) { if (&x != this) setNative(x.getNative()); return *this; }
ImageSubheader & ImageSubheader::operator=(const ImageSubheader & x) { if (&x != this) setNative(x.getNative()); return *this; }
ImageSubheader::ImageSubheader(const ImageSubheader & x) { setNative(x.getNative()); }
//! Copy constructor DownSampler(const DownSampler & x) { setNative(x.getNative()); }
ImageSubheader::ImageSubheader(nitf_ImageSubheader * x) { setNative(x); getNativeOrThrow(); }
nitf::PixelSkip::PixelSkip(nitf::Uint32 rowSkip, nitf::Uint32 colSkip) throw (nitf::NITFException) { setNative(nitf_PixelSkip_construct(rowSkip, colSkip, &error)); setManaged(false); }
Field(NITF_DATA * x) { setNative((nitf_Field*)x); getNativeOrThrow(); }
//! Assignment Operator Field & operator=(const Field & x) { if (&x != this) setNative(x.getNative()); return *this; }
//! Copy constructor ListNode(const ListNode & x) { setNative(x.getNative()); }
ImageSubheader::ImageSubheader() throw(nitf::NITFException) { setNative(nitf_ImageSubheader_construct(&error)); getNativeOrThrow(); setManaged(false); }
//! Copy constructor Field(const Field & x) { setNative(x.getNative()); }
nitf::HashTable::HashTable(const HashTable & x) { setNative(x.getNative()); }
//! Set native object Field(nitf_Field * field) { setNative(field); getNativeOrThrow(); }
nitf::HashTable & nitf::HashTable::operator=(const HashTable & x) { if (&x != this) setNative(x.getNative()); return *this; }
Field & operator=(NITF_DATA * x) { setNative((nitf_Field*)x); getNativeOrThrow(); return *this; }
nitf::HashTable::HashTable(nitf_HashTable * x) { setNative(x); getNativeOrThrow(); }
nitf::Select2DownSample::Select2DownSample(nitf::Uint32 rowSkip, nitf::Uint32 colSkip) throw (nitf::NITFException) { setNative(nitf_Select2DownSample_construct(rowSkip, colSkip, &error)); setManaged(false); }
nitf::HashTable::HashTable(int nbuckets) throw(nitf::NITFException) { setNative(nitf_HashTable_construct(nbuckets, &error)); getNativeOrThrow(); setManaged(false); }