Changeset 86 for trunk/orca/qt

Show
Ignore:
Timestamp:
03/11/06 17:42:43 (3 years ago)
Author:
krobillard
Message:

Added OR_NATIVE macros. The Qt and GL code now uses this macro.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/qt/qorca.cpp

    r62 r86  
    691691 
    692692 
    693 static void execNative( OValue* a1 ) 
     693OR_NATIVE( execNative ) 
    694694{ 
    695695    if( a1->type == OT_INTEGER ) 
     
    760760 
    761761 
    762 static void execExitNative( OValue* a1 ) 
     762OR_NATIVE( execExitNative ) 
    763763{ 
    764764    execExit( qEnv.atom_exec_exit, a1 ); 
     
    766766 
    767767 
    768 static void closeNative( OValue* a1 ) 
     768OR_NATIVE( closeNative ) 
    769769{ 
    770770    execExit( qEnv.atom_close, a1 ); 
     
    772772 
    773773 
    774 static void showNative( OValue* a1 ) 
     774OR_NATIVE( showNative ) 
    775775{ 
    776776    WIDPool::REC* rec = qEnv.pool.record( a1->integer ); 
     
    823823 
    824824 
    825 static void dialogNative( OValue* a1 ) 
     825OR_NATIVE( dialogNative ) 
    826826{ 
    827827    SDialog* dlg = new SDialog; 
     
    834834 
    835835 
    836 static void widgetNative( OValue* a1 ) 
     836OR_NATIVE( widgetNative ) 
    837837{ 
    838838    SWidget* wid = new SWidget; 
     
    844844 
    845845 
    846 static void destroyNative( OValue* a1 ) 
     846OR_NATIVE( destroyNative ) 
    847847{ 
    848848    WIDPool::REC* rec = qEnv.pool.record( a1->integer ); 
     
    860860#define REF_RF_PATH    a1+4 
    861861 
    862 static void requestFileNative( OValue* a1 ) 
     862OR_NATIVE( requestFileNative ) 
    863863{ 
    864864    QString fn; 
     
    909909 
    910910 
    911 static void enableNative( OValue* a1 ) 
     911OR_NATIVE( enableNative ) 
    912912{ 
    913913    WIDPool::REC* rec = qEnv.pool.record( a1->integer ); 
     
    917917 
    918918 
    919 static void disableNative( OValue* a1 ) 
     919OR_NATIVE( disableNative ) 
    920920{ 
    921921    WIDPool::REC* rec = qEnv.pool.record( a1->integer ); 
     
    925925 
    926926 
    927 static void widgetValueNative( OValue* a1 ) 
     927OR_NATIVE( widgetValueNative ) 
    928928{ 
    929929    WIDPool::REC* rec = qEnv.pool.record( a1->integer ); 
     
    991991 
    992992 
    993 static void setWidgetValueNative( OValue* a1 ) 
     993OR_NATIVE( setWidgetValueNative ) 
    994994{ 
    995995    WIDPool::REC* rec = qEnv.pool.record( a1->integer ); 
     
    10671067 
    10681068 
    1069 static void appendTextNative( OValue* a1 ) 
     1069OR_NATIVE( appendTextNative ) 
    10701070{ 
    10711071    WIDPool::REC* rec = qEnv.pool.record( a1->integer ); 
     
    11121112 
    11131113 
    1114 static void messageNative( OValue* a1 ) 
     1114OR_NATIVE( messageNative ) 
    11151115{ 
    11161116#define REF_MSG_WARN    a1+2 
     
    12411241#ifdef DIR_WATCHER 
    12421242    extern void watchDirNative( OValue* ); 
     1243    extern void spawnNative( OValue* ); 
    12431244    orNative( (void*) watchDirNative,       "watch-dir" ); 
     1245    orNative( (void*) spawnNative,          "spawn" ); 
    12441246#endif 
    12451247