Left = 169
Top = 0
Action = SelectItemAction
+ Style = tbsCheck
Visible = False
end
object SelectComboBox: TComboBox
Control = BrowserToolBar
ImageIndex = -1
MinHeight = 22
- Width = 330
+ Width = 352
end
item
Break = False
Control = BrowserNameToolBar
ImageIndex = -1
MinHeight = 18
- Width = 306
+ Width = 284
end
item
Control = BrowserTabToolBar
object BrowserToolBar: TToolBar
Left = 9
Top = 0
- Width = 317
+ Width = 339
Height = 22
AutoSize = True
ButtonWidth = 25
Width = 8
Style = tbsSeparator
end
- object SelectResToolButton: TToolButton
+ object AllResToolButton: TToolButton
Left = 166
Top = 0
+ Action = AllResAction
+ Style = tbsCheck
+ end
+ object SelectResToolButton: TToolButton
+ Left = 191
+ Top = 0
+ Hint = #12524#12473#12398#20869#23481#12434#32094#36796#12416
Action = SelectResAction
+ Style = tbsCheck
end
object ToolButton16: TToolButton
- Left = 191
+ Left = 216
Top = 0
Width = 8
Caption = 'ToolButton16'
Style = tbsSeparator
end
object EditorButton: TToolButton
- Left = 199
+ Left = 224
Top = 0
Action = EditorAction
end
object ToolButton11: TToolButton
- Left = 224
+ Left = 249
Top = 0
Width = 8
Style = tbsSeparator
end
object IEButton: TToolButton
- Left = 232
+ Left = 257
Top = 0
Action = IEAction
DropdownMenu = BrowserPopupMenu
Style = tbsDropDown
end
object ToolButton5: TToolButton
- Left = 268
+ Left = 293
Top = 0
Width = 8
Style = tbsSeparator
end
object ItemReloadButton: TToolButton
- Left = 276
+ Left = 301
Top = 0
Action = ItemReloadAction
end
end
object BrowserNameToolBar: TToolBar
- Left = 341
+ Left = 363
Top = 2
- Width = 293
+ Width = 271
Height = 18
AutoSize = True
ButtonHeight = 16
end
object SelectResAction: TAction
Category = #12473#12524#12483#12489
- Caption = 'SelectResAction'
- Hint = #12524#12473#12398#20869#23481#12434#32094#36796#12416
+ Caption = #12524#12473#32094#36796#12415#34920#31034'(&S)...'
+ GroupIndex = 2
+ Hint = #12524#12473#12398#20869#23481#12434#32094#36796#12416'(&S)...'
ImageIndex = 12
OnExecute = SelectResActionExecute
OnUpdate = SelectResActionUpdate
end
+ object AllResAction: TAction
+ Category = #12473#12524#12483#12489
+ Caption = #12377#12409#12390#34920#31034'(&A)'
+ GroupIndex = 2
+ Hint = #12473#12524#12483#12489#12434#12377#12409#12390#34920#31034#12377#12427
+ ImageIndex = 9
+ OnExecute = AllResActionExecute
+ OnUpdate = AllResActionUpdate
+ end
end
object MainMenu: TMainMenu
Images = HotToobarImageList
SelectResToolButton: TToolButton;
SelectResAction: TAction;
ToolButton16: TToolButton;
+ AllResAction: TAction;
+ AllResToolButton: TToolButton;
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure CabinetPanelHide(Sender: TObject);
Shift: TShiftState);
procedure FormKeyUp(Sender: TObject; var Key: Word;
Shift: TShiftState);
+ procedure AllResActionExecute(Sender: TObject);
+ procedure AllResActionUpdate(Sender: TObject);
private
{ Private \90é\8c¾ }
//\83X\83\8c\91S\95\94\95\\8e¦\83{\83^\83\93\82ð\89\9f\82³\82ê\82½\8fó\91Ô\82É\82·\82é
AllItemAction.Checked := True;
+ AllResAction.Checked := True;
//TreeView\82Ì\8e×\96\82\8fL\82¢ToolTip\82ð\94ñ\95\\8e¦
Style := GetWindowLong(TreeView.Handle, GWL_STYLE);
//\83c\81[\83\8b\83{\83^\83\93\93Ç\82Ý\8d\9e\82Ý
ReadToolBarSetting(ActionList, StdToolBar);
ReadToolBarSetting(ActionList, ListToolBar);
+ for i := ListToolBar.ControlCount - 1 downto 0 do
+ begin
+ if ListToolBar.Controls[ i ].Action = SelectItemAction then
+ begin
+ SelectItemAction.Visible := False;
+ SelectComboBox.Left := SelectItemToolButton.Left;
+ ListToolBar.InsertControl( SelectComboBox );
+ break;
+ end;
+ end;
ReadToolBarSetting(ActionList, BrowserToolBar);
SetToolBarPopup;
BrowserCoolBar.Bands[i].MinWidth := BrowserCoolBar.Bands[i].MinWidth - 1;
end;
SaveToolBarSetting(StdToolBar);
- SaveToolBarSetting(ListToolBar);
+ SaveToolBarSetting(BrowserToolBar);
for i := ListToolBar.ControlCount - 1 downto 0 do
begin
if ListToolBar.Controls[ i ].Action = SelectItemAction then
break;
end;
end;
- SaveToolBarSetting(BrowserToolBar);
+ SaveToolBarSetting(ListToolBar);
end;
finally
Dlg.Release;
Dlg.SelectComboBox.Items.Assign(GikoSys.Setting.SelectTextList);
Dlg.ShowModal;
if Dlg.ModalResult <> mrCancel then begin
+ // \83{\83^\83\93\82Ì\8dX\90V
+ AllResAction.Checked := False;
+ SelectResAction.Checked := True;
+
+ // \83t\83B\83\8b\83^\82Ì\90Ý\92è
if Length( Dlg.SelectComboBox.Text ) = 0 then
GikoSys.FSelectResFilter.Reverse := False
else
GikoSys.FSelectResFilter.Reverse := True;
+ FilterList := TStringList.Create;
try
- FilterList := TStringList.Create;
FilterList.Delimiter := ' '; //\8bæ\90Ø\82è\8eq\82ð\94¼\8ap\83X\83y\81[\83X\82É\90Ý\92è
//FilterList.Add( Dlg.SelectComboBox.Text );
FilterList.DelimitedText := Dlg.SelectComboBox.Text;
FilterList.Destroy;
end;
+ // \83X\83\8c\83b\83h\82Ì\8dÄ\95`\89æ
ThreadItem := GetActiveContent;
if ThreadItem <> nil then
SetContent( ThreadItem );
-
+
end;
finally
Dlg.Release;
end;
end;
+
+// \91S\82Ä\82Ì\83\8c\83X\82ð\95\\8e¦
+procedure TGikoForm.AllResActionExecute(Sender: TObject);
+var
+ ThreadItem : TThreadItem;
+ FilterList : TStringList;
+begin
+ // \83{\83^\83\93\82Ì\8dX\90V
+ AllResAction.Checked := True;
+ SelectResAction.Checked := False;
+
+ // \83t\83B\83\8b\83^\95¶\8e\9a\97ñ\82ð\8bó\82É\82·\82é
+ FilterList := TStringList.Create;
+ try
+ GikoSys.FSelectResFilter.LoadFromStringList( FilterList );
+ GikoSys.FSelectResFilter.Reverse := False;
+ finally
+ FilterList.Destroy;
+ end;
+
+ // \83X\83\8c\83b\83h\82ð\8dÄ\95`\89æ
+ ThreadItem := GetActiveContent;
+ if ThreadItem <> nil then
+ SetContent( ThreadItem );
+end;
+
+procedure TGikoForm.AllResActionUpdate(Sender: TObject);
+begin
+ AllResAction.Enabled := GetActiveContent <> nil;
+end;
+
initialization
OleInitialize(nil);
finalization
procedure SaveToolBarSetting(ToolBar: TToolBar);
var
ini: TMemIniFile;
- i: Integer;
+ i, j: Integer;
Action: TBasicAction;
begin
ini := TMemIniFile.Create(GikoSys.GetConfigDir + INI_FILENAME);
+ j := 0;
try
ini.EraseSection(ToolBar.Name);
for i := 0 to ToolBar.ButtonCount - 1 do begin
if ToolBar.Buttons[i].Style = tbsSeparator then begin
- ini.WriteString(ToolBar.Name, 'Button' + IntToStr(i), '-');
+ ini.WriteString(ToolBar.Name, 'Button' + IntToStr(j), '-');
+ Inc( j );
end else begin
Action := ToolBar.Buttons[i].Action;
if Action <> nil then
- ini.WriteString(ToolBar.Name, 'Button' + IntToStr(i), Action.Name);
+ begin
+ ini.WriteString(ToolBar.Name, 'Button' + IntToStr(j), Action.Name);
+ Inc( j );
+ end;
end;
end;
ini.UpdateFile;