Subversion Repositories tpanel

Rev

Rev 458 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 458 Rev 462
Line 801... Line 801...
801
    TConfig::savePanelType(mTSettings->getPanelType());
801
    TConfig::savePanelType(mTSettings->getPanelType());
802
 
802
 
803
    readMap();  // Start the initialisation of the AMX part.
803
    readMap();  // Start the initialisation of the AMX part.
804
 
804
 
805
    gPrjResources = new TPrjResources(mTSettings->getResourcesList());
805
    gPrjResources = new TPrjResources(mTSettings->getResourcesList());
806
    mPalette = new TPalette();
806
    mPalette = new TPalette(mTSettings->isTP5());
807
    vector<PALETTE_SETUP> pal = mTSettings->getSettings().palettes;
807
    vector<PALETTE_SETUP> pal = mTSettings->getSettings().palettes;
808
 
808
 
809
    if (pal.size() > 0)
809
    if (pal.size() > 0)
810
    {
810
    {
811
        vector<PALETTE_SETUP>::iterator iterPal;
811
        vector<PALETTE_SETUP>::iterator iterPal;
Line 815... Line 815...
815
    }
815
    }
816
 
816
 
817
    if (!TError::isError())
817
    if (!TError::isError())
818
        TColor::setPalette(mPalette);
818
        TColor::setPalette(mPalette);
819
 
819
 
820
    mFonts = new TFont();
820
    mFonts = new TFont(mTSettings->getFontFileName(), mTSettings->isTP5());
821
 
821
 
822
    if (TError::isError())
822
    if (TError::isError())
823
    {
823
    {
824
        MSG_ERROR("Initializing fonts was not successfull!");
824
        MSG_ERROR("Initializing fonts was not successfull!");
825
    }
825
    }
826
 
826
 
827
    gIcons = new TIcons();
-
 
828
 
-
 
829
    if (TError::isError())
827
    if (!mTSettings->isTP5())
830
    {
828
    {
-
 
829
        gIcons = new TIcons();
-
 
830
 
-
 
831
        if (TError::isError())
-
 
832
        {
831
        MSG_ERROR("Initializing icons was not successfull!");
833
            MSG_ERROR("Initializing icons was not successfull!");
-
 
834
        }
832
    }
835
    }
833
 
836
 
834
    mPageList = new TPageList();
837
    mPageList = new TPageList();
835
    mExternal = new TExternal();
838
    mExternal = new TExternal();
836
    PAGELIST_T page;
839
    PAGELIST_T page;
Line 1256... Line 1259...
1256
        TColor::setPalette(mPalette);
1259
        TColor::setPalette(mPalette);
1257
 
1260
 
1258
    if (mFonts)
1261
    if (mFonts)
1259
        delete mFonts;
1262
        delete mFonts;
1260
 
1263
 
1261
    mFonts = new TFont();
1264
    mFonts = new TFont(mTSettings->getFontFileName(), mTSettings->isTP5());
1262
 
1265
 
1263
    if (TError::isError())
1266
    if (TError::isError())
1264
    {
1267
    {
1265
        MSG_ERROR("Initializing fonts was not successfull!");
1268
        MSG_ERROR("Initializing fonts was not successfull!");
1266
        surface_mutex.unlock();
1269
        surface_mutex.unlock();