Home
last modified time | relevance | path

Searched refs:UIUtil (Results 1 – 25 of 116) sorted by relevance

12345

/dports/security/keepass/KeePass-2.49-Source/KeePass/Forms/
H A DDataEditorForm.cs159 UIUtil.SetCueBanner(m_tbFind, strSearchTr); in OnFormLoad()
278 if(bFocusText) UIUtil.SetFocus(m_rtbText, this); in UpdateUIState()
377 UIUtil.RtfToggleSelectionFormat(m_rtbText, fs); in ToggleSelectionFormat()
522 UIUtil.RtfSetFontSize(m_rtbText, fSize); in OnFontSizeComboSelectedIndexChanged()
536 UIUtil.SetHandled(e, true); in OnFontComboKeyDown()
545 UIUtil.SetHandled(e, true); in OnFontSizeComboKeyDown()
582 FontDialog dlg = UIUtil.CreateFontDialog(true); in OnViewFont()
642 UIUtil.DestroyForm(dlg); in ConvertAttachment()
663 UIUtil.SetHandled(e, true); in OnTextFindKeyDown()
671 UIUtil.SetHandled(e, true); in OnTextFindKeyUp()
[all …]
H A DEcasTriggerForm.cs92 UIUtil.AccSetName(m_btnEventMoveUp, KPRes.MoveUp); in OnFormLoad()
101 UIUtil.SetFocus(m_tbName, this); in OnFormLoad()
179 UIUtil.GetSelectedItemTags(m_lvEvents) : null); in UpdateEventListEx()
200 UIUtil.Scroll(m_lvEvents, s, true); in UpdateEventListEx()
228 UIUtil.Scroll(m_lvConditions, s, true); in UpdateConditionListEx()
235 UIUtil.GetSelectedItemTags(m_lvActions) : null); in UpdateActionListEx()
256 UIUtil.Scroll(m_lvActions, s, true); in UpdateActionListEx()
363 UIUtil.MoveSelectedItemsInternalOne(m_lvEvents, in OnBtnEventMoveUp()
370 UIUtil.MoveSelectedItemsInternalOne(m_lvEvents, in OnBtnEventMoveDown()
391 UIUtil.MoveSelectedItemsInternalOne(m_lvActions, in OnBtnActionMoveUp()
[all …]
H A DGroupForm.cs108 UIUtil.ConfigureToolTip(m_ttRect); in OnFormLoad()
112 UIUtil.AccSetName(m_dtExpires, m_cbExpires); in OnFormLoad()
121 UIUtil.SetButtonImage(m_btnIcon, DpiUtil.GetIcon( in OnFormLoad()
127 UIUtil.SetMultilineText(m_tbNotes, m_pwGroup.Notes); in OnFormLoad()
169 UIUtil.SetButtonImage(m_btnAutoTypeEdit, in OnFormLoad()
173 UIUtil.StrDictListInit(m_lvCustomData); in OnFormLoad()
190 UIUtil.SetFocus(m_tbName, this); in OnFormLoad()
257 UIUtil.SetButtonImage(m_btnIcon, DpiUtil.GetIcon( in OnBtnIcon()
264 UIUtil.DestroyForm(ipf); in OnBtnIcon()
285 UIUtil.DestroyForm(dlg); in OnBtnAutoTypeEdit()
[all …]
H A DPwEntryForm.cs480 UIUtil.SetChecked(m_cbCustomForegroundColor, !UIUtil.ColorsEqual( in InitPropertiesTab()
482 UIUtil.SetChecked(m_cbCustomBackgroundColor, !UIUtil.ColorsEqual( in InitPropertiesTab()
504 UIUtil.SetHandled(e, true); in InitPropertiesTab()
513 UIUtil.SetHandled(e, true); in InitPropertiesTab()
701 UIUtil.Scroll(m_lvHistory, s, true); in UpdateHistoryList()
736 UIUtil.ConfigureToolTip(m_ttRect); in OnFormLoad()
912 UIUtil.SetFocus(m_tbTitle, this); in OnFormLoad()
1346 UIUtil.ShowDialogAndDestroy(pwf); in OnBtnHistoryView()
1662 UIUtil.DestroyForm(ipf); in OnBtnPickIcon()
1807 UIUtil.DestroyForm(pgf); in OnPwGenOpen()
[all …]
H A DAutoTypeCtxForm.cs60 m_ilIcons = UIUtil.CloneImageList(ilIcons, true); in InitEx()
83 m_strInitialFormRect = UIUtil.SetWindowScreenRectEx(this, in OnFormLoad()
86 UIUtil.SetExplorerTheme(m_lvItems, true); in OnFormLoad()
96 if(strColWidths.Length > 0) UIUtil.SetColumnWidths(m_lvItems, strColWidths); in OnFormLoad()
97 m_strInitialColWidths = UIUtil.GetColumnWidths(m_lvItems); in OnFormLoad()
102 UIUtil.SetFocus(m_lvItems, this, true); in OnFormLoad()
112 UIUtil.CreateEntryList(m_lvItems, m_lCtxs, (AceAutoTypeCtxFlags)lFlags, in RecreateEntryList()
124 string strColWidths = UIUtil.GetColumnWidths(m_lvItems); in CleanUpEx()
128 string strRect = UIUtil.GetWindowScreenRect(this); in CleanUpEx()
220 UIUtil.SetChecked(tsmi, true); in RecreateToolsContextMenu()
[all …]
H A DKeyCreationForm.cs108 UIUtil.ConfigureToolTip(m_ttRect); in OnFormLoad()
113 UIUtil.AccSetName(m_tbPassword, m_cbPassword); in OnFormLoad()
114 UIUtil.AccSetName(m_cmbKeyFile, m_cbKeyFile); in OnFormLoad()
115 UIUtil.AccSetName(m_picKeyFileWarning, KPRes.Warning); in OnFormLoad()
116 UIUtil.AccSetName(m_picAccWarning, KPRes.Warning); in OnFormLoad()
133 UIUtil.ApplyKeyUIFlags(Program.Config.UI.KeyCreationFlags, in OnFormLoad()
138 UIUtil.SetChecked(m_cbUserAccount, false); in OnFormLoad()
139 UIUtil.SetEnabled(m_cbUserAccount, false); in OnFormLoad()
140 UIUtil.SetEnabled(m_lblWindowsAccDesc, false); in OnFormLoad()
141 UIUtil.SetEnabled(m_lblWindowsAccDesc2, false); in OnFormLoad()
[all …]
H A DKeyPromptForm.cs138 UIUtil.ConfigureToolTip(m_ttRect); in OnFormLoad()
141 UIUtil.AccSetName(m_tbPassword, m_cbPassword); in OnFormLoad()
142 UIUtil.AccSetName(m_cmbKeyFile, m_cbKeyFile); in OnFormLoad()
405 UIUtil.SetEnabled(m_btnOK, false); in EnableUserControls()
406 else UIUtil.SetEnabled(m_btnOK, true); in EnableUserControls()
415 UIUtil.SetChecked(m_cbPassword, false); in EnableUserControls()
416 UIUtil.SetChecked(m_cbUserAccount, false); in EnableUserControls()
499 UIUtil.DestroyForm(dlg); in OnClickKeyFileBrowse()
515 UIUtil.SetChecked(m_cbKeyFile, true); in OnClickKeyFileBrowse()
535 UIUtil.SetChecked(m_cbKeyFile, true); in OnKeyFileSelectedIndexChanged()
[all …]
H A DExchangeDataForm.cs116 UIUtil.ConfigureToolTip(m_ttRect); in OnFormLoad()
117 UIUtil.SetToolTip(m_ttRect, m_btnSelFile, StrUtil.TrimDots( in OnFormLoad()
122 int w = m_lvFormats.ClientSize.Width - UIUtil.GetVScrollBarWidth(); in OnFormLoad()
168 m_ilFormats = UIUtil.BuildImageListUnscaled(lImages, in OnFormLoad()
175 UIUtil.SetText(m_lblFiles, KPRes.File + ":"); in OnFormLoad()
176 UIUtil.SetButtonImage(m_btnSelFile, in OnFormLoad()
185 UIUtil.SetButtonImage(m_btnSelFile, in OnFormLoad()
244 string strPriExt = UIUtil.GetPrimaryFileTypeExt(strExts); in OnBtnSelFile()
251 OpenFileDialogEx ofd = UIUtil.CreateOpenFileDialog(KPRes.Import + in OnBtnSelFile()
277 SaveFileDialogEx sfd = UIUtil.CreateSaveFileDialog(KPRes.Export + in OnBtnSelFile()
[all …]
H A DEcasTriggersForm.cs87 int nWidth = (m_lvTriggers.ClientSize.Width - UIUtil.GetVScrollBarWidth() - 1); in OnFormLoad()
101 UIUtil.AccSetName(m_btnMoveUp, KPRes.MoveUp); in OnFormLoad()
102 UIUtil.AccSetName(m_btnMoveDown, KPRes.MoveDown); in OnFormLoad()
150 UIUtil.GetSelectedItemTags(m_lvTriggers) : null); in UpdateTriggerListEx()
151 UIScrollInfo s = UIUtil.GetScrollInfo(m_lvTriggers, true); in UpdateTriggerListEx()
163 if(vSelected != null) UIUtil.SelectItems(m_lvTriggers, vSelected); in UpdateTriggerListEx()
164 UIUtil.Scroll(m_lvTriggers, s, true); in UpdateTriggerListEx()
175 if(UIUtil.ShowDialogAndDestroy(f) == DialogResult.OK) in OnBtnAdd()
189 if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK) in OnBtnEdit()
195 UIUtil.DeleteSelectedItems(m_lvTriggers, m_triggers.TriggerCollection); in OnBtnDelete()
[all …]
H A DMainForm.cs111 UIUtil.Initialize(false); in MainForm()
607 UIUtil.DestroyForm(kcf); in OnFileNew()
615 UIUtil.DestroyForm(kcf); in OnFileNew()
626 UIUtil.DestroyForm(dsf); in OnFileNew()
629 UIUtil.DestroyForm(dsf); in OnFileNew()
1307 UIUtil.Initialize(true); in OnToolsOptions()
1322 UIUtil.DestroyForm(ofDlg); in OnToolsOptions()
1768 UIUtil.DestroyForm(ipf); in OnEntryMassSetIcon()
1932 UIUtil.DestroyForm(pgf); in OnToolsPwGenerator()
2099 UIUtil.DestroyForm(form); in OnToolsDbMaintenance()
[all …]
H A DMainForm_Functions.cs2083 UIUtil.DestroyForm(dlg); in CompleteConnectionInfo()
2250 UIUtil.DestroyForm(dlg); in OpenDatabase()
3333 UIUtil.DestroyForm(iocf); in SaveDatabaseAs()
3532 UIUtil.SetFocus(c, this); in ResetDefaultFocus()
4511 UIUtil.SetHandled(e, true); in HandleMoveKeyMessage()
4541 UIUtil.DoEventsByTime(true); in UIBlockInteraction()
5046 UIUtil.DestroyForm(kcf); in ChangeMasterKey()
5330 UIUtil.DestroyForm(dlg); in EditSelectedEntry()
5424 UIUtil.DestroyForm(sf); in PerformSearchDialog()
5672 UIUtil.DestroyForm(dlg); in OnAddEntryTag()
[all …]
H A DUrlOverridesForm.cs73 UIUtil.SetExplorerTheme(m_lvOverrides, false); in OnFormLoad()
75 int nWidth = m_lvOverrides.ClientSize.Width - UIUtil.GetVScrollBarWidth(); in OnFormLoad()
87 UIUtil.AccSetName(m_tbOverrideAll, m_cbOverrideAll); in OnFormLoad()
99 UIScrollInfo s = (bRestoreView ? UIUtil.GetScrollInfo( in UpdateOverridesList()
128 if(bRestoreView) UIUtil.Scroll(m_lvOverrides, s, false); in UpdateOverridesList()
181 if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK) in OnBtnAdd()
200 if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK) in OnBtnEdit()
H A DIconPickerForm.cs92 UIUtil.SetExplorerTheme(m_lvIcons, false); in OnFormLoad()
93 UIUtil.SetExplorerTheme(m_lvCustomIcons, false); in OnFormLoad()
110 UIUtil.SetFocusedItem(m_lvIcons, m_lvIcons.Items[ in OnFormLoad()
120 UIUtil.SetFocus(m_lvCustomIcons, this); in OnFormLoad()
125 UIUtil.SetFocus(m_lvIcons, this); in OnFormLoad()
146 UIUtil.SetEnabledFast((cCustom != 0), m_lblFind, m_tbFind); in EnableControlsEx()
168 UIUtil.SetFocusedItem(m_lvCustomIcons, lvi, true); in SelectCustomIcon()
244 ImageList ilCustom = UIUtil.BuildImageList(m_pd.CustomIcons, in RecreateCustomIconList()
409 UIUtil.SetFocus(m_lvCustomIcons, this); in OnBtnCustomAdd()
593 UIUtil.DeselectAllItems(m_lvCustomIcons); in ProcessCmdKey()
[all …]
H A DOptionsForm.cs223 UIUtil.ConfigureToolTip(m_ttRect); in OnFormLoad()
235 UIUtil.SetShield(m_btnFileExtCreate, true); in OnFormLoad()
236 UIUtil.SetShield(m_btnFileExtRemove, true); in OnFormLoad()
254 UIUtil.SetExplorerTheme(m_lvPolicy, false); in OnFormLoad()
256 UIUtil.SetExplorerTheme(m_lvAdvanced, false); in OnFormLoad()
556 UIUtil.ResizeColumns(m_lvGuiOptions, true); in LoadGuiOptions()
724 UIUtil.ResizeColumns(m_lvAdvanced, true); in LoadAdvancedOptions()
1020 UIUtil.DestroyForm(dlg); in OnBtnUrlOverrides()
1036 UIUtil.ShowDialogAndDestroy(dlg); in OnBtnProxy()
1060 Color? clr = UIUtil.ShowColorDialog(clrCur); in OnBtnCustomAltColor()
[all …]
H A DKeyFileCreationForm.cs135 UIUtil.SetEnabledFast(bCreate, m_lblNewFormat, m_cmbNewFormat, in UpdateUIState()
138 UIUtil.SetEnabledFast(bRecreate, m_lblRecFormat, m_cmbRecFormat, in UpdateUIState()
140 UIUtil.SetEnabledFast(bRecreate && (kfiRec.Version == 0x0002000000000000), in UpdateUIState()
143 UIUtil.SetEnabledFast(bCreate || (bRecreate && in UpdateUIState()
179 SaveFileDialogEx sfd = UIUtil.CreateSaveFileDialog(KPRes.KeyFileCreateTitle, in GetKeyFilePath()
194 UIUtil.DestroyForm(dlg); in CreateKeyFile()
H A DDatabaseSettingsForm.cs109 UIUtil.ConfigureToolTip(m_ttRect); in OnFormLoad()
112 UIUtil.AccSetName(m_btnColor, KPRes.SelectColor); in OnFormLoad()
115 UIUtil.AccSetName(m_numKeyRecDays, m_cbKeyRec); in OnFormLoad()
116 UIUtil.AccSetName(m_numKeyForceDays, m_cbKeyForce); in OnFormLoad()
129 bool bClr = !UIUtil.ColorsEqual(m_clr, Color.Empty); in OnFormLoad()
133 UIUtil.OverwriteButtonImage(m_btnColor, ref m_imgColor, in OnFormLoad()
134 UIUtil.CreateColorBitmap24(m_btnColor, m_clr)); in OnFormLoad()
191 UIUtil.SetFocus(m_tbDbName, this); in OnFormLoad()
478 UIUtil.DisposeButtonImage(m_btnColor, ref m_imgColor); in OnFormClosed()
513 UIUtil.OverwriteButtonImage(m_btnColor, ref m_imgColor, in HandleColorButtonClicked()
[all …]
/dports/security/keepass/KeePass-2.49-Source/KeePass/App/
H A DAppIcons.cs45 private static readonly Color g_clrMain = UIUtil.ColorFromHsv(225, 1, 1);
57 l.Add(UIUtil.ColorFromHsv((h + 225) % 360, 1, 1));
66 Debug.Assert(UIUtil.ColorsEqual(RoundColor(clr), clr));
86 Size szDefault = UIUtil.GetIconSize(); in Get()
92 if(!UIUtil.ColorsEqual(c, Color.Empty)) c = RoundColor(c); in Get()
112 Debug.Assert(UIUtil.ColorsEqual(c, Color.Empty)); in Get()
117 if((ico != null) && !UIUtil.ColorsEqual(c, Color.Empty)) in Get()
141 Debug.Assert(!UIUtil.ColorsEqual(clr, Color.Empty)); in RoundColor()
/dports/security/keepass/KeePass-2.49-Source/KeePass/UI/ToolStripRendering/
H A DKeePassTsr.cs63 return (!UIUtil.IsHighContrast && !bMono); in IsSupported()
81 return UIUtil.LightenColor(clr, m_dblLight); in StartGradient()
86 return UIUtil.DarkenColor(clr, m_dblDark); in EndGradient()
162 clrStart = UIUtil.ColorTowardsGrayscale(clrStart, clrBase, 0.5); in OnRenderMenuItemBackground()
163 clrEnd = UIUtil.ColorTowardsGrayscale(clrEnd, clrBase, 0.2); in OnRenderMenuItemBackground()
164 clrBorder = UIUtil.ColorTowardsGrayscale(clrBorder, clrBase, 0.2); in OnRenderMenuItemBackground()
177 GraphicsPath gp = UIUtil.CreateRoundedRectangle(rect.X, rect.Y, in OnRenderMenuItemBackground()
H A DProExtTsr.cs69 return UIUtil.IsDarkColor(ct.ToolStripDropDownBackground);
260 bDarkBack = UIUtil.IsDarkColor(this.ColorTable.MenuItemSelected); in OnRenderItemText()
264 bDarkBack = UIUtil.IsDarkColor( in OnRenderItemText()
267 bDarkBack = UIUtil.IsDarkColor(UIUtil.ColorMiddle( in OnRenderItemText()
274 bool bDarkText = UIUtil.IsDarkColor(tsi.ForeColor); in OnRenderItemText()
/dports/security/keepass/KeePass-2.49-Source/KeePass/Util/MultipleValues/
H A DMultipleValuesEx.cs83 Size sz = (osz.HasValue ? osz.Value : UIUtil.GetSmallIconSize());
87 Image img = UIUtil.CreateColorBitmap24(w, h, clrGray);
95 Color clrBg = (UIUtil.IsDarkColor(SystemColors.ControlText) ?
140 Color clrMulti = UIUtil.ColorTowards(clrNormal, (UIUtil.IsDarkColor( in ConfigureText()
167 Color clrMulti = UIUtil.ColorTowards(clrNormal, (UIUtil.IsDarkColor( in ConfigureText()
169 Debug.Assert(UIUtil.ColorsEqual(clrNormal, SystemColors.ControlText)); in ConfigureText()
/dports/security/keepass/KeePass-2.49-Source/KeePass/UI/
H A DCustomListViewEx.cs62 UIUtil.ConfigureToolTip(this); in OnHandleCreated()
122 if(UIUtil.HandleCommonKeyEvent(e, true, this)) return; in OnKeyDown()
133 if(UIUtil.HandleCommonKeyEvent(e, false, this)) return; in OnKeyUp()
141 if(!UIUtil.GetGroupsEnabled(this)) return false; in SkipGroupHeaderIfRequired()
163 UIUtil.SetFocusedItem(this, lviChangeTo, true); in SkipGroupHeaderIfRequired()
165 UIUtil.SetHandled(e, true); in SkipGroupHeaderIfRequired()
227 UIUtil.SetHandled(e, true); in HandleRenameKeyEvent()
H A DCustomRichTextBoxEx.cs167 if(UIUtil.HandleCommonKeyEvent(e, true, this)) return; in OnKeyDown()
171 UIUtil.SetHandled(e, true); in OnKeyDown()
180 UIUtil.SetHandled(e, true); in OnKeyDown()
212 if(UIUtil.HandleCommonKeyEvent(e, false, this)) return; in OnKeyUp()
216 UIUtil.SetHandled(e, true); in OnKeyUp()
223 UIUtil.SetHandled(e, true); in OnKeyUp()
255 UIUtil.SetHandled(e, true); in HandleAltX()
387 if(bDown) UIUtil.RtfToggleSelectionFormat(this, FontStyle.Bold); in ProcessCmdKey()
390 if(bDown) UIUtil.RtfToggleSelectionFormat(this, FontStyle.Italic); in ProcessCmdKey()
393 if(bDown) UIUtil.RtfToggleSelectionFormat(this, FontStyle.Underline); in ProcessCmdKey()
H A DHotKeyControlEx.cs82 UIUtil.SetHandled(e, true); in OnKeyDown()
91 UIUtil.SetHandled(e, true); in OnKeyUp()
154 strText = UIUtil.GetKeysName(kFixed); in UpdateUI()
158 strText = UIUtil.GetKeysName(kUser & Keys.Modifiers) + "+"; in UpdateUI()
164 else strText = UIUtil.GetKeysName(kFixed); in UpdateUI()
167 if(UIUtil.ColorsEqual(m_clrNormalBack, Color.White)) in UpdateUI()
H A DStatusBarLogger.cs110 UIUtil.DoEventsByTime(true); in SetProgress()
112 else UIUtil.DoEventsByTime(false); in SetProgress()
125 UIUtil.DoEventsByTime(true); in SetText()
135 UIUtil.DoEventsByTime(false); in ContinueWork()
/dports/security/keepass/KeePass-2.49-Source/Translation/TrlUtil/
H A DMainForm.cs90 UIUtil.SetCueBanner(m_tbFind, strSearchTr); in OnFormLoad()
556 UIUtil.SetHandled(e, true); in OnStrKeyDown()
587 UIUtil.SetHandled(e, true); in OnStrKeyUp()
605 UIUtil.SetFocus(m_tbStrTrl, this); in OnStrDoubleClick()
703 UIUtil.SetHandled(e, true); in OnCtrlTrlTextKeyDown()
720 UIUtil.SetHandled(e, true); in OnCtrlTrlTextKeyUp()
897 UIUtil.SetHandled(e, true); in OnFindKeyDown()
905 UIUtil.SetHandled(e, true); in OnFindKeyUp()
962 UIUtil.SetFocus(m_tbStrTrl, this); in OnEditNextUntrl()
1216 UIUtil.SetFocus(m_lvStrings, this); in OnValidationLinkClicked()
[all …]

12345