GPMProcessList::GPMProcessList()
	:
	itsEntries(NULL),
	itsAlphaEntries(NULL),
	itsElapsedTime(0),
	itsLastTime(0),
	itsIsShowingUserOnly(kJTrue)
#ifdef _J_HAS_PROC
	,itsDirInfo(NULL)
#endif
{
	itsUID = getuid();

	itsEntries = new JPtrArray<GPMProcessEntry>(JPtrArrayT::kForgetAll);
	assert(itsEntries != NULL);
	itsEntries->SetCompareFunction(GPMProcessEntry::CompareListPID);
	InstallOrderedSet(itsEntries);
	itsListColType = kListPID;
	itsTreeColType = kTreeCommand;

	itsAlphaEntries = new JPtrArray<GPMProcessEntry>(JPtrArrayT::kForgetAll);
	assert( itsAlphaEntries != NULL );
	itsAlphaEntries->SetCompareFunction(GPMProcessEntry::CompareListCommandForIncrSearch);

	itsRootNode = new JTreeNode(NULL);
	assert( itsRootNode != NULL );
	itsRootNode->SetChildCompareFunction(GPMProcessEntry::CompareTreeCommand,
										 JOrderedSetT::kSortAscending, kJTrue);

	itsTree = new JTree(itsRootNode);
	assert( itsTree != NULL );

	Update();
}
JFSBindingList::JFSBindingList
	(
	const JCharacter*	signalFileName,
	const JCharacter**	needUserCheck
	)
	:
	JContainer(),
	itsUseDefaultFlag(kJFalse),
	itsUserDefault(NULL),
	itsSystemDefault(NULL),
	itsShellCmd(kDefaultShellCmd),
	itsWindowCmd(kDefaultWindowCmd),
	itsAutoShellFlag(kJFalse),
	itsSignalFileName(signalFileName)
{
	itsBindingList = new JPtrArray<JFSBinding>(JPtrArrayT::kDeleteAll);
	assert( itsBindingList != NULL );
	itsBindingList->SetCompareFunction(JFSBinding::ComparePatterns);

	itsOverriddenList = new JPtrArray<JFSBinding>(JPtrArrayT::kDeleteAll);
	assert( itsOverriddenList != NULL );
	itsOverriddenList->SetCompareFunction(JFSBinding::ComparePatterns);

	InstallOrderedSet(itsBindingList);

	*needUserCheck = Revert();
}
void
JExprNodeList::ExprNodeListX()
{
	itsNodes = jnew JArray<Node>(10);
	assert( itsNodes != NULL );

	InstallOrderedSet(itsNodes);
}
void
SCCircuitVarList::SCCircuitVarListX()
{
	itsVars = new JArray<VarInfo>;
	assert( itsVars != NULL );

	InstallOrderedSet(itsVars);
}
Esempio n. 5
0
JXMenuData::JXMenuData()
	:
	JContainer()
{
	itsBaseItemData = new JArray<BaseItemData>;
	assert( itsBaseItemData != NULL );

	InstallOrderedSet(itsBaseItemData);
}
Esempio n. 6
0
JDirInfo::JDirInfo
	(
	const JCharacter* dirName
	)
	:
	JContainer()
{
	AllocateCWD(dirName);

	itsIsValidFlag         = kJTrue;	// see assert() at end of this function
	itsSwitchIfInvalidFlag = kJFalse;
	itsIsWritableFlag      = kJFalse;
	itsModTime             = 0;
	itsStatusTime          = 0;

	itsShowFilesFlag   = kJTrue;		// remember to update ResetCSFFilters()
	itsShowDirsFlag    = kJTrue;
	itsShowHiddenFlag  = kJFalse;
	itsShowVCSDirsFlag = kJTrue;
	itsShowOthersFlag  = kJFalse;

	itsNameRegex           = NULL;
	itsOwnsNameRegexFlag   = kJFalse;
	itsInvertNameRegexFlag = kJFalse;
	itsFilterDirsFlag      = kJFalse;
	itsPermFilter          = NULL;
	itsContentRegex        = NULL;
	itsPG                  = NULL;

	itsDirEntries = new JPtrArray<JDirEntry>(JPtrArrayT::kDeleteAll);
	assert( itsDirEntries != NULL);
	itsDirEntries->SetCompareFunction(JDirEntry::CompareNames);
	itsDirEntries->SetSortOrder(JOrderedSetT::kSortAscending);

	itsVisEntries = new JPtrArray<JDirEntry>(JPtrArrayT::kForgetAll);
	assert( itsVisEntries != NULL);

	itsAlphaEntries = new JPtrArray<JDirEntry>(JPtrArrayT::kForgetAll);
	assert( itsAlphaEntries != NULL);
	itsAlphaEntries->SetCompareFunction(JDirEntry::CompareNames);
	itsAlphaEntries->SetSortOrder(JOrderedSetT::kSortAscending);

	InstallOrderedSet(itsVisEntries);

	const JError err = BuildInfo();
	assert_ok( err );
}
CBSymbolList::CBSymbolList
	(
	CBProjectDocument* projDoc
	)
	:
	JContainer(),
	CBCtagsUser(kCtagsArgs)
{
	itsProjDoc                = projDoc;
	itsReparseAllFlag         = kJTrue;		// ReadSetup() clears this
	itsChangedDuringParseFlag = kJFalse;
	itsBeganEmptyFlag         = kJFalse;

	itsSymbolList = new JArray<SymbolInfo>(kBlockSize);
	assert( itsSymbolList != NULL );
	itsSymbolList->SetSortOrder(JOrderedSetT::kSortAscending);
	itsSymbolList->SetCompareFunction(CompareSymbols);

	InstallOrderedSet(itsSymbolList);
}
JDirInfo::JDirInfo
	(
	const JDirInfo& source
	)
	:
	JContainer(source)
{
	itsCWD = new JString(*(source.itsCWD));
	assert( itsCWD != NULL );

	itsIsValidFlag         = source.itsIsValidFlag;
	itsSwitchIfInvalidFlag = source.itsSwitchIfInvalidFlag;
	itsIsWritableFlag      = source.itsIsWritableFlag;
	itsModTime             = source.itsModTime;
	itsStatusTime          = source.itsStatusTime;

	JDirInfoX(source);
	PrivateCopySettings(source);
	CopyDirEntries(source);
	InstallOrderedSet(itsVisEntries);
}
JDirInfo::JDirInfo
	(
	const JDirInfo&		source,
	const JCharacter*	dirName
	)
	:
	JContainer(source)
{
	AllocateCWD(dirName);

	itsIsValidFlag         = kJTrue;			// see assert() at end of this function
	itsSwitchIfInvalidFlag = kJFalse;
	itsIsWritableFlag      = kJFalse;
	itsModTime             = 0;
	itsStatusTime          = 0;

	JDirInfoX(source);
	PrivateCopySettings(source);
	InstallOrderedSet(itsVisEntries);

	const JError err = BuildInfo();
	assert_ok( err );
}