mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
- update methods of existing classes - add comment to methods missing in the sip bindings - split up collective sip files into single files and use same directory structure in python/ as in src/ - add a lot of missing classes (some might not make sense because of missing python methods in those classes) - remove some non-existing methods from the header files - add scripts/sipdiff - replace some usages of std::vector and std::set with QVector/QSet
109 lines
3.0 KiB
Plaintext
109 lines
3.0 KiB
Plaintext
class QgsStyleV2ManagerDialog : QDialog
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsstylev2managerdialog.h>
|
|
%End
|
|
|
|
public:
|
|
QgsStyleV2ManagerDialog( QgsStyleV2* style, QWidget* parent = NULL );
|
|
|
|
//! open add color ramp dialog, return color ramp's name if the ramp has been added
|
|
static QString addColorRampStatic( QWidget* parent, QgsStyleV2* style,
|
|
QString RampType = QString() );
|
|
|
|
public slots:
|
|
void addItem();
|
|
void editItem();
|
|
void removeItem();
|
|
void exportItems();
|
|
void importItems();
|
|
|
|
void on_tabItemType_currentChanged( int );
|
|
//! adds symbols of some type to list
|
|
void populateList();
|
|
|
|
//! called when the dialog is going to be closed
|
|
void onFinished();
|
|
|
|
void on_buttonBox_helpRequested();
|
|
|
|
void itemChanged( QStandardItem* item );
|
|
|
|
void groupChanged( const QModelIndex& );
|
|
void groupRenamed( QStandardItem * );
|
|
void addGroup();
|
|
void removeGroup();
|
|
|
|
//! carryout symbol grouping using check boxes
|
|
void groupSymbolsAction();
|
|
|
|
//! edit the selected smart group
|
|
void editSmartgroupAction();
|
|
|
|
//! symbol changed from one group
|
|
void regrouped( QStandardItem* );
|
|
|
|
//! filter the symbols based on input search term
|
|
void filterSymbols( QString );
|
|
|
|
//! Listen to tag changes
|
|
void tagsChanged();
|
|
|
|
//! Perform symbol specific tasks when selected
|
|
void symbolSelected( const QModelIndex& );
|
|
|
|
//! Context menu for the groupTree
|
|
void grouptreeContextMenu( const QPoint& );
|
|
|
|
//! Context menu for the listItems ( symbols list )
|
|
void listitemsContextMenu( const QPoint& );
|
|
|
|
protected slots:
|
|
bool addColorRamp( QAction* action );
|
|
|
|
protected:
|
|
|
|
//! populate combo box with known style items (symbols, color ramps)
|
|
void populateTypes();
|
|
|
|
//! populate the groups
|
|
void populateGroups();
|
|
//! build the groups tree
|
|
void buildGroupTree( QStandardItem* &parent );
|
|
//! to set symbols checked when in editing mode
|
|
void setSymbolsChecked( QStringList );
|
|
|
|
//! populate list view with symbols of the current type with the given names
|
|
void populateSymbols( QStringList symbolNames, bool checkable = false );
|
|
|
|
//! populate list view with color ramps
|
|
void populateColorRamps( QStringList colorRamps, bool check );
|
|
|
|
int currentItemType();
|
|
QString currentItemName();
|
|
|
|
//! add a new symbol to style
|
|
bool addSymbol();
|
|
//! add a new color ramp to style
|
|
bool addColorRamp();
|
|
|
|
bool editSymbol();
|
|
bool editColorRamp();
|
|
|
|
bool removeSymbol();
|
|
bool removeColorRamp();
|
|
|
|
//! Enables or disbables the symbol specific inputs
|
|
void enableSymbolInputs( bool );
|
|
//! Enables or disables the groupTree specific inputs
|
|
void enableGroupInputs( bool );
|
|
//! Enables or diables the groupTree items for grouping mode
|
|
void enableItemsForGroupingMode( bool );
|
|
|
|
//! Event filter to capture tagsLineEdit out of focus
|
|
bool eventFilter( QObject* , QEvent* );
|
|
|
|
//! sets the text of the item with bold font
|
|
void setBold( QStandardItem* );
|
|
};
|