this.GetPeriodPanel.LoadConfig(settingCommon);
this.StartupPanel.LoadConfig(settingCommon);
this.TweetPrvPanel.LoadConfig(settingCommon);
+ this.TweetActPanel.LoadConfig(settingCommon, settingLocal);
}
public void SaveConfig(SettingCommon settingCommon, SettingLocal settingLocal)
this.GetPeriodPanel.SaveConfig(settingCommon);
this.StartupPanel.SaveConfig(settingCommon);
this.TweetPrvPanel.SaveConfig(settingCommon);
+ this.TweetActPanel.SaveConfig(settingCommon, settingLocal);
}
private void TreeViewSetting_BeforeSelect(object sender, TreeViewCancelEventArgs e)
#endif
try
{
- Status = this.TweetActPanel.StatusText.Text;
PlaySound = this.ActionPanel.PlaySnd.Checked;
UnreadManage = this.ActionPanel.UReadMng.Checked;
break;
}
- switch (this.TweetActPanel.ComboBoxPostKeySelect.SelectedIndex)
- {
- case 2:
- PostShiftEnter = true;
- PostCtrlEnter = false;
- break;
- case 1:
- PostCtrlEnter = true;
- PostShiftEnter = false;
- break;
- case 0:
- PostCtrlEnter = false;
- PostShiftEnter = false;
- break;
- }
CountApi = int.Parse(this.GetCountPanel.TextCountApi.Text);
CountApiReply = int.Parse(this.GetCountPanel.TextCountApiReply.Text);
BrowserPath = this.ActionPanel.BrowserPathText.Text.Trim();
- UseRecommendStatus = this.TweetActPanel.CheckUseRecommendStatus.Checked;
DispUsername = this.PreviewPanel.CheckDispUsername.Checked;
CloseToExit = this.ActionPanel.CheckCloseToExit.Checked;
MinimizeToTray = this.ActionPanel.CheckMinimizeToTray.Checked;
Nicoms = this.CooperatePanel.CheckNicoms.Checked;
DefaultTimeOut = int.Parse(this.ConnectionPanel.ConnectionTimeOut.Text);
- RetweetNoConfirm = this.TweetActPanel.CheckRetweetNoConfirm.Checked;
LimitBalloon = this.PreviewPanel.CheckBalloonLimit.Checked;
EventNotifyEnabled = this.NotifyPanel.CheckEventNotify.Checked;
GetEventNotifyFlag(ref _MyEventNotifyFlag, ref _isMyEventNotifyFlag);
ReadOldPosts = this.ActionPanel.CheckReadOldPosts.Checked;
BitlyUser = this.ShortUrlPanel.TextBitlyId.Text;
BitlyPwd = this.ShortUrlPanel.TextBitlyPw.Text;
- UseAtIdSupplement = this.TweetActPanel.CheckAtIdSupple.Checked;
- UseHashSupplement = this.TweetActPanel.CheckHashSupple.Checked;
PreviewEnable = this.PreviewPanel.CheckPreviewEnable.Checked;
StatusAreaAtBottom = this.PreviewPanel.CheckStatusAreaAtBottom.Checked;
TwitterApiUrl = this.ConnectionPanel.TwitterAPIText.Text.Trim();
}
}
- this.TweetActPanel.StatusText.Text = Status;
this.ActionPanel.UReadMng.Checked = UnreadManage;
this.ActionPanel.PlaySnd.Checked = PlaySound;
break;
}
- if (PostCtrlEnter)
- {
- this.TweetActPanel.ComboBoxPostKeySelect.SelectedIndex = 1;
- }
- else if (PostShiftEnter)
- {
- this.TweetActPanel.ComboBoxPostKeySelect.SelectedIndex = 2;
- }
- else
- {
- this.TweetActPanel.ComboBoxPostKeySelect.SelectedIndex = 0;
- }
-
this.GetCountPanel.TextCountApi.Text = CountApi.ToString();
this.GetCountPanel.TextCountApiReply.Text = CountApiReply.ToString();
this.ActionPanel.BrowserPathText.Text = BrowserPath;
- this.TweetActPanel.CheckUseRecommendStatus.Checked = UseRecommendStatus;
this.PreviewPanel.CheckDispUsername.Checked = DispUsername;
this.ActionPanel.CheckCloseToExit.Checked = CloseToExit;
this.ActionPanel.CheckMinimizeToTray.Checked = MinimizeToTray;
this.CooperatePanel.CheckNicoms.Checked = Nicoms;
this.ConnectionPanel.ConnectionTimeOut.Text = DefaultTimeOut.ToString();
- this.TweetActPanel.CheckRetweetNoConfirm.Checked = RetweetNoConfirm;
this.PreviewPanel.CheckBalloonLimit.Checked = LimitBalloon;
ApplyEventNotifyFlag(EventNotifyEnabled, EventNotifyFlag, IsMyEventNotifyFlag);
this.ShortUrlPanel.TextBitlyPw.Text = BitlyPwd;
this.ShortUrlPanel.TextBitlyId.Modified = false;
this.ShortUrlPanel.TextBitlyPw.Modified = false;
- this.TweetActPanel.CheckAtIdSupple.Checked = UseAtIdSupplement;
- this.TweetActPanel.CheckHashSupple.Checked = UseHashSupplement;
this.PreviewPanel.CheckPreviewEnable.Checked = PreviewEnable;
this.PreviewPanel.CheckStatusAreaAtBottom.Checked = StatusAreaAtBottom;
this.ConnectionPanel.TwitterAPIText.Text = TwitterApiUrl;
}
}
- public string Status { get; set; }
public bool UnreadManage { get; set; }
public bool PlaySound { get; set; }
public Font FontUnread { get; set; } /////未使用
public Color ColorListBackcolor { get; set; }
public Color ColorDetailBackcolor { get; set; }
public MyCommon.NameBalloonEnum NameBalloon { get; set; }
- public bool PostCtrlEnter { get; set; }
- public bool PostShiftEnter { get; set; }
public int CountApi { get; set; }
public int CountApiReply { get; set; }
public int MoreCountApi { get; set; }
public int FavoritesCountApi { get; set; }
public int UserTimelineCountApi { get; set; }
public int ListCountApi { get; set; }
- public bool UseRecommendStatus { get; set; }
public string RecommendStatusText { get; set; }
public bool DispUsername { get; set; }
public bool CloseToExit { get; set; }
public bool Nicoms { get; set; }
public MyCommon.UrlConverter AutoShortUrlFirst { get; set; }
public int DefaultTimeOut { get; set; }
- public bool RetweetNoConfirm { get; set; }
public bool TabIconDisp { get; set; }
public MyCommon.REPLY_ICONSTATE ReplyIconState { get; set; }
public bool ReadOwnPost { get; set; }
public bool ReadOldPosts { get; set; }
public string BitlyUser { get; set; }
public string BitlyPwd { get; set; }
- public bool UseAtIdSupplement { get; set; }
- public bool UseHashSupplement { get; set; }
public bool PreviewEnable { get; set; }
public bool StatusAreaAtBottom { get; set; }
public bool UseAdditionalCount { get; set; }
InitializeComponent();
}
+ public void LoadConfig(SettingCommon settingCommon, SettingLocal settingLocal)
+ {
+ this.StatusText.Text = settingLocal.StatusText;
+
+ if (settingCommon.PostCtrlEnter)
+ {
+ this.ComboBoxPostKeySelect.SelectedIndex = 1;
+ }
+ else if (settingCommon.PostShiftEnter)
+ {
+ this.ComboBoxPostKeySelect.SelectedIndex = 2;
+ }
+ else
+ {
+ this.ComboBoxPostKeySelect.SelectedIndex = 0;
+ }
+
+ this.CheckUseRecommendStatus.Checked = settingLocal.UseRecommendStatus;
+ this.CheckRetweetNoConfirm.Checked = settingCommon.RetweetNoConfirm;
+ this.CheckAtIdSupple.Checked = settingCommon.UseAtIdSupplement;
+ this.CheckHashSupple.Checked = settingCommon.UseHashSupplement;
+ }
+
+ public void SaveConfig(SettingCommon settingCommon, SettingLocal settingLocal)
+ {
+ settingLocal.StatusText = this.StatusText.Text;
+
+ switch (this.ComboBoxPostKeySelect.SelectedIndex)
+ {
+ case 2:
+ settingCommon.PostShiftEnter = true;
+ settingCommon.PostCtrlEnter = false;
+ break;
+ case 1:
+ settingCommon.PostCtrlEnter = true;
+ settingCommon.PostShiftEnter = false;
+ break;
+ case 0:
+ settingCommon.PostCtrlEnter = false;
+ settingCommon.PostShiftEnter = false;
+ break;
+ }
+
+ settingLocal.UseRecommendStatus = this.CheckUseRecommendStatus.Checked;
+ settingCommon.RetweetNoConfirm = this.CheckRetweetNoConfirm.Checked;
+ settingCommon.UseAtIdSupplement = this.CheckAtIdSupple.Checked;
+ settingCommon.UseHashSupplement = this.CheckHashSupple.Checked;
+ }
+
private void CheckUseRecommendStatus_CheckedChanged(object sender, EventArgs e)
{
if (CheckUseRecommendStatus.Checked == true)
public Point FormLocation = new Point(0, 0);
public int SplitterDistance = 200;
public Size FormSize = new Size(600, 500);
+
+ /// <summary>
+ /// 文末ステータス
+ /// </summary>
public string StatusText = "";
+
public bool UseRecommendStatus = false;
public int Width1 = 48;
public int Width2 = 80;
//新着取得時のリストスクロールをするか。trueならスクロールしない
ListLockMenuItem.Checked = _cfgCommon.ListLock;
this.LockListFileMenuItem.Checked = _cfgCommon.ListLock;
- //文末ステータス
- SettingDialog.Status = _cfgLocal.StatusText;
//未読管理。trueなら未読管理する
SettingDialog.UnreadManage = _cfgCommon.UnreadManage;
//サウンド再生(タブ別設定より優先)
SettingDialog.FontInputFont = _fntInputFont;
SettingDialog.NameBalloon = _cfgCommon.NameBalloon;
- SettingDialog.PostCtrlEnter = _cfgCommon.PostCtrlEnter;
- SettingDialog.PostShiftEnter = _cfgCommon.PostShiftEnter;
SettingDialog.CountApi = _cfgCommon.CountApi;
SettingDialog.CountApiReply = _cfgCommon.CountApiReply;
SettingDialog.BrowserPath = _cfgLocal.BrowserPath;
SettingDialog.PostAndGet = _cfgCommon.PostAndGet;
- SettingDialog.UseRecommendStatus = _cfgLocal.UseRecommendStatus;
SettingDialog.DispUsername = _cfgCommon.DispUsername;
SettingDialog.CloseToExit = _cfgCommon.CloseToExit;
SettingDialog.MinimizeToTray = _cfgCommon.MinimizeToTray;
//SettingDialog.UrlConvertAuto = _cfgCommon.UrlConvertAuto;
SettingDialog.DefaultTimeOut = _cfgCommon.DefaultTimeOut;
- SettingDialog.RetweetNoConfirm = _cfgCommon.RetweetNoConfirm;
SettingDialog.PlaySound = _cfgCommon.PlaySound;
SettingDialog.LimitBalloon = _cfgCommon.LimitBalloon;
SettingDialog.EventNotifyEnabled = _cfgCommon.EventNotifyEnabled;
SettingDialog.BitlyUser = _cfgCommon.BilyUser;
SettingDialog.BitlyPwd = _cfgCommon.BitlyPwd;
SettingDialog.Language = _cfgCommon.Language;
- SettingDialog.UseAtIdSupplement = _cfgCommon.UseAtIdSupplement;
- SettingDialog.UseHashSupplement = _cfgCommon.UseHashSupplement;
SettingDialog.PreviewEnable = _cfgCommon.PreviewEnable;
SettingDialog.StatusAreaAtBottom = _cfgCommon.StatusAreaAtBottom;
AtIdSupl = new AtIdSupplement(SettingAtIdList.Load().AtIdList, "@");
bool isCutOff = false;
bool isRemoveFooter = MyCommon.IsKeyDown(Keys.Shift);
- if (StatusText.Multiline && !SettingDialog.PostCtrlEnter)
+ if (StatusText.Multiline && !this._cfgCommon.PostCtrlEnter)
{
//複数行でEnter投稿の場合、Ctrlも押されていたらフッタ付加しない
isRemoveFooter = MyCommon.IsKeyDown(Keys.Control);
}
- if (SettingDialog.PostShiftEnter)
+ if (this._cfgCommon.PostShiftEnter)
{
isRemoveFooter = MyCommon.IsKeyDown(Keys.Control);
}
}
if (!isRemoveFooter)
{
- if (SettingDialog.UseRecommendStatus)
+ if (this._cfgLocal.UseRecommendStatus)
// 推奨ステータスを使用する
footer += SettingDialog.RecommendStatusText;
else
// テキストボックスに入力されている文字列を使用する
- footer += " " + SettingDialog.Status.Trim();
+ footer += " " + this._cfgLocal.StatusText.Trim();
}
}
args.status.status = header + StatusText.Text + footer;
{
if (e.KeyChar == '@')
{
- if (!SettingDialog.UseAtIdSupplement) return;
+ if (!this._cfgCommon.UseAtIdSupplement) return;
//@マーク
int cnt = AtIdSupl.ItemCount;
ShowSuplDialog(StatusText, AtIdSupl);
}
else if (e.KeyChar == '#')
{
- if (!SettingDialog.UseHashSupplement) return;
+ if (!this._cfgCommon.UseHashSupplement) return;
ShowSuplDialog(StatusText, HashSupl);
e.Handled = true;
}
int pLen = 140 - statusText.Length;
if (this.NotifyIcon1 == null || !this.NotifyIcon1.Visible) return pLen;
- if ((isAuto && !MyCommon.IsKeyDown(Keys.Control) && SettingDialog.PostShiftEnter) ||
- (isAuto && !MyCommon.IsKeyDown(Keys.Shift) && !SettingDialog.PostShiftEnter) ||
+ if ((isAuto && !MyCommon.IsKeyDown(Keys.Control) && this._cfgCommon.PostShiftEnter) ||
+ (isAuto && !MyCommon.IsKeyDown(Keys.Shift) && !this._cfgCommon.PostShiftEnter) ||
(!isAuto && isAddFooter))
{
- if (SettingDialog.UseRecommendStatus)
+ if (this._cfgLocal.UseRecommendStatus)
pLen -= SettingDialog.RecommendStatusText.Length;
- else if (SettingDialog.Status.Length > 0)
- pLen -= SettingDialog.Status.Length + 1;
+ else if (this._cfgLocal.StatusText.Length > 0)
+ pLen -= this._cfgLocal.StatusText.Length + 1;
}
if (!string.IsNullOrEmpty(HashMgr.UseHash))
{
private void SaveConfigsAtId()
{
- if (_ignoreConfigSave || !SettingDialog.UseAtIdSupplement && AtIdSupl == null) return;
+ if (_ignoreConfigSave || !this._cfgCommon.UseAtIdSupplement && AtIdSupl == null) return;
_modifySettingAtId = false;
SettingAtIdList cfgAtId = new SettingAtIdList(AtIdSupl.GetItemList());
_cfgCommon.PlaySound = SettingDialog.PlaySound;
_cfgCommon.NameBalloon = SettingDialog.NameBalloon;
- _cfgCommon.PostCtrlEnter = SettingDialog.PostCtrlEnter;
- _cfgCommon.PostShiftEnter = SettingDialog.PostShiftEnter;
_cfgCommon.CountApi = SettingDialog.CountApi;
_cfgCommon.CountApiReply = SettingDialog.CountApiReply;
_cfgCommon.DispUsername = SettingDialog.DispUsername;
_cfgCommon.AlwaysTop = SettingDialog.AlwaysTop;
_cfgCommon.UrlConvertAuto = SettingDialog.UrlConvertAuto;
_cfgCommon.DefaultTimeOut = SettingDialog.DefaultTimeOut;
- _cfgCommon.RetweetNoConfirm = SettingDialog.RetweetNoConfirm;
_cfgCommon.LimitBalloon = SettingDialog.LimitBalloon;
_cfgCommon.EventNotifyEnabled = SettingDialog.EventNotifyEnabled;
_cfgCommon.EventNotifyFlag = SettingDialog.EventNotifyFlag;
_cfgCommon.ReadOldPosts = SettingDialog.ReadOldPosts;
_cfgCommon.BilyUser = SettingDialog.BitlyUser;
_cfgCommon.BitlyPwd = SettingDialog.BitlyPwd;
- _cfgCommon.UseAtIdSupplement = SettingDialog.UseAtIdSupplement;
- _cfgCommon.UseHashSupplement = SettingDialog.UseHashSupplement;
_cfgCommon.PreviewEnable = SettingDialog.PreviewEnable;
_cfgCommon.StatusAreaAtBottom = SettingDialog.StatusAreaAtBottom;
_cfgCommon.Language = SettingDialog.Language;
_cfgLocal.PreviewDistance = _mySpDis3;
_cfgLocal.StatusMultiline = StatusText.Multiline;
_cfgLocal.StatusTextHeight = _mySpDis2;
- _cfgLocal.StatusText = SettingDialog.Status;
_cfgLocal.FontUnread = _fntUnread;
_cfgLocal.ColorUnread = _clUnread;
_cfgLocal.FontInputFont = _fntInputFont;
_cfgLocal.BrowserPath = SettingDialog.BrowserPath;
- _cfgLocal.UseRecommendStatus = SettingDialog.UseRecommendStatus;
_cfgLocal.ProxyType = SettingDialog.SelectedProxyType;
_cfgLocal.ProxyAddress = SettingDialog.ProxyAddress;
_cfgLocal.ProxyPort = SettingDialog.ProxyPort;
bool _NewLine = false;
bool _Post = false;
- if (SettingDialog.PostCtrlEnter) //Ctrl+Enter投稿時
+ if (this._cfgCommon.PostCtrlEnter) //Ctrl+Enter投稿時
{
if (StatusText.Multiline)
{
}
}
- else if (SettingDialog.PostShiftEnter) //SHift+Enter投稿時
+ else if (this._cfgCommon.PostShiftEnter) //SHift+Enter投稿時
{
if (StatusText.Multiline)
{
// 本当にリプライ先指定すべきかどうかの判定
m = Regex.Matches(StatusText, "(^|[ -/:-@[-^`{-~])(?<id>@[a-zA-Z0-9_]+)");
- if (SettingDialog.UseAtIdSupplement)
+ if (this._cfgCommon.UseAtIdSupplement)
{
int bCnt = AtIdSupl.ItemCount;
foreach (Match mid in m)
_DoFavRetweetFlags = false;
return;
}
- if (!SettingDialog.RetweetNoConfirm)
+ if (!this._cfgCommon.RetweetNoConfirm)
{
string Questiontext = Properties.Resources.RetweetQuestion1;
if (_DoFavRetweetFlags) Questiontext = Properties.Resources.FavoritesRetweetQuestionText2;