Skip to content

Commit

Permalink
fix(CDesktopExport, CTexExportSettings): undo changes made by JFormDe…
Browse files Browse the repository at this point in the history
…signer

Schreibtisch exportieren

und

LaTex-Exportoptionen
NB. LaTeX [sic!]
  • Loading branch information
RalfBarkow committed May 3, 2024
1 parent 4f0d1d3 commit 33f5f68
Show file tree
Hide file tree
Showing 3 changed files with 323 additions and 389 deletions.
280 changes: 125 additions & 155 deletions src/main/java/de/danielluedecke/zettelkasten/CDesktopExport.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@

package de.danielluedecke.zettelkasten;

import java.awt.*;
import java.util.*;
import javax.swing.*;
import javax.swing.GroupLayout;
import javax.swing.LayoutStyle;
import de.danielluedecke.zettelkasten.database.Settings;
import de.danielluedecke.zettelkasten.database.BibTeX;
import de.danielluedecke.zettelkasten.util.Tools;
Expand Down Expand Up @@ -383,183 +378,158 @@ public int getReturnValue() {
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
// Generated using JFormDesigner Evaluation license - Ralf Barkow
private void initComponents() {
ResourceBundle bundle = ResourceBundle.getBundle("de.danielluedecke.zettelkasten.resources.CDesktopExport");
jPanel1 = new JPanel();
jLabel1 = new JLabel();
jComboBox_exportType = new JComboBox();
jCheckBoxExportBibTex = new JCheckBox();
jLabelBrowseDir = new JLabel();
jButtonBrowse = new JButton();
jTextFieldFilepath = new JTextField();
jButtonCancel = new JButton();
jButtonApply = new JButton();
jLabel3 = new JLabel();
jCheckBoxContent = new JCheckBox();
jComboBoxComments = new JComboBox<>();
jCheckBoxRemoveParaSpaces = new JCheckBox();

//======== this ========
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
setTitle(bundle.getString("FormDesktopExport.title"));
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jComboBox_exportType = new javax.swing.JComboBox<String>();
jCheckBoxExportBibTex = new javax.swing.JCheckBox();
jLabelBrowseDir = new javax.swing.JLabel();
jButtonBrowse = new javax.swing.JButton();
jTextFieldFilepath = new javax.swing.JTextField();
jButtonCancel = new javax.swing.JButton();
jButtonApply = new javax.swing.JButton();
jLabel3 = new javax.swing.JLabel();
jCheckBoxContent = new javax.swing.JCheckBox();
jComboBoxComments = new javax.swing.JComboBox<String>();
jCheckBoxRemoveParaSpaces = new javax.swing.JCheckBox();

setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(de.danielluedecke.zettelkasten.ZettelkastenApp.class).getContext().getResourceMap(CDesktopExport.class);
setTitle(resourceMap.getString("FormDesktopExport.title")); // NOI18N
setModal(true);
setName("FormDesktopExport");
setName("FormDesktopExport"); // NOI18N
setResizable(false);
Container contentPane = getContentPane();

//======== jPanel1 ========
{
jPanel1.setName("jPanel1");
jPanel1.setBorder (new javax. swing. border. CompoundBorder( new javax .swing .border .TitledBorder (new javax. swing
. border. EmptyBorder( 0, 0, 0, 0) , "JF\u006frmDes\u0069gner \u0045valua\u0074ion", javax. swing. border. TitledBorder
. CENTER, javax. swing. border. TitledBorder. BOTTOM, new java .awt .Font ("D\u0069alog" ,java .
awt .Font .BOLD ,12 ), java. awt. Color. red) ,jPanel1. getBorder( )) )
; jPanel1. addPropertyChangeListener (new java. beans. PropertyChangeListener( ){ @Override public void propertyChange (java .beans .PropertyChangeEvent e
) {if ("\u0062order" .equals (e .getPropertyName () )) throw new RuntimeException( ); }} )
;
jPanel1.setName("jPanel1"); // NOI18N

//---- jLabel1 ----
jLabel1.setText(bundle.getString("jLabel1.text"));
jLabel1.setName("jLabel1");
jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
jLabel1.setName("jLabel1"); // NOI18N

//---- jComboBox_exportType ----
jComboBox_exportType.setName("jComboBox_exportType");
jComboBox_exportType.setName("jComboBox_exportType"); // NOI18N

//---- jCheckBoxExportBibTex ----
jCheckBoxExportBibTex.setText(bundle.getString("jCheckBoxExportBibTex.text"));
jCheckBoxExportBibTex.setToolTipText(bundle.getString("jCheckBoxExportBibTex.toolTipText"));
jCheckBoxExportBibTex.setName("jCheckBoxExportBibTex");
jCheckBoxExportBibTex.setText(resourceMap.getString("jCheckBoxExportBibTex.text")); // NOI18N
jCheckBoxExportBibTex.setToolTipText(resourceMap.getString("jCheckBoxExportBibTex.toolTipText")); // NOI18N
jCheckBoxExportBibTex.setName("jCheckBoxExportBibTex"); // NOI18N

//---- jLabelBrowseDir ----
jLabelBrowseDir.setText(bundle.getString("jLabelBrowseDir.text"));
jLabelBrowseDir.setName("jLabelBrowseDir");
jLabelBrowseDir.setText(resourceMap.getString("jLabelBrowseDir.text")); // NOI18N
jLabelBrowseDir.setName("jLabelBrowseDir"); // NOI18N

//---- jButtonBrowse ----
jButtonBrowse.setName("jButtonBrowse");
javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(de.danielluedecke.zettelkasten.ZettelkastenApp.class).getContext().getActionMap(CDesktopExport.class, this);
jButtonBrowse.setAction(actionMap.get("save")); // NOI18N
jButtonBrowse.setName("jButtonBrowse"); // NOI18N

//---- jTextFieldFilepath ----
jTextFieldFilepath.setEditable(false);
jTextFieldFilepath.setName("jTextFieldFilepath");
jTextFieldFilepath.setEditable(false);
jTextFieldFilepath.setName("jTextFieldFilepath"); // NOI18N

//---- jButtonCancel ----
jButtonCancel.setName("jButtonCancel");
jButtonCancel.setAction(actionMap.get("cancel")); // NOI18N
jButtonCancel.setName("jButtonCancel"); // NOI18N

//---- jButtonApply ----
jButtonApply.setName("jButtonApply");
jButtonApply.setAction(actionMap.get("startExport")); // NOI18N
jButtonApply.setName("jButtonApply"); // NOI18N

//---- jLabel3 ----
jLabel3.setText(bundle.getString("jLabel3.text"));
jLabel3.setName("jLabel3");
jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
jLabel3.setName("jLabel3"); // NOI18N

//---- jCheckBoxContent ----
jCheckBoxContent.setText(bundle.getString("jCheckBoxContent.text"));
jCheckBoxContent.setName("jCheckBoxContent");
jCheckBoxContent.setText(resourceMap.getString("jCheckBoxContent.text")); // NOI18N
jCheckBoxContent.setName("jCheckBoxContent"); // NOI18N

//---- jComboBoxComments ----
jComboBoxComments.setModel(new DefaultComboBoxModel<>(new String[] {
"keine Kommentare exportieren",
"Kommentare mit exportieren",
"nur Zettel mit Kommentaren exportieren"
}));
jComboBoxComments.setName("jComboBoxComments");
jComboBoxComments.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[] { "keine Kommentare exportieren", "Kommentare mit exportieren", "nur Zettel mit Kommentaren exportieren" }));
jComboBoxComments.setName("jComboBoxComments"); // NOI18N

//---- jCheckBoxRemoveParaSpaces ----
jCheckBoxRemoveParaSpaces.setText(bundle.getString("jCheckBoxRemoveParaSpaces.text"));
jCheckBoxRemoveParaSpaces.setToolTipText(bundle.getString("jCheckBoxRemoveParaSpaces.toolTipText"));
jCheckBoxRemoveParaSpaces.setName("jCheckBoxRemoveParaSpaces");
jCheckBoxRemoveParaSpaces.setText(resourceMap.getString("jCheckBoxRemoveParaSpaces.text")); // NOI18N
jCheckBoxRemoveParaSpaces.setToolTipText(resourceMap.getString("jCheckBoxRemoveParaSpaces.toolTipText")); // NOI18N
jCheckBoxRemoveParaSpaces.setName("jCheckBoxRemoveParaSpaces"); // NOI18N

GroupLayout jPanel1Layout = new GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup()
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup()
.addComponent(jLabel1)
.addComponent(jComboBox_exportType, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3)
.addComponent(jCheckBoxContent)
.addComponent(jCheckBoxExportBibTex)
.addComponent(jComboBoxComments, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.TRAILING, false)
.addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
.addComponent(jButtonBrowse)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTextFieldFilepath))
.addComponent(jLabelBrowseDir, GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jButtonCancel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButtonApply)))
.addComponent(jCheckBoxRemoveParaSpaces))
.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup()
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jComboBox_exportType, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jLabel3)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jCheckBoxContent)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jCheckBoxRemoveParaSpaces)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jCheckBoxExportBibTex)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jComboBoxComments, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jLabelBrowseDir)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1)
.addComponent(jComboBox_exportType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3)
.addComponent(jCheckBoxContent)
.addComponent(jCheckBoxExportBibTex)
.addComponent(jComboBoxComments, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
.addComponent(jButtonBrowse)
.addComponent(jTextFieldFilepath, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTextFieldFilepath))
.addComponent(jLabelBrowseDir, javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jButtonCancel)
.addComponent(jButtonApply))
.addContainerGap())
);
}
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButtonApply)))
.addComponent(jCheckBoxRemoveParaSpaces))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jComboBox_exportType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jLabel3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jCheckBoxContent)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jCheckBoxRemoveParaSpaces)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jCheckBoxExportBibTex)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jComboBoxComments, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jLabelBrowseDir)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButtonBrowse)
.addComponent(jTextFieldFilepath, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButtonCancel)
.addComponent(jButtonApply))
.addContainerGap())
);

