mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
Change the paragraph settings dialog:
- now floating by default - re-layout horizontally for minimum mouse movement. - allow key shortcuts. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20530 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
15b8abe4b8
commit
097ca4b228
@ -172,13 +172,11 @@ Dialog * Dialogs::build(string const & name)
|
|||||||
} else if (name == "note") {
|
} else if (name == "note") {
|
||||||
dialog = new GuiNoteDialog(lyxview_);
|
dialog = new GuiNoteDialog(lyxview_);
|
||||||
} else if (name == "paragraph") {
|
} else if (name == "paragraph") {
|
||||||
#ifdef Q_WS_MACX
|
DockView<ControlParagraph, GuiParagraph> * dv =
|
||||||
// On Mac show as a drawer at the right
|
new DockView<ControlParagraph, GuiParagraph>(guiview,
|
||||||
dialog = new DockView<ControlParagraph, GuiParagraph>(guiview, name,
|
name, Qt::NoDockWidgetArea);
|
||||||
Qt::RightDockWidgetArea, Qt::Drawer);
|
dv->setFloating(true);
|
||||||
#else
|
dialog = dv;
|
||||||
dialog = new DockView<ControlParagraph, GuiParagraph>(guiview, name);
|
|
||||||
#endif
|
|
||||||
} else if (name == "prefs") {
|
} else if (name == "prefs") {
|
||||||
dialog = new GuiPrefsDialog(lyxview_);
|
dialog = new GuiPrefsDialog(lyxview_);
|
||||||
} else if (name == "print") {
|
} else if (name == "print") {
|
||||||
|
@ -289,7 +289,7 @@ bool GuiApplication::notify(QObject * receiver, QEvent * event)
|
|||||||
if (e.type_ == support::ErrorException) {
|
if (e.type_ == support::ErrorException) {
|
||||||
Alert::error(e.title_, e.details_);
|
Alert::error(e.title_, e.details_);
|
||||||
LyX::cref().emergencyCleanup();
|
LyX::cref().emergencyCleanup();
|
||||||
::exit(1);
|
QApplication::exit(1);
|
||||||
} else if (e.type_ == support::WarningException) {
|
} else if (e.type_ == support::WarningException) {
|
||||||
Alert::warning(e.title_, e.details_);
|
Alert::warning(e.title_, e.details_);
|
||||||
return return_value;
|
return return_value;
|
||||||
@ -298,12 +298,12 @@ bool GuiApplication::notify(QObject * receiver, QEvent * event)
|
|||||||
catch (std::exception const & e) {
|
catch (std::exception const & e) {
|
||||||
lyxerr << "Caught \"normal\" exception: " << e.what() << endl;
|
lyxerr << "Caught \"normal\" exception: " << e.what() << endl;
|
||||||
LyX::cref().emergencyCleanup();
|
LyX::cref().emergencyCleanup();
|
||||||
::exit(1);
|
QApplication::exit(1);
|
||||||
}
|
}
|
||||||
catch (...) {
|
catch (...) {
|
||||||
lyxerr << "Caught some really weird exception..." << endl;
|
lyxerr << "Caught some really weird exception..." << endl;
|
||||||
LyX::cref().emergencyCleanup();
|
LyX::cref().emergencyCleanup();
|
||||||
::exit(1);
|
QApplication::exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return return_value;
|
return return_value;
|
||||||
|
@ -1,15 +1,12 @@
|
|||||||
<ui version="4.0" >
|
<ui version="4.0" >
|
||||||
<author></author>
|
|
||||||
<comment></comment>
|
|
||||||
<exportmacro></exportmacro>
|
|
||||||
<class>ParagraphUi</class>
|
<class>ParagraphUi</class>
|
||||||
<widget class="QWidget" name="ParagraphUi" >
|
<widget class="QWidget" name="ParagraphUi" >
|
||||||
<property name="geometry" >
|
<property name="geometry" >
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>222</width>
|
<width>496</width>
|
||||||
<height>488</height>
|
<height>176</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy" >
|
<property name="sizePolicy" >
|
||||||
@ -32,94 +29,176 @@
|
|||||||
<property name="windowTitle" >
|
<property name="windowTitle" >
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="" >
|
<layout class="QGridLayout" >
|
||||||
<property name="geometry" >
|
<property name="margin" >
|
||||||
<rect>
|
<number>9</number>
|
||||||
<x>10</x>
|
|
||||||
<y>440</y>
|
|
||||||
<width>201</width>
|
|
||||||
<height>26</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" >
|
<property name="spacing" >
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<layout class="QGridLayout" >
|
||||||
<property name="margin" >
|
<property name="margin" >
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="spacing" >
|
<property name="spacing" >
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item row="0" column="0" >
|
||||||
<widget class="QPushButton" name="restorePB" >
|
<widget class="QCheckBox" name="indentCB" >
|
||||||
<property name="text" >
|
<property name="sizePolicy" >
|
||||||
<string>Restore</string>
|
<sizepolicy>
|
||||||
|
<hsizetype>0</hsizetype>
|
||||||
|
<vsizetype>0</vsizetype>
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="autoDefault" >
|
<property name="text" >
|
||||||
<bool>false</bool>
|
<string>&Indent Paragraph</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item rowspan="3" row="0" column="1" >
|
||||||
<spacer>
|
<widget class="QGroupBox" name="aligmentGB" >
|
||||||
<property name="orientation" >
|
<property name="sizePolicy" >
|
||||||
<enum>Qt::Horizontal</enum>
|
<sizepolicy>
|
||||||
|
<hsizetype>0</hsizetype>
|
||||||
|
<vsizetype>0</vsizetype>
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeType" >
|
<property name="title" >
|
||||||
<enum>QSizePolicy::Expanding</enum>
|
<string>Alignment</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<layout class="QGridLayout" >
|
||||||
<size>
|
<property name="margin" >
|
||||||
<width>20</width>
|
<number>9</number>
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
<property name="spacing" >
|
||||||
</item>
|
<number>6</number>
|
||||||
<item>
|
</property>
|
||||||
<widget class="QPushButton" name="applyPB" >
|
<item row="4" column="0" >
|
||||||
|
<widget class="QRadioButton" name="alignRightRB" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Apply</string>
|
<string>&Right</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="autoDefault" >
|
</widget>
|
||||||
<bool>false</bool>
|
</item>
|
||||||
|
<item row="3" column="0" >
|
||||||
|
<widget class="QRadioButton" name="alignCenterRB" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>&Center</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0" >
|
||||||
|
<widget class="QRadioButton" name="alignLeftRB" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>&Left</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<widget class="QRadioButton" name="alignJustRB" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>&Justified</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<widget class="QRadioButton" name="alignDefaultRB" >
|
||||||
|
<property name="font" >
|
||||||
|
<font>
|
||||||
|
<family>MS Shell Dlg 2</family>
|
||||||
|
<pointsize>8</pointsize>
|
||||||
|
<weight>50</weight>
|
||||||
|
<italic>false</italic>
|
||||||
|
<bold>false</bold>
|
||||||
|
<underline>false</underline>
|
||||||
|
<strikeout>false</strikeout>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip" >
|
||||||
|
<string>Use the default alignment for this paragraph, whatever it is.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text" >
|
||||||
|
<string>Paragraph's &Default</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QGroupBox" name="groupBox" >
|
</item>
|
||||||
<property name="geometry" >
|
<item row="2" column="0" >
|
||||||
<rect>
|
<widget class="QGroupBox" name="labelwidthGB" >
|
||||||
<x>11</x>
|
|
||||||
<y>11</y>
|
|
||||||
<width>201</width>
|
|
||||||
<height>51</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="title" >
|
|
||||||
<string>Line spacing</string>
|
|
||||||
</property>
|
|
||||||
<widget class="QLineEdit" name="linespacingValue" >
|
|
||||||
<property name="enabled" >
|
<property name="enabled" >
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="geometry" >
|
<property name="sizePolicy" >
|
||||||
<rect>
|
<sizepolicy>
|
||||||
<x>80</x>
|
<hsizetype>0</hsizetype>
|
||||||
<y>20</y>
|
<vsizetype>0</vsizetype>
|
||||||
<width>111</width>
|
<horstretch>0</horstretch>
|
||||||
<height>22</height>
|
<verstretch>0</verstretch>
|
||||||
</rect>
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="title" >
|
||||||
|
<string>Label Width</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<property name="margin" >
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="spacing" >
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<widget class="QLabel" name="TextLabel2" >
|
||||||
|
<property name="toolTip" >
|
||||||
|
<string>This text defines the width of the paragraph label</string>
|
||||||
|
</property>
|
||||||
|
<property name="text" >
|
||||||
|
<string>&Longest label</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy" >
|
||||||
|
<cstring>labelWidth</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QComboBox" name="linespacing" >
|
</item>
|
||||||
<property name="geometry" >
|
<item row="0" column="1" >
|
||||||
<rect>
|
<widget class="QLineEdit" name="labelWidth" >
|
||||||
<x>10</x>
|
<property name="toolTip" >
|
||||||
<y>20</y>
|
<string>This text defines the width of the paragraph label</string>
|
||||||
<width>63</width>
|
|
||||||
<height>20</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<widget class="QGroupBox" name="groupBox" >
|
||||||
|
<property name="sizePolicy" >
|
||||||
|
<sizepolicy>
|
||||||
|
<hsizetype>0</hsizetype>
|
||||||
|
<vsizetype>0</vsizetype>
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="title" >
|
||||||
|
<string>Line &spacing</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<property name="margin" >
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="spacing" >
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<widget class="QComboBox" name="linespacing" >
|
||||||
<item>
|
<item>
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Default</string>
|
<string>Default</string>
|
||||||
@ -146,165 +225,66 @@
|
|||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</item>
|
||||||
<widget class="QCheckBox" name="indentCB" >
|
<item row="0" column="1" >
|
||||||
<property name="geometry" >
|
<widget class="QLineEdit" name="linespacingValue" >
|
||||||
<rect>
|
<property name="enabled" >
|
||||||
<x>10</x>
|
<bool>false</bool>
|
||||||
<y>250</y>
|
|
||||||
<width>201</width>
|
|
||||||
<height>19</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="text" >
|
|
||||||
<string>Indent Paragraph</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QGroupBox" name="aligmentGB" >
|
</item>
|
||||||
<property name="geometry" >
|
</layout>
|
||||||
<rect>
|
</widget>
|
||||||
<x>10</x>
|
</item>
|
||||||
<y>70</y>
|
<item rowspan="2" row="1" column="2" >
|
||||||
<width>201</width>
|
|
||||||
<height>155</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="sizePolicy" >
|
|
||||||
<sizepolicy>
|
|
||||||
<hsizetype>3</hsizetype>
|
|
||||||
<vsizetype>5</vsizetype>
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="title" >
|
|
||||||
<string>Alignment</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" >
|
<layout class="QGridLayout" >
|
||||||
<property name="margin" >
|
<property name="margin" >
|
||||||
<number>9</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="spacing" >
|
<property name="spacing" >
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="4" column="0" >
|
<item row="0" column="0" >
|
||||||
<widget class="QRadioButton" name="alignRightRB" >
|
<widget class="QCheckBox" name="synchronizedViewCB" >
|
||||||
<property name="text" >
|
<property name="sizePolicy" >
|
||||||
<string>Right</string>
|
<sizepolicy>
|
||||||
|
<hsizetype>0</hsizetype>
|
||||||
|
<vsizetype>0</vsizetype>
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0" >
|
|
||||||
<widget class="QRadioButton" name="alignCenterRB" >
|
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Center</string>
|
<string>I&mmediate Apply</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" >
|
<item row="2" column="0" >
|
||||||
<widget class="QRadioButton" name="alignLeftRB" >
|
<widget class="QPushButton" name="applyPB" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Left</string>
|
<string>&Apply</string>
|
||||||
|
</property>
|
||||||
|
<property name="autoDefault" >
|
||||||
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" >
|
<item row="1" column="0" >
|
||||||
<widget class="QRadioButton" name="alignJustRB" >
|
<widget class="QPushButton" name="restorePB" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Justified</string>
|
<string>&Restore</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="autoDefault" >
|
||||||
</item>
|
|
||||||
<item row="0" column="0" >
|
|
||||||
<widget class="QRadioButton" name="alignDefaultRB" >
|
|
||||||
<property name="font" >
|
|
||||||
<font>
|
|
||||||
<family>MS Shell Dlg 2</family>
|
|
||||||
<pointsize>8</pointsize>
|
|
||||||
<weight>50</weight>
|
|
||||||
<italic>false</italic>
|
|
||||||
<bold>false</bold>
|
|
||||||
<underline>false</underline>
|
|
||||||
<strikeout>false</strikeout>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip" >
|
|
||||||
<string>Use the default alignment for this paragraph, whatever it is.</string>
|
|
||||||
</property>
|
|
||||||
<property name="text" >
|
|
||||||
<string>Paragraph's Default</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<widget class="QGroupBox" name="labelwidthGB" >
|
|
||||||
<property name="enabled" >
|
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="geometry" >
|
|
||||||
<rect>
|
|
||||||
<x>10</x>
|
|
||||||
<y>280</y>
|
|
||||||
<width>201</width>
|
|
||||||
<height>107</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="sizePolicy" >
|
|
||||||
<sizepolicy>
|
|
||||||
<hsizetype>5</hsizetype>
|
|
||||||
<vsizetype>1</vsizetype>
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="title" >
|
|
||||||
<string>Label Width</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" >
|
|
||||||
<property name="margin" >
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="spacing" >
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<item row="0" column="1" >
|
|
||||||
<widget class="QLineEdit" name="labelWidth" >
|
|
||||||
<property name="toolTip" >
|
|
||||||
<string>This text defines the width of the paragraph label</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0" >
|
|
||||||
<widget class="QLabel" name="TextLabel2" >
|
|
||||||
<property name="toolTip" >
|
|
||||||
<string>This text defines the width of the paragraph label</string>
|
|
||||||
</property>
|
|
||||||
<property name="text" >
|
|
||||||
<string>&Longest label</string>
|
|
||||||
</property>
|
|
||||||
<property name="buddy" >
|
|
||||||
<cstring>labelWidth</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCheckBox" name="synchronizedViewCB" >
|
|
||||||
<property name="geometry" >
|
|
||||||
<rect>
|
|
||||||
<x>10</x>
|
|
||||||
<y>410</y>
|
|
||||||
<width>201</width>
|
|
||||||
<height>19</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="text" >
|
|
||||||
<string>Synchronized view</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
<pixmapfunction></pixmapfunction>
|
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>linespacing</tabstop>
|
<tabstop>linespacing</tabstop>
|
||||||
<tabstop>linespacingValue</tabstop>
|
<tabstop>linespacingValue</tabstop>
|
||||||
|
Loading…
Reference in New Issue
Block a user