diff --git a/bazaar/SysInfo/SysInfo.cpp b/bazaar/SysInfo/SysInfo.cpp index 95e772f35..9d8f542ae 100644 --- a/bazaar/SysInfo/SysInfo.cpp +++ b/bazaar/SysInfo/SysInfo.cpp @@ -684,6 +684,8 @@ Array GetAdapterInfo() { } */ +#ifndef PLATFORM_OSX + Array GetAdapterInfo() { Array res; @@ -819,7 +821,7 @@ Array GetAdapterInfo() { } return res; } - +#endif // Not implemented yet in Linux String GetHDSerial() { @@ -1589,6 +1591,7 @@ bool GetDriveSpace(String drive, return true; } +#ifndef PLATFORM_OSX // return true if mounted bool GetDriveInformation(String drive, String &type, String &volume, /*uint64 &serial, */int &maxName, String &fileSystem) { @@ -1625,6 +1628,7 @@ bool GetDriveInformation(String drive, String &type, String &volume, /*uint64 &s return true; } +#endif #endif @@ -1688,7 +1692,7 @@ bool Shutdown(String action) { } #endif -#ifdef PLATFORM_POSIX +#ifdef PLATFORM_LINUX bool Shutdown(String action) { if (action == "logoff") { kill(1, SIGTSTP); @@ -1992,7 +1996,9 @@ void SystemSignature::Load() { GetSystemInfo(manufacturer, productName, version, numberOfProcessors, mbSerial); hdSerial = GetHDSerial(); userName = GetUserName(); +#ifndef PLATFORM_OSX netAdapters = GetAdapterInfo(); +#endif } diff --git a/bazaar/SysInfo/SysInfo_in.h b/bazaar/SysInfo/SysInfo_in.h index 04243956c..43d6db826 100644 --- a/bazaar/SysInfo/SysInfo_in.h +++ b/bazaar/SysInfo/SysInfo_in.h @@ -34,7 +34,9 @@ #include #include #include - #include +#ifndef PLATFORM_OSX + #include +#endif #include #include #include diff --git a/uppbox/FontMaps/main.cpp b/uppbox/FontMaps/main.cpp index 7f594f6c1..b2ac39227 100644 --- a/uppbox/FontMaps/main.cpp +++ b/uppbox/FontMaps/main.cpp @@ -14,20 +14,23 @@ GUI_APP_MAIN Font fnt; fnt.FaceName(f); dword l = 0; + int n = 0; for(int ch = 32; ch < 4096; ch++) { if(GetGlyphInfo(fnt, ch).IsNormal()) { l |= (0x80000000 >> (ch / 128)); - ch = (ch + 127) & ~127; + // ch = (ch + 127) & ~127; + n++; } } dword h = 0; for(int ch = 32; ch < 65536; ch++) { if(GetGlyphInfo(fnt, ch).IsNormal()) { h |= (0x80000000 >> (ch / 2048)); - ch = (ch + 2047) & ~2047; + // ch = (ch + 2047) & ~2047; + n++; } } - LOG("{ " << AsCString(f) << ", 0x" << FormatIntHex(l) << ", 0x" << FormatIntHex(h) << " },"); + LOG("{ " << AsCString(f) << ", 0x" << FormatIntHex(l) << ", 0x" << FormatIntHex(h) << " }, // " << n); } PromptOK("OK"); } diff --git a/uppsrc/CtrlCore/cocotodo.txt b/uppsrc/CtrlCore/cocotodo.txt index 0a9792795..89877c1f4 100644 --- a/uppsrc/CtrlCore/cocotodo.txt +++ b/uppsrc/CtrlCore/cocotodo.txt @@ -1,5 +1,7 @@ sooner: +- cursor problem after local menu invocation + - support bundle icons - correctly reload plist diff --git a/uppsrc/CtrlLib/Bar.h b/uppsrc/CtrlLib/Bar.h index a9cf46e36..864e27f03 100644 --- a/uppsrc/CtrlLib/Bar.h +++ b/uppsrc/CtrlLib/Bar.h @@ -77,6 +77,8 @@ protected: virtual void AddCtrl(Ctrl *ctrl, Size sz) = 0; class ScanKeys; + + friend class MenuBar; public: virtual bool IsEmpty() const = 0; @@ -296,9 +298,10 @@ public: virtual bool IsMenuBar() const { return true; } protected: - virtual Item& AddItem(Event<> cb); + virtual Item& AddItem(Event<> cb); virtual Item& AddSubMenu(Event proc); virtual Value GetBackground() const; + virtual bool IsEmpty() const; public: struct Style : ChStyle