Example #1
0
File: on.cpp Project: luisivan/on
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);
}
Example #2
0
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);
}
Example #3
0
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
}
Example #4
0
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
}
Example #5
0
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);
}
Example #6
0
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);
}
Example #7
0
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
}
Example #8
0
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);
}
Example #9
0
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);
}
Example #10
0
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();
	}


}
Example #11
0
 //! Set native object
 DownSampler(nitf_DownSampler * x)
 {
     setNative(x);
     getNativeOrThrow();
 }
Example #12
0
 //! Assignment Operator
 DownSampler & operator=(const DownSampler & x)
 {
     if (&x != this)
         setNative(x.getNative());
     return *this;
 }
Example #13
0
ImageSubheader & ImageSubheader::operator=(const ImageSubheader & x)
{
    if (&x != this)
        setNative(x.getNative());
    return *this;
}
Example #14
0
ImageSubheader::ImageSubheader(const ImageSubheader & x)
{
    setNative(x.getNative());
}
Example #15
0
 //! Copy constructor
 DownSampler(const DownSampler & x)
 {
     setNative(x.getNative());
 }
Example #16
0
ImageSubheader::ImageSubheader(nitf_ImageSubheader * x)
{
    setNative(x);
    getNativeOrThrow();
}
Example #17
0
nitf::PixelSkip::PixelSkip(nitf::Uint32 rowSkip, nitf::Uint32 colSkip)
        throw (nitf::NITFException)
{
    setNative(nitf_PixelSkip_construct(rowSkip, colSkip, &error));
    setManaged(false);
}
Example #18
0
 Field(NITF_DATA * x)
 {
     setNative((nitf_Field*)x);
     getNativeOrThrow();
 }
Example #19
0
 //! Assignment Operator
 Field & operator=(const Field & x)
 {
     if (&x != this)
         setNative(x.getNative());
     return *this;
 }
Example #20
0
 //! Copy constructor
 ListNode(const ListNode & x) { setNative(x.getNative()); }
Example #21
0
ImageSubheader::ImageSubheader() throw(nitf::NITFException)
{
    setNative(nitf_ImageSubheader_construct(&error));
    getNativeOrThrow();
    setManaged(false);
}
Example #22
0
 //! Copy constructor
 Field(const Field & x)
 {
     setNative(x.getNative());
 }
Example #23
0
nitf::HashTable::HashTable(const HashTable & x)
{
    setNative(x.getNative());
}
Example #24
0
 //! Set native object
 Field(nitf_Field * field)
 {
     setNative(field);
     getNativeOrThrow();
 }
Example #25
0
nitf::HashTable & nitf::HashTable::operator=(const HashTable & x)
{
    if (&x != this)
        setNative(x.getNative());
    return *this;
}
Example #26
0
 Field & operator=(NITF_DATA * x)
 {
     setNative((nitf_Field*)x);
     getNativeOrThrow();
     return *this;
 }
Example #27
0
nitf::HashTable::HashTable(nitf_HashTable * x)
{
    setNative(x);
    getNativeOrThrow();
}
Example #28
0
nitf::Select2DownSample::Select2DownSample(nitf::Uint32 rowSkip,
        nitf::Uint32 colSkip) throw (nitf::NITFException)
{
    setNative(nitf_Select2DownSample_construct(rowSkip, colSkip, &error));
    setManaged(false);
}
Example #29
0
nitf::HashTable::HashTable(int nbuckets) throw(nitf::NITFException)
{
    setNative(nitf_HashTable_construct(nbuckets, &error));
    getNativeOrThrow();
    setManaged(false);
}