• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ JI2B函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中JI2B函数的典型用法代码示例。如果您正苦于以下问题:C++ JI2B函数的具体用法?C++ JI2B怎么用?C++ JI2B使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了JI2B函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: JI2B

JBoolean
THXVarTable::OKToRemoveSelectedConstant()
	const
{
	JPoint cell;
	return JI2B( GetEditedCell(&cell) &&
				 itsVarList->OKToRemoveFunction(cell.y + THXVarList::kUserFnOffset) );
}
开发者ID:dllaurence,项目名称:jx_application_framework,代码行数:8,代码来源:THXVarTable.cpp


示例2: JI2B

inline JBoolean
cbIsQualified
	(
	const JString& s
	)
{
	return JI2B(s.Contains(":") || s.Contains("."));
}
开发者ID:jafl,项目名称:jx_application_framework,代码行数:8,代码来源:CBFnMenuUpdater.cpp


示例3: JI2B

JBoolean
JXSaveFileInput::SIsCharacterInWord
	(
	const JString&	text,
	const JIndex	charIndex
	)
{
	return JI2B( text.GetCharacter(charIndex) != '.' );
}
开发者ID:mbert,项目名称:mulberry-lib-jx,代码行数:9,代码来源:JXSaveFileInput.cpp


示例4: JI2B

JBoolean
JFileExecutable
	(
	const JCharacter* fileName
	)
{
	if (getuid() == 0)
		{
		ACE_stat stbuf;
		return JI2B( ACE_OS::stat(fileName, &stbuf) == 0 &&
					 (stbuf.st_mode & S_IXUSR) != 0 );
		}
	else
		{
		return JI2B(JFileExists(fileName) &&
					access(fileName, X_OK) == 0);
		}
}
开发者ID:mta1309,项目名称:mulberry-lib-jx,代码行数:18,代码来源:jFileUtil_UNIX.cpp


示例5: JI2B

JBoolean
JFSBindingList::NeedsRevert()
	const
{
	time_t t;
	return JI2B(!itsSignalFileName.IsEmpty() &&
				(JGetModificationTime(itsSignalFileName, &t)).OK() &&
				itsSignalModTime != t);
}
开发者ID:dllaurence,项目名称:jx_application_framework,代码行数:9,代码来源:JFSBindingList.cpp


示例6: JI2B

JBoolean
JXFSBindingTable::IsEditable
	(
	const JPoint& cell
	)
	const
{
	return JI2B(cell.x == kPatternColumn || cell.x == kCommandColumn);
}
开发者ID:dllaurence,项目名称:jx_application_framework,代码行数:9,代码来源:JXFSBindingTable.cpp


示例7: assert

JBoolean
JIsRelativePath
	(
	const JCharacter* path
	)
{
	assert( !JStringEmpty(path) );
	return JI2B( path[0] != '/' && path[0] != '~' );
}
开发者ID:mta1309,项目名称:mulberry-lib-jx,代码行数:9,代码来源:jDirUtil_UNIX.cpp


示例8: JI2B

JBoolean
CBCommandTable::IsEditable
	(
	const JPoint& cell
	)
	const
{
	return JI2B( cell.x != kOptionsColumn );
}
开发者ID:raorn,项目名称:jx_application_framework,代码行数:9,代码来源:CBCommandTable.cpp


示例9: JI2B

JBoolean
CBGetMDIServer
	(
	CBMDIServer** mdi
	)
{
	*mdi = theMDIServer;
	return JI2B( theMDIServer != NULL );
}
开发者ID:raorn,项目名称:jx_application_framework,代码行数:9,代码来源:cbGlobals.cpp


示例10: JI2B

JBoolean
JNameUsed
	(
	const JCharacter* name
	)
{
	ACE_stat info;
	return JI2B( ACE_OS::lstat(name, &info) == 0 );
}
开发者ID:mta1309,项目名称:mulberry-lib-jx,代码行数:9,代码来源:jDirUtil_UNIX.cpp


