public int MapThumbnailZoom;
public List<UserAccount> UserAccounts;
private long? InitialUserId;
- public bool TabMouseLock;
public bool IsRemoveSameEvent;
public bool IsNotifyUseGrowl;
this.StartupPanel.LoadConfig(settingCommon);
this.TweetPrvPanel.LoadConfig(settingCommon);
this.TweetActPanel.LoadConfig(settingCommon, settingLocal);
+ this.ActionPanel.LoadConfig(settingCommon, settingLocal);
}
public void SaveConfig(SettingCommon settingCommon, SettingLocal settingLocal)
this.StartupPanel.SaveConfig(settingCommon);
this.TweetPrvPanel.SaveConfig(settingCommon);
this.TweetActPanel.SaveConfig(settingCommon, settingLocal);
+ this.ActionPanel.SaveConfig(settingCommon, settingLocal);
}
private void TreeViewSetting_BeforeSelect(object sender, TreeViewCancelEventArgs e)
#endif
try
{
- PlaySound = this.ActionPanel.PlaySnd.Checked;
- UnreadManage = this.ActionPanel.UReadMng.Checked;
-
FontUnread = this.FontPanel.lblUnread.Font; //未使用
ColorUnread = this.FontPanel.lblUnread.ForeColor;
FontReaded = this.FontPanel.lblListFont.Font; //リストフォントとして使用
CountApi = int.Parse(this.GetCountPanel.TextCountApi.Text);
CountApiReply = int.Parse(this.GetCountPanel.TextCountApiReply.Text);
- BrowserPath = this.ActionPanel.BrowserPathText.Text.Trim();
DispUsername = this.PreviewPanel.CheckDispUsername.Checked;
- CloseToExit = this.ActionPanel.CheckCloseToExit.Checked;
- MinimizeToTray = this.ActionPanel.CheckMinimizeToTray.Checked;
switch (this.PreviewPanel.ComboDispTitle.SelectedIndex)
{
case 0: //None
ProxyPort = int.Parse(this.ProxyPanel.TextProxyPort.Text.Trim());
ProxyUser = this.ProxyPanel.TextProxyUser.Text.Trim();
ProxyPassword = this.ProxyPanel.TextProxyPassword.Text.Trim();
- RestrictFavCheck = this.ActionPanel.CheckFavRestrict.Checked;
AlwaysTop = this.PreviewPanel.CheckAlwaysTop.Checked;
UrlConvertAuto = this.ShortUrlPanel.CheckAutoConvertUrl.Checked;
ShortenTco = this.ShortUrlPanel.ShortenTcoCheck.Checked;
EventSoundFile = (string)this.NotifyPanel.ComboBoxEventNotifySound.SelectedItem;
AutoShortUrlFirst = (MyCommon.UrlConverter)this.ShortUrlPanel.ComboBoxAutoShortUrlFirst.SelectedIndex;
TabIconDisp = this.PreviewPanel.chkTabIconDisp.Checked;
- ReadOwnPost = this.ActionPanel.chkReadOwnPost.Checked;
IsMonospace = this.PreviewPanel.CheckMonospace.Checked;
- ReadOldPosts = this.ActionPanel.CheckReadOldPosts.Checked;
BitlyUser = this.ShortUrlPanel.TextBitlyId.Text;
BitlyPwd = this.ShortUrlPanel.TextBitlyPw.Text;
PreviewEnable = this.PreviewPanel.CheckPreviewEnable.Checked;
Language = "en";
break;
}
- HotkeyEnabled = this.ActionPanel.HotkeyCheck.Checked;
- HotkeyMod = Keys.None;
- if (this.ActionPanel.HotkeyAlt.Checked) HotkeyMod = HotkeyMod | Keys.Alt;
- if (this.ActionPanel.HotkeyShift.Checked) HotkeyMod = HotkeyMod | Keys.Shift;
- if (this.ActionPanel.HotkeyCtrl.Checked) HotkeyMod = HotkeyMod | Keys.Control;
- if (this.ActionPanel.HotkeyWin.Checked) HotkeyMod = HotkeyMod | Keys.LWin;
- int.TryParse(this.ActionPanel.HotkeyCode.Text, out HotkeyValue);
- HotkeyKey = (Keys)this.ActionPanel.HotkeyText.Tag;
BlinkNewMentions = this.PreviewPanel.ChkNewMentionsBlink.Checked;
UseAdditionalCount = this.GetCountPanel.UseChangeGetCount.Checked;
MoreCountApi = int.Parse(this.GetCountPanel.GetMoreTextCountApi.Text);
FavoritesCountApi = int.Parse(this.GetCountPanel.FavoritesTextCountApi.Text);
UserTimelineCountApi = int.Parse(this.GetCountPanel.UserTimelineTextCountApi.Text);
ListCountApi = int.Parse(this.GetCountPanel.ListTextCountApi.Text);
- OpenUserTimeline = this.ActionPanel.CheckOpenUserTimeline.Checked;
- ListDoubleClickAction = this.ActionPanel.ListDoubleClickActionComboBox.SelectedIndex;
UserAppointUrl = this.CooperatePanel.UserAppointUrlText.Text;
this.EnableImgAzyobuziNet = this.CooperatePanel.EnableImgAzyobuziNetCheckBox.Checked;
this.ImgAzyobuziNetDisabledInDM = this.CooperatePanel.ImgAzyobuziNetDisabledInDMCheckBox.Checked;
this.MapThumbnailHeight = int.Parse(this.CooperatePanel.MapThumbnailHeightTextBox.Text);
this.MapThumbnailWidth = int.Parse(this.CooperatePanel.MapThumbnailWidthTextBox.Text);
this.MapThumbnailZoom = int.Parse(this.CooperatePanel.MapThumbnailZoomTextBox.Text);
- this.TabMouseLock = this.ActionPanel.TabMouseLockCheck.Checked;
this.IsRemoveSameEvent = this.NotifyPanel.IsRemoveSameFavEventCheckBox.Checked;
this.IsNotifyUseGrowl = this.PreviewPanel.IsNotifyUseGrowlCheckBox.Checked;
}
}
}
- this.ActionPanel.UReadMng.Checked = UnreadManage;
- this.ActionPanel.PlaySnd.Checked = PlaySound;
-
this.FontPanel.lblListFont.Font = FontReaded;
this.FontPanel.lblUnread.Font = FontUnread;
this.FontPanel.lblUnread.ForeColor = ColorUnread;
this.GetCountPanel.TextCountApi.Text = CountApi.ToString();
this.GetCountPanel.TextCountApiReply.Text = CountApiReply.ToString();
- this.ActionPanel.BrowserPathText.Text = BrowserPath;
this.PreviewPanel.CheckDispUsername.Checked = DispUsername;
- this.ActionPanel.CheckCloseToExit.Checked = CloseToExit;
- this.ActionPanel.CheckMinimizeToTray.Checked = MinimizeToTray;
switch (DispLatestPost)
{
case MyCommon.DispTitleEnum.None:
this.ProxyPanel.TextProxyUser.Text = ProxyUser;
this.ProxyPanel.TextProxyPassword.Text = ProxyPassword;
- this.ActionPanel.CheckFavRestrict.Checked = RestrictFavCheck;
this.PreviewPanel.CheckAlwaysTop.Checked = AlwaysTop;
this.ShortUrlPanel.CheckAutoConvertUrl.Checked = UrlConvertAuto;
this.ShortUrlPanel.ShortenTcoCheck.Checked = ShortenTco;
SoundFileListup();
this.ShortUrlPanel.ComboBoxAutoShortUrlFirst.SelectedIndex = (int)AutoShortUrlFirst;
this.PreviewPanel.chkTabIconDisp.Checked = TabIconDisp;
- this.ActionPanel.chkReadOwnPost.Checked = ReadOwnPost;
this.PreviewPanel.CheckMonospace.Checked = IsMonospace;
- this.ActionPanel.CheckReadOldPosts.Checked = ReadOldPosts;
this.ShortUrlPanel.TextBitlyId.Text = BitlyUser;
this.ShortUrlPanel.TextBitlyPw.Text = BitlyPwd;
this.ShortUrlPanel.TextBitlyId.Modified = false;
this.PreviewPanel.LanguageCombo.SelectedIndex = 0;
break;
}
- this.ActionPanel.HotkeyCheck.Checked = HotkeyEnabled;
- this.ActionPanel.HotkeyAlt.Checked = ((HotkeyMod & Keys.Alt) == Keys.Alt);
- this.ActionPanel.HotkeyCtrl.Checked = ((HotkeyMod & Keys.Control) == Keys.Control);
- this.ActionPanel.HotkeyShift.Checked = ((HotkeyMod & Keys.Shift) == Keys.Shift);
- this.ActionPanel.HotkeyWin.Checked = ((HotkeyMod & Keys.LWin) == Keys.LWin);
- this.ActionPanel.HotkeyCode.Text = HotkeyValue.ToString();
- this.ActionPanel.HotkeyText.Text = HotkeyKey.ToString();
- this.ActionPanel.HotkeyText.Tag = HotkeyKey;
- this.ActionPanel.HotkeyAlt.Enabled = HotkeyEnabled;
- this.ActionPanel.HotkeyShift.Enabled = HotkeyEnabled;
- this.ActionPanel.HotkeyCtrl.Enabled = HotkeyEnabled;
- this.ActionPanel.HotkeyWin.Enabled = HotkeyEnabled;
- this.ActionPanel.HotkeyText.Enabled = HotkeyEnabled;
- this.ActionPanel.HotkeyCode.Enabled = HotkeyEnabled;
this.PreviewPanel.ChkNewMentionsBlink.Checked = BlinkNewMentions;
this.GetCountPanel.GetMoreTextCountApi.Text = MoreCountApi.ToString();
this.GetCountPanel.FavoritesTextCountApi.Enabled = this.GetCountPanel.UseChangeGetCount.Checked;
this.GetCountPanel.UserTimelineTextCountApi.Enabled = this.GetCountPanel.UseChangeGetCount.Checked;
this.GetCountPanel.ListTextCountApi.Enabled = this.GetCountPanel.UseChangeGetCount.Checked;
- this.ActionPanel.CheckOpenUserTimeline.Checked = OpenUserTimeline;
- this.ActionPanel.ListDoubleClickActionComboBox.SelectedIndex = ListDoubleClickAction;
this.CooperatePanel.UserAppointUrlText.Text = UserAppointUrl;
this.CooperatePanel.EnableImgAzyobuziNetCheckBox.Checked = this.EnableImgAzyobuziNet;
this.CooperatePanel.ImgAzyobuziNetDisabledInDMCheckBox.Checked = this.ImgAzyobuziNetDisabledInDM;
this.CooperatePanel.MapThumbnailHeightTextBox.Text = this.MapThumbnailHeight.ToString();
this.CooperatePanel.MapThumbnailWidthTextBox.Text = this.MapThumbnailWidth.ToString();
this.CooperatePanel.MapThumbnailZoomTextBox.Text = this.MapThumbnailZoom.ToString();
- this.ActionPanel.TabMouseLockCheck.Checked = this.TabMouseLock;
this.NotifyPanel.IsRemoveSameFavEventCheckBox.Checked = this.IsRemoveSameEvent;
this.PreviewPanel.IsNotifyUseGrowlCheckBox.Checked = this.IsNotifyUseGrowl;
}
}
- public bool UnreadManage { get; set; }
- public bool PlaySound { get; set; }
public Font FontUnread { get; set; } /////未使用
public Color ColorUnread { get; set; }
public Font FontReaded { get; set; } /////リストフォントとして使用
public int ListCountApi { get; set; }
public string RecommendStatusText { get; set; }
public bool DispUsername { get; set; }
- public bool CloseToExit { get; set; }
- public bool MinimizeToTray { get; set; }
public MyCommon.DispTitleEnum DispLatestPost { get; set; }
- public string BrowserPath { get; set; }
public bool TinyUrlResolve { get; set; }
public ProxyType SelectedProxyType
public int ProxyPort { get; set; }
public string ProxyUser { get; set; }
public string ProxyPassword { get; set; }
- public bool RestrictFavCheck { get; set; }
public bool AlwaysTop { get; set; }
public bool UrlConvertAuto { get; set; }
public bool ShortenTco { get; set; }
public int DefaultTimeOut { get; set; }
public bool TabIconDisp { get; set; }
public MyCommon.REPLY_ICONSTATE ReplyIconState { get; set; }
- public bool ReadOwnPost { get; set; }
public bool IsMonospace { get; set; }
- public bool ReadOldPosts { get; set; }
public string BitlyUser { get; set; }
public string BitlyPwd { get; set; }
public bool PreviewEnable { get; set; }
public bool StatusAreaAtBottom { get; set; }
public bool UseAdditionalCount { get; set; }
- public bool OpenUserTimeline { get; set; }
public string TwitterApiUrl { get; set; }
public string Language { get; set; }
}
public string EventSoundFile { get; set; }
- public int ListDoubleClickAction { get; set; }
public string UserAppointUrl { get; set; }
private bool StartAuth()
_ValidationError = false;
}
- public bool HotkeyEnabled;
- public Keys HotkeyKey;
- public int HotkeyValue;
- public Keys HotkeyMod;
-
public bool BlinkNewMentions;
//private void CheckEventNotify_CheckedChanged(object sender, EventArgs e)
string path = this.ActionPanel.BrowserPathText.Text;
try
{
- if (!string.IsNullOrEmpty(BrowserPath))
+ if (!string.IsNullOrEmpty(path))
{
if (path.StartsWith("\"") && path.Length > 2 && path.IndexOf("\"", 2) > -1)
{
//新着取得時のリストスクロールをするか。trueならスクロールしない
ListLockMenuItem.Checked = _cfgCommon.ListLock;
this.LockListFileMenuItem.Checked = _cfgCommon.ListLock;
- //未読管理。trueなら未読管理する
- SettingDialog.UnreadManage = _cfgCommon.UnreadManage;
//サウンド再生(タブ別設定より優先)
- SettingDialog.PlaySound = _cfgCommon.PlaySound;
- PlaySoundMenuItem.Checked = SettingDialog.PlaySound;
- this.PlaySoundFileMenuItem.Checked = SettingDialog.PlaySound;
+ this.PlaySoundMenuItem.Checked = this._cfgCommon.PlaySound;
+ this.PlaySoundFileMenuItem.Checked = this._cfgCommon.PlaySound;
//フォント&文字色&背景色
SettingDialog.FontUnread = _fntUnread;
SettingDialog.ColorUnread = _clUnread;
if (SettingDialog.CountApi < 20 || SettingDialog.CountApi > 200) SettingDialog.CountApi = 60;
if (SettingDialog.CountApiReply < 20 || SettingDialog.CountApiReply > 200) SettingDialog.CountApiReply = 40;
- SettingDialog.BrowserPath = _cfgLocal.BrowserPath;
SettingDialog.PostAndGet = _cfgCommon.PostAndGet;
SettingDialog.DispUsername = _cfgCommon.DispUsername;
- SettingDialog.CloseToExit = _cfgCommon.CloseToExit;
- SettingDialog.MinimizeToTray = _cfgCommon.MinimizeToTray;
SettingDialog.DispLatestPost = _cfgCommon.DispLatestPost;
SettingDialog.TinyUrlResolve = _cfgCommon.TinyUrlResolve;
SettingDialog.ProxyUser = _cfgLocal.ProxyUser;
SettingDialog.ProxyPassword = _cfgLocal.ProxyPassword;
- SettingDialog.RestrictFavCheck = _cfgCommon.RestrictFavCheck;
SettingDialog.AlwaysTop = _cfgCommon.AlwaysTop;
SettingDialog.UrlConvertAuto = false;
//SettingDialog.UrlConvertAuto = _cfgCommon.UrlConvertAuto;
SettingDialog.DefaultTimeOut = _cfgCommon.DefaultTimeOut;
- SettingDialog.PlaySound = _cfgCommon.PlaySound;
SettingDialog.LimitBalloon = _cfgCommon.LimitBalloon;
SettingDialog.EventNotifyEnabled = _cfgCommon.EventNotifyEnabled;
SettingDialog.EventNotifyFlag = _cfgCommon.EventNotifyFlag;
SettingDialog.AutoShortUrlFirst = _cfgCommon.AutoShortUrlFirst;
SettingDialog.TabIconDisp = _cfgCommon.TabIconDisp;
SettingDialog.ReplyIconState = _cfgCommon.ReplyIconState;
- SettingDialog.ReadOwnPost = _cfgCommon.ReadOwnPost;
- SettingDialog.ReadOldPosts = _cfgCommon.ReadOldPosts;
SettingDialog.BitlyUser = _cfgCommon.BilyUser;
SettingDialog.BitlyPwd = _cfgCommon.BitlyPwd;
SettingDialog.Language = _cfgCommon.Language;
SettingDialog.RecommendStatusText = " [TWNv" + Regex.Replace(MyCommon.FileVersion.Replace(".", ""), "^0*", "") + "]";
SettingDialog.Nicoms = _cfgCommon.Nicoms;
- SettingDialog.HotkeyEnabled = _cfgCommon.HotkeyEnabled;
- SettingDialog.HotkeyMod = _cfgCommon.HotkeyModifier;
- SettingDialog.HotkeyKey = _cfgCommon.HotkeyKey;
- SettingDialog.HotkeyValue = _cfgCommon.HotkeyValue;
SettingDialog.BlinkNewMentions = _cfgCommon.BlinkNewMentions;
SettingDialog.UserTimelineCountApi = _cfgCommon.UserTimelineCountApi;
SettingDialog.ListCountApi = _cfgCommon.ListCountApi;
- SettingDialog.OpenUserTimeline = _cfgCommon.OpenUserTimeline;
- SettingDialog.ListDoubleClickAction = _cfgCommon.ListDoubleClickAction;
SettingDialog.UserAppointUrl = _cfgCommon.UserAppointUrl;
SettingDialog.EnableImgAzyobuziNet = _cfgCommon.EnableImgAzyobuziNet;
SettingDialog.MapThumbnailHeight = _cfgCommon.MapThumbnailHeight;
SettingDialog.MapThumbnailWidth = _cfgCommon.MapThumbnailWidth;
SettingDialog.MapThumbnailZoom = _cfgCommon.MapThumbnailZoom;
- SettingDialog.TabMouseLock = _cfgCommon.TabMouseLock;
SettingDialog.IsRemoveSameEvent = _cfgCommon.IsRemoveSameEvent;
SettingDialog.IsNotifyUseGrowl = _cfgCommon.IsUseNotifyGrowl;
InitDetailHtmlFormat();
- if (SettingDialog.HotkeyEnabled)
+ if (this._cfgCommon.HotkeyEnabled)
{
//////グローバルホットキーの登録
HookGlobalHotkey.ModKeys modKey = HookGlobalHotkey.ModKeys.None;
- if ((SettingDialog.HotkeyMod & Keys.Alt) == Keys.Alt) modKey = modKey | HookGlobalHotkey.ModKeys.Alt;
- if ((SettingDialog.HotkeyMod & Keys.Control) == Keys.Control) modKey = modKey | HookGlobalHotkey.ModKeys.Ctrl;
- if ((SettingDialog.HotkeyMod & Keys.Shift) == Keys.Shift) modKey = modKey | HookGlobalHotkey.ModKeys.Shift;
- if ((SettingDialog.HotkeyMod & Keys.LWin) == Keys.LWin) modKey = modKey | HookGlobalHotkey.ModKeys.Win;
+ if ((this._cfgCommon.HotkeyModifier & Keys.Alt) == Keys.Alt)
+ modKey |= HookGlobalHotkey.ModKeys.Alt;
+ if ((this._cfgCommon.HotkeyModifier & Keys.Control) == Keys.Control)
+ modKey |= HookGlobalHotkey.ModKeys.Ctrl;
+ if ((this._cfgCommon.HotkeyModifier & Keys.Shift) == Keys.Shift)
+ modKey |= HookGlobalHotkey.ModKeys.Shift;
+ if ((this._cfgCommon.HotkeyModifier & Keys.LWin) == Keys.LWin)
+ modKey |= HookGlobalHotkey.ModKeys.Win;
- _hookGlobalHotkey.RegisterOriginalHotkey(SettingDialog.HotkeyKey, SettingDialog.HotkeyValue, modKey);
+ _hookGlobalHotkey.RegisterOriginalHotkey(this._cfgCommon.HotkeyKey, this._cfgCommon.HotkeyValue, modKey);
}
//Twitter用通信クラス初期化
this.SettingDialog.ProxyAddress, this.SettingDialog.ProxyPort,
this.SettingDialog.ProxyUser, this.SettingDialog.ProxyPassword);
- tw.RestrictFavCheck = SettingDialog.RestrictFavCheck;
- tw.ReadOwnPost = SettingDialog.ReadOwnPost;
+ tw.RestrictFavCheck = this._cfgCommon.RestrictFavCheck;
+ tw.ReadOwnPost = this._cfgCommon.ReadOwnPost;
ShortUrl.Instance.DisableExpanding = !SettingDialog.TinyUrlResolve;
ShortUrl.Instance.BitlyId = SettingDialog.BitlyUser;
ShortUrl.Instance.BitlyKey = SettingDialog.BitlyPwd;
}
MultiLineMenuItem.Checked = _cfgLocal.StatusMultiline;
//this.Tween_ClientSizeChanged(this, null);
- PlaySoundMenuItem.Checked = SettingDialog.PlaySound;
- this.PlaySoundFileMenuItem.Checked = SettingDialog.PlaySound;
+ this.PlaySoundMenuItem.Checked = this._cfgCommon.PlaySound;
+ this.PlaySoundFileMenuItem.Checked = this._cfgCommon.PlaySound;
//入力欄
StatusText.Font = _fntInputFont;
StatusText.ForeColor = _clInputFont;
SplitContainer1.IsPanelInverted = !SettingDialog.StatusAreaAtBottom;
//全新着通知のチェック状態により、Reply&DMの新着通知有効無効切り替え(タブ別設定にするため削除予定)
- if (SettingDialog.UnreadManage == false)
+ if (this._cfgCommon.UnreadManage == false)
{
ReadedStripMenuItem.Enabled = false;
UnreadStripMenuItem.Enabled = false;
CopyURLMenuItem.ShortcutKeyDisplayString = "Ctrl+Shift+C";
CopyUserIdStripMenuItem.ShortcutKeyDisplayString = "Shift+Alt+C";
- if (SettingDialog.MinimizeToTray == false || this.WindowState != FormWindowState.Minimized)
+ if (!this._cfgCommon.MinimizeToTray || this.WindowState != FormWindowState.Minimized)
{
this.Visible = true;
}
{
if (notifyPosts != null &&
notifyPosts.Length > 0 &&
- this.SettingDialog.ReadOwnPost &&
+ this._cfgCommon.ReadOwnPost &&
notifyPosts.All((post) => { return post.UserId == tw.UserId || post.ScreenName == tw.Username; }))
{
return;
}
//サウンド再生
- if (!_initial && SettingDialog.PlaySound && !string.IsNullOrEmpty(soundFile))
+ if (!_initial && this._cfgCommon.PlaySound && !string.IsNullOrEmpty(soundFile))
{
try
{
this.PushSelectPostChain();
- if (SettingDialog.UnreadManage) _statuses.SetReadAllTab(true, _curTab.Text, _curItemIndex);
+ if (this._cfgCommon.UnreadManage) _statuses.SetReadAllTab(true, _curTab.Text, _curItemIndex);
//キャッシュの書き換え
ChangeCacheStyleRead(true, _curItemIndex); //既読へ(フォント、文字色)
//Read:true=既読 false=未読
//未読管理していなかったら既読として扱う
if (!tabInfo.UnreadManage ||
- !SettingDialog.UnreadManage) Read = true;
+ !this._cfgCommon.UnreadManage) Read = true;
//対象の特定
ListViewItem itm = null;
private void TweenMain_FormClosing(object sender, FormClosingEventArgs e)
{
- if (!SettingDialog.CloseToExit && e.CloseReason == CloseReason.UserClosing && MyCommon._endingFlag == false)
+ if (!this._cfgCommon.CloseToExit && e.CloseReason == CloseReason.UserClosing && MyCommon._endingFlag == false)
{
//_endingFlag=false:フォームの×ボタン
e.Cancel = true;
string ret = "";
GetWorkerResult rslt = new GetWorkerResult();
- bool read = !SettingDialog.UnreadManage;
- if (_initial && SettingDialog.UnreadManage) read = this._cfgCommon.Read;
+ bool read = !this._cfgCommon.UnreadManage;
+ if (_initial && this._cfgCommon.UnreadManage) read = this._cfgCommon.Read;
GetWorkerArg args = (GetWorkerArg)e.Argument;
bw.ReportProgress(50, MakeStatusMessage(args, false));
ret = tw.GetTimelineApi(read, args.type, args.page == -1, _initial);
//新着時未読クリア
- if (string.IsNullOrEmpty(ret) && args.type == MyCommon.WORKERTYPE.Timeline && SettingDialog.ReadOldPosts)
+ if (string.IsNullOrEmpty(ret) && args.type == MyCommon.WORKERTYPE.Timeline && this._cfgCommon.ReadOldPosts)
_statuses.SetRead();
//振り分け
rslt.addCount = _statuses.DistributePosts();
private void MyList_MouseDoubleClick(object sender, MouseEventArgs e)
{
- switch (SettingDialog.ListDoubleClickAction)
+ switch (this._cfgCommon.ListDoubleClickAction)
{
case 0:
MakeReplyOrDirectStatus();
{
using (ControlTransaction.Update(this._curList))
{
- if (SettingDialog.UnreadManage)
+ if (this._cfgCommon.UnreadManage)
{
foreach (int idx in _curList.SelectedIndices)
{
{
using (ControlTransaction.Update(this._curList))
{
- if (SettingDialog.UnreadManage)
+ if (this._cfgCommon.UnreadManage)
{
foreach (int idx in _curList.SelectedIndices)
{
this.SettingDialog.SaveConfig(this._cfgCommon, this._cfgLocal);
- tw.RestrictFavCheck = SettingDialog.RestrictFavCheck;
- tw.ReadOwnPost = SettingDialog.ReadOwnPost;
+ tw.RestrictFavCheck = this._cfgCommon.RestrictFavCheck;
+ tw.ReadOwnPost = this._cfgCommon.ReadOwnPost;
ShortUrl.Instance.DisableExpanding = !SettingDialog.TinyUrlResolve;
ShortUrl.Instance.BitlyId = SettingDialog.BitlyUser;
ShortUrl.Instance.BitlyKey = SettingDialog.BitlyPwd;
try
{
- if (!SettingDialog.UnreadManage)
+ if (!this._cfgCommon.UnreadManage)
{
ReadedStripMenuItem.Enabled = false;
UnreadStripMenuItem.Enabled = false;
imgazyobizinet.Enabled = this.SettingDialog.EnableImgAzyobuziNet;
imgazyobizinet.DisabledInDM = this.SettingDialog.ImgAzyobuziNetDisabledInDM;
- PlaySoundMenuItem.Checked = SettingDialog.PlaySound;
- this.PlaySoundFileMenuItem.Checked = SettingDialog.PlaySound;
+ this.PlaySoundMenuItem.Checked = this._cfgCommon.PlaySound;
+ this.PlaySoundFileMenuItem.Checked = this._cfgCommon.PlaySound;
_fntUnread = SettingDialog.FontUnread;
_clUnread = SettingDialog.ColorUnread;
_fntReaded = SettingDialog.FontReaded;
try
{
- _statuses.SetUnreadManage(SettingDialog.UnreadManage);
+ _statuses.SetUnreadManage(this._cfgCommon.UnreadManage);
}
catch (Exception ex)
{
ListTab.Refresh();
_hookGlobalHotkey.UnregisterAllOriginalHotkey();
- if (SettingDialog.HotkeyEnabled)
+ if (this._cfgCommon.HotkeyEnabled)
{
///グローバルホットキーの登録。設定で変更可能にするかも
HookGlobalHotkey.ModKeys modKey = HookGlobalHotkey.ModKeys.None;
- if ((SettingDialog.HotkeyMod & Keys.Alt) == Keys.Alt) modKey = modKey | HookGlobalHotkey.ModKeys.Alt;
- if ((SettingDialog.HotkeyMod & Keys.Control) == Keys.Control) modKey = modKey | HookGlobalHotkey.ModKeys.Ctrl;
- if ((SettingDialog.HotkeyMod & Keys.Shift) == Keys.Shift) modKey = modKey | HookGlobalHotkey.ModKeys.Shift;
- if ((SettingDialog.HotkeyMod & Keys.LWin) == Keys.LWin) modKey = modKey | HookGlobalHotkey.ModKeys.Win;
+ if ((this._cfgCommon.HotkeyModifier & Keys.Alt) == Keys.Alt)
+ modKey |= HookGlobalHotkey.ModKeys.Alt;
+ if ((this._cfgCommon.HotkeyModifier & Keys.Control) == Keys.Control)
+ modKey |= HookGlobalHotkey.ModKeys.Ctrl;
+ if ((this._cfgCommon.HotkeyModifier & Keys.Shift) == Keys.Shift)
+ modKey |= HookGlobalHotkey.ModKeys.Shift;
+ if ((this._cfgCommon.HotkeyModifier & Keys.LWin) == Keys.LWin)
+ modKey |= HookGlobalHotkey.ModKeys.Win;
- _hookGlobalHotkey.RegisterOriginalHotkey(SettingDialog.HotkeyKey, SettingDialog.HotkeyValue, modKey);
+ _hookGlobalHotkey.RegisterOriginalHotkey(this._cfgCommon.HotkeyKey, this._cfgCommon.HotkeyValue, modKey);
}
if (uid != tw.Username) this.doGetFollowersMenu();
if (m.Success && IsTwitterId(m.Result("${ScreenName}")))
{
// Ctrlを押しながらリンクをクリックした場合は設定と逆の動作をする
- if (SettingDialog.OpenUserTimeline)
+ if (this._cfgCommon.OpenUserTimeline)
{
if (MyCommon.IsKeyDown(Keys.Control))
OpenUriAsync(e.Url.OriginalString);
{
//タブのD&D
- if (!SettingDialog.TabMouseLock && e.Button == MouseButtons.Left && _tabDrag)
+ if (!this._cfgCommon.TabMouseLock && e.Button == MouseButtons.Left && _tabDrag)
{
string tn = "";
Rectangle dragEnableRectangle = new Rectangle((int)(_tabMouseDownPoint.X - (SystemInformation.DragSize.Width / 2)), (int)(_tabMouseDownPoint.Y - (SystemInformation.DragSize.Height / 2)), SystemInformation.DragSize.Width, SystemInformation.DragSize.Height);
bool read = Post.IsRead;
//未読管理していなかったら既読として扱う
- if (!_statuses.Tabs[Tab.Text].UnreadManage || !SettingDialog.UnreadManage) read = true;
+ if (!_statuses.Tabs[Tab.Text].UnreadManage || !this._cfgCommon.UnreadManage) read = true;
ChangeItemStyleRead(read, itm, Post, null);
if (Tab.Equals(_curTab)) ColorizeList(itm, Index);
return itm;
_cfgCommon.Token = tw.AccessToken;
_cfgCommon.TokenSecret = tw.AccessTokenSecret;
_cfgCommon.UserAccounts = SettingDialog.UserAccounts;
- _cfgCommon.UnreadManage = SettingDialog.UnreadManage;
- _cfgCommon.PlaySound = SettingDialog.PlaySound;
_cfgCommon.NameBalloon = SettingDialog.NameBalloon;
_cfgCommon.CountApi = SettingDialog.CountApi;
_cfgCommon.CountApiReply = SettingDialog.CountApiReply;
_cfgCommon.DispUsername = SettingDialog.DispUsername;
- _cfgCommon.MinimizeToTray = SettingDialog.MinimizeToTray;
- _cfgCommon.CloseToExit = SettingDialog.CloseToExit;
_cfgCommon.DispLatestPost = SettingDialog.DispLatestPost;
_cfgCommon.TinyUrlResolve = SettingDialog.TinyUrlResolve;
- _cfgCommon.RestrictFavCheck = SettingDialog.RestrictFavCheck;
_cfgCommon.AlwaysTop = SettingDialog.AlwaysTop;
_cfgCommon.UrlConvertAuto = SettingDialog.UrlConvertAuto;
_cfgCommon.DefaultTimeOut = SettingDialog.DefaultTimeOut;
_cfgCommon.AutoShortUrlFirst = SettingDialog.AutoShortUrlFirst;
_cfgCommon.TabIconDisp = SettingDialog.TabIconDisp;
_cfgCommon.ReplyIconState = SettingDialog.ReplyIconState;
- _cfgCommon.ReadOwnPost = SettingDialog.ReadOwnPost;
_cfgCommon.IsMonospace = SettingDialog.IsMonospace;
if (IdeographicSpaceToSpaceToolStripMenuItem != null &&
IdeographicSpaceToSpaceToolStripMenuItem.IsDisposed == false)
{
_cfgCommon.WideSpaceConvert = this.IdeographicSpaceToSpaceToolStripMenuItem.Checked;
}
- _cfgCommon.ReadOldPosts = SettingDialog.ReadOldPosts;
_cfgCommon.BilyUser = SettingDialog.BitlyUser;
_cfgCommon.BitlyPwd = SettingDialog.BitlyPwd;
_cfgCommon.PreviewEnable = SettingDialog.PreviewEnable;
_cfgCommon.HashIsPermanent = HashMgr.IsPermanent;
_cfgCommon.HashIsNotAddToAtReply = HashMgr.IsNotAddToAtReply;
_cfgCommon.TwitterUrl = SettingDialog.TwitterApiUrl;
- _cfgCommon.HotkeyEnabled = SettingDialog.HotkeyEnabled;
- _cfgCommon.HotkeyModifier = SettingDialog.HotkeyMod;
- _cfgCommon.HotkeyKey = SettingDialog.HotkeyKey;
- _cfgCommon.HotkeyValue = SettingDialog.HotkeyValue;
_cfgCommon.BlinkNewMentions = SettingDialog.BlinkNewMentions;
if (ToolStripFocusLockMenuItem != null &&
ToolStripFocusLockMenuItem.IsDisposed == false)
_cfgCommon.UserTimelineCountApi = SettingDialog.UserTimelineCountApi;
_cfgCommon.TrackWord = tw.TrackWord;
_cfgCommon.AllAtReply = tw.AllAtReply;
- _cfgCommon.OpenUserTimeline = SettingDialog.OpenUserTimeline;
_cfgCommon.ListCountApi = SettingDialog.ListCountApi;
_cfgCommon.UseImageService = ImageSelector.ServiceIndex;
_cfgCommon.UseImageServiceName = ImageSelector.ServiceName;
- _cfgCommon.ListDoubleClickAction = SettingDialog.ListDoubleClickAction;
_cfgCommon.UserAppointUrl = SettingDialog.UserAppointUrl;
_cfgCommon.EnableImgAzyobuziNet = SettingDialog.EnableImgAzyobuziNet;
_cfgCommon.ImgAzyobuziNetDisabledInDM = SettingDialog.ImgAzyobuziNetDisabledInDM;
_cfgCommon.MapThumbnailHeight = SettingDialog.MapThumbnailHeight;
_cfgCommon.MapThumbnailWidth = SettingDialog.MapThumbnailWidth;
_cfgCommon.MapThumbnailZoom = SettingDialog.MapThumbnailZoom;
- _cfgCommon.TabMouseLock = SettingDialog.TabMouseLock;
_cfgCommon.IsRemoveSameEvent = SettingDialog.IsRemoveSameEvent;
_cfgCommon.IsUseNotifyGrowl = SettingDialog.IsNotifyUseGrowl;
_cfgLocal.ColorInputFont = _clInputFont;
_cfgLocal.FontInputFont = _fntInputFont;
- _cfgLocal.BrowserPath = SettingDialog.BrowserPath;
_cfgLocal.ProxyType = SettingDialog.SelectedProxyType;
_cfgLocal.ProxyAddress = SettingDialog.ProxyAddress;
_cfgLocal.ProxyPort = SettingDialog.ProxyPort;
private void ListTab_MouseDown(object sender, MouseEventArgs e)
{
- if (SettingDialog.TabMouseLock) return;
+ if (this._cfgCommon.TabMouseLock) return;
Point cpos = new Point(e.X, e.Y);
if (e.Button == MouseButtons.Left)
{
else
{
Match m = Regex.Match(openUrlStr, "^https?://twitter.com/(#!/)?(?<ScreenName>[a-zA-Z0-9_]+)$");
- if (SettingDialog.OpenUserTimeline && m.Success && IsTwitterId(m.Result("${ScreenName}")))
+ if (this._cfgCommon.OpenUserTimeline && m.Success && IsTwitterId(m.Result("${ScreenName}")))
this.AddNewTabForUserTimeline(m.Result("${ScreenName}"));
else
OpenUriAsync(openUrlStr);
private void TweenMain_Resize(object sender, EventArgs e)
{
- if (!_initialLayout && SettingDialog.MinimizeToTray && WindowState == FormWindowState.Minimized)
+ if (!_initialLayout && this._cfgCommon.MinimizeToTray && WindowState == FormWindowState.Minimized)
{
this.Visible = false;
}
this.PlaySoundFileMenuItem.Checked = PlaySoundMenuItem.Checked;
if (PlaySoundMenuItem.Checked)
{
- SettingDialog.PlaySound = true;
+ this._cfgCommon.PlaySound = true;
}
else
{
- SettingDialog.PlaySound = false;
+ this._cfgCommon.PlaySound = false;
}
_modifySettingCommon = true;
}
try
{
- var configBrowserPath = SettingDialog.BrowserPath;
+ var configBrowserPath = this._cfgLocal.BrowserPath;
if (!string.IsNullOrEmpty(configBrowserPath))
{
if (configBrowserPath.StartsWith("\"") && configBrowserPath.Length > 2 && configBrowserPath.IndexOf("\"", 2) > -1)
private void tw_NewPostFromStream(object sender, EventArgs e)
{
- if (SettingDialog.ReadOldPosts)
+ if (this._cfgCommon.ReadOldPosts)
{
_statuses.SetRead(); //新着時未読クリア
}
//サウンド再生
string snd = SettingDialog.EventSoundFile;
- if (!_initial && SettingDialog.PlaySound && !string.IsNullOrEmpty(snd))
+ if (!_initial && this._cfgCommon.PlaySound && !string.IsNullOrEmpty(snd))
{
if ((ev.Eventtype & SettingDialog.EventNotifyFlag) != 0 && IsMyEventNotityAsEventType(ev))
{