void create_native_toolbar(int bar_type, rho_param *p) { if ( bar_type == NOBAR_TYPE ) remove_native_toolbar(); else if ( bar_type == TOOLBAR_TYPE ) { getAppWindow().performOnUiThread(new CNativeToolbar::CCreateTask(p) ); }else { RAWLOGC_ERROR("NativeBar", "Only Toolbar control is supported."); } }
void QtMainWindow::on_webView_loadFinished(bool ok) { // LOG(INFO) + (ok?"WebView: loaded ":"WebView: failed "); if (ok) RAWLOGC_INFO("WebView", "Page load complete." ); else RAWLOGC_ERROR("WebView", "Page load failed." ); #ifdef OS_MACOSX if (mainWindowCallback && ok) mainWindowCallback->onWebViewUrlChanged(ui->webView->url().toString().toStdString()); #endif }
void create_native_tabbar(int bar_type, rho_param *p) { #if defined(OS_WINDOWS_DESKTOP) // check for iPad SplitTabBar type -> redirect to TabBar if (bar_type == VTABBAR_TYPE) { bar_type = TABBAR_TYPE; } if ( bar_type == NOBAR_TYPE ) remove_native_tabbar(); else if ( bar_type == TABBAR_TYPE ) { getAppWindow().performOnUiThread(new CNativeTabbar::CCreateTask(bar_type, p) ); } else { RAWLOGC_ERROR("NativeTabbar", "Only Tabbar control is supported."); } #endif }
RHO_GLOBAL void JNICALL Java_com_rhomobile_rhodes_Logger_E (JNIEnv *env, jclass, jstring tag, jstring msg) { RAWLOGC_ERROR(rho_cast<std::string>(env, tag).c_str(), rho_cast<std::string>(env, msg).c_str()); }