示例11: JI2B

JBoolean
JXDockDirector::GetFocusWindow
	(
	JXWindow** window
	)
{
	*window = itsFocusWindow;
	return JI2B( itsFocusWindow != NULL );
}
开发者ID:jafl,项目名称:jx_application_framework,代码行数:9,代码来源:JXDockDirector.cpp


示例12: JI2B

JBoolean
JXPathInput::IsCharacterInWord
	(
	const JString&	text,
	const JIndex	charIndex
	)
{
	return JI2B( text.GetCharacter(charIndex) != ACE_DIRECTORY_SEPARATOR_CHAR );
}
开发者ID:raorn,项目名称:jx_application_framework,代码行数:9,代码来源:JXPathInput.cpp


示例13: JI2B

JBoolean
JXTreeListWidget::IsEditable
	(
	const JPoint& cell
	)
	const
{
	return JI2B( JIndex(cell.x) != itsToggleOpenColIndex );
}
开发者ID:dllaurence,项目名称:jx_application_framework,代码行数:9,代码来源:JXTreeListWidget.cpp


示例14: JI2B

JBoolean
JXFloatInput::GetValue
	(
	JFloat* value
	)
	const
{
	return JI2B((GetText()).ConvertToFloat(value) && ValueValid(*value));
}
开发者ID:dllaurence,项目名称:jx_application_framework,代码行数:9,代码来源:JXFloatInput.cpp


示例15: JI2B

JBoolean
JDirInfo::IsVisible
	(
	const JDirEntry& entry
	)
	const
{
	const JDirEntry::Type type = entry.GetType();
	const JString& name        = entry.GetName();

	if (name.GetFirstCharacter() == '.' && name != ".." && !itsShowHiddenFlag)
		{
		return kJFalse;
		}

	if (type == JDirEntry::kDir || type == JDirEntry::kDirLink)
		{
		return JI2B(itsShowDirsFlag &&
					(!itsFilterDirsFlag || MatchesNameFilter(entry)) &&
					MatchesDirEntryFilter(entry));
		}
	else if (type == JDirEntry::kFile || type == JDirEntry::kFileLink ||
			 type == JDirEntry::kBrokenLink)
		{
		return JI2B(itsShowFilesFlag &&
					MatchesNameFilter(entry) &&
					MatchesDirEntryFilter(entry));
		}
	else if (type == JDirEntry::kUnknown || type == JDirEntry::kUnknownLink)
		{
		return JI2B(itsShowOthersFlag &&
					MatchesNameFilter(entry) &&
					MatchesDirEntryFilter(entry));
		}
	else if (type == JDirEntry::kDoesNotExist)
		{
		return kJFalse;
		}
	else
		{
		assert( 0 );	// this should never happen
		return kJFalse;
		}
}
开发者ID:dllaurence,项目名称:jx_application_framework,代码行数:44,代码来源:JDirInfo.cpp


示例16: JXWindow

