Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
dc8266d5
Commit
dc8266d5
authored
Oct 24, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Ge: Fixed DropDown boxes in toolbar.
parent
ba96fda8
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
173 additions
and
187 deletions
+173
-187
xtt/lib/cow/qt/cow_qt_helpers.cpp
xtt/lib/cow/qt/cow_qt_helpers.cpp
+4
-7
xtt/lib/cow/qt/cow_qt_helpers.h
xtt/lib/cow/qt/cow_qt_helpers.h
+2
-1
xtt/lib/ge/qt/ge_qt.cqt
xtt/lib/ge/qt/ge_qt.cqt
+157
-173
xtt/lib/ge/qt/ge_qt.h
xtt/lib/ge/qt/ge_qt.h
+10
-6
No files found.
xtt/lib/cow/qt/cow_qt_helpers.cpp
View file @
dc8266d5
...
@@ -227,14 +227,11 @@ QAction* addCheckableToolItem(QObject* parent, QToolBar* tools,
...
@@ -227,14 +227,11 @@ QAction* addCheckableToolItem(QObject* parent, QToolBar* tools,
return
action
;
return
action
;
}
}
Q
Menu
*
addToolMenu
(
QWidget
*
parent
,
QToolBar
*
tools
,
const
char
*
text
)
Q
ComboBox
*
addToolMenu
(
QWidget
*
parent
,
QToolBar
*
tools
,
const
char
*
callback
)
{
{
QToolButton
*
button
=
new
QToolButton
(
parent
);
QComboBox
*
menu
=
new
QComboBox
(
parent
);
button
->
setText
(
translate_utf8
(
text
));
QObject
::
connect
(
menu
,
SIGNAL
(
activated
(
int
)),
parent
,
callback
);
button
->
setPopupMode
(
QToolButton
::
InstantPopup
);
tools
->
addWidget
(
menu
);
QMenu
*
menu
=
new
QMenu
(
button
);
button
->
setMenu
(
menu
);
tools
->
addWidget
(
button
);
return
menu
;
return
menu
;
}
}
...
...
xtt/lib/cow/qt/cow_qt_helpers.h
View file @
dc8266d5
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#define QT_HELPERS_H
#define QT_HELPERS_H
#include <QAction>
#include <QAction>
#include <QComboBox>
#include <QLabel>
#include <QLabel>
#include <QSplitter>
#include <QSplitter>
#include <QStatusBar>
#include <QStatusBar>
...
@@ -89,7 +90,7 @@ QAction* addToolItem(QObject* parent, QToolBar* tools, const char* text,
...
@@ -89,7 +90,7 @@ QAction* addToolItem(QObject* parent, QToolBar* tools, const char* text,
const
char
*
callback
,
const
char
*
iconName
);
const
char
*
callback
,
const
char
*
iconName
);
QAction
*
addCheckableToolItem
(
QObject
*
parent
,
QToolBar
*
tools
,
QAction
*
addCheckableToolItem
(
QObject
*
parent
,
QToolBar
*
tools
,
const
char
*
text
,
const
char
*
callback
,
const
char
*
iconName
);
const
char
*
text
,
const
char
*
callback
,
const
char
*
iconName
);
Q
Menu
*
addToolMenu
(
QWidget
*
parent
,
QToolBar
*
tools
,
const
char
*
text
);
Q
ComboBox
*
addToolMenu
(
QWidget
*
parent
,
QToolBar
*
tools
,
const
char
*
callback
);
QWidget
*
layout_to_widget
(
QLayout
*
layout
);
QWidget
*
layout_to_widget
(
QLayout
*
layout
);
void
set_pane_position
(
QSplitter
*
pane
,
int
right
);
void
set_pane_position
(
QSplitter
*
pane
,
int
right
);
QFrame
*
separator
(
QFrame
::
Shape
shape
);
QFrame
*
separator
(
QFrame
::
Shape
shape
);
...
...
xtt/lib/ge/qt/ge_qt.cqt
View file @
dc8266d5
This diff is collapsed.
Click to expand it.
xtt/lib/ge/qt/ge_qt.h
View file @
dc8266d5
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
#include "ge.h"
#include "ge.h"
#include <QAction>
#include <QAction>
#include <QComboBox>
#include <QLabel>
#include <QLabel>
#include <QSplitter>
#include <QSplitter>
...
@@ -62,7 +63,9 @@ public:
...
@@ -62,7 +63,9 @@ public:
QLabel
*
msg_label
;
QLabel
*
msg_label
;
QLabel
*
cmd_prompt
;
QLabel
*
cmd_prompt
;
QAction
*
grid_on_w
;
QAction
*
grid_on_w
;
QAction
*
grid_sizes
[
4
];
QComboBox
*
tools_gridsize
;
QComboBox
*
tools_gradient
;
QComboBox
*
tools_textfont
;
QAction
*
show_grid_w
;
QAction
*
show_grid_w
;
QAction
*
view_plant_w
;
QAction
*
view_plant_w
;
QAction
*
view_graphlist_w
;
QAction
*
view_graphlist_w
;
...
@@ -217,17 +220,18 @@ public slots:
...
@@ -217,17 +220,18 @@ public slots:
void
activate_decr_intensity
();
void
activate_decr_intensity
();
void
activate_incr_shift
();
void
activate_incr_shift
();
void
activate_decr_shift
();
void
activate_decr_shift
();
void
activate_gradient
(
int
idx
);
void
activate_gradient
();
void
activate_gradient
();
void
activate_reset_mode
();
void
activate_reset_mode
();
void
activate_scale
();
void
activate_scale
();
void
activate_scale_double
();
void
activate_scale_double
();
void
activate_scale_half
();
void
activate_scale_half
();
void
activate_grid
(
bool
set
);
void
activate_grid
(
bool
set
);
void
activate_linewidth
();
void
activate_linewidth
(
int
idx
);
void
activate_linetype
();
void
activate_linetype
(
int
idx
);
void
activate_gridsize
();
void
activate_gridsize
(
int
idx
);
void
activate_textsize
();
void
activate_textsize
(
int
idx
);
void
activate_textfont
();
void
activate_textfont
(
int
idx
);
void
activate_textbold
(
bool
set
);
void
activate_textbold
(
bool
set
);
void
activate_zoom_in
();
void
activate_zoom_in
();
void
activate_zoom_out
();
void
activate_zoom_out
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment