Пример #1
0
/** Initialize data structures.
 * This is called before the X connection is opened.
 */
void Initialize(void)
{

   InitializeBackgrounds();
   InitializeBorders();
   InitializeClients();
   InitializeClock();
   InitializeColors();
   InitializeCommands();
   InitializeCursors();
   InitializeDesktops();
#ifndef DISABLE_CONFIRM
   InitializeDialogs();
#endif
   InitializeDock();
   InitializeFonts();
   InitializeGroups();
   InitializeHints();
   InitializeIcons();
   InitializeKeys();
   InitializePager();
   InitializePlacement();
   InitializePopup();
   InitializeRootMenu();
   InitializeScreens();
   InitializeSettings();
   InitializeSwallow();
   InitializeTaskBar();
   InitializeTray();
   InitializeTrayButtons();
}
Пример #2
0
LRESULT CDocProfileTab::OnInitDialog(UINT , WPARAM , LPARAM , BOOL& )
{
	HWND hDlgItem = GetDlgItem(IDC_PROFTEXT);
	
	CStdString sMessageText(_T("The "));
	sMessageText += _T(DOCPROV_DESCRIPTION);
	sMessageText += _T(" integration allows users to add documents to an Interwoven Database either by manually filling out a document profile, or by choosing the auotprofile option below.\n\n Setting this option will allow the document to be saved using default values.");
	sMessageText += _T("To choose which of these options you wish to use please click on one of the buttons below and then click Apply.");

	::SetWindowText(hDlgItem, sMessageText.c_str()) ;

	ATLControls::CButton rbAutoProf(GetDlgItem(IDC_AUTOPROF));
	ATLControls::CButton rbUserProf(GetDlgItem(IDC_USERPROF));
	ATLControls::CButton rbCustomClass(GetDlgItem(IDC_CHECK_CLASS));

	InitializeSettings() ;	
	rbAutoProf.SetCheck(m_bAutoProfile) ;
	rbUserProf.SetCheck(!m_bAutoProfile) ;

	CDocumentProfiler profiler( NULL );
	m_bUseCustomCollabClass = profiler.UseCustomClassName();

	rbCustomClass.SetCheck( m_bUseCustomCollabClass );
	::EnableWindow( GetDlgItem( IDC_EDIT_CLASS ), m_bUseCustomCollabClass );

	CStdString sCustomClass = profiler.GetCustomClassName();
	::SetWindowText( GetDlgItem( IDC_EDIT_CLASS ), sCustomClass.empty() ? _T("COMPARE") : sCustomClass );

	if(FeatureGuard::IsWorkshareCompareInstall())
	{
		::SetWindowPos(GetDlgItem(IDC_EDIT_CLASS),NULL,0,0,0,0,SWP_HIDEWINDOW|SWP_NOMOVE);
		::SetWindowPos(GetDlgItem(IDC_CHECK_CLASS),NULL,0,0,0,0,SWP_HIDEWINDOW|SWP_NOMOVE);
	}
	return 1;  // Let the system set the focus
}
// ---------------------------------------------------------------------------
// CheckForBootCompletion
// Check boot is completed... if its then do initilization of settings
// ---------------------------------------------------------------------------
//
void COMASuplIMSIObserver::CheckForBootCompletionL()
	{
        User::LeaveIfError( iStartupObserver.Attach( KPSUidStartup, 
                                        KPSGlobalSystemState, EOwnerThread ) );

        TInt bootCompleteStatus = 0;
        User::LeaveIfError( iStartupObserver.Get( bootCompleteStatus ) );
        TBuf<64> buff;
        buff.Copy(_L("CheckForBootCompletionL :  "));
        buff.AppendNum(bootCompleteStatus);
        Trace(buff, KImsiObserver, __LINE__ );
          
        if(! ((bootCompleteStatus == ESwStateNormalRfOn ) ||
            (bootCompleteStatus == ESwStateNormalRfOff ) ||
            (bootCompleteStatus == ESwStateNormalBTSap ) )
          )
            {
            iStartupObserver.Subscribe( iStatus );
            iState = COMASuplSmsListenerBase::ESubscriptionActive;
            SetActive();
            }
        else
            {
            InitializeSettings();
            }
	}
// ---------------------------------------------------------------------------
// Request completion event handler
// ---------------------------------------------------------------------------
//
void COMASuplIMSIObserver::RunL()
    {
    if ( KErrNone != iStatus.Int() )
        {
        Trace( _L( "COMASuplIMSIObserver::RunL() - Unknown Error " ), 
                                        KImsiObserver, __LINE__ );
            
        iState = COMASuplSmsListenerBase::EComplete;
        }
        
    switch( iState )
        {
        case COMASuplSmsListenerBase::ESubscriptionActive:
            InitializeSettings();
            break;
        
        case COMASuplSmsListenerBase::ESettingsInitialized:
            iState = COMASuplSmsListenerBase::EComplete;
            TRAPD( err, HandleIMSIChangeL() );
            if ( KErrNone != err )
                {
                Trace( _L( "COMASuplIMSIObserver::RunL - Error Processing IMSI Change" ), 
                            KImsiObserver, __LINE__ );
                }
            break;
            
        default:
            break;
        }
    }
Пример #5
0
ServerScreenNoGUI::ServerScreenNoGUI(GameConsoleWindow* tempConsole)
	: ScreenBase(),
	SettingsDependent(),
	console(tempConsole)
{
	//Load server settings amongst other things
	InitializeSettings(this);
}
Пример #6
0
// ////////////////////
// Constructor
// ////////////////////
tRadarClientSettings::tRadarClientSettings(
        int instance,
        tRadarClientType clientType,
        tISettingsWriterFactory& factory,
        const tConfig& config)
    : m_xSettings()
    , m_Instance(instance)
    , m_ClientType(clientType)
    , m_RadarOrientationMode()
    , m_RadarPositionMode()
    , m_RadarPPIOffset()
    , m_RadarColorScheme()
    , m_RadarNightColorScheme()
    , m_TargetTrailsValue()
    , m_EchoAveragingValue()
    , m_RadarMotionMode()
    , m_RadarThresholdPercent()
    , m_RadarChartThresholdPercent()
    , m_TransparencyLevel()
    , m_RadarOverlayPalette()
    , m_PreferredRadar()
    , m_MultiRadar(config.multiRadar)
    , m_NightMode(config.nightMode)
    , m_Defaults(config.defaults)
{
    // set up the settingsWriter with the correct title
    QString settingsString;
    if(clientType == RADAR_CLIENT_TYPE_CHART)
    {
        settingsString = QString( "RadarClientChart2D_%1" ).arg(instance);
    }
    else if(clientType == RADAR_CLIENT_TYPE_RADAR)
    {
        settingsString = QString( "RadarClientRadar_%1" ).arg(instance);
    }
    else
    {
        Assert(false);
        ErrorPrintf("tRadarClientSettings::tRadarClientSettings() - unknown client type");
    }
    m_xSettings.reset(factory.Create( settingsString ));

    InitializeSettings();
}