1.7.0c
This commit is contained in:
parent
e23b0266e4
commit
effaaea8f6
|
@ -2283,8 +2283,8 @@ __declspec(dllimport) NTSTATUS RtlGetGroupSecurityDescriptor(
|
||||||
PSID* Group, PBOOLEAN GroupDefaulted
|
PSID* Group, PBOOLEAN GroupDefaulted
|
||||||
);
|
);
|
||||||
|
|
||||||
__declspec(dllimport) BOOLEAN RtlEqualSid(PSID Sid1, PSID Sid2);
|
__declspec(dllimport) BOOLEAN NTAPI RtlEqualSid(PSID Sid1, PSID Sid2);
|
||||||
__declspec(dllimport) PVOID RtlFreeSid(PSID Sid);
|
__declspec(dllimport) PVOID NTAPI RtlFreeSid(PSID Sid);
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -261,8 +261,8 @@ QList<QVariant> CSbieModel::Sync(const QMap<QString, CSandBoxPtr>& BoxList, cons
|
||||||
else {
|
else {
|
||||||
pNode->busyState = 0;
|
pNode->busyState = 0;
|
||||||
|
|
||||||
if(boxDel && !bVintage)
|
if (boxDel && !bVintage)
|
||||||
Icon = theGUI->MakeIconRecycle(Icon);
|
Icon = theGUI->IconAddOverlay(Icon, ":/Boxes/AutoDel");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_LargeIcons) // but not for boxes
|
if (m_LargeIcons) // but not for boxes
|
||||||
|
@ -383,9 +383,16 @@ bool CSbieModel::Sync(const CSandBoxPtr& pBox, const QList<QVariant>& Path, cons
|
||||||
//else
|
//else
|
||||||
// pNode->Icon = icons.first().pixmap;
|
// pNode->Icon = icons.first().pixmap;
|
||||||
|
|
||||||
pNode->Icon = m_IconProvider.icon(QFileInfo(pProcess->GetFileName()));
|
QIcon Icon = m_IconProvider.icon(QFileInfo(pProcess->GetFileName()));
|
||||||
if (pNode->Icon.isNull() || !pNode->Icon.isValid())
|
if (Icon.isNull())
|
||||||
pNode->Icon = m_ExeIcon;
|
Icon = m_ExeIcon;
|
||||||
|
|
||||||
|
if(pProcess->HasSystemToken())
|
||||||
|
Icon = theGUI->IconAddOverlay(Icon, ":/Actions/SystemShield.png", 20);
|
||||||
|
else if(pProcess->HasElevatedToken())
|
||||||
|
Icon = theGUI->IconAddOverlay(Icon, ":/Actions/AdminShield.png", 20);
|
||||||
|
|
||||||
|
pNode->Icon = Icon;
|
||||||
Changed = 1;
|
Changed = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
|
@ -136,6 +136,9 @@
|
||||||
<file>Actions/BFance.png</file>
|
<file>Actions/BFance.png</file>
|
||||||
<file>Actions/Shield16.png</file>
|
<file>Actions/Shield16.png</file>
|
||||||
<file>Actions/Editor.png</file>
|
<file>Actions/Editor.png</file>
|
||||||
|
<file>Actions/USB.png</file>
|
||||||
|
<file>Actions/SystemShield.png</file>
|
||||||
|
<file>Actions/AdminShield.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/Boxes">
|
<qresource prefix="/Boxes">
|
||||||
<file alias="Empty3">Boxes/sandbox-b-empty.png</file>
|
<file alias="Empty3">Boxes/sandbox-b-empty.png</file>
|
||||||
|
|
|
@ -1201,11 +1201,9 @@ QIcon CSandMan::MakeIconBusy(const QIcon& Icon, int Index)
|
||||||
return QIcon(result);
|
return QIcon(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
QIcon CSandMan::MakeIconRecycle(const QIcon& Icon)
|
QIcon CSandMan::IconAddOverlay(const QIcon& Icon, const QString& Name, int Size)
|
||||||
{
|
{
|
||||||
static QPixmap overlay;
|
QPixmap overlay = QPixmap(Name).scaled(Size, Size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
|
||||||
if(overlay.isNull())
|
|
||||||
overlay = QPixmap(":/Boxes/AutoDel");
|
|
||||||
|
|
||||||
QPixmap base = Icon.pixmap(32, 32);
|
QPixmap base = Icon.pixmap(32, 32);
|
||||||
QPixmap result(base.width(), base.height());
|
QPixmap result(base.width(), base.height());
|
||||||
|
@ -1213,7 +1211,7 @@ QIcon CSandMan::MakeIconRecycle(const QIcon& Icon)
|
||||||
QPainter painter(&result);
|
QPainter painter(&result);
|
||||||
painter.drawPixmap(0, 0, base);
|
painter.drawPixmap(0, 0, base);
|
||||||
|
|
||||||
painter.drawPixmap(8, 8, overlay);
|
painter.drawPixmap(32 - Size, 32 - Size, overlay);
|
||||||
return QIcon(result);
|
return QIcon(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ public:
|
||||||
QRgb GetBoxColor(int boxType) { return m_BoxColors[boxType]; }
|
QRgb GetBoxColor(int boxType) { return m_BoxColors[boxType]; }
|
||||||
QIcon GetColorIcon(QColor boxColor, bool inUse = false/*, bool bOut = false*/);
|
QIcon GetColorIcon(QColor boxColor, bool inUse = false/*, bool bOut = false*/);
|
||||||
QIcon MakeIconBusy(const QIcon& Icon, int Index = 0);
|
QIcon MakeIconBusy(const QIcon& Icon, int Index = 0);
|
||||||
QIcon MakeIconRecycle(const QIcon& Icon);
|
QIcon IconAddOverlay(const QIcon& Icon, const QString& Name, int Size = 24);
|
||||||
QString GetBoxDescription(int boxType);
|
QString GetBoxDescription(int boxType);
|
||||||
|
|
||||||
bool CheckCertificate(QWidget* pWidget);
|
bool CheckCertificate(QWidget* pWidget);
|
||||||
|
|
Loading…
Reference in New Issue