void
JXMacWinPrefsDialog::BuildWindow()
{
// begin JXLayout

    JXWindow* window = new JXWindow(this, 350,200, "");
    assert( window != NULL );
    SetWindow(window);

    JXTextButton* okButton =
        new JXTextButton(JGetString("okButton::JXMacWinPrefsDialog::JXLayout"), window,
                    JXWidget::kFixedRight, JXWidget::kFixedTop, 209,169, 62,22);
    assert( okButton != NULL );
    okButton->SetShortcuts(JGetString("okButton::JXMacWinPrefsDialog::shortcuts::JXLayout"));

    JXTextButton* cancelButton =
        new JXTextButton(JGetString("cancelButton::JXMacWinPrefsDialog::JXLayout"), window,
                    JXWidget::kFixedLeft, JXWidget::kFixedTop, 80,170, 60,20);
    assert( cancelButton != NULL );

    itsMacStyleCB =
        new JXTextCheckbox(JGetString("itsMacStyleCB::JXMacWinPrefsDialog::JXLayout"), window,
                    JXWidget::kFixedLeft, JXWidget::kFixedTop, 20,20, 320,20);
    assert( itsMacStyleCB != NULL );

    itsHomeEndCB =
        new JXTextCheckbox(JGetString("itsHomeEndCB::JXMacWinPrefsDialog::JXLayout"), window,
                    JXWidget::kFixedLeft, JXWidget::kFixedTop, 20,70, 320,20);
    assert( itsHomeEndCB != NULL );

    JXStaticText* obj1_JXLayout =
        new JXStaticText(JGetString("obj1_JXLayout::JXMacWinPrefsDialog::JXLayout"), window,
                    JXWidget::kHElastic, JXWidget::kVElastic, 40,40, 300,20);
    assert( obj1_JXLayout != NULL );
    obj1_JXLayout->SetFontSize(10);

    itsScrollCaretCB =
        new JXTextCheckbox(JGetString("itsScrollCaretCB::JXMacWinPrefsDialog::JXLayout"), window,
                    JXWidget::kFixedLeft, JXWidget::kFixedTop, 20,100, 320,20);
    assert( itsScrollCaretCB != NULL );

    itsCopyWhenSelectCB =
        new JXTextCheckbox(JGetString("itsCopyWhenSelectCB::JXMacWinPrefsDialog::JXLayout"), window,
                    JXWidget::kFixedLeft, JXWidget::kFixedTop, 20,130, 320,20);
    assert( itsCopyWhenSelectCB != NULL );

// end JXLayout

	window->SetTitle("Macintosh / Windows / X Preferences");
	SetButtons(okButton, cancelButton);

	itsMacStyleCB->SetState(JI2B(JXMenu::GetDisplayStyle() == JXMenu::kMacintoshStyle));
	itsHomeEndCB->SetState(JXTEBase::WillUseWindowsHomeEnd());
	itsScrollCaretCB->SetState(JXTEBase::CaretWillFollowScroll());
	itsCopyWhenSelectCB->SetState(JTextEditor::WillCopyWhenSelect());
}
开发者ID:mbert,项目名称:mulberry-lib-jx,代码行数:56,代码来源:JXMacWinPrefsDialog.cpp


示例17: JI2B

JBoolean
CBMacroSetTable::ContentsValid()
	const
{
	CBMacroSetTable* me = const_cast<CBMacroSetTable*>(this);

	return JI2B(me->EndEditing() &&
				itsActionTable->ContentsValid() &&
				itsMacroTable->ContentsValid());
}
开发者ID:raorn,项目名称:jx_application_framework,代码行数:10,代码来源:CBMacroSetTable.cpp


示例18: assert

JBoolean
JRTTIBase::Is
	(
	const JCharacter* type
	)
	const
{
	assert( type != NULL );	// make sure static constant was initialized
	return JI2B( type == itsType || strcmp(type, itsType) == 0 );
}
开发者ID:mbert,项目名称:mulberry-lib-jx,代码行数:10,代码来源:JRTTIBase.cpp


示例19: JI2B

JBoolean
JXTable::HandleSelectionKeyPress
	(
	const int				key,
	const JXKeyModifiers&	modifiers
	)
{
	return JI2B(0 < key && key <= 255 &&
				JTable::HandleSelectionKeyPress(key, modifiers.shift()));
}
开发者ID:mbert,项目名称:mulberry-lib-jx,代码行数:10,代码来源:JXTable.cpp


示例20: assert

JBoolean
CBCtagsUser::IsParsed
	(
	const CBTextFileType type
	)
{
	assert( kFTCount == kCBFTCount && kFTInfo[type].fileType == type );

	return JI2B( kFTInfo[type].lang != kCBOtherLang );
}
开发者ID:Lori-Pantera,项目名称:jx_application_framework,代码行数:10,代码来源:CBCtagsUser.cpp



注:本文中的JI2B函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ JID函数代码示例发布时间:2022-05-30
下一篇:
C++ JGetUserNotification函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap