File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
kotlin/com/huayi/intellijplatform/gitstats/components Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ package com.huayi.intellijplatform.gitstats.components
2
+
3
+ import com.huayi.intellijplatform.gitstats.MyBundle
4
+ import com.intellij.openapi.ui.ComboBox
5
+ import com.intellij.openapi.ui.DialogWrapper
6
+ import com.intellij.ui.components.JBLabel
7
+ import com.intellij.ui.components.JBPanel
8
+ import java.awt.Dimension
9
+ import java.awt.GridLayout
10
+ import javax.swing.BoxLayout
11
+ import javax.swing.JComponent
12
+
13
+
14
+ class SettingDialogWrapper : DialogWrapper (true ) {
15
+ init {
16
+ title = " Git Stats Setting"
17
+ init ()
18
+ }
19
+ override fun createCenterPanel (): JComponent {
20
+ val dialogPanel = JBPanel <JBPanel <* >>().apply {
21
+ layout = GridLayout (1 , 1 )
22
+ preferredSize = Dimension (260 , 30 )
23
+ }
24
+ val modeFieldPanel = JBPanel <JBPanel <* >>().apply {
25
+ layout = BoxLayout (this , BoxLayout .X_AXIS )
26
+ add(JBLabel (MyBundle .message(" settingDialogModeLabel" , " " )).apply {
27
+ preferredSize = Dimension (50 , 30 )
28
+ })
29
+ add(ComboBox <String >().apply {
30
+ addItem(" Top-speed" )
31
+ addItem(" Advanced" )
32
+ })
33
+ }
34
+ dialogPanel.add(modeFieldPanel)
35
+ return dialogPanel
36
+ }
37
+ }
Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ shuffle=Shuffle
5
5
filterStartTimeLabel =StartTime: {0}
6
6
filterEndTimeLabel =EndTime: {0}
7
7
refreshButtonLabel =Refresh
8
+ settingButtonTooltipText =Show Setting
9
+ settingDialogModeLabel =Mode:
You can’t perform that action at this time.
0 commit comments