public List<UserAccount> UserAccounts;
private long? InitialUserId;
public bool IsRemoveSameEvent;
- public bool IsNotifyUseGrowl;
public TwitterConfiguration TwitterConfiguration = TwitterConfiguration.DefaultConfiguration();
this.ActionPanel.LoadConfig(settingCommon, settingLocal);
this.FontPanel.LoadConfig(settingLocal);
this.FontPanel2.LoadConfig(settingLocal);
+ this.PreviewPanel.LoadConfig(settingCommon);
}
public void SaveConfig(SettingCommon settingCommon, SettingLocal settingLocal)
this.ActionPanel.SaveConfig(settingCommon, settingLocal);
this.FontPanel.SaveConfig(settingLocal);
this.FontPanel2.SaveConfig(settingLocal);
+ this.PreviewPanel.SaveConfig(settingCommon);
}
private void TreeViewSetting_BeforeSelect(object sender, TreeViewCancelEventArgs e)
#endif
try
{
- switch (this.PreviewPanel.cmbNameBalloon.SelectedIndex)
- {
- case 0:
- NameBalloon = MyCommon.NameBalloonEnum.None;
- break;
- case 1:
- NameBalloon = MyCommon.NameBalloonEnum.UserID;
- break;
- case 2:
- NameBalloon = MyCommon.NameBalloonEnum.NickName;
- break;
- }
-
CountApi = int.Parse(this.GetCountPanel.TextCountApi.Text);
CountApiReply = int.Parse(this.GetCountPanel.TextCountApiReply.Text);
- DispUsername = this.PreviewPanel.CheckDispUsername.Checked;
- switch (this.PreviewPanel.ComboDispTitle.SelectedIndex)
- {
- case 0: //None
- DispLatestPost = MyCommon.DispTitleEnum.None;
- break;
- case 1: //Ver
- DispLatestPost = MyCommon.DispTitleEnum.Ver;
- break;
- case 2: //Post
- DispLatestPost = MyCommon.DispTitleEnum.Post;
- break;
- case 3: //RepCount
- DispLatestPost = MyCommon.DispTitleEnum.UnreadRepCount;
- break;
- case 4: //AllCount
- DispLatestPost = MyCommon.DispTitleEnum.UnreadAllCount;
- break;
- case 5: //Rep+All
- DispLatestPost = MyCommon.DispTitleEnum.UnreadAllRepCount;
- break;
- case 6: //Unread/All
- DispLatestPost = MyCommon.DispTitleEnum.UnreadCountAllCount;
- break;
- case 7: //Count of Status/Follow/Follower
- DispLatestPost = MyCommon.DispTitleEnum.OwnStatus;
- break;
- }
TinyUrlResolve = this.ShortUrlPanel.CheckTinyURL.Checked;
ShortUrl.Instance.DisableExpanding = !TinyUrlResolve;
if (this.ProxyPanel.RadioProxyNone.Checked)
ProxyPort = int.Parse(this.ProxyPanel.TextProxyPort.Text.Trim());
ProxyUser = this.ProxyPanel.TextProxyUser.Text.Trim();
ProxyPassword = this.ProxyPanel.TextProxyPassword.Text.Trim();
- AlwaysTop = this.PreviewPanel.CheckAlwaysTop.Checked;
UrlConvertAuto = this.ShortUrlPanel.CheckAutoConvertUrl.Checked;
ShortenTco = this.ShortUrlPanel.ShortenTcoCheck.Checked;
Nicoms = this.CooperatePanel.CheckNicoms.Checked;
DefaultTimeOut = int.Parse(this.ConnectionPanel.ConnectionTimeOut.Text);
- LimitBalloon = this.PreviewPanel.CheckBalloonLimit.Checked;
EventNotifyEnabled = this.NotifyPanel.CheckEventNotify.Checked;
GetEventNotifyFlag(ref _MyEventNotifyFlag, ref _isMyEventNotifyFlag);
ForceEventNotify = this.NotifyPanel.CheckForceEventNotify.Checked;
TranslateLanguage = Bing.GetLanguageEnumFromIndex(this.CooperatePanel.ComboBoxTranslateLanguage.SelectedIndex);
EventSoundFile = (string)this.NotifyPanel.ComboBoxEventNotifySound.SelectedItem;
AutoShortUrlFirst = (MyCommon.UrlConverter)this.ShortUrlPanel.ComboBoxAutoShortUrlFirst.SelectedIndex;
- TabIconDisp = this.PreviewPanel.chkTabIconDisp.Checked;
- IsMonospace = this.PreviewPanel.CheckMonospace.Checked;
BitlyUser = this.ShortUrlPanel.TextBitlyId.Text;
BitlyPwd = this.ShortUrlPanel.TextBitlyPw.Text;
- PreviewEnable = this.PreviewPanel.CheckPreviewEnable.Checked;
- StatusAreaAtBottom = this.PreviewPanel.CheckStatusAreaAtBottom.Checked;
TwitterApiUrl = this.ConnectionPanel.TwitterAPIText.Text.Trim();
- switch (this.PreviewPanel.ReplyIconStateCombo.SelectedIndex)
- {
- case 0:
- ReplyIconState = MyCommon.REPLY_ICONSTATE.None;
- break;
- case 1:
- ReplyIconState = MyCommon.REPLY_ICONSTATE.StaticIcon;
- break;
- case 2:
- ReplyIconState = MyCommon.REPLY_ICONSTATE.BlinkIcon;
- break;
- }
- switch (this.PreviewPanel.LanguageCombo.SelectedIndex)
- {
- case 0:
- Language = "OS";
- break;
- case 1:
- Language = "ja";
- break;
- case 2:
- Language = "en";
- break;
- case 3:
- Language = "zh-CN";
- break;
- default:
- Language = "en";
- break;
- }
- BlinkNewMentions = this.PreviewPanel.ChkNewMentionsBlink.Checked;
UseAdditionalCount = this.GetCountPanel.UseChangeGetCount.Checked;
MoreCountApi = int.Parse(this.GetCountPanel.GetMoreTextCountApi.Text);
FirstCountApi = int.Parse(this.GetCountPanel.FirstTextCountApi.Text);
this.MapThumbnailWidth = int.Parse(this.CooperatePanel.MapThumbnailWidthTextBox.Text);
this.MapThumbnailZoom = int.Parse(this.CooperatePanel.MapThumbnailZoomTextBox.Text);
this.IsRemoveSameEvent = this.NotifyPanel.IsRemoveSameFavEventCheckBox.Checked;
- this.IsNotifyUseGrowl = this.PreviewPanel.IsNotifyUseGrowlCheckBox.Checked;
}
catch(Exception)
{
}
}
- switch (NameBalloon)
- {
- case MyCommon.NameBalloonEnum.None:
- this.PreviewPanel.cmbNameBalloon.SelectedIndex = 0;
- break;
- case MyCommon.NameBalloonEnum.UserID:
- this.PreviewPanel.cmbNameBalloon.SelectedIndex = 1;
- break;
- case MyCommon.NameBalloonEnum.NickName:
- this.PreviewPanel.cmbNameBalloon.SelectedIndex = 2;
- break;
- }
-
this.GetCountPanel.TextCountApi.Text = CountApi.ToString();
this.GetCountPanel.TextCountApiReply.Text = CountApiReply.ToString();
- this.PreviewPanel.CheckDispUsername.Checked = DispUsername;
- switch (DispLatestPost)
- {
- case MyCommon.DispTitleEnum.None:
- this.PreviewPanel.ComboDispTitle.SelectedIndex = 0;
- break;
- case MyCommon.DispTitleEnum.Ver:
- this.PreviewPanel.ComboDispTitle.SelectedIndex = 1;
- break;
- case MyCommon.DispTitleEnum.Post:
- this.PreviewPanel.ComboDispTitle.SelectedIndex = 2;
- break;
- case MyCommon.DispTitleEnum.UnreadRepCount:
- this.PreviewPanel.ComboDispTitle.SelectedIndex = 3;
- break;
- case MyCommon.DispTitleEnum.UnreadAllCount:
- this.PreviewPanel.ComboDispTitle.SelectedIndex = 4;
- break;
- case MyCommon.DispTitleEnum.UnreadAllRepCount:
- this.PreviewPanel.ComboDispTitle.SelectedIndex = 5;
- break;
- case MyCommon.DispTitleEnum.UnreadCountAllCount:
- this.PreviewPanel.ComboDispTitle.SelectedIndex = 6;
- break;
- case MyCommon.DispTitleEnum.OwnStatus:
- this.PreviewPanel.ComboDispTitle.SelectedIndex = 7;
- break;
- }
this.ShortUrlPanel.CheckTinyURL.Checked = TinyUrlResolve;
switch (_MyProxyType)
{
this.ProxyPanel.TextProxyUser.Text = ProxyUser;
this.ProxyPanel.TextProxyPassword.Text = ProxyPassword;
- this.PreviewPanel.CheckAlwaysTop.Checked = AlwaysTop;
this.ShortUrlPanel.CheckAutoConvertUrl.Checked = UrlConvertAuto;
this.ShortUrlPanel.ShortenTcoCheck.Checked = ShortenTco;
this.ShortUrlPanel.ShortenTcoCheck.Enabled = this.ShortUrlPanel.CheckAutoConvertUrl.Checked;
this.CooperatePanel.CheckNicoms.Checked = Nicoms;
this.ConnectionPanel.ConnectionTimeOut.Text = DefaultTimeOut.ToString();
- this.PreviewPanel.CheckBalloonLimit.Checked = LimitBalloon;
ApplyEventNotifyFlag(EventNotifyEnabled, EventNotifyFlag, IsMyEventNotifyFlag);
this.NotifyPanel.CheckForceEventNotify.Checked = ForceEventNotify;
this.CooperatePanel.ComboBoxTranslateLanguage.SelectedIndex = Bing.GetIndexFromLanguageEnum(TranslateLanguage);
SoundFileListup();
this.ShortUrlPanel.ComboBoxAutoShortUrlFirst.SelectedIndex = (int)AutoShortUrlFirst;
- this.PreviewPanel.chkTabIconDisp.Checked = TabIconDisp;
- this.PreviewPanel.CheckMonospace.Checked = IsMonospace;
this.ShortUrlPanel.TextBitlyId.Text = BitlyUser;
this.ShortUrlPanel.TextBitlyPw.Text = BitlyPwd;
this.ShortUrlPanel.TextBitlyId.Modified = false;
this.ShortUrlPanel.TextBitlyPw.Modified = false;
- this.PreviewPanel.CheckPreviewEnable.Checked = PreviewEnable;
- this.PreviewPanel.CheckStatusAreaAtBottom.Checked = StatusAreaAtBottom;
this.ConnectionPanel.TwitterAPIText.Text = TwitterApiUrl;
- switch (ReplyIconState)
- {
- case MyCommon.REPLY_ICONSTATE.None:
- this.PreviewPanel.ReplyIconStateCombo.SelectedIndex = 0;
- break;
- case MyCommon.REPLY_ICONSTATE.StaticIcon:
- this.PreviewPanel.ReplyIconStateCombo.SelectedIndex = 1;
- break;
- case MyCommon.REPLY_ICONSTATE.BlinkIcon:
- this.PreviewPanel.ReplyIconStateCombo.SelectedIndex = 2;
- break;
- }
- switch (Language)
- {
- case "OS":
- this.PreviewPanel.LanguageCombo.SelectedIndex = 0;
- break;
- case "ja":
- this.PreviewPanel.LanguageCombo.SelectedIndex = 1;
- break;
- case "en":
- this.PreviewPanel.LanguageCombo.SelectedIndex = 2;
- break;
- case "zh-CN":
- this.PreviewPanel.LanguageCombo.SelectedIndex = 3;
- break;
- default:
- this.PreviewPanel.LanguageCombo.SelectedIndex = 0;
- break;
- }
- this.PreviewPanel.ChkNewMentionsBlink.Checked = BlinkNewMentions;
this.GetCountPanel.GetMoreTextCountApi.Text = MoreCountApi.ToString();
this.GetCountPanel.FirstTextCountApi.Text = FirstCountApi.ToString();
this.CooperatePanel.MapThumbnailWidthTextBox.Text = this.MapThumbnailWidth.ToString();
this.CooperatePanel.MapThumbnailZoomTextBox.Text = this.MapThumbnailZoom.ToString();
this.NotifyPanel.IsRemoveSameFavEventCheckBox.Checked = this.IsRemoveSameEvent;
- this.PreviewPanel.IsNotifyUseGrowlCheckBox.Checked = this.IsNotifyUseGrowl;
-
- if (GrowlHelper.IsDllExists)
- {
- this.PreviewPanel.IsNotifyUseGrowlCheckBox.Enabled = true;
- }
- else
- {
- this.PreviewPanel.IsNotifyUseGrowlCheckBox.Enabled = false;
- }
this.TreeViewSetting.Nodes["BasedNode"].Tag = BasedPanel;
this.TreeViewSetting.Nodes["BasedNode"].Nodes["PeriodNode"].Tag = GetPeriodPanel;
}
}
- public MyCommon.NameBalloonEnum NameBalloon { get; set; }
public int CountApi { get; set; }
public int CountApiReply { get; set; }
public int MoreCountApi { get; set; }
public int UserTimelineCountApi { get; set; }
public int ListCountApi { get; set; }
public string RecommendStatusText { get; set; }
- public bool DispUsername { get; set; }
- public MyCommon.DispTitleEnum DispLatestPost { 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 AlwaysTop { get; set; }
public bool UrlConvertAuto { get; set; }
public bool ShortenTco { get; set; }
public bool Nicoms { get; set; }
public MyCommon.UrlConverter AutoShortUrlFirst { get; set; }
public int DefaultTimeOut { get; set; }
- public bool TabIconDisp { get; set; }
- public MyCommon.REPLY_ICONSTATE ReplyIconState { get; set; }
- public bool IsMonospace { 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 string TwitterApiUrl { get; set; }
- public string Language { get; set; }
- public bool LimitBalloon { get; set; }
public bool EventNotifyEnabled { get; set; }
public MyCommon.EVENTTYPE EventNotifyFlag
Thread.Sleep(10);
if (this.Disposing || this.IsDisposed) return;
} while (!this.IsHandleCreated);
- this.TopMost = this.AlwaysTop;
+ this.TopMost = this.PreviewPanel.CheckAlwaysTop.Checked;
this.GetPeriodPanel.LabelPostAndGet.Visible = this.GetPeriodPanel.CheckPostAndGet.Checked && !tw.UserStreamEnabled;
this.GetPeriodPanel.LabelUserStreamActive.Visible = tw.UserStreamEnabled;
_ValidationError = false;
}
- public bool BlinkNewMentions;
-
//private void CheckEventNotify_CheckedChanged(object sender, EventArgs e)
// Handles CheckEventNotify.CheckedChanged, CheckFavoritesEvent.CheckStateChanged,
// CheckUnfavoritesEvent.CheckStateChanged, CheckFollowEvent.CheckStateChanged,
{
InitializeComponent();
}
+
+ public void LoadConfig(SettingCommon settingCommon)
+ {
+ switch (settingCommon.NameBalloon)
+ {
+ case MyCommon.NameBalloonEnum.None:
+ this.cmbNameBalloon.SelectedIndex = 0;
+ break;
+ case MyCommon.NameBalloonEnum.UserID:
+ this.cmbNameBalloon.SelectedIndex = 1;
+ break;
+ case MyCommon.NameBalloonEnum.NickName:
+ this.cmbNameBalloon.SelectedIndex = 2;
+ break;
+ }
+
+ this.CheckDispUsername.Checked = settingCommon.DispUsername;
+
+ switch (settingCommon.DispLatestPost)
+ {
+ case MyCommon.DispTitleEnum.None:
+ this.ComboDispTitle.SelectedIndex = 0;
+ break;
+ case MyCommon.DispTitleEnum.Ver:
+ this.ComboDispTitle.SelectedIndex = 1;
+ break;
+ case MyCommon.DispTitleEnum.Post:
+ this.ComboDispTitle.SelectedIndex = 2;
+ break;
+ case MyCommon.DispTitleEnum.UnreadRepCount:
+ this.ComboDispTitle.SelectedIndex = 3;
+ break;
+ case MyCommon.DispTitleEnum.UnreadAllCount:
+ this.ComboDispTitle.SelectedIndex = 4;
+ break;
+ case MyCommon.DispTitleEnum.UnreadAllRepCount:
+ this.ComboDispTitle.SelectedIndex = 5;
+ break;
+ case MyCommon.DispTitleEnum.UnreadCountAllCount:
+ this.ComboDispTitle.SelectedIndex = 6;
+ break;
+ case MyCommon.DispTitleEnum.OwnStatus:
+ this.ComboDispTitle.SelectedIndex = 7;
+ break;
+ }
+
+ this.CheckAlwaysTop.Checked = settingCommon.AlwaysTop;
+ this.CheckBalloonLimit.Checked = settingCommon.LimitBalloon;
+ this.chkTabIconDisp.Checked = settingCommon.TabIconDisp;
+ this.CheckMonospace.Checked = settingCommon.IsMonospace;
+ this.CheckPreviewEnable.Checked = settingCommon.PreviewEnable;
+ this.CheckStatusAreaAtBottom.Checked = settingCommon.StatusAreaAtBottom;
+
+ switch (settingCommon.ReplyIconState)
+ {
+ case MyCommon.REPLY_ICONSTATE.None:
+ this.ReplyIconStateCombo.SelectedIndex = 0;
+ break;
+ case MyCommon.REPLY_ICONSTATE.StaticIcon:
+ this.ReplyIconStateCombo.SelectedIndex = 1;
+ break;
+ case MyCommon.REPLY_ICONSTATE.BlinkIcon:
+ this.ReplyIconStateCombo.SelectedIndex = 2;
+ break;
+ }
+
+ switch (settingCommon.Language)
+ {
+ case "OS":
+ this.LanguageCombo.SelectedIndex = 0;
+ break;
+ case "ja":
+ this.LanguageCombo.SelectedIndex = 1;
+ break;
+ case "en":
+ this.LanguageCombo.SelectedIndex = 2;
+ break;
+ case "zh-CN":
+ this.LanguageCombo.SelectedIndex = 3;
+ break;
+ default:
+ this.LanguageCombo.SelectedIndex = 0;
+ break;
+ }
+
+ this.ChkNewMentionsBlink.Checked = settingCommon.BlinkNewMentions;
+ this.IsNotifyUseGrowlCheckBox.Checked = settingCommon.IsUseNotifyGrowl;
+ this.IsNotifyUseGrowlCheckBox.Enabled = GrowlHelper.IsDllExists;
+ }
+
+ public void SaveConfig(SettingCommon settingCommon)
+ {
+ switch (this.cmbNameBalloon.SelectedIndex)
+ {
+ case 0:
+ settingCommon.NameBalloon = MyCommon.NameBalloonEnum.None;
+ break;
+ case 1:
+ settingCommon.NameBalloon = MyCommon.NameBalloonEnum.UserID;
+ break;
+ case 2:
+ settingCommon.NameBalloon = MyCommon.NameBalloonEnum.NickName;
+ break;
+ }
+
+ settingCommon.DispUsername = this.CheckDispUsername.Checked;
+
+ switch (this.ComboDispTitle.SelectedIndex)
+ {
+ case 0: // None
+ settingCommon.DispLatestPost = MyCommon.DispTitleEnum.None;
+ break;
+ case 1: // Ver
+ settingCommon.DispLatestPost = MyCommon.DispTitleEnum.Ver;
+ break;
+ case 2: // Post
+ settingCommon.DispLatestPost = MyCommon.DispTitleEnum.Post;
+ break;
+ case 3: // RepCount
+ settingCommon.DispLatestPost = MyCommon.DispTitleEnum.UnreadRepCount;
+ break;
+ case 4: // AllCount
+ settingCommon.DispLatestPost = MyCommon.DispTitleEnum.UnreadAllCount;
+ break;
+ case 5: // Rep+All
+ settingCommon.DispLatestPost = MyCommon.DispTitleEnum.UnreadAllRepCount;
+ break;
+ case 6: // Unread/All
+ settingCommon.DispLatestPost = MyCommon.DispTitleEnum.UnreadCountAllCount;
+ break;
+ case 7: // Count of Status/Follow/Follower
+ settingCommon.DispLatestPost = MyCommon.DispTitleEnum.OwnStatus;
+ break;
+ }
+
+ settingCommon.AlwaysTop = this.CheckAlwaysTop.Checked;
+ settingCommon.LimitBalloon = this.CheckBalloonLimit.Checked;
+ settingCommon.TabIconDisp = this.chkTabIconDisp.Checked;
+ settingCommon.IsMonospace = this.CheckMonospace.Checked;
+ settingCommon.PreviewEnable = this.CheckPreviewEnable.Checked;
+ settingCommon.StatusAreaAtBottom = this.CheckStatusAreaAtBottom.Checked;
+
+ switch (this.ReplyIconStateCombo.SelectedIndex)
+ {
+ case 0:
+ settingCommon.ReplyIconState = MyCommon.REPLY_ICONSTATE.None;
+ break;
+ case 1:
+ settingCommon.ReplyIconState = MyCommon.REPLY_ICONSTATE.StaticIcon;
+ break;
+ case 2:
+ settingCommon.ReplyIconState = MyCommon.REPLY_ICONSTATE.BlinkIcon;
+ break;
+ }
+
+ switch (this.LanguageCombo.SelectedIndex)
+ {
+ case 0:
+ settingCommon.Language = "OS";
+ break;
+ case 1:
+ settingCommon.Language = "ja";
+ break;
+ case 2:
+ settingCommon.Language = "en";
+ break;
+ case 3:
+ settingCommon.Language = "zh-CN";
+ break;
+ default:
+ settingCommon.Language = "en";
+ break;
+ }
+
+ settingCommon.BlinkNewMentions = this.ChkNewMentionsBlink.Checked;
+ settingCommon.IsUseNotifyGrowl = this.IsNotifyUseGrowlCheckBox.Checked;
+ }
}
}
this.PlaySoundMenuItem.Checked = this._cfgCommon.PlaySound;
this.PlaySoundFileMenuItem.Checked = this._cfgCommon.PlaySound;
- SettingDialog.NameBalloon = _cfgCommon.NameBalloon;
-
SettingDialog.CountApi = _cfgCommon.CountApi;
SettingDialog.CountApiReply = _cfgCommon.CountApiReply;
if (SettingDialog.CountApi < 20 || SettingDialog.CountApi > 200) SettingDialog.CountApi = 60;
if (SettingDialog.CountApiReply < 20 || SettingDialog.CountApiReply > 200) SettingDialog.CountApiReply = 40;
SettingDialog.PostAndGet = _cfgCommon.PostAndGet;
- SettingDialog.DispUsername = _cfgCommon.DispUsername;
- SettingDialog.DispLatestPost = _cfgCommon.DispLatestPost;
SettingDialog.TinyUrlResolve = _cfgCommon.TinyUrlResolve;
SettingDialog.SelectedProxyType = _cfgLocal.ProxyType;
SettingDialog.ProxyUser = _cfgLocal.ProxyUser;
SettingDialog.ProxyPassword = _cfgLocal.ProxyPassword;
- SettingDialog.AlwaysTop = _cfgCommon.AlwaysTop;
SettingDialog.UrlConvertAuto = false;
//SettingDialog.UrlConvertAuto = _cfgCommon.UrlConvertAuto;
SettingDialog.DefaultTimeOut = _cfgCommon.DefaultTimeOut;
- SettingDialog.LimitBalloon = _cfgCommon.LimitBalloon;
SettingDialog.EventNotifyEnabled = _cfgCommon.EventNotifyEnabled;
SettingDialog.EventNotifyFlag = _cfgCommon.EventNotifyFlag;
SettingDialog.IsMyEventNotifyFlag = _cfgCommon.IsMyEventNotifyFlag;
_cfgCommon.AutoShortUrlFirst = MyCommon.UrlConverter.Uxnu;
SettingDialog.AutoShortUrlFirst = _cfgCommon.AutoShortUrlFirst;
- SettingDialog.TabIconDisp = _cfgCommon.TabIconDisp;
- SettingDialog.ReplyIconState = _cfgCommon.ReplyIconState;
SettingDialog.BitlyUser = _cfgCommon.BilyUser;
SettingDialog.BitlyPwd = _cfgCommon.BitlyPwd;
- SettingDialog.Language = _cfgCommon.Language;
- SettingDialog.PreviewEnable = _cfgCommon.PreviewEnable;
- SettingDialog.StatusAreaAtBottom = _cfgCommon.StatusAreaAtBottom;
AtIdSupl = new AtIdSupplement(SettingAtIdList.Load().AtIdList, "@");
- SettingDialog.IsMonospace = _cfgCommon.IsMonospace;
-
this.IdeographicSpaceToSpaceToolStripMenuItem.Checked = _cfgCommon.WideSpaceConvert;
this.ToolStripFocusLockMenuItem.Checked = _cfgCommon.FocusLockToStatusText;
SettingDialog.Nicoms = _cfgCommon.Nicoms;
- SettingDialog.BlinkNewMentions = _cfgCommon.BlinkNewMentions;
-
SettingDialog.UseAdditionalCount = _cfgCommon.UseAdditionalCount;
SettingDialog.MoreCountApi = _cfgCommon.MoreCountApi;
SettingDialog.FirstCountApi = _cfgCommon.FirstCountApi;
SettingDialog.MapThumbnailWidth = _cfgCommon.MapThumbnailWidth;
SettingDialog.MapThumbnailZoom = _cfgCommon.MapThumbnailZoom;
SettingDialog.IsRemoveSameEvent = _cfgCommon.IsRemoveSameEvent;
- SettingDialog.IsNotifyUseGrowl = _cfgCommon.IsUseNotifyGrowl;
//ハッシュタグ関連
HashSupl = new AtIdSupplement(_cfgCommon.HashTags, "#");
}
}
}
- this.TopMost = SettingDialog.AlwaysTop;
+ this.TopMost = this._cfgCommon.AlwaysTop;
_mySpDis = _cfgLocal.SplitterDistance;
_mySpDis2 = _cfgLocal.StatusTextHeight;
_mySpDis3 = _cfgLocal.PreviewDistance;
this.NameLabel.Font = this.ReplaceToGlobalFont(this.NameLabel.Font);
// 必要であれば、発言一覧と発言詳細部・入力欄の上下を入れ替える
- SplitContainer1.IsPanelInverted = !SettingDialog.StatusAreaAtBottom;
+ SplitContainer1.IsPanelInverted = !this._cfgCommon.StatusAreaAtBottom;
//全新着通知のチェック状態により、Reply&DMの新着通知有効無効切り替え(タブ別設定にするため削除予定)
if (this._cfgCommon.UnreadManage == false)
UnreadStripMenuItem.Enabled = false;
}
- if (SettingDialog.IsNotifyUseGrowl) gh.RegisterGrowl();
+ if (this._cfgCommon.IsUseNotifyGrowl)
+ gh.RegisterGrowl();
//タイマー設定
TimerTimeline.AutoReset = true;
SetMainWindowTitle();
SetNotifyIconText();
- if (SettingDialog.TabIconDisp)
+ if (this._cfgCommon.TabIconDisp)
{
ListTab.DrawMode = TabDrawMode.Normal;
}
private void InitDetailHtmlFormat()
{
- if (SettingDialog.IsMonospace)
+ if (this._cfgCommon.IsMonospace)
{
detailHtmlFormatHeader = detailHtmlFormatMono1;
detailHtmlFormatFooter = detailHtmlFormatMono7;
detailHtmlFormatFooter = detailHtmlFormat7;
}
detailHtmlFormatHeader += _fntDetail.Name + detailHtmlFormat2 + _fntDetail.Size.ToString() + detailHtmlFormat3 + _clDetail.R.ToString() + "," + _clDetail.G.ToString() + "," + _clDetail.B.ToString() + detailHtmlFormat4 + _clDetailLink.R.ToString() + "," + _clDetailLink.G.ToString() + "," + _clDetailLink.B.ToString() + detailHtmlFormat5 + _clDetailBackcolor.R.ToString() + "," + _clDetailBackcolor.G.ToString() + "," + _clDetailBackcolor.B.ToString();
- if (SettingDialog.IsMonospace)
+ if (this._cfgCommon.IsMonospace)
{
detailHtmlFormatHeader += detailHtmlFormatMono6;
}
}
}
if (tabInfo.UnreadCount > 0)
- if (SettingDialog.TabIconDisp)
+ if (this._cfgCommon.TabIconDisp)
if (tab.ImageIndex == -1) tab.ImageIndex = 0; //タブアイコン
}
- if (!SettingDialog.TabIconDisp) ListTab.Refresh();
+ if (!this._cfgCommon.TabIconDisp) ListTab.Refresh();
}
catch (Exception)
{
!_initial &&
(
(
- SettingDialog.LimitBalloon &&
+ this._cfgCommon.LimitBalloon &&
(
this.WindowState == FormWindowState.Minimized ||
!this.Visible ||
Form.ActiveForm == null
)
) ||
- !SettingDialog.LimitBalloon
+ !this._cfgCommon.LimitBalloon
)
) &&
!NativeMethods.IsScreenSaverRunning())
if (notifyPosts != null && notifyPosts.Length > 0)
{
//Growlは一個ずつばらして通知。ただし、3ポスト以上あるときはまとめる
- if (SettingDialog.IsNotifyUseGrowl)
+ if (this._cfgCommon.IsUseNotifyGrowl)
{
StringBuilder sb = new StringBuilder();
bool reply = false;
if (post.IsReply && !post.IsExcludeReply) reply = true;
if (post.IsDm) dm = true;
if (sb.Length > 0) sb.Append(System.Environment.NewLine);
- switch (SettingDialog.NameBalloon)
+ switch (this._cfgCommon.NameBalloon)
{
case MyCommon.NameBalloonEnum.UserID:
sb.Append(post.ScreenName).Append(" : ");
StringBuilder title = new StringBuilder();
GrowlHelper.NotifyType nt;
- if (SettingDialog.DispUsername)
+ if (this._cfgCommon.DispUsername)
{
title.Append(tw.Username);
title.Append(" - ");
if (post.IsReply && !post.IsExcludeReply) reply = true;
if (post.IsDm) dm = true;
if (sb.Length > 0) sb.Append(System.Environment.NewLine);
- switch (SettingDialog.NameBalloon)
+ switch (this._cfgCommon.NameBalloon)
{
case MyCommon.NameBalloonEnum.UserID:
sb.Append(post.ScreenName).Append(" : ");
//if (SettingDialog.DispUsername) { NotifyIcon1.BalloonTipTitle = tw.Username + " - "; } else { NotifyIcon1.BalloonTipTitle = ""; }
StringBuilder title = new StringBuilder();
ToolTipIcon ntIcon;
- if (SettingDialog.DispUsername)
+ if (this._cfgCommon.DispUsername)
{
title.Append(tw.Username);
title.Append(" - ");
}
//mentions新着時に画面ブリンク
- if (!_initial && SettingDialog.BlinkNewMentions && newMentions && Form.ActiveForm == null)
+ if (!_initial && this._cfgCommon.BlinkNewMentions && newMentions && Form.ActiveForm == null)
{
NativeMethods.FlashMyWindow(this.Handle, NativeMethods.FlashSpecification.FlashTray, 3);
}
}
if (_statuses.Tabs[tb.Text].UnreadCount == 0)
{
- if (SettingDialog.TabIconDisp)
+ if (this._cfgCommon.TabIconDisp)
{
if (tb.ImageIndex == 0) tb.ImageIndex = -1; //タブアイコン
}
}
}
- if (!SettingDialog.TabIconDisp) ListTab.Refresh();
+ if (!this._cfgCommon.TabIconDisp) ListTab.Refresh();
}
finally
{
{
if (_statuses.Tabs[tb.Text].UnreadCount == 0)
{
- if (SettingDialog.TabIconDisp)
+ if (this._cfgCommon.TabIconDisp)
{
if (tb.ImageIndex == 0) tb.ImageIndex = -1; //タブアイコン
}
}
}
- if (!SettingDialog.TabIconDisp) ListTab.Refresh();
+ if (!this._cfgCommon.TabIconDisp) ListTab.Refresh();
}
private void UnreadStripMenuItem_Click(object sender, EventArgs e)
{
if (_statuses.Tabs[tb.Text].UnreadCount > 0)
{
- if (SettingDialog.TabIconDisp)
+ if (this._cfgCommon.TabIconDisp)
{
if (tb.ImageIndex == -1) tb.ImageIndex = 0; //タブアイコン
}
}
}
- if (!SettingDialog.TabIconDisp) ListTab.Refresh();
+ if (!this._cfgCommon.TabIconDisp) ListTab.Refresh();
}
private void RefreshStripMenuItem_Click(object sender, EventArgs e)
try
{
- if (SettingDialog.TabIconDisp)
+ if (this._cfgCommon.TabIconDisp)
{
ListTab.DrawItem -= ListTab_DrawItem;
ListTab.DrawMode = TabDrawMode.Normal;
{
ReadedStripMenuItem.Enabled = false;
UnreadStripMenuItem.Enabled = false;
- if (SettingDialog.TabIconDisp)
+ if (this._cfgCommon.TabIconDisp)
{
foreach (TabPage myTab in ListTab.TabPages)
{
// タブの表示位置の決定
SetTabAlignment();
- SplitContainer1.IsPanelInverted = !SettingDialog.StatusAreaAtBottom;
+ SplitContainer1.IsPanelInverted = !this._cfgCommon.StatusAreaAtBottom;
var imgazyobizinet = ThumbnailGenerator.ImgAzyobuziNetInstance;
imgazyobizinet.Enabled = this.SettingDialog.EnableImgAzyobuziNet;
{
foreach (TabPage tb in ListTab.TabPages)
{
- if (SettingDialog.TabIconDisp)
+ if (this._cfgCommon.TabIconDisp)
{
if (_statuses.Tabs[tb.Text].UnreadCount == 0)
tb.ImageIndex = -1;
if (uid != tw.Username) this.doGetFollowersMenu();
- if (SettingDialog.IsNotifyUseGrowl) gh.RegisterGrowl();
+ if (this._cfgCommon.IsUseNotifyGrowl) gh.RegisterGrowl();
try
{
StatusText_TextChanged(null, null);
Twitter.AccountState = MyCommon.ACCOUNT_STATE.Valid;
- this.TopMost = SettingDialog.AlwaysTop;
+ this.TopMost = this._cfgCommon.AlwaysTop;
SaveConfigsAll(false);
}
{
dialog.ShowDialog();
}
- this.TopMost = SettingDialog.AlwaysTop;
+ this.TopMost = this._cfgCommon.AlwaysTop;
int selStart = owner.SelectionStart;
string fHalf = "";
string eHalf = "";
var listview = (DetailsListView)tabPage.Tag;
listview.VirtualListSize = tab.AllCount;
- if (this.SettingDialog.TabIconDisp)
+ if (this._cfgCommon.TabIconDisp)
{
if (tab.UnreadCount > 0)
tabPage.ImageIndex = 0;
}
}
- if (!this.SettingDialog.TabIconDisp)
+ if (!this._cfgCommon.TabIconDisp)
this.ListTab.Refresh();
}
finally
if (this.SearchDialog.ShowDialog(this) != DialogResult.OK)
{
- this.TopMost = this.SettingDialog.AlwaysTop;
+ this.TopMost = this._cfgCommon.AlwaysTop;
return;
}
- this.TopMost = this.SettingDialog.AlwaysTop;
+ this.TopMost = this._cfgCommon.AlwaysTop;
var searchOptions = this.SearchDialog.ResultOptions;
if (searchOptions.Type == SearchWordDialog.SearchType.Timeline)
{
about.ShowDialog(this);
}
- this.TopMost = SettingDialog.AlwaysTop;
+ this.TopMost = this._cfgCommon.AlwaysTop;
}
private void JumpUnreadMenuItem_Click(object sender, EventArgs e)
_colorize = false;
DispSelectedPost();
//件数関連の場合、タイトル即時書き換え
- if (SettingDialog.DispLatestPost != MyCommon.DispTitleEnum.None &&
- SettingDialog.DispLatestPost != MyCommon.DispTitleEnum.Post &&
- SettingDialog.DispLatestPost != MyCommon.DispTitleEnum.Ver &&
- SettingDialog.DispLatestPost != MyCommon.DispTitleEnum.OwnStatus)
+ if (this._cfgCommon.DispLatestPost != MyCommon.DispTitleEnum.None &&
+ this._cfgCommon.DispLatestPost != MyCommon.DispTitleEnum.Post &&
+ this._cfgCommon.DispLatestPost != MyCommon.DispTitleEnum.Ver &&
+ this._cfgCommon.DispLatestPost != MyCommon.DispTitleEnum.OwnStatus)
{
SetMainWindowTitle();
}
{
if (_statuses.Tabs[tb.Text].UnreadCount == 0)
{
- if (SettingDialog.TabIconDisp)
+ if (this._cfgCommon.TabIconDisp)
{
if (tb.ImageIndex == 0) tb.ImageIndex = -1;
}
}
}
- if (!SettingDialog.TabIconDisp) ListTab.Refresh();
+ if (!this._cfgCommon.TabIconDisp) ListTab.Refresh();
}
public string createDetailHtml(string orgdata)
this.SplitContainer3.Panel2Collapsed = true;
- if (this.IsPreviewEnable)
+ if (this._cfgCommon.PreviewEnable)
{
if (this.thumbnailTokenSource != null)
{
_cfgCommon.TokenSecret = tw.AccessTokenSecret;
_cfgCommon.UserAccounts = SettingDialog.UserAccounts;
- _cfgCommon.NameBalloon = SettingDialog.NameBalloon;
_cfgCommon.CountApi = SettingDialog.CountApi;
_cfgCommon.CountApiReply = SettingDialog.CountApiReply;
- _cfgCommon.DispUsername = SettingDialog.DispUsername;
- _cfgCommon.DispLatestPost = SettingDialog.DispLatestPost;
_cfgCommon.TinyUrlResolve = SettingDialog.TinyUrlResolve;
- _cfgCommon.AlwaysTop = SettingDialog.AlwaysTop;
_cfgCommon.UrlConvertAuto = SettingDialog.UrlConvertAuto;
_cfgCommon.DefaultTimeOut = SettingDialog.DefaultTimeOut;
- _cfgCommon.LimitBalloon = SettingDialog.LimitBalloon;
_cfgCommon.EventNotifyEnabled = SettingDialog.EventNotifyEnabled;
_cfgCommon.EventNotifyFlag = SettingDialog.EventNotifyFlag;
_cfgCommon.IsMyEventNotifyFlag = SettingDialog.IsMyEventNotifyFlag;
_cfgCommon.TranslateLanguage = SettingDialog.TranslateLanguage;
_cfgCommon.EventSoundFile = SettingDialog.EventSoundFile;
_cfgCommon.AutoShortUrlFirst = SettingDialog.AutoShortUrlFirst;
- _cfgCommon.TabIconDisp = SettingDialog.TabIconDisp;
- _cfgCommon.ReplyIconState = SettingDialog.ReplyIconState;
- _cfgCommon.IsMonospace = SettingDialog.IsMonospace;
if (IdeographicSpaceToSpaceToolStripMenuItem != null &&
IdeographicSpaceToSpaceToolStripMenuItem.IsDisposed == false)
{
}
_cfgCommon.BilyUser = SettingDialog.BitlyUser;
_cfgCommon.BitlyPwd = SettingDialog.BitlyPwd;
- _cfgCommon.PreviewEnable = SettingDialog.PreviewEnable;
- _cfgCommon.StatusAreaAtBottom = SettingDialog.StatusAreaAtBottom;
- _cfgCommon.Language = SettingDialog.Language;
_cfgCommon.SortOrder = (int)_statuses.SortOrder;
switch (_statuses.SortMode)
_cfgCommon.HashIsPermanent = HashMgr.IsPermanent;
_cfgCommon.HashIsNotAddToAtReply = HashMgr.IsNotAddToAtReply;
_cfgCommon.TwitterUrl = SettingDialog.TwitterApiUrl;
- _cfgCommon.BlinkNewMentions = SettingDialog.BlinkNewMentions;
if (ToolStripFocusLockMenuItem != null &&
ToolStripFocusLockMenuItem.IsDisposed == false)
{
_cfgCommon.MapThumbnailWidth = SettingDialog.MapThumbnailWidth;
_cfgCommon.MapThumbnailZoom = SettingDialog.MapThumbnailZoom;
_cfgCommon.IsRemoveSameEvent = SettingDialog.IsRemoveSameEvent;
- _cfgCommon.IsUseNotifyGrowl = SettingDialog.IsNotifyUseGrowl;
_cfgCommon.Save();
}
}
}
}
- this.TopMost = SettingDialog.AlwaysTop;
+ this.TopMost = this._cfgCommon.AlwaysTop;
}
private void PostBrowser_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
if (inputName.DialogResult == DialogResult.Cancel) return false;
newTabText = inputName.TabName;
}
- this.TopMost = SettingDialog.AlwaysTop;
+ this.TopMost = this._cfgCommon.AlwaysTop;
if (!string.IsNullOrEmpty(newTabText))
{
//新タブ名存在チェック
}
TabClass tb = _statuses.GetTabByType(MyCommon.TabUsageType.Mentions);
- if (SettingDialog.ReplyIconState != MyCommon.REPLY_ICONSTATE.None && tb != null && tb.UnreadCount > 0)
+ if (this._cfgCommon.ReplyIconState != MyCommon.REPLY_ICONSTATE.None && tb != null && tb.UnreadCount > 0)
{
if (blinkCnt > 0) return;
blink = !blink;
- if (blink || SettingDialog.ReplyIconState == MyCommon.REPLY_ICONSTATE.StaticIcon)
+ if (blink || this._cfgCommon.ReplyIconState == MyCommon.REPLY_ICONSTATE.StaticIcon)
{
NotifyIcon1.Icon = ReplyIcon;
}
}
_statuses.SetTabUnreadManage(tabName, isManage);
- if (SettingDialog.TabIconDisp)
+ if (this._cfgCommon.TabIconDisp)
{
if (_statuses.Tabs[tabName].UnreadCount > 0)
ListTab.TabPages[idx].ImageIndex = 0;
SetMainWindowTitle();
SetStatusLabelUrl();
- if (!SettingDialog.TabIconDisp) ListTab.Refresh();
+ if (!this._cfgCommon.TabIconDisp) ListTab.Refresh();
}
private void NotifyDispMenuItem_Click(object sender, EventArgs e)
if (string.IsNullOrEmpty(_rclickTabName)) _rclickTabName = _statuses.GetTabByType(MyCommon.TabUsageType.Home).TabName;
fltDialog.SetCurrent(_rclickTabName);
fltDialog.ShowDialog(this);
- this.TopMost = SettingDialog.AlwaysTop;
+ this.TopMost = this._cfgCommon.AlwaysTop;
this.ApplyPostFilters();
SaveConfigsTabs();
tabName = inputName.TabName;
tabUsage = inputName.Usage;
}
- this.TopMost = SettingDialog.AlwaysTop;
+ this.TopMost = this._cfgCommon.AlwaysTop;
if (!string.IsNullOrEmpty(tabName))
{
//List対応
fltDialog.AddNewFilter(_statuses[_curTab.Text, idx].RetweetedBy, _statuses[_curTab.Text, idx].TextFromApi);
}
fltDialog.ShowDialog(this);
- this.TopMost = SettingDialog.AlwaysTop;
+ this.TopMost = this._cfgCommon.AlwaysTop;
}
this.ApplyPostFilters();
if (inputName.DialogResult == DialogResult.Cancel) return false;
tabName = inputName.TabName;
}
- this.TopMost = SettingDialog.AlwaysTop;
+ this.TopMost = this._cfgCommon.AlwaysTop;
if (!string.IsNullOrEmpty(tabName))
{
if (!_statuses.AddTab(tabName, MyCommon.TabUsageType.UserDefined, null) || !AddNewTab(tabName, false, MyCommon.TabUsageType.UserDefined))
{
return;
}
- this.TopMost = SettingDialog.AlwaysTop;
+ this.TopMost = this._cfgCommon.AlwaysTop;
}
if (string.IsNullOrEmpty(openUrlStr)) return;
break;
}
}
- if (!SettingDialog.TabIconDisp) ListTab.Refresh();
+ if (!this._cfgCommon.TabIconDisp) ListTab.Refresh();
SetMainWindowTitle();
SetStatusLabelUrl();
StringBuilder ttl = new StringBuilder(256);
int ur = 0;
int al = 0;
- if (SettingDialog.DispLatestPost != MyCommon.DispTitleEnum.None &&
- SettingDialog.DispLatestPost != MyCommon.DispTitleEnum.Post &&
- SettingDialog.DispLatestPost != MyCommon.DispTitleEnum.Ver &&
- SettingDialog.DispLatestPost != MyCommon.DispTitleEnum.OwnStatus)
+ if (this._cfgCommon.DispLatestPost != MyCommon.DispTitleEnum.None &&
+ this._cfgCommon.DispLatestPost != MyCommon.DispTitleEnum.Post &&
+ this._cfgCommon.DispLatestPost != MyCommon.DispTitleEnum.Ver &&
+ this._cfgCommon.DispLatestPost != MyCommon.DispTitleEnum.OwnStatus)
{
foreach (var tab in _statuses.Tabs.Values)
{
}
}
- if (SettingDialog.DispUsername) ttl.Append(tw.Username).Append(" - ");
+ if (this._cfgCommon.DispUsername) ttl.Append(tw.Username).Append(" - ");
ttl.Append(Application.ProductName);
ttl.Append(" ");
- switch (SettingDialog.DispLatestPost)
+ switch (this._cfgCommon.DispLatestPost)
{
case MyCommon.DispTitleEnum.Ver:
ttl.Append("Ver:").Append(MyCommon.GetReadableVersion());
// タスクトレイアイコンのツールチップテキスト書き換え
// Tween [未読/@]
ur.Remove(0, ur.Length);
- if (SettingDialog.DispUsername)
+ if (this._cfgCommon.DispUsername)
{
ur.Append(tw.Username);
ur.Append(" - ");
{
return;
}
- this.TopMost = SettingDialog.AlwaysTop;
+ this.TopMost = this._cfgCommon.AlwaysTop;
if (rslt == DialogResult.Cancel) return;
if (!string.IsNullOrEmpty(HashMgr.UseHash))
{
get { return _curPost; }
}
- public bool IsPreviewEnable
- {
- get { return SettingDialog.PreviewEnable; }
- }
-
#region "画像投稿"
private void ImageSelectMenuItem_Click(object sender, EventArgs e)
{
//if (SettingDialog.DispUsername) NotifyIcon1.BalloonTipTitle = tw.Username + " - "; else NotifyIcon1.BalloonTipTitle = "";
//NotifyIcon1.BalloonTipTitle += Application.ProductName + " [" + ev.Event.ToUpper() + "] by " + ((string)(!string.IsNullOrEmpty(ev.Username) ? ev.Username : ""), string);
StringBuilder title = new StringBuilder();
- if (SettingDialog.DispUsername)
+ if (this._cfgCommon.DispUsername)
{
title.Append(tw.Username);
title.Append(" - ");
text = " ";
}
//NotifyIcon1.ShowBalloonTip(500);
- if (SettingDialog.IsNotifyUseGrowl)
+ if (this._cfgCommon.IsUseNotifyGrowl)
{
gh.Notify(GrowlHelper.NotifyType.UserStreamEvent,
ev.Id.ToString(), title.ToString(), text);
{
evtDialog.Activate();
}
- this.TopMost = this.SettingDialog.AlwaysTop;
+ this.TopMost = this._cfgCommon.AlwaysTop;
}
#endregion