add expand/collapse on websites selection

This commit is contained in:
riderkick 2015-06-07 07:35:07 +08:00
parent 98d3080bc3
commit 74bc5fba96
5 changed files with 140 additions and 8 deletions

View File

@ -2611,8 +2611,8 @@ object MainForm: TMainForm
ClientWidth = 579
object vtOptionMangaSiteSelection: TVirtualStringTree
Left = 2
Height = 367
Top = 4
Height = 341
Top = 30
Width = 573
Align = alClient
BorderSpacing.Top = 2
@ -2638,6 +2638,35 @@ object MainForm: TMainForm
OnGetNodeDataSize = vtOptionMangaSiteSelectionGetNodeDataSize
OnInitNode = vtOptionMangaSiteSelectionInitNode
end
object ToolBarWebsites: TToolBar
Left = 0
Height = 22
Top = 4
Width = 579
AutoSize = True
BorderSpacing.Top = 4
EdgeBorders = []
Images = IconList
List = True
ParentFont = False
ShowCaptions = True
TabOrder = 1
Transparent = True
object tbWebsitesExpandAll: TToolButton
Left = 1
Top = 0
Caption = 'Expand All'
ImageIndex = 17
OnClick = tbWebsitesExpandAllClick
end
object tbWebsitesCollapseAll: TToolButton
Left = 82
Top = 0
Caption = 'Collapse All'
ImageIndex = 18
OnClick = tbWebsitesCollapseAllClick
end
end
end
object tsMisc: TTabSheet
Caption = 'Misc'
@ -3971,7 +4000,7 @@ object MainForm: TMainForm
left = 24
top = 136
Bitmap = {
4C691100000010000000100000004F4F4F005050500052525200535353005454
4C691300000010000000100000004F4F4F005050500052525200535353005454
54155555553E555555555555556355555563555555555555553E545454155353
530052525200505050004F4F4F004F4F4F0050505000525252075353533D7373
7378C8C8C8D2EAEAEAFFE6E6E6FFE6E6E6FFEAEAEAFFC7C7C7D2727272785353
@ -4515,7 +4544,71 @@ object MainForm: TMainForm
1A430000448000005AAB00005DC400005DC400005AAB0000448000001A430000
002D0000001800000004FFFFFF00FFFFFF00000000020000000C000000160000
001A0000001A0000001A0000001A0000001A0000001A0000001A0000001A0000
00170000000C00000002FFFFFF00
00170000000C00000002FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
FF00FFFFFF00FFFFFF00FFFFFF00E7815F00E983610FED876590ED8765E8ED87
65FFED8765FFED8765FFED8765FFED8765FFED8765FFED8765FFED8765FFED87
65E8ED876590E983610FE7815F00E47F5D00E47F5D90EEA992FFFCEFEAFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCEF
EAFFEEA992FFE47F5D90E47F5D00D9745200D97452E8F9ECE8FFFBFBFBFFFBFB
FBFFFBFBFBFFFBFBFBFFFBFBFBFFFBFBFBFFFBFBFBFFFBFBFBFFFBFBFBFFFBFB
FBFFF8EBE7FFD97452E8D9745200CC674500CC6745FFFBFBFBFFF7F7F7FFF7F7
F7FFF7F7F7FFF7F7F7FFCC6745FFCC6745FFF7F7F7FFF7F7F7FFF7F7F7FFF7F7
F7FFFAFAFAFFCC6745FFCC674500BE5B3900BE5B39FFF9F9F9FFF3F3F3FFF3F3
F3FFF3F3F3FFF3F3F3FFBE5B39FFBE5B39FFF3F3F3FFF3F3F3FFF3F3F3FFF3F3
F3FFF6F6F6FFBE5B39FFBE5B3900B4502E00B4502EFFF6F6F6FFF0F0F0FFF0F0
F0FFF0F0F0FFEBEBEBFFB4502EFFB4502EFFD2D1D1FFCECECEFFCECECEFFD2D1
D1FFDEDDDDFFB4502EFFB4502E00AC482600AC4826FFF4F4F4FFEEEEEEFFAC48
26FFAC4826FFAC4826FFAC4826FFAC4826FFAC4826FFAC4826FFAC4826FFD2D0
D0FFD7D6D6FFAC4826FFAC482600AB442200AB4422FFF3F3F3FFE7E5E5FFEE66
44FFEE6644FFEE6644FFAB4422FFAB4422FFEE6644FFEE6644FFEE6644FFD8D4
D4FFDBD8D8FFAB4422FFAB442200AF452300AF4523FFEDEAEAFFE1DADAFFF1ED
EDFFF1EDEDFFF1EDEDFFAF4523FFAF4523FFF1EDEDFFF1EDEDFFF1EDEDFFE0D9
D9FFE1DBDBFFAF4523FFAF452300B8492700B84927FFEBE4E4FFE7DFDFFFE7DF
DFFFE7DFDFFFE7DFDFFFB84927FFB84927FFE7DFDFFFE7DFDFFFE7DFDFFFE7DF
DFFFE7DFDFFFB84927FFB8492700C54F2D00C54F2DFFF1E7E7FFEFE4E4FFEFE4
E4FFEFE4E4FFEFE4E4FFEE6644FFEE6644FFEFE4E4FFEFE4E4FFEFE4E4FFEFE4
E4FFEFE4E4FFC54F2DFFC54F2D00D2563400D25634E8F3D7D3FFF7E8E8FFF7E8
E8FFF7E8E8FFF7E8E8FFFCF4F4FFFCF4F4FFF7E8E8FFF7E8E8FFF7E8E8FFF7E8
E8FFF2D5D1FFD25634E8D256340037170F00DF5E3C90E98D76FFF9DAD6FFFCEC
ECFFFCECECFFFCECECFFFCECECFFFCECECFFFCECECFFFCECECFFFCECECFFF9DA
D6FFE98C75FFDF5E3C9037170F000000001226100B36BF51359FE86341E9E963
41FFE96341FFE96341FFE96341FFE96341FFE96341FFE96341FFE96341FFE863
41E9BF51359F26100B360000001200000000000000160000001A0000001A0000
001A0000001A0000001A0000001A0000001A0000001A0000001A0000001A0000
001A0000001A0000001600000000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
FF00FFFFFF00FFFFFF00FFFFFF00E7815F00E983610FED876590ED8765E8ED87
65FFED8765FFED8765FFED8765FFED8765FFED8765FFED8765FFED8765FFED87
65E8ED876590E983610FE7815F00E47F5D00E47F5D90EEA992FFFCEFEAFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCEF
EAFFEEA992FFE47F5D90E47F5D00D9745200D97452E8F9ECE8FFFBFBFBFFFBFB
FBFFFBFBFBFFFBFBFBFFFBFBFBFFFBFBFBFFFBFBFBFFFBFBFBFFFBFBFBFFFBFB
FBFFF8EBE7FFD97452E8D9745200CC674500CC6745FFFBFBFBFFF7F7F7FFF7F7
F7FFF7F7F7FFF7F7F7FFF7F7F7FFF7F7F7FFF7F7F7FFF7F7F7FFF7F7F7FFF7F7
F7FFFAFAFAFFCC6745FFCC674500BE5B3900BE5B39FFF9F9F9FFF3F3F3FFF3F3
F3FFF3F3F3FFF3F3F3FFF3F3F3FFF3F3F3FFF3F3F3FFF3F3F3FFF3F3F3FFF3F3
F3FFF6F6F6FFBE5B39FFBE5B3900B4502E00B4502EFFF6F6F6FFF0F0F0FFF0F0
F0FFF0F0F0FFEBEBEBFFE0E0E0FFD7D6D6FFD2D1D1FFCECECEFFCECECEFFD2D1
D1FFDEDDDDFFB4502EFFB4502E00AC482600AC4826FFF4F4F4FFEEEEEEFFAC48
26FFAC4826FFAC4826FFAC4826FFAC4826FFAC4826FFAC4826FFAC4826FFD2D0
D0FFD7D6D6FFAC4826FFAC482600AB442200AB4422FFF3F3F3FFE7E5E5FFEE66
44FFEE6644FFEE6644FFEE6644FFEE6644FFEE6644FFEE6644FFEE6644FFD8D4
D4FFDBD8D8FFAB4422FFAB442200AF452300AF4523FFEDEAEAFFE1DADAFFF1ED
EDFFF1EDEDFFF1EDEDFFF1EDEDFFF1EDEDFFF1EDEDFFF1EDEDFFF1EDEDFFE0D9
D9FFE1DBDBFFAF4523FFAF452300B8492700B84927FFEBE4E4FFE7DFDFFFE7DF
DFFFE7DFDFFFE7DFDFFFE7DFDFFFE7DFDFFFE7DFDFFFE7DFDFFFE7DFDFFFE7DF
DFFFE7DFDFFFB84927FFB8492700C54F2D00C54F2DFFF1E7E7FFEFE4E4FFEFE4
E4FFEFE4E4FFEFE4E4FFEFE4E4FFEFE4E4FFEFE4E4FFEFE4E4FFEFE4E4FFEFE4
E4FFEFE4E4FFC54F2DFFC54F2D00D2563400D25634E8F3D7D3FFF7E8E8FFF7E8
E8FFF7E8E8FFF7E8E8FFF7E8E8FFF7E8E8FFF7E8E8FFF7E8E8FFF7E8E8FFF7E8
E8FFF2D5D1FFD25634E8D256340037170F00DF5E3C90E98D76FFF9DAD6FFFCEC
ECFFFCECECFFFCECECFFFCECECFFFCECECFFFCECECFFFCECECFFFCECECFFF9DA
D6FFE98C75FFDF5E3C9037170F000000001226100B36BF51359FE86341E9E963
41FFE96341FFE96341FFE96341FFE96341FFE96341FFE96341FFE96341FFE863
41E9BF51359F26100B360000001200000000000000160000001A0000001A0000
001A0000001A0000001A0000001A0000001A0000001A0000001A0000001A0000
001A0000001A0000001600000000
}
end
object itSaveDownloadedList: TIdleTimer