GroupLayout contentPaneLayout = new GroupLayout(contentPane);
contentPane.setLayout(contentPaneLayout);
contentPaneLayout.setHorizontalGroup(
contentPaneLayout.createParallelGroup()
.addGroup(contentPaneLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
contentPaneLayout.setVerticalGroup(
contentPaneLayout.createParallelGroup()
.addGroup(contentPaneLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);

pack();
setLocationRelativeTo(getOwner());
}// </editor-fold>//GEN-END:initComponents

// Variables declaration - do not modify//GEN-BEGIN:variables
// Generated using JFormDesigner Evaluation license - Ralf Barkow
private JPanel jPanel1;
private JLabel jLabel1;
private JComboBox jComboBox_exportType;
private JCheckBox jCheckBoxExportBibTex;
private JLabel jLabelBrowseDir;
private JButton jButtonBrowse;
private JTextField jTextFieldFilepath;
private JButton jButtonCancel;
private JButton jButtonApply;
private JLabel jLabel3;
private JCheckBox jCheckBoxContent;
private JComboBox<String> jComboBoxComments;
private JCheckBox jCheckBoxRemoveParaSpaces;
private javax.swing.JButton jButtonApply;
private javax.swing.JButton jButtonBrowse;
private javax.swing.JButton jButtonCancel;
private javax.swing.JCheckBox jCheckBoxContent;
private javax.swing.JCheckBox jCheckBoxExportBibTex;
private javax.swing.JCheckBox jCheckBoxRemoveParaSpaces;
private javax.swing.JComboBox<String> jComboBoxComments;
private javax.swing.JComboBox<String> jComboBox_exportType;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabelBrowseDir;
private javax.swing.JPanel jPanel1;
private javax.swing.JTextField jTextFieldFilepath;
// End of variables declaration//GEN-END:variables

}
Loading

0 comments on commit 33f5f68

Please sign in to comment.