Changeset 72

Show
Ignore:
Timestamp:
10/16/07 18:47:17 (4 years ago)
Author:
uncle_fungus
Message:

Fixed finder as filemanager, closed #11

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/mactest/src/clientDialog.cpp

    r71 r72  
    7171        locationSizer->Add(new wxButton(this, BTN_BROWSE, wxT("..."), wxDefaultPosition, wxSize(26, 26)), 0, wxALIGN_CENTER_VERTICAL); 
    7272        #else 
    73         locationSizer->Add(new wxButton(this, BTN_BROWSE, _("Choose"), wxDefaultPosition), 0, wxALIGN_CENTER_VERTICAL); 
     73        locationSizer->Add(new wxButton(this, BTN_BROWSE, _("Choose")), 0, wxALIGN_CENTER_VERTICAL); 
    7474        #endif 
    7575 
     
    104104        SetSizer(topLevelSizer); 
    105105        topLevelSizer->Fit(this); 
     106         
    106107} 
    107108 
  • branches/mactest/src/include/mainDialog.h

    r51 r72  
    9393#define PREF_TOOLS_FILEMANAGER_DV wxT("konqueror --profile filemanagement"); 
    9494#elif __WXMAC__ 
    95 #define PREF_TOOLS_FILEMANAGER_DV wxT("finder.app"); 
     95#define PREF_TOOLS_FILEMANAGER_DV wxT("open"); 
    9696#endif 
    9797 
  • branches/mactest/src/preferencesDialog.cpp

    r71 r72  
    816816                mSystemFileManager->Select(4); 
    817817        } 
     818        #elif __WXMAC__ 
     819        if(filemanager == wxT("open")) 
     820        { 
     821                mSystemFileManager->Select(0); 
     822        } 
     823        else // other filemanager 
     824        { 
     825                mSystemFileManager->Select(1); 
     826        } 
    818827        #endif 
    819828 
     
    11791188                                        break; 
    11801189                        } 
    1181  
     1190                        #elif __WXMAC__ 
     1191                        switch(mSystemFileManager->GetSelection()) 
     1192                        { 
     1193                        // --- 
     1194                                case 0: //Finder 
     1195                                        mSystemOtherFM->SetValue(wxT("open")); 
     1196                                        break; 
     1197                                 
     1198                                case 1: //Other 
     1199                                        mSystemOtherFM->SetValue(wxT("")); 
     1200                                        break; 
     1201                                         
     1202                                default: 
     1203                                        break; 
     1204                        } 
    11821205                        #endif 
    11831206                        break;