View File

@ -276,6 +276,9 @@ type
lbTransferRate: TLabel;
lbTransferRateValue: TLabel;
tbDropTargetOpacity: TTrackBar;
ToolBarWebsites: TToolBar;
tbWebsitesExpandAll: TToolButton;
tbWebsitesCollapseAll: TToolButton;
tsView: TTabSheet;
tmBackup: TIdleTimer;
ToolBarDownload: TToolBar;
@ -417,6 +420,8 @@ type
procedure tbDownloadResumeAllClick(Sender: TObject);
procedure tbDownloadStopAllClick(Sender: TObject);
procedure tbDropTargetOpacityChange(Sender: TObject);
procedure tbWebsitesCollapseAllClick(Sender: TObject);
procedure tbWebsitesExpandAllClick(Sender: TObject);
procedure TrayIconDblClick(Sender: TObject);
procedure tvDownloadFilterSelectionChanged(Sender: TObject);
procedure UniqueInstanceFMDOtherInstance(Sender: TObject;
@ -3030,6 +3035,16 @@ begin
FormDropTarget.AlphaBlendValue := uFrmDropTarget.FAlphaBlendValue;
end;
procedure TMainForm.tbWebsitesCollapseAllClick(Sender: TObject);
begin
vtOptionMangaSiteSelection.FullCollapse;
end;
procedure TMainForm.tbWebsitesExpandAllClick(Sender: TObject);
begin
vtOptionMangaSiteSelection.FullExpand;
end;
procedure TMainForm.TrayIconDblClick(Sender: TObject);
begin
if (WindowState = wsMinimized) or (Visible = False) then

View File

@ -9,7 +9,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: en\n"
"X-Generator: Poedit 1.7.6\n"
"X-Generator: Poedit 1.8.1\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: frmimportfavorites.rs_importcompleted
msgid "Import completed."
@ -1255,6 +1256,14 @@ msgstr "Resume All"
msgid "Stop All"
msgstr "Stop All"
#: tmainform.tbwebsitescollapseall.caption
msgid "Collapse All"
msgstr "Collapse All"
#: tmainform.tbwebsitesexpandall.caption
msgid "Expand All"
msgstr "Expand All"
#: tmainform.tsabout.caption
msgid "About"
msgstr "About"
@ -1592,4 +1601,3 @@ msgstr "Synchronizing data"
#: uupdatethread.rs_updatinglist
msgid "Updating list"
msgstr "Updating list"

View File

@ -9,7 +9,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: id_ID\n"
"X-Generator: Poedit 1.7.6\n"
"X-Generator: Poedit 1.8.1\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: frmimportfavorites.rs_importcompleted
msgid "Import completed."
@ -1255,6 +1256,14 @@ msgstr "Lanjutkan semua"
msgid "Stop All"
msgstr "Hentikan semua"
#: tmainform.tbwebsitescollapseall.caption
msgid "Collapse All"
msgstr "Lipat semua"
#: tmainform.tbwebsitesexpandall.caption
msgid "Expand All"
msgstr "Bentangkan semua"
#: tmainform.tsabout.caption
msgid "About"
msgstr "Tentang"
@ -1592,4 +1601,3 @@ msgstr "Sinkronisasi data"
#: uupdatethread.rs_updatinglist
msgid "Updating list"
msgstr "Memperbarui daftar"

View File

@ -1208,6 +1208,14 @@ msgstr ""
msgid "Stop All"
msgstr ""
#: tmainform.tbwebsitescollapseall.caption
msgid "Collapse All"
msgstr ""
#: tmainform.tbwebsitesexpandall.caption
msgid "Expand All"
msgstr ""
#: tmainform.tsabout.caption
msgid "About"
msgstr ""