示例#1
0
文件: on.cpp 项目: 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);
}
示例#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);
}
示例#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
}
示例#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
}
示例#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);
}
示例#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);
}
示例#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
}
示例#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);
}
示例#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);
}
示例#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();
	